/* Base Styles and Variables */
:root {
    --color-primary: #2C5545;
    --color-primary-light: #3a6a5a;
    --color-primary-dark: #1e3c30;
    --color-secondary: #F5F0E5;
    --color-accent: #D4A373;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    --color-success: #4CAF50;
    --color-warning: #FFC107;
    --color-error: #F44336;
    --color-info: #2196F3;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Work Sans', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-xxl: 48px;
    --spacing-xxxl: 64px;
    
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.highlight {
    color: var(--color-accent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 3px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(44, 85, 69, 0.05);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-login {
    background-color: rgba(44, 85, 69, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.btn-login:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Styles pour l'animation de chargement */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 0.8s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Animation de succès */
.btn-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

.btn-success::after {
    content: "✓";
    margin-left: 8px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 var(--spacing-lg);
    gap: var(--spacing-md);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 1001;
    flex-shrink: 0;
    min-width: 0;
}

.logo-text {
    color: var(--color-primary-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.login-btn {
    flex-shrink: 0;
    margin-left: auto;
}

.btn-login {
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 0.95rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: calc(var(--header-height) + var(--spacing-xxl)) 0 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
}

.hero-text {
    flex: 1;
}

.testimonial-badge {
    background-color: var(--color-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.testimonial-badge i {
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.testimonial-badge p {
    font-style: italic;
    margin-bottom: var(--spacing-xs);
}

.testimonial-badge span {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Beta */
.beta-launch {
    display: inline-block;
    background-color: rgba(212, 163, 115, 0.1);
    color: var(--color-accent);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

/* Features Section */
.features {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--color-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    background-color: rgba(44, 85, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 32px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.feature-status {
    margin-top: auto;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

.btn-feature {
    display: inline-block;
    width: 100%;
    padding: 0.7rem 1.2rem;
    background-color: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(44, 85, 69, 0.2);
    text-align: center;
    margin-top: auto;
    animation: rotate-shake 1.3s ease-in-out 2;
    transform-origin: center center;
}

.btn-feature:hover {
    background-color: var(--color-primary-light);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 85, 69, 0.3);
}

@keyframes rotate-shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-2deg); }
    20% { transform: rotate(2deg); }
    30% { transform: rotate(-2deg); }
    40% { transform: rotate(2deg); }
    50% { transform: rotate(-2deg); }
    60% { transform: rotate(2deg); }
    70% { transform: rotate(-2deg); }
    80% { transform: rotate(2deg); }
    90% { transform: rotate(-2deg); }
    95% { transform: rotate(2deg); }
}

/* Why Us Section */
.why-us {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.why-us .section-header h2, 
.why-us .section-header p {
    color: var(--color-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.why-us-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.why-us-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.why-us-icon i {
    font-size: 24px;
    color: var(--color-white);
}

.why-us-card h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.why-us-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Demo Section */
.demo {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--color-white);
}

.demo-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xxl);
}

.demo-text {
    flex: 1;
}

.demo-features {
    margin-top: var(--spacing-lg);
}

.demo-features li {
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.demo-features i {
    color: var(--color-success);
    margin-right: var(--spacing-sm);
    font-size: 1.2rem;
}

.demo-image {
    flex: 1;
}

.demo-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* CTA Section */
.cta {
    padding: var(--spacing-xxxl) 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.8);
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

.cta-form input {
    padding: 14px var(--spacing-md);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.cta-form button {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.cta-form button:hover {
    background-color: #c09364;
}

.checkbox-group {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-white);
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cta-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #1a3329;
    color: var(--color-white);
    padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-logo {
    flex: 1 1 400px;
}

.footer-logo .logo-text {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links {
    flex: 1 1 300px;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer-column {
    flex: 1 1 150px;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-column ul li a:hover {
    color: var(--color-accent);
}

.footer-column ul li a i {
    font-size: 1.1rem;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content, .demo-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .hero-image, .demo-image {
        width: 100%;
    }

    .nav-list {
        gap: var(--spacing-md);
    }

    .logo {
        font-size: 1.6rem;
    }

    .btn-login {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-lg) var(--spacing-xl);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .login-btn {
        margin-right: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .footer-links {
        width: 100%;
    }

    .navbar {
        padding: 0 var(--spacing-sm);
    }

    .logo {
        font-size: 1.3rem;
    }

    .btn-login {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .login-btn {
        margin-right: var(--spacing-sm);
    }
}

/* Ajout de media queries pour les très petits écrans */
@media (max-width: 375px) {
    .navbar {
        padding: 0 var(--spacing-xs);
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn-login {
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    .login-btn {
        margin-right: var(--spacing-xs);
    }

    .hamburger {
        margin-left: var(--spacing-xs);
    }

    .bar {
        width: 22px;
        height: 2px;
        margin: 4px auto;
    }
}

@media (max-width: 320px) {
    .navbar {
        padding: 0 var(--spacing-xs);
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn-login {
        padding: 3px 5px;
        font-size: 0.7rem;
    }

    .login-btn {
        margin-right: var(--spacing-xs);
    }

    .hamburger {
        margin-left: var(--spacing-xs);
    }

    .bar {
        width: 20px;
        height: 2px;
        margin: 3px auto;
    }
}

/* Ajustement de la hauteur du header pour les petits écrans */
@media (max-height: 600px) {
    :root {
        --header-height: 60px;
    }

    .navbar {
        height: var(--header-height);
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn-login {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* Mentions légales */
.legal-content {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
}

.legal-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2C5545;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2C5545;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    font-family: 'Work Sans', sans-serif;
    font-size: 1.3rem;
    color: #2C5545;
    margin: 1.5rem 0 1rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.legal-section ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: #2C5545;
    text-decoration: none;
    border-bottom: 1px solid #2C5545;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: #4a8c6d;
    border-bottom-color: #4a8c6d;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 40px 0;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }
}