/**
 * PAGE MENTIONS LÉGALES - L'Échoppe Gauloise
 * Styles spécifiques pour la page Mentions Légales
 */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SPÉCIFIQUE MENTIONS LÉGALES
   ═══════════════════════════════════════════════════════════════════════════ */

.pedagogical-note {
    text-align: justify;
    color: var(--text-light); /* En option, pour adoucir le texte */
    font-size: 0.85rem;      /* En option, pour une taille plus discrète */
    line-height: 1.6;        /* Améliore la lisibilité du texte justifié */
}

.legal-hero {
  padding: var(--space-20) 0 var(--space-12);
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: white;
  text-align: center;
}

.legal-hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease-out;
}

.legal-hero-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.1;
  margin: var(--space-6) 0 var(--space-4);
  font-weight: 700;
}

.gradient-texte {
    background: linear-gradient(135deg, #ffffff 0%, #b27710 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-hero-subtitle {
  font-size: var(--text-lg);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto var(--space-4);
  color: var(--gray-400);
}

.legal-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--gray-500);
  flex-wrap: wrap;
}

.legal-hero-meta .separator {
  color: var(--gray-600);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SOMMAIRE (TABLE DES MATIÈRES)
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-toc {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  position: sticky;
  top: var(--header-height);
  z-index: 90;
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.95);
}

.toc-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.toc-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li a {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.toc-list li a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .toc-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .toc-list {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTENU PRINCIPAL
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-content {
  padding: var(--space-16) 0;
  background: white;
}

.legal-content .container {
  max-width: 900px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NOTICE PÉDAGOGIQUE (ENCART)
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(178, 119, 16, 0.08) 0%, rgba(212, 160, 23, 0.08) 100%);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-12);
}

.notice-icon {
  flex-shrink: 0;
  color: var(--accent);
}

.notice-text h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.notice-text p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  .legal-notice {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS JURIDIQUES
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-section {
  padding: 0;
  margin-bottom: var(--space-12);
  scroll-margin-top: calc(var(--header-height) + 60px);
}

.legal-section .section-title {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--space-3);
}

.section-number {
  color: var(--accent);
  font-weight: 700;
}

.section-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

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

/* Grilles d'informations */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.info-item i {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.info-item span {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

.info-item a:hover {
  color: var(--accent);
}

.legal-reference {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--border);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.legal-reference i {
  color: var(--accent);
  flex-shrink: 0;
}

/* Directeur publication */
.director-info {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.director-info i {
  color: var(--accent);
  flex-shrink: 0;
}

.director-info p {
  margin: 0;
  color: var(--text-primary);
}

/* Propriété intellectuelle */
.legal-pedagogy-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
}

.legal-pedagogy-note i {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* CGV */
.cgv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.cgv-item h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.cgv-item h3 i {
  color: var(--accent);
}

.cgv-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-left: var(--space-6);
}

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

/* Données personnelles */
.legal-section .section-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-2);
  color: var(--text-primary);
}

.legal-section .section-card h3:first-of-type {
  margin-top: 0;
}

.legal-section .section-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.mediator-info {
    background-color: var(--bg-subtle);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.mediator-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.rll-section {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.rll-section h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Signature finale */
/* Conteneur du nom pour l'ancrage */
.name-wrapper {
    position: relative;
    display: inline-block;
}

/* La signature manuscrite */
.handwritten-signature {
    position: absolute;
    /* Positionnement : on la place à droite du nom */
    left: 100%; 
    bottom: -22px;
    
    /* Taille de la signature */
    width: 90px; 
    height: auto;
    
    /* L'effet "naturel" */
    rotate: -5deg; /* Légère inclinaison pour le réalisme */
    pointer-events: none; /* Pour que l'image ne gêne pas le clic sur le texte */
    opacity: 0.85;
    
    /* Si ta signature est sur fond blanc, ce mode de fusion la rend transparente */
    mix-blend-mode: multiply; 
}

/* Ajustement du conteneur global pour laisser de la place à la signature qui dépasse */
.legal-signature {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    padding-bottom: var(--space-6); /* Ajout d'espace en bas */
    border-top: 1px solid var(--border);
    color: var(--text-light);
}

/* Garde ton reste de CSS inchangé ici... */

.signature-logo {
    width: 60px; /* Taille ajustable selon tes préférences */
    height: auto;
    opacity: 0.8; /* Un peu plus discret pour ne pas voler la vedette au contenu */
    filter: grayscale(100%); /* Optionnel : pour un look plus "archive/officiel" */
}

.signature-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.signature-mention {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin: 0;
}

.signature-credit {
    font-style: italic;
    font-size: 0.8rem;
    margin: 0;
}

/* On retire le grayscale au survol pour redonner vie au logo */
.legal-signature:hover .signature-logo {
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .legal-hero {
    padding: var(--space-12) 0 var(--space-8);
  }
  
  .legal-content {
    padding: var(--space-12) 0;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .legal-section .section-title {
    font-size: var(--text-xl);
  }
  
  .section-card {
    padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  .legal-hero-meta {
    flex-direction: column;
    gap: var(--space-1);
  }
  
  .legal-hero-meta .separator {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

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

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITÉ
   ═══════════════════════════════════════════════════════════════════════════ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}