/* ==================== VARIABLES ==================== */
:root {
    /* === Couleurs Principales === */
    --primary-color: #FF5900;           /* Principal */
    --primary-dark: #484848;            /* Foncé */
    --primary-light: #626262;           /* Clair */
    --secondary-color: #F59E0B;         /* Secondaire */
    --accent-color: #F59E0B;            /* Accent */
    
    /* === Backgrounds / Arrière-plans === */
    --bg-main: #151515;                 /* Fond principal du site */
    --bg-secondary: #2a2a2a;            /* Fond sections secondaires */
    --bg-tertiary: #151515;             /* Fond tertiaire */
    
    /* === Cartes === */
    --card-bg: #2a2a2a;                 /* Fond des cartes */
    --card-bg-hover: #2a2a2a;           /* Fond des cartes au survol */
    --card-border: #2a2a2a;             /* Bordure des cartes */
    
    /* === Header / Navigation === */
    --header-bg: #151515;                               /* Fond navbar */
    --header-border: rgba(255, 89, 0, 0.1);             /* Bordure navbar */
    --header-text: #ffffff;                             /* Texte header */
    --header-text-hover: #FF5900;                       /* Texte header au survol */
    
    /* === Footer === */
    --footer-bg: #151515;               /* Fond footer */
    --footer-border: #334155;           /* Bordure footer */
    --footer-text: #ffffff;             /* Texte footer */
    --footer-text-muted: #94A3B8;       /* Texte footer atténué */
    --footer-text-hover: #FF5900;       /* Texte footer au survol */
    
    /* === Textes === */
    --text-primary: #ffffff;            /* Texte principal clair */
    --text-secondary: #ffffff;          /* Texte secondaire gris clair */
    --text-muted: #94A3B8;              /* Texte atténué */
    
    /* === Boutons === */
    --btn-bg-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --btn-bg-secondary: transparent;      /* Fond bouton secondaire */
    --btn-text-primary: #FFFFFF;        /* Texte bouton principal */
    --btn-text-secondary: #FF5900;      /* Texte bouton secondaire */
    --btn-border-secondary: #FF5900;    /* Bordure bouton secondaire */
    
    /* Anciens noms (compatibilité) */
    --btn-gradient: var(--btn-bg-primary);
    --btn-gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    
    /* === Bordures === */
    --border-primary: rgba(255, 89, 0, 0.2);            /* Bordure orange */
    --border-secondary: #334155;                        /* Bordure grise */
    
    /* === États / Messages === */
    --success-color: #10B981;           /* Vert succès */
    --error-color: #EF4444;             /* Rouge erreur */
    --warning-color: #F59E0B;           /* Orange avertissement */
    --info-color: #3B82F6;              /* Bleu information */
    
    /* === Cartes Featured === */
    --featured-bg: linear-gradient(135deg, #3d2817 0%, #2d1f12 100%);
    --featured-border: #FF8800;                                             /* Bordure orange featured */
    --featured-accent: #FF8800;                                             /* Orange vif pour featured */
    --featured-glow: rgba(255, 136, 0, 0.2);                                /* Effet glow featured */
    
    /* === Effets / Animations === */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(255, 89, 0, 0.3);
}

/* ==================== MODE CLAIR ==================== */
body.light-mode {
    /* === Couleurs Principales === */
    --primary-color: #FF5900;
    --primary-dark: #1a1a1a;
    --primary-light: #fef3ee;
    --secondary-color: #F59E0B;
    --accent-color: #FF8800;
    
    /* === Backgrounds / Arrière-plans === */
    --bg-main: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f5;
    
    /* === Cartes === */
    --card-bg: #ffffff;
    --card-bg-hover: #fafbfc;
    --card-border: #e1e4e8;
    
    /* === Header / Navigation === */
    --header-bg: #ffffff;
    --header-border: #e1e4e8;
    --header-text: #24292e;
    --header-text-hover: #FF5900;
    
    /* === Footer === */
    --footer-bg: #f6f8fa;
    --footer-border: #e1e4e8;
    --footer-text: #24292e;
    --footer-text-muted: #586069;
    --footer-text-hover: #FF5900;
    
    /* === Textes === */
    --text-primary: #24292e;
    --text-secondary: #586069;
    --text-muted: #6a737d;
    
    /* === Boutons === */
    --btn-bg-secondary: transparent;
    --btn-text-primary: #FFFFFF;
    --btn-text-secondary: #FF5900;
    --btn-border-secondary: #FF5900;
    
    /* === Bordures === */
    --border-primary: #e1e4e8;
    --border-secondary: #d1d5da;
    
    /* === Ombres === */
    --shadow-sm: 0 1px 3px rgba(27, 31, 35, 0.12);
    --shadow-md: 0 3px 12px rgba(27, 31, 35, 0.15);
    --shadow-lg: 0 8px 24px rgba(27, 31, 35, 0.12);
    --shadow-glow: 0 0 0 3px rgba(255, 89, 0, 0.1);
    
    /* === Cartes Featured === */
    --featured-bg: linear-gradient(135deg, #fff5ed 0%, #ffe4cc 100%);
    --featured-border: #FF8800;
    --featured-accent: #FF8800;
    --featured-glow: rgba(255, 136, 0, 0.12);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.home-page {
    background: linear-gradient(to top right, #626262, #484848, #682400, #613D00);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--btn-bg-primary);
    color: var(--btn-text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: var(--btn-bg-secondary);
    border: 2px solid var(--btn-border-secondary);
    color: var(--btn-text-secondary);
}

.btn-secondary:hover {
    background: var(--btn-border-secondary);
    color: var(--btn-text-primary);
    transform: translateY(-2px);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--btn-gradient);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #151515;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 89, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list > li#loginBtn,
.nav-list > li#userMenu {
    margin-left: 8rem;
    margin-right: -8rem;
}

.nav-link {
    color: var(--header-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--btn-gradient);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--header-text-hover);
    font-weight: bold;
}

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

.rainbow-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    margin-right: 1rem;
}

.rainbow-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: bold;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-card {
    width: 300px;
    height: 300px;
    background: var(--btn-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

.hero-card i {
    font-size: 8rem;
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--primary-color);
    font-size: 2rem;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 8rem 0 6rem;
    background: var(--bg-secondary);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-image {
    position: relative;
}

.about-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--btn-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-img-placeholder i {
    font-size: 8rem;
    color: white;
    opacity: 0.8;
}

.about-decoration {
    position: absolute;
    inset: -20px;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.about-subtitle {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-skills {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 1rem 0rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.skill-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    padding: 8rem 0 6rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    max-height: 900px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: visible;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    border: 3px solid var(--featured-border);
    background: var(--featured-bg);
    box-shadow: 0 10px 40px var(--featured-glow);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--featured-accent);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--featured-glow);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--btn-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.service-features i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.service-card.featured .service-features i {
    color: var(--featured-accent);
}

.service-card.featured h3 {
    color: #FFFFFF;
    font-weight: 700;
}

.service-card.featured .service-icon {
    background: linear-gradient(135deg, var(--featured-accent) 0%, #FF6600 100%);
    box-shadow: 0 5px 20px var(--featured-glow);
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio {
    padding: 8rem 0 6rem;
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--btn-gradient);
    color: white;
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.portfolio-placeholder i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.portfolio-placeholder p {
    color: var(--text-muted);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 89, 0, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-view {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--transition);
}

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

/* ==================== CONTACT SECTION ==================== */
.contact {
    padding: 8rem 0 6rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--btn-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-method h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--btn-gradient);
    border-color: transparent;
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.25rem;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid var(--bg-tertiary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.required {
    color: var(--secondary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--footer-button-bg);
    border: 2px solid var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 3rem 0 1rem;
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    align-items: start;
}

.footer-middle {
    margin-left: -3rem;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    color: #fff;
    text-transform: uppercase;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
}

.footer-section ul li a {
    color: #b8b8b8;
    font-size: 0.88rem;
    transition: var(--transition);
    display: block;
    line-height: 1.5;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 0;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

.footer-logo-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-contact img {
    margin-bottom: 2rem;
}

.footer-contact-info {
    text-align: left;
}

.footer-contact-info h4 {
    margin-bottom: 1.2rem;
}

.footer-contact {
    text-align: left;
}

.footer-contact h4 {
    margin-bottom: 1.2rem;
}

.footer-contact strong,
.footer-contact-info strong {
    color: #fff;
    font-weight: 600;
}

.footer-contact p,
.footer-contact-info p {
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.footer-copyright-mini {
    font-size: 0.7rem;
    margin-top: 1.5rem;
    color: #888;
    font-weight: 400;
    white-space: normal;
}

.footer-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
    align-items: center;
}

.footer-payment h4,
.footer-social-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
}

.payment-icons {
    display: flex;
    gap: 1rem;
}

.payment-icons i {
    font-size: 2rem;
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #fff;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .hero-container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        transition: var(--transition);
        padding: 2rem;
        border-left: 1px solid var(--bg-tertiary);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-card {
        width: 200px;
        height: 200px;
    }
    
    .hero-card i {
        font-size: 5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-extra {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-skills {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==================== AUTH PAGES (Login/Register) ==================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 89, 0, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
}

.auth-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--card-border);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--footer-button-bg);
    border: 2px solid var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--error-color);
    color: #FCA5A5;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--success-color);
    color: #6EE7B7;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
}

.gdpr-notice {
    background: rgba(255, 89, 0, 0.1);
    border: 2px solid var(--primary-color);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.gdpr-notice i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ==================== DASHBOARD PAGE ==================== */
.dashboard-container {
    min-height: 100vh;
    padding: 2rem;
    background: var(--footer-button-bg);
}

.dashboard-header {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--bg-tertiary);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    font-size: 2rem;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--card-border);
    transition: var(--transition);
}

.dashboard-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.dashboard-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.user-info {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.user-info p {
    margin: 0.5rem 0;
}

.user-info strong {
    color: var(--text-primary);
}

.gdpr-section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--bg-tertiary);
    margin-bottom: 2rem;
}

.gdpr-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gdpr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-logout {
    background: linear-gradient(135deg, var(--error-color), #DC2626);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    transform: translateY(-2px);
}

/* ==================== PRIVACY POLICY PAGE ==================== */
.policy-container {
    min-height: 100vh;
    padding: 4rem 2rem;
    background: var(--footer-button-bg);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow-lg);
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bg-tertiary);
}

.policy-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-header .last-update {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.policy-section h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem 0;
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-section ul, 
.policy-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

.policy-section ol li {
    list-style: decimal;
}

.highlight-box {
    background: rgba(255, 89, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 10px;
}

.highlight-box strong {
    color: var(--primary-color);
}

.contact-box {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.contact-box i {
    color: var(--secondary-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-link:hover {
    gap: 0.75rem;
}

/* ==================== COMMANDES PAGE ==================== */
.commandes-page :root {
    --bg-dark: #0F0F1E;
    --bg-card: #1A1A2E;
    --border-color: rgba(255, 89, 0, 0.3);
}

.commandes-page {
    background: #0F0F1E;
    min-height: 100vh;
}

.header {
    background: #1A1A2E;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(255, 89, 0, 0.3);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.commissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.commission-card {
    background: #1A1A2E;
    border: 1px solid rgba(255, 89, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.commission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 89, 0, 0.3);
    border-color: var(--primary-color);
}

.commission-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.commission-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-in-progress {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.commission-description {
    color: #9CA3AF;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.commission-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 89, 0, 0.3);
    font-size: 0.85rem;
    color: #9CA3AF;
}

.commission-meta i {
    color: var(--primary-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: #1A1A2E;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 89, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #1A1A2E;
    z-index: 10;
}

.modal-close {
    background: none;
    border: none;
    color: #E0E0E0;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.modal-body {
    padding: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attachments-list {
    display: grid;
    gap: 0.75rem;
}

.attachment-item {
    background: #0F0F1E;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 89, 0, 0.3);
    gap: 1rem;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.attachment-preview {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 89, 0, 0.3);
    flex-shrink: 0;
}

.attachment-preview:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 89, 0, 0.3);
}

.attachment-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: #EF4444;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    background: #DC2626;
}

.lightbox-download {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.messages-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.message {
    background: #0F0F1E;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.message-sender {
    font-weight: 600;
    color: var(--primary-color);
}

.message-time {
    color: #9CA3AF;
}

.message-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.message-input {
    flex: 1;
    background: #0F0F1E;
    border: 1px solid rgba(255, 89, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    color: #E0E0E0;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

.message-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.upload-area {
    border: 2px dashed rgba(255, 89, 0, 0.3);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(255, 89, 0, 0.05);
}

.upload-area.dragover {
    border-color: var(--secondary-color);
    background: rgba(245, 158, 11, 0.1);
}

#fileInput {
    display: none;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #9CA3AF;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #9CA3AF;
}

.loading i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Formulaire nouvelle commande */
#newCommissionForm input[type="text"],
#newCommissionForm input[type="number"],
#newCommissionForm select,
#newCommissionForm textarea {
    width: 100%;
    padding: 0.75rem;
    background: #0F0F1E;
    border: 2px solid rgba(255, 89, 0, 0.5);
    border-radius: 8px;
    color: #E0E0E0;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

#newCommissionForm input[type="text"]:focus,
#newCommissionForm input[type="number"]:focus,
#newCommissionForm select:focus,
#newCommissionForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 89, 0, 0.2);
    background: #1A1A2E;
}

#newCommissionForm input[type="text"]:hover,
#newCommissionForm input[type="number"]:hover,
#newCommissionForm select:hover,
#newCommissionForm textarea:hover {
    border-color: var(--primary-color);
}

#newCommissionForm label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

#newCommissionForm select option {
    background: #1A1A2E;
    color: #E0E0E0;
}

/* ==================== RESPONSIVE FOR NEW PAGES ==================== */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .policy-content {
        padding: 2rem 1.5rem;
    }
    
    .policy-header h1 {
        font-size: 2rem;
    }
    
    .auth-box {
        padding: 2rem 1.5rem;
    }
}

/* ==================== BOUTON TOGGLE THEME ==================== */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 0.5rem;
}

.theme-toggle:hover {
    color: var(--header-text-hover);
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
}

/* Ajustements mode clair pour le gradient homepage */
body.light-mode.home-page {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 25%, #fff5ed 75%, #ffe4cc 100%) !important;
}

/* Ajustements supplémentaires pour le mode clair */
body.light-mode .navbar {
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 1px 3px rgba(27, 31, 35, 0.04);
    backdrop-filter: blur(10px);
}

body.light-mode .service-card,
body.light-mode .review-card,
body.light-mode .stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

body.light-mode .service-card:hover,
body.light-mode .review-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-primary);
}

body.light-mode .footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
}

body.light-mode .cart-item,
body.light-mode .dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
}

body.light-mode .modal-content {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg);
}

body.light-mode .auth-box {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
}

body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

body.light-mode input:focus,
body.light-mode textarea:focus,
body.light-mode select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: #ffffff;
}

body.light-mode .hero {
    color: var(--text-primary);
}

body.light-mode .hero-subtitle {
    color: var(--text-secondary);
}

body.light-mode .section-title,
body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3 {
    color: var(--text-primary);
}

body.light-mode p,
body.light-mode li {
    color: var(--text-secondary);
}

body.light-mode .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light-mode .btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

body.light-mode .cart-badge {
    background: var(--primary-color);
    color: #ffffff;
}

body.light-mode .nav-link {
    color: var(--header-text);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: var(--header-text-hover);
}

body.light-mode .policy-container,
body.light-mode .policy-content {
    background: var(--bg-main);
    color: var(--text-primary);
}

body.light-mode .policy-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

body.light-mode .highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
}
