/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    overflow-x: hidden;
}

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

/* Hand-drawn animations */
@keyframes draw {
    0% { stroke-dashoffset: 1000; }
    100% { stroke-dashoffset: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

/* French color palette */
:root {
    --french-blue: #0055A4;
    --french-white: #FFFFFF;
    --french-red: #EF4135;
    --sketch-gray: #666;
    --paper-white: #FEFEFE;
    --ink-black: #2c2c2c;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--french-blue);
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px dashed var(--french-red);
}

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

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--paper-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    border-bottom: 3px dashed var(--french-blue);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-link:hover {
    color: var(--french-blue);
    animation: wiggle 0.5s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--french-red);
    transition: width 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--french-blue);
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 3px solid;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    font-size: 1rem;
    transform: rotate(-1deg);
}

.btn:hover {
    transform: rotate(0deg) scale(1.05);
    animation: bounce 0.5s ease;
}

.btn-primary {
    background: var(--french-blue);
    color: white;
    border-color: var(--french-blue);
}

.btn-primary:hover {
    background: var(--french-red);
    border-color: var(--french-red);
}

.btn-secondary {
    background: transparent;
    color: var(--french-blue);
    border-color: var(--french-blue);
}

.btn-secondary:hover {
    background: var(--french-blue);
    color: white;
}

.btn-tertiary {
    background: var(--french-red);
    color: white;
    border-color: var(--french-red);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--paper-white) 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.05"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--french-blue);
    margin-bottom: 20px;
    transform: rotate(-1deg);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--sketch-gray);
    margin-bottom: 30px;
    transform: rotate(0.5deg);
}

.hero-image {
    width: 100%;
    height: auto;
    animation: bounce 2s ease-in-out infinite;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--french-blue);
    margin-bottom: 15px;
    transform: rotate(-0.5deg);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--sketch-gray);
    transform: rotate(0.3deg);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--paper-white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--french-blue);
    margin-bottom: 20px;
    transform: rotate(-0.5deg);
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list li img {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

.france-flag {
    width: 100%;
    max-width: 300px;
    height: auto;
    animation: wiggle 3s ease-in-out infinite;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px dashed var(--french-blue);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: rotate(0deg) translateY(-10px);
}

.service-card:nth-child(even) {
    transform: rotate(1deg);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 60px;
    height: 60px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--french-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--sketch-gray);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--paper-white);
}

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

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid var(--french-red);
    transform: rotate(1deg);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: rotate(0deg) scale(1.02);
}

.testimonial-card:nth-child(even) {
    transform: rotate(-1deg);
}

.quote-icon {
    margin-bottom: 20px;
}

.quote-icon img {
    width: 30px;
    height: 30px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--french-blue);
    font-size: 1.1rem;
}

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

/* Blog Section */
.blog {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.blog-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--french-red);
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.blog-card h3 {
    margin-bottom: 15px;
}

.blog-card h3 a {
    color: var(--french-blue);
    text-decoration: none;
    font-size: 1.3rem;
}

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

.blog-card p {
    color: var(--sketch-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--french-blue);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: var(--french-red);
}

/* Blog Articles */
.blog-article {
    padding: 100px 0;
    background: var(--paper-white);
}

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

.blog-article h2 {
    font-size: 2.5rem;
    color: var(--french-blue);
    margin-bottom: 30px;
    transform: rotate(-0.5deg);
}

.blog-article p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Subscription Section */
.subscription {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--french-blue) 0%, var(--french-red) 100%);
    color: white;
}

.subscription .section-title,
.subscription .section-subtitle {
    color: white;
}

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    transform: rotate(-1deg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-black);
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 3px solid var(--french-blue);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--french-red);
    box-shadow: 0 0 0 3px rgba(239, 65, 53, 0.1);
}

/* Legal Section */
.legal {
    padding: 50px 0;
    background: var(--paper-white);
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--french-blue);
    text-decoration: none;
    font-weight: bold;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: var(--french-red);
    transform: rotate(0deg);
}

/* Footer */
.footer {
    background: var(--ink-black);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    color: var(--french-blue);
    margin-bottom: 20px;
    transform: rotate(-0.5deg);
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-info img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: scale(1.2) rotate(10deg);
}

.social-link img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    transform: rotate(-0.5deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: var(--french-red);
    z-index: 1001;
}

.close:hover {
    color: var(--french-blue);
}

/* Legal Content Styling */
.legal-content {
    margin-top: 20px;
    line-height: 1.6;
}

.legal-content h3 {
    color: var(--french-blue);
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    transform: rotate(-0.3deg);
    border-bottom: 2px dashed var(--french-red);
    padding-bottom: 5px;
}

.legal-content h4 {
    color: var(--french-red);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    transform: rotate(0.2deg);
}

.legal-content p {
    margin-bottom: 15px;
    text-align: justify;
    color: var(--ink-black);
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--ink-black);
}

.legal-content strong {
    color: var(--french-blue);
    font-weight: bold;
}

.legal-content em {
    color: var(--sketch-gray);
    font-style: italic;
}

/* Mobile responsive for legal modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 30px 20px;
        max-height: 95vh;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .legal-content h4 {
        font-size: 1rem;
    }
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--french-blue) 0%, var(--french-red) 100%);
}

.thanks-content {
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
    max-width: 600px;
}

.thanks-content h1 {
    font-size: 2.5rem;
    color: var(--french-blue);
    margin-bottom: 20px;
    transform: rotate(0.5deg);
}

.thanks-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .subscription-form {
        padding: 30px 20px;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }
    
    .thanks-content {
        padding: 40px 20px;
        margin: 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--french-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--french-red);
}
