:root {
    --primary-color: #4c6ef5;
    --primary-light: #e7eaff;
    --primary-dark: #364fc7;
    --secondary-color: #ff922b;
    --secondary-light: #fff4e6;
    --secondary-dark: #f76707;
    --text-color: #343a40;
    --text-light: #868e96;
    --text-dark: #212529;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --background-dark: #343a40;
    --success-color: #51cf66;
    --warning-color: #fcc419;
    --error-color: #fa5252;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 70px; /* Hauteur approximative de l'en-tête */
}

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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    font-display: swap; /* Optimisation pour le chargement des polices */
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn.primary:hover {
    background-color: var(--primary-dark);
}

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

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

/* Header Styles */
header {
    background-color: var(--background-white);
    box-shadow: var(--shadow-sm);
    padding: 3px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.logo img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 500;
    color: var(--text-color);
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--background-white) 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--background-white);
}

.features h2, .how-it-works h2, .for-who h2, .benefits h2, .future h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* How it works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* For who section */
.for-who {
    padding: 80px 0;
    background-color: var(--background-white);
}

.audience-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.audience {
    text-align: center;
    padding: 30px;
}

.audience i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--primary-light);
}

.benefits-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 0;
}

/* Bénéfices : 3 éléments sur la première ligne, 2 centrés sur la deuxième, même taille */
.benefits-row-1 .benefit,
.benefits-row-2 .benefit {
  flex: 0 0 calc(33.333% - 1.33rem);
  max-width: 340px;
}

.benefits-row-2 {
  justify-content: center;
  margin-top: 2rem;
}

.benefit {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.benefit i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
  .benefits-row-1 .benefit,
  .benefits-row-2 .benefit {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .benefits-list {
    flex-direction: column;
    align-items: center;
  }
}

/* Future Section */
.future {
    padding: 80px 0;
    background-color: var(--background-white);
}

.future-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.future-feature {
    text-align: center;
    padding: 30px;
    background-color: var(--secondary-light);
    border-radius: var(--border-radius);
}

.future-feature i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Compatible Sites Section */
.compatible-sites {
    padding: 80px 0;
    background-color: var(--primary-light);
    text-align: center;
}

.compatible-sites h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--text-dark);
}

.compatible-sites > .container > p {
    margin-bottom: 50px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.site-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.site-logo {
    text-align: center;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: translateY(-10px);
}

.site-logo img {
    max-width: 160px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(20%);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px;
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.site-logo:hover img {
    filter: grayscale(0%);
}

.site-logo p {
    font-weight: 500;
    color: var(--text-color);
}

.coming-soon {
    margin-top: 30px;
    font-style: italic;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn.primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.cta .btn.primary:hover {
    background-color: var(--background-light);
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background-color: var(--background-dark);
    color: white;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.link-group h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.link-group ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

.social-icons a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background-color: var(--background-white);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.discount {
    background-color: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    margin-left: 5px;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.pricing-plan {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-plan.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-plan.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -15px;
    padding: 8px 15px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transform: rotate(45deg);
}

.plan-header {
    margin-bottom: 30px;
}

.plan-header h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price {
    margin-bottom: 15px;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-dark);
}

.description {
    color: var(--text-light);
}

.annual-price.hidden {
    display: none;
}

.plan-features {
    margin-bottom: 30px;
}

.plan-features ul {
    list-style: none;
    text-align: left;
}

.plan-features ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features ul li i.fa-check {
    color: var(--success-color);
}

.plan-features ul li i.fa-times {
    color: var(--error-color);
}

.plan-cta {
    margin-top: 30px;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--background-light);
}

.faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    border-top: 0px solid var(--border-color);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* Legal Content */
.legal-content {
    padding: 60px 0;
    background-color: var(--background-white);
}

.legal-content .container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.legal-nav {
    position: sticky;
    top: 100px;
    align-self: start;
}

.legal-nav ul {
    list-style: none;
    border-left: 2px solid var(--border-color);
}

.legal-nav ul li {
    margin-bottom: 15px;
}

.legal-nav ul li a {
    padding: 10px 20px;
    display: block;
    font-weight: 500;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: var(--transition);
}

.legal-nav ul li a:hover, 
.legal-nav ul li a.active {
    border-left: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.legal-section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.legal-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.legal-section h3 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.legal-section p {
    margin-bottom: 20px;
}

.legal-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-section ul li {
    margin-bottom: 10px;
}

/* Accessibility & Focus States */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Improved focus for interactive elements */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --text-light: #333333;
        --border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .feature-card:hover,
    .pricing-plan:hover,
    .site-logo:hover {
        transform: none;
    }
}
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .legal-content .container {
        grid-template-columns: 1fr;
    }
    
    .legal-nav {
        position: static;
        margin-bottom: 40px;
    }
    
    .legal-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        border-left: none;
    }
    
    .legal-nav ul li {
        margin-bottom: 0;
    }
    
    .legal-nav ul li a {
        padding: 8px 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-left: 0;
    }
    
    .legal-nav ul li a:hover, 
    .legal-nav ul li a.active {
        border-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .pricing-plan.featured:hover {
        transform: translateY(-10px);
    }
    
    .footer-content {
        flex-direction: column;
    }
}

/* Download Page Styles */
.download-section {
  padding: 2.5rem 0;
  background-color: var(--background-light);
}

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

.browser-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
}

.browser-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.browser-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.browser-icon.firefox {
  color: #ff7139;
}

.browser-icon.opera {
  color: #ff1b2d;
}

.browser-card h3 {
  font-size: 1.3rem;
  margin: 0.8rem 0 0.4rem;
  color: var(--text-dark);
}

.browser-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.browser-card .btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
}

.download-info {
  margin-top: 3rem;
  text-align: center;
}

.download-info h2 {
  margin-bottom: 2rem;
  color: var(--text-dark);
  font-size: 1.8rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step {
  text-align: center;
  padding: 1rem;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 auto 0.8rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.step p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.browser-card.unavailable {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--background-light);
}

.browser-card.unavailable:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.browser-card.featured {
  border: 2px solid var(--primary-color);
  background: linear-gradient(135deg, var(--background-white) 0%, var(--primary-light) 100%);
}

.browser-card.featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-dark);
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .browser-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .browser-card {
    padding: 1.5rem;
  }
  
  .browser-icon {
    font-size: 3rem;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
