/*
Theme Name: FreelanceMatch
Theme URI: https://freelancematch.fr
Author: FreelanceMatch
Author URI: https://freelancematch.fr
Description: Landing page pour FreelanceMatch - Plateforme de matching IA pour freelances IT
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freelancematch
*/

/* Reset and Base Styles */
:root {
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 47% 11%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --border: 214 32% 91%;
  --radius: 0.75rem;
  --gradient-hero: linear-gradient(135deg, hsl(217 91% 60%) 0%, hsl(230 80% 65%) 100%);
  --shadow-soft: 0 4px 24px -4px hsl(217 91% 60% / 0.15);
  --shadow-card: 0 8px 32px -8px hsl(222 47% 11% / 0.1);
  --shadow-elevated: 0 24px 48px -12px hsl(222 47% 11% / 0.18);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-hero {
  background: var(--gradient-hero);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.shadow-elevated {
  box-shadow: var(--shadow-elevated);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 0.875rem;
  padding: 5px;
}

.logo-text {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.nav-link:hover {
  color: hsl(var(--foreground));
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: block;
  }
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-hero {
  background: var(--gradient-hero);
  color: hsl(var(--primary-foreground));
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-outline:hover {
  background: hsl(var(--secondary));
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-pricing {
  width: 100%;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-pricing:hover {
  opacity: 0.9;
}

.btn-pricing-popular {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 10rem 0 8rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(var(--primary) / 0.05), transparent);
  pointer-events: none;
}

.hero-decoration-1 {
  position: absolute;
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
}

.hero-decoration-2 {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: hsl(var(--primary) / 0.05);
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-trust {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.hero-trust-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.hero-stat-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.6);
}

.hero-stat-divider {
  width: 1px;
  height: 2rem;
  background: hsl(var(--border));
}

/* Features Section */
.features {
  padding: 5rem 0 8rem;
  background: hsl(var(--secondary) / 0.3);
}

@media (min-width: 768px) {
  .features {
    padding: 8rem 0;
  }
}

.section-header {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: hsl(var(--primary-foreground));
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  padding: 5rem 0 8rem;
}

@media (min-width: 768px) {
  .pricing {
    padding: 8rem 0;
  }
}

.pricing-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 2px solid hsl(var(--primary));
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 768px) {
  .pricing-card.popular {
    transform: scale(1.05);
  }
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: var(--gradient-hero);
  color: hsl(var(--primary-foreground));
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.pricing-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.pricing-period {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.pricing-feature svg {
  width: 20px;
  height: 20px;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ Section */
.faq {
  padding: 5rem 0 8rem;
  background: hsl(var(--secondary) / 0.3);
}

@media (min-width: 768px) {
  .faq {
    padding: 8rem 0;
  }
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.faq-question:hover {
  background: hsl(var(--secondary) / 0.5);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  max-width: 20rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.7);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: hsl(var(--background) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: hsl(var(--primary));
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-col-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.7);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--background) / 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.5);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: hsl(var(--background) / 0.4);
  max-width: 24rem;
}

/* Privacy / Legal Pages */
.privacy-page {
  padding: 8rem 0 4rem;
}

.privacy-container {
  max-width: 56rem;
}

.privacy-title {
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .privacy-title {
    font-size: 2.5rem;
  }
}

.privacy-content {
  color: hsl(var(--muted-foreground));
}

.privacy-update {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid hsl(var(--border));
}

.privacy-section {
  margin-bottom: 2rem;
}

.privacy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.privacy-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.privacy-section ul {
  margin: 1rem 0 1rem 1.5rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.privacy-section a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.privacy-section a:hover {
  text-decoration: none;
}

.privacy-highlight {
  background: hsl(var(--primary) / 0.05);
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
}

.privacy-highlight-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

/* WhatsApp Button */
.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #128C7E;
}

/* ===========================
   Confirmation / Merci Page
   =========================== */

.confirmation-page {
  padding: 5rem 0;
  min-height: calc(100vh - 200px);
}

.confirmation-content {
  max-width: 640px;
  margin: 0 auto;
}

/* Status Card */
.status-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 3rem;
}

.status-card.status-success {
  background: hsl(var(--primary) / 0.1);
  border-color: hsl(var(--primary) / 0.3);
}

.status-card.status-error {
  background: hsl(0 84% 60% / 0.1);
  border-color: hsl(0 84% 60% / 0.3);
}

.status-icon {
  margin: 0 auto 1.5rem;
  display: block;
}

.status-icon.success {
  color: hsl(var(--primary));
}

.status-icon.error {
  color: hsl(0 84% 60%);
}

.status-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.status-card.status-success .status-title {
  color: hsl(var(--primary));
}

.status-card.status-error .status-title {
  color: hsl(0 84% 60%);
}

.status-message {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .status-card {
    padding: 3rem;
  }
  
  .status-title {
    font-size: 2.25rem;
  }
  
  .error-actions {
    flex-direction: row;
  }
}

/* Usage Instructions */
.usage-instructions {
  margin-top: 3rem;
}

.instructions-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-align: center;
  margin-bottom: 2rem;
}

.instructions-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.instruction-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-card);
}

.instruction-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.instruction-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.instruction-content p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

/* Instructions CTA */
.instructions-cta {
  text-align: center;
  padding-top: 2rem;
}

.btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  border-radius: var(--radius);
}

.cta-hint {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
}

/* Back Home Link */
.back-home {
  text-align: center;
  margin-top: 3rem;
}

.back-home a {
  color: hsl(var(--primary));
  transition: opacity 0.2s;
}

.back-home a:hover {
  text-decoration: underline;
}