/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    line-height: 1.8;
}

.legal-content h1 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.legal-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.legal-content h3 {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1.2rem;
    color: var(--text);
}

.legal-content ul, 
.legal-content ol {
    margin: 1.2rem 0 1.2rem 2rem;
}

.legal-content li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.refund-section {
    background: rgba(61, 79, 36, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.refund-section h2 {
    border: none !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Base Styles */
:root {
    --primary: #3D4F24;
    --primary-light: #4A5F2A;
    --primary-hover: #2E3E1B;
    --text: #333333;
    --text-light: #666666;
    --background: #F8F7F2;
    --border: #E0E0D8;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --gradient-start: #3D4F24;
    --gradient-end: #4A5F2A;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Navigation */
.main-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    max-width: 1200px;
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

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

.nav-login-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), #4a7c59);
    box-shadow: 0 4px 15px rgba(61, 79, 36, 0.2);
    border: none !important;
    margin-left: 1rem;
}

.nav-login-btn i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 79, 36, 0.3);
    background: linear-gradient(135deg, #4a7c59, var(--primary));
}

.nav-login-btn:active {
    transform: translateY(0);
}

/* Language Selector */
.language-selector-container {
    margin-left: 1rem;
    position: relative;
}

.language-selector {
    background-color: var(--white);
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233D4F24' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1rem;
    transition: all 0.2s ease;
}

.language-selector:hover {
    background-color: var(--primary-light);
    color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.language-selector:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 79, 36, 0.2);
}

/* Buttons */
.login-btn {
    background: transparent;
    border: 2px solid #556B2F; /* Vert olive foncé */
    color: #1f2937;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.login-btn:hover {
    background-color: rgba(85, 107, 47, 0.1);
    border-color: #3D4D21; /* Vert olive plus foncé au survol */
    color: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(85, 107, 47, 0.1);
}

.login-btn i {
    font-size: 0.9em;
}

.btn, .btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
    white-space: nowrap;
    background: var(--primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover, .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active, .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 107, 47, 0.2);
}

/* Hero Section */
.hero {
    margin: 4rem auto;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.profile-image-container {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Sections */
.section {
    padding: 2rem 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    color: var(--text);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.expertise-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Payment Info */
.payment-info {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.payment-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.steps {
    margin: 2.5rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 1.25rem;
    margin-top: 0.25rem;
}

.step-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text);
}

.step-content p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    font-style: italic;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background: #f9f9f9;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

/* About Page */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text);
}

.skills h3 {
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--text);
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* Work/Portfolio Page */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    text-align: center;
}

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

.portfolio-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    margin: 0;
    opacity: 0.9;
}

.portfolio-details {
    padding: 1.5rem;
}

.portfolio-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--text);
}

.portfolio-details p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
    position: absolute;
    right: 0;
    top: 1rem;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    /* Styles de base pour les tablettes */
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.5rem;
        --normal-font-size: 0.95rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .btn, .btn-primary, .btn-outline, .login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    .main-card {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .nav {
        padding: 1rem 0;
        position: relative;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        gap: 1.5rem;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }
    
    .language-selector-container {
        margin: 1rem 0 0 0;
        width: 100%;
    }
    
    .language-selector {
        width: 100%;
    }
    
    .btn-outline {
        margin: 1rem 0 0 0;
        width: 100%;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* PayPal Button */
.paypal-button {
    margin: 2rem auto;
    text-align: center;
}

.paypal-button form {
    display: inline-block;
}

/* Styles pour les très petits écrans (mobile) */
@media (max-width: 576px) {
    :root {
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .btn, .btn-primary, .btn-outline, .login-btn {
        width: 100%;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .nav-links {
        width: 85%;
        padding: 5rem 1.5rem 2rem;
    }
    
    .hamburger {
        right: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        margin: 0;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links a {
        margin: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Ajustements pour les cartes et grilles */
    .card {
        padding: 1.25rem;
    }
    
    /* Ajustements pour les formulaires */
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 1rem;
    }
    
    /* Ajustements pour la navigation */
    .nav-logo {
        font-size: 1.25rem;
    }
}
