/* Google Fonts Import (unchanged) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@300;400;700&family=Montserrat:wght@300;400;700&display=swap');

/* Color Variables */
:root {
  --main-bg-color: #000000;
  --main-text-color: #FFFFFF;
  --accent-color-rgb: 0, 169, 255; /* RGB components for accent blue */
  --subtle-glow-start: rgba(25, 25, 45, 0.6); /* Center of the radial gradient */
  
  /* Adjusted colors for legal page text to be less intense */
  --legal-page-text-color: #B8B8B8; /* Was #EAEAEA, now softer grey */
  --legal-page-link-color: #87CEFA; /* Kept light blue for links */
  --legal-page-link-hover-color: #ADD8E6;
  --legal-page-strong-color: #D0D0D0; /* Was #F5F5F5 */
  --legal-page-bg-wrapper: rgba(20, 20, 20, 0.85);
  --legal-page-border-color: #333;
  --legal-page-heading-color: #C8C8C8; /* Was #E0E0E0 */
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Montserrat', Arial, sans-serif; /* Default body font */
  overflow-x: hidden;
  background-color: var(--main-bg-color); /* Default black background and fallback */
  color: var(--main-text-color); /* Default white text */
  /* Radial gradient applied globally */
  background-image: radial-gradient(ellipse at center, var(--subtle-glow-start) 0%, var(--main-bg-color) 70%);
  /* Ensure the background is fixed and doesn't scroll with legal page content if it's long */
  background-attachment: fixed;
}

/* Layout styles specific to index.html (homepage) */
body:not(.legal-page) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.container { /* Used on index.html */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  width: 100%;
}

header { /* Used on index.html */
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-name { /* Style for "Lys Adonis" on index.html - Remains Montserrat Alternates */
  font-family: 'Montserrat Alternates', sans-serif; 
  font-size: 4.5em; 
  font-weight: 300; /* Montserrat Alternates Light */
  margin: 0;
  padding: 20px;
  letter-spacing: 1.5px;
  color: var(--main-text-color);
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(var(--accent-color-rgb), 0.5), 
    0 0 35px rgba(var(--accent-color-rgb), 0.3);
  animation: subtle-flicker 5s infinite alternate;
}

/* Animation for the neon effect */
@keyframes subtle-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.5),
      0 0 11px rgba(255, 255, 255, 0.3),
      0 0 19px rgba(var(--accent-color-rgb), 0.4),
      0 0 40px rgba(var(--accent-color-rgb), 0.2);
  }
  20%, 24%, 55% {
    text-shadow: /* Slightly reduce shadow for flicker effect */
      0 0 4px rgba(255, 255, 255, 0.3),
      0 0 10px rgba(var(--accent-color-rgb), 0.2);
  }
}

footer { /* Used on index.html */
  width: 100%;
  padding: 25px 0;
  text-align: center;
  margin-top: auto;
}

.legal-link { /* "Mentions Légales" link on index.html */
  color: #b0b0b0;
  font-family: 'Montserrat', sans-serif; /* Ensure Montserrat */
  font-weight: 400; /* Normal weight */
  text-decoration: none;
  font-size: 0.95em;
  padding: 8px 15px;
  border: 1px solid #333;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.legal-link:hover {
  color: var(--main-text-color);
  background-color: #1a1a1a;
  border-color: #555;
  text-decoration: none;
}

/* Styles for the legal mentions page (mentions-legales.html) */
body.legal-page {
  font-family: 'Montserrat', Arial, sans-serif; 
  color: var(--legal-page-text-color); /* Using updated softer color */
  line-height: 1.7;
  padding: 20px; /* Padding so .legal-content-wrapper doesn't stick to edges */
  text-align: left;
  display: block; 
  min-height: 100vh; /* Ensure background covers full height */
  /* Inherits background-image from body, html */
}

.legal-content-wrapper {
  max-width: 800px;
  margin: 20px auto; /* Top/bottom margin, centered horizontally */
  padding: 30px; 
  background-color: var(--legal-page-bg-wrapper);
  border: 1px solid var(--legal-page-border-color);
  border-radius: 8px; 
  box-shadow: 0 0 15px rgba(0,0,0,0.3); 
}

/* Headings H1, H2, H3 on legal page use Montserrat */
.legal-content-wrapper h1,
.legal-content-wrapper h2,
.legal-content-wrapper h3 {
  font-family: 'Montserrat', sans-serif; /* Font updated to Montserrat */
  color: var(--legal-page-heading-color); /* Using updated softer color */
  border-bottom: 1px solid var(--legal-page-border-color);
  padding-bottom: 10px;
  margin-top: 30px;
  margin-bottom: 20px; 
}

.legal-content-wrapper h1:first-child {
  margin-top: 0;
  text-align: center;
  font-size: 2em; 
  font-weight: 700; /* Montserrat Bold for main H1 */
}
.legal-content-wrapper h2 {
  font-size: 1.6em;
  font-weight: 700; /* Montserrat Bold for H2 */
}
.legal-content-wrapper h3 {
  font-size: 1.3em;
  font-weight: 700; /* Montserrat Bold for H3 */
}

.legal-content-wrapper p {
  margin-bottom: 1em;
  font-family: 'Montserrat', sans-serif; 
}

.legal-content-wrapper a { /* Links within markdown content */
  color: var(--legal-page-link-color);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
}

.legal-content-wrapper a:hover {
  color: var(--legal-page-link-hover-color);
  text-decoration: underline;
}

.legal-content-wrapper strong,
.legal-content-wrapper b {
  color: var(--legal-page-strong-color); /* Using updated softer color */
  font-weight: 700; 
  font-family: 'Montserrat', sans-serif;
}

.legal-content-wrapper ul,
.legal-content-wrapper ol {
  padding-left: 25px;
  margin-bottom: 1em;
  font-family: 'Montserrat', sans-serif;
}

.legal-content-wrapper li {
  margin-bottom: 0.5em;
}

/* Style for the "Retour" link on legal page, identical to .legal-link */
.legal-page .back-link {
  display: block; /* To allow centering with auto margin */
  width: fit-content; /* Adapts to content */
  margin: 40px auto 20px auto; /* Centering and margins */
  
  color: #b0b0b0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400; /* Normal weight */
  text-decoration: none;
  font-size: 0.95em;
  padding: 8px 15px;
  border: 1px solid #333;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.legal-page .back-link:hover {
  color: var(--main-text-color);
  background-color: #1a1a1a;
  border-color: #555;
  text-decoration: none;
}

/* Responsive adjustments (unchanged in logic, only comments/indentation) */
@media (max-width: 768px) {
  .company-name {
    font-size: 3.2em;
    text-shadow: 
      0 0 3px rgba(255, 255, 255, 0.6),
      0 0 8px rgba(255, 255, 255, 0.4),
      0 0 15px rgba(var(--accent-color-rgb), 0.4),
      0 0 25px rgba(var(--accent-color-rgb), 0.2);
  }
  .legal-page .legal-content-wrapper {
    margin: 10px; /* Reduce margin on small screens */
    padding: 20px; /* Reduce padding on small screens */
  }
  .legal-content-wrapper h1:first-child { font-size: 1.8em; font-weight: 700;}
  .legal-content-wrapper h2 { font-size: 1.4em; font-weight: 700;}
  .legal-content-wrapper h3 { font-size: 1.2em; font-weight: 700;}
}

@media (max-width: 480px) {
  .company-name {
    font-size: 2.5em;
    letter-spacing: 1px;
  }
  body.legal-page {
    padding: 10px; /* Less padding on very small screens for the body */
  }
  .legal-page .legal-content-wrapper {
    padding: 15px; /* Less padding for the content */
  }
}