:root {
    --primary: #1a1a1a;
    --secondary: #f5f5f0;
    --accent: #d4a574;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --card-bg: #f5f5f0;
}

[data-theme="dark"] {
    --primary: #f5f5f0;
    --secondary: #1a1a1a;
    --accent: #d4a574;
    --text: #e5e5e5;
    --text-light: #a0a0a0;
    --white: #1a1a1a;
    --card-bg: #2d2d2d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text);
    background: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* Header */
header {
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    animation: slideDown 0.6s ease-out;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(26, 26, 26, 0.95);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    transition: all 0.3s ease;
    position: relative;
    margin-right: 2rem;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.dark-mode-toggle svg {
    position: absolute;
    transition: all 0.3s ease;
    color: var(--text);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--secondary);
    padding-top: 100px;
    transition: right 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 2rem;
}

.mobile-menu li {
    margin-bottom: 2rem;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

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

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    font-weight: 400;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Section Title */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary);
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s ease;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 1.5rem auto 0;
}

/* Formules Section */
.formules {
    padding: 8rem 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.formules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.formule-card {
    padding: 3rem 2rem;
    background: var(--card-bg);
    border: 1px solid rgba(212, 165, 116, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.formule-card:nth-child(1) {
    animation-delay: 0.1s;
}

.formule-card:nth-child(2) {
    animation-delay: 0.2s;
}

.formule-card:nth-child(3) {
    animation-delay: 0.3s;
}

.formule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.formule-card:hover::before {
    transform: scaleX(1);
}

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

.formule-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.formule-card .price {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.formule-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.formule-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.3s ease;
}

.formule-card li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 0;
    background: var(--secondary);
    transition: background-color 0.3s ease;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--white);
    border: 1px solid rgba(212, 165, 116, 0.2);
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.placeholder-image {
    color: var(--text-light);
    opacity: 0.3;
}

.portfolio-info {
    padding: 2rem;
}

.portfolio-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.portfolio-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.portfolio-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    padding: 0.4rem 1rem;
    background: var(--secondary);
    color: var(--text);
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-tags span {
    background: var(--accent);
    color: var(--white);
}

/* Testimonials & Blog Sections */
.testimonials, .blog {
    padding: 8rem 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.blog {
    background: var(--secondary);
}

.portfolio-placeholder {
    text-align: center;
    padding: 8rem 2rem;
    background: var(--card-bg);
    border: 2px dashed rgba(212, 165, 116, 0.3);
    margin-top: 2rem;
    transition: background-color 0.3s ease;
}

.portfolio-placeholder h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.portfolio-placeholder p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--white);
    transition: background-color 0.3s ease;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.tech-item {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(212, 165, 116, 0.2);
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--primary);
    color: var(--secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact .section-title {
    color: var(--secondary);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content > p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Contact Form */
.contact-form {
    text-align: left;
    margin-top: 3rem;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--secondary);
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--secondary);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* Meilleur contraste en dark mode */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.35);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 240, 0.6);
}

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

.contact-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
    font-weight: 400;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    margin-top: 1rem;
}

.contact-button:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
    display: block;
}

/* Footer */
footer {
    padding: 2rem 0;
    background: var(--primary);
    color: var(--secondary);
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Decorative Elements */
.decorative-line {
    position: absolute;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.hero .decorative-line {
    bottom: 5%;
    left: 50%;
    animation: float 3s ease-in-out infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .dark-mode-toggle {
        margin-right: 1rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .formules-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .tech-stack {
        gap: 1rem;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}



/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--white);
    color: var(--text);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent);
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left-color: #4caf50;
}

.toast.error {
    border-left-color: #f44336;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #4caf50;
}

.toast.error .toast-icon {
    color: #f44336;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.toast-message {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

/* Animation de progression */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent);
    animation: progress 5s linear forwards;
}

.toast.success .toast-progress {
    background: #4caf50;
}

.toast.error .toast-progress {
    background: #f44336;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        top: 90px;
    }
}