/* =========================================
   PAGES.CSS — Styles spécifiques aux pages
   ========================================= */

/* --- 1. HERO SECTION (Page d'accueil) --- */
.hero {
  background: radial-gradient(circle at top right, var(--gray-700), var(--bg-hero));
  color: var(--text-inverse);
  min-height: min(600px, 90vh);
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Effet de lumière (Glow) en haut à droite */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.15;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-inverse);
  max-width: 800px;
}

.hero p {
  color: var(--text-inverse-muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  max-width: 540px;
}

.hero-subtitle {
  margin: 0 0 32px 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* --- BOUTON HERO (Glassmorphism propre) --- */
.hero .btn-secondary {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass-visible);
  color: var(--text-inverse) !important;
  backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
  background-color: var(--white) !important;
  color: var(--text-main) !important;
  border-color: var(--white);
  transform: translateY(-2px);
}

/* --- 2. PAGE HEADER (Pour Contact/Terms/Privacy) --- */
.page-header {
  background: radial-gradient(circle at top right, var(--gray-700), var(--bg-hero));
  color: var(--white);
  
  padding: 80px 0; 
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Effet de lumière du Mini-Hero */
.page-header::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-header .section-lead {
  color: var(--text-inverse-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- 3. CONTENU GÉNÉRAL --- */
.page-content {
  padding: 40px 0 80px;
}

/* --- 4. STYLE DOCUMENT (Terms & Privacy) --- */
.doc-card {
  background: var(--bg-card);
  padding: clamp(30px, 5vw, 60px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
  
  position: relative;
  z-index: 10;
  margin-top: -60px; 
}

.doc-card h2 {
  font-size: clamp(20px, 3vw, 24px);
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-main);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

/* Texte Justifié */
.doc-card p, 
.doc-card li {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
  
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.doc-card ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.doc-card li {
  margin-bottom: 8px;
}

.doc-card a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

/* --- 5. CONTACT PAGE --- */
.contact-intro {
  margin-bottom: 40px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 18px;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.contact-alt {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}

/* --- 6. AUDIENCE (Accueil) --- */
.audience-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 24px);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.audience-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.audience-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- 7. RESPONSIVE --- */

/* Mobile */
@media (max-width: 640px) {
  .doc-card p,
  .doc-card li {
    text-align: left;
    hyphens: none;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
  }
}

/* Ultra-wide */
@media (min-width: 1600px) {
  .hero::before {
    width: 520px;
    height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}