/* Hand-drawn style CSS with French aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --light-blue: #3498db;
    --soft-green: #27ae60;
    --cream: #fdf6e3;
    --warm-white: #fefefe;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
    --sketch-color: #34495e;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Hand-drawn elements */
.sketchy-border {
    position: relative;
}

.sketchy-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid var(--sketch-color);
    border-radius: 15px;
    transform: rotate(-1deg);
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--warm-white);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 2px 10px var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav {
    position: relative;
}

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

.nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
    transform: rotate(-1deg);
}

.nav a:hover {
    color: var(--secondary-color);
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 2px 0;
    transition: 0.3s;
    transform: rotate(-2deg);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Banner */
.banner {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-gray) 100%);
    position: relative;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0 20 Q50 0 100 20 L100 80 Q50 100 0 80 Z" fill="none" stroke="%23e74c3c" stroke-width="2" opacity="0.1"/></svg>');
    opacity: 0.1;
}

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

.banner-text h1 {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    transform: rotate(-1deg);
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    position: relative;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: -3px;
    bottom: -3px;
    background: var(--accent-color);
    border-radius: 25px;
    z-index: -1;
    transform: rotate(2deg);
}

.cta-button:hover {
    transform: rotate(0deg);
    box-shadow: 0 5px 15px var(--shadow);
}

.banner-image img {
    width: 100%;
    height: auto;
    transform: rotate(2deg);
}

/* Sections */
section {
    padding: 4rem 0;
}

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

.section-header h2 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    transform: rotate(5deg);
}

/* About Section */
.about {
    background: var(--warm-white);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-color);
    transform: rotate(-0.5deg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
    transform: rotate(1deg);
    position: relative;
}

.feature::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: 2px;
    bottom: 2px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    transform: rotate(-2deg);
    z-index: -1;
}

.feature h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    background: var(--cream);
}

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

.service-card {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: 20px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: var(--light-blue);
    border-radius: 20px;
    z-index: -1;
    transform: rotate(2deg);
    opacity: 0.3;
}

.service-card:hover {
    transform: rotate(0deg);
    box-shadow: 0 10px 25px var(--shadow);
}

.service-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--dark-gray);
}

/* Testimonials Section */
.testimonials {
    background: var(--warm-white);
}

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

.testimonial-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 20px;
    transform: rotate(1deg);
    position: relative;
    border: 2px solid var(--soft-green);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    font-family: 'Caveat', cursive;
    color: var(--soft-green);
    transform: rotate(-10deg);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.testimonial-author h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-author span {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    background: var(--light-gray);
}

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

.blog-card {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: 15px;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    border: 3px solid var(--accent-color);
}

.blog-card:hover {
    transform: rotate(0deg);
    box-shadow: 0 8px 20px var(--shadow);
}

.blog-card h3 a {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
}

.blog-card h3 a:hover {
    color: var(--secondary-color);
}

.blog-card p {
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.blog-article {
    background: var(--warm-white);
    padding: 4rem 0;
}

.blog-article.hidden {
    display: none;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-to-blog {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    background: var(--light-blue);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    transform: rotate(-1deg);
}

/* Subscription Section */
.subscription {
    background: var(--secondary-color);
    color: white;
    position: relative;
}

.subscription::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="none" stroke="white" stroke-width="1" opacity="0.1"/></svg>');
}

.subscription-content {
    text-align: center;
}

.subscription-content h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.subscription-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

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

.form-group input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.form-group input:focus {
    outline: 3px solid var(--accent-color);
    transform: rotate(0deg);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: rotate(0deg);
    background: var(--soft-green);
}

/* Legal Section */
.legal {
    background: var(--warm-white);
    text-align: center;
}

.legal h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    transform: rotate(-1deg);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 15px;
    font-weight: 500;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.legal-link:hover {
    transform: rotate(0deg);
    background: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transform: rotate(-1deg);
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--light-gray);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

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

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.cookie-btn.primary {
    background: var(--secondary-color);
    color: white;
}

.cookie-btn.secondary {
    background: var(--light-gray);
    color: var(--primary-color);
}

.cookie-btn.tertiary {
    background: var(--accent-color);
    color: white;
}

.cookie-btn:hover {
    transform: rotate(0deg);
    box-shadow: 0 3px 10px var(--shadow);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.cookie-modal.hidden {
    display: none;
}

.cookie-modal .modal-content {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    transform: rotate(-1deg);
}

.cookie-modal h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cookie-option {
    margin-bottom: 1rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Legal Modals */
.legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}

.legal-modal.hidden {
    display: none;
}

.legal-modal .modal-content {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: rotate(-0.5deg);
}

.legal-modal h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.close-modal {
    display: block;
    margin: 2rem auto 0;
    padding: 0.5rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(0deg);
    background: var(--primary-color);
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    padding: 2rem 0;
}

.thanks-content {
    text-align: center;
    background: var(--warm-white);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 10px 30px var(--shadow);
    transform: rotate(-1deg);
    max-width: 600px;
}

.thanks-content h1 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transform: rotate(1deg);
}

.thanks-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.thanks-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.secondary-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--light-blue);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transform: rotate(2deg);
    transition: all 0.3s ease;
}

.secondary-button:hover {
    transform: rotate(0deg);
    background: var(--soft-green);
}

.thanks-content .contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--accent-color);
}

.thanks-content .contact-info h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--warm-white);
        border-left: 3px solid var(--secondary-color);
        box-shadow: -5px 0 15px var(--shadow);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 80px;
    }
    
    .nav.mobile-open {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        height: 100%;
        overflow-y: auto;
    }
    
    .nav li {
        width: 100%;
    }
    
    .nav a {
        display: block;
        padding: 1rem;
        background: var(--light-gray);
        border-radius: 15px;
        text-align: center;
        transform: rotate(-1deg);
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }
    
    .nav a:hover {
        background: var(--secondary-color);
        color: white;
        transform: rotate(0deg);
    }
    
    /* Mobile menu overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banner-text h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .thanks-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .thanks-content h1 {
        font-size: 2.5rem;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes sketch-draw {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.sketch-animation {
    stroke-dasharray: 1000;
    animation: sketch-draw 2s ease-in-out;
}
