:root {
    --primary: #6b4e71;
    --secondary: #f3eaf5;
    --accent: #a389ad;
    --text-dark: #3a2e3d;
    --text-light: #fff;
    --bg-light: #fcfaff;
    --shadow: 0 4px 15px rgba(107, 78, 113, 0.15);
    --transition: 0.3s ease;
}

/* Mode Sombre Discret */
body.dark-mode {
    --primary: #4a344e; /* Violet plus sombre et élégant */
    --bg-light: #1a151b;
    --text-dark: #f3eaf5;
    --secondary: #2d242f;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode header {
    background-color: var(--primary);
}

body.dark-mode .card, 
body.dark-mode #contact-form {
    background: #241d26;
    border: 1px solid #3a2e3d;
}

body.dark-mode .bg-light {
    background-color: #241d26;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Theme Switcher Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    gap: 0.5rem;
}

.sun-icon, .moon-icon {
    font-size: 0.9rem;
    opacity: 0.8;
}

.theme-switch {
    display: inline-block;
    height: 20px;
    position: relative;
    width: 40px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: rgba(255, 255, 255, 0.3);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.slider:before {
    background-color: #fff;
    bottom: 2px;
    content: "";
    height: 14px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 14px;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .theme-switch-wrapper {
        margin: 1.5rem 0;
        justify-content: center;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.bg-light {
    background-color: var(--secondary);
    width: 100%;
}

header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(107, 78, 113, 0.5), rgba(107, 78, 113, 0.5)), url('https://images.unsplash.com/photo-1528715471579-d1bcf0ba5e83?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text-light);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

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

.btn-secondary:hover {
    background-color: var(--text-light) !important;
    color: var(--primary) !important;
}

.profile-img {
    width: 320px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 30px;
    border: 5px solid var(--secondary);
    box-shadow: 0 10px 30px rgba(107, 78, 113, 0.2);
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-img:hover {
    transform: scale(1.05) rotate(1deg);
}

.image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.flex-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

@media (max-width: 992px) {
    .flex-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .profile-img {
        width: 280px;
    }
}

/* Forçage bouton secondaire */
.hero-btns .btn-secondary {
    background-color: transparent !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

.hero-btns .btn-secondary:hover {
    background-color: #ffffff !important;
    color: var(--primary) !important;
    opacity: 1 !important;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

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

.card {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

#contact-form {
    background: var(--text-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 78, 113, 0.1);
}

#contact-form .btn {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

#contact-form .btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

footer {
    background-color: var(--primary);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--primary);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        justify-content: center;
        z-index: 1000;
    }

    .nav-list.active {
        left: 0;
    }

    .nav-list li {
        margin: 1.5rem 0;
    }

    .nav-list li a {
        font-size: 1.5rem;
    }

    /* Animation Hamburger */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

    .hero h1 {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 3rem 1.2rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
