/* Style principal pour la plateforme juridique Vogz */

:root {
  --primary-color: #7B68EE; /* Violet principal de Vogz */
  --primary-light: #9D90F5; /* Violet plus clair */
  --primary-dark: #5A4DC6; /* Violet plus foncé */
  --secondary-color: #60C5FB; /* Bleu clair accentuation */
  --accent-color: #EF72E4; /* Rose/magenta pour accent */
  --dark-color: #2C2A4A; /* Bleu très foncé presque noir */
  --text-color: #333333;
  --light-color: #f4f4f8;
  --gray-color: #e0e0e0;
  --success-color: #4CAF50;
  --warning-color: #FFC107;
  --danger-color: #F44336;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f5f5;
}

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

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  margin-bottom: 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.logo span {
  color: var(--accent-color);
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

/* Navigation principale */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-right: 1rem;
}

nav ul li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

nav ul li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

nav ul li a.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  padding: 0.5rem;
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: var(--shadow);
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #3aa5df);
  color: white;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), #d64ec9);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

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

/* Features Section */
.features {
  padding: 5rem 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

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

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

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(50, 50, 93, 0.15), 0 5px 10px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 28px;
}

.feature-title {
  color: var(--primary-dark);
  margin: 15px 0;
  font-size: 20px;
}

/* CGU Interactive Section */
.cgu-interactive {
  padding: 5rem 0;
  background-color: #f8f9fa;
  height: auto;
  overflow: visible;
}

.cgu-container {
  display: flex;
  gap: 2rem;
  overflow: visible;
}

.cgu-sidebar {
  flex: 0 0 250px;
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) var(--light-color);
  max-height: calc(100vh - 120px);
  align-self: flex-start;
}

.cgu-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.cgu-sidebar ul {
  list-style: none;
}

.cgu-sidebar ul li {
  margin-bottom: 0.8rem;
}

.cgu-sidebar ul li a {
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  position: relative;
  border-left: 3px solid transparent;
}

.cgu-sidebar ul li a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-light);
}

.cgu-sidebar ul li a.active {
  background-color: var(--light-color);
  color: var(--primary-color);
  font-weight: 600;
  border-left: 3px solid var(--primary-color);
}

.cgu-content {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: visible;
}

.cgu-article {
  margin-bottom: 2.5rem;
}

.cgu-article h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-color);
}

.cgu-article h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--dark-color);
  margin: 1.5rem 0 1rem;
}

.cgu-article p {
  margin-bottom: 1rem;
}

.cgu-article .implications {
  background-color: #e6f7ff;
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.cgu-article .implications h4 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

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

/* Accordéon FAQ complètement revu */
.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--gray-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 15px 20px;
  background-color: var(--light-color);
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: #e9e9f0;
}

.faq-question.active {
  background-color: var(--primary-color);
  color: white;
}

.faq-question::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(180deg);
}

.faq-answer {
  background-color: white;
  padding: 20px;
  font-size: 1rem;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
}

/* Suppression des styles conflictuels */
.faq-answer {
  display: none; /* État initial */
  overflow: visible !important;
  max-height: none !important;
  transition: none !important;
}

.faq-question.active + .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

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

.contact-info {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-form {
  background-color: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

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

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

.footer-col h3 {
  color: var(--primary-light);
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
  bottom: -8px;
  left: 0;
}

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

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: #adb5bd;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #495057;
  color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 992px) {
  .cgu-container {
    flex-direction: column;
  }
  
  .cgu-sidebar {
    flex: 0 0 auto;
    position: relative;
    margin-bottom: 2rem;
    height: auto;
    max-height: 400px; /* Hauteur fixe en mode responsive */
    overflow-y: auto;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero {
    padding: 80px 0 40px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.8rem 15px;
  }
  
  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1001;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
  }
  
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
  }
  
  nav ul.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  nav ul li {
    margin: 1rem 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: white;
  }
  
  nav ul li a:hover, 
  nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
  }
  
  .faq-container {
    padding: 0 1rem;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .features-grid {
    gap: 15px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .cgu-content {
    padding: 1.5rem;
  }
  
  .cgu-article h2 {
    font-size: 1.4rem;
  }
  
  .cgu-article h3 {
    font-size: 1.1rem;
  }
  
  .form-group {
    margin-bottom: 1.2rem;
  }
  
  .form-control {
    padding: 0.7rem;
  }
  
  .footer-container {
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.6rem;
    padding: 0 1rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .feature-card {
    padding: 1.2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .cgu-content {
    padding: 1rem;
  }
  
  .contact-form, .contact-info {
    padding: 1.2rem;
  }
  
  .faq-question {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .faq-answer {
    padding: 0 15px;
  }
  
  .faq-question.active + .faq-answer {
    padding: 12px 15px;
  }
  
  .cgu-article .implications {
    padding: 0.8rem;
  }
  
  .copyright {
    font-size: 0.9rem;
  }
}

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

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

/* Titres */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

section:nth-child(even) {
    background-color: var(--light-color);
}

/* Styles pour les documents juridiques */
.doc-alert {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #F8F6FE;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.doc-alert i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.doc-card {
    background-color: white;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(123, 104, 238, 0.15);
}

.doc-icon {
    height: 60px;
    width: 60px;
    background-color: var(--primary-light);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.doc-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.doc-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(123, 104, 238, 0.3);
}

.doc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 104, 238, 0.4);
    color: white;
    text-decoration: none;
}

/* Pour assurer que la sidebar reste visible pendant le scroll */
.cgu-sidebar::-webkit-scrollbar {
  width: 8px;
}

.cgu-sidebar::-webkit-scrollbar-track {
  background: var(--light-color);
  border-radius: 4px;
}

.cgu-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--primary-light);
  border-radius: 4px;
}

/* Bouton de téléchargement CGU */
.download-cgu {
  background-color: #5a47e5 !important;
  color: white !important;
  font-weight: bold !important;
  border: none !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.download-cgu:hover {
  background-color: #4535c7 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Bandeau de mise à jour */
.update-banner {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.update-banner a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.update-banner a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
