/* CSS partagé par les pages légales : mentions, conditions, données (hérite de base.css) */

.hero {
  height: 42vh; min-height: 320px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; margin-top: 110px;
  background: linear-gradient(160deg, #1a0a0a 0%, var(--dark) 50%, #1a130a 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, #C4A962 0, #C4A962 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: linear-gradient(to bottom, transparent, var(--bg-light)); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; padding: 20px; }
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; opacity: 0.9; }
.hero h1 { font-family: 'Cinzel', serif; font-size: 3rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 2px; line-height: 1.2; }
.hero p { font-size: 1.05rem; font-weight: 300; opacity: 0.7; }

main { max-width: 860px; margin: 0 auto; padding: 70px 5% 100px; }

.update-notice {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; border: 1px solid var(--border); border-left: 3px solid var(--gold);
  padding: 12px 20px; border-radius: 4px; margin-bottom: 60px;
  font-size: 13px; color: var(--text-light);
}

.toc {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 30px 35px; margin-bottom: 60px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.toc-title { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.toc ol { list-style: none; padding: 0; columns: 2; gap: 10px; }
.toc ol li { margin-bottom: 10px; break-inside: avoid; }
.toc ol li a { text-decoration: none; color: var(--text-light); font-size: 14px; transition: color 0.2s ease; display: flex; align-items: center; gap: 8px; }
.toc ol li a:hover { color: var(--primary); }
.toc-num { color: var(--gold); font-weight: 700; font-size: 12px; min-width: 20px; }

.legal-section { margin-bottom: 55px; scroll-margin-top: 130px; }
.section-header { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.section-num { width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-family: 'Cinzel', serif; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.section-header h2 { font-family: 'Cinzel', serif; font-size: 1.35rem; color: var(--dark); font-weight: 600; letter-spacing: 0.5px; }
.legal-section p { font-size: 0.96rem; color: var(--text-dark); margin-bottom: 14px; line-height: 1.85; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol.legal-list { margin: 14px 0 14px 20px; }
.legal-section li { font-size: 0.96rem; color: var(--text-dark); margin-bottom: 10px; line-height: 1.8; }

.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.info-card { background: var(--bg-gray); border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px; }
.info-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 6px; }
.info-card-value { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.info-card-value a { color: var(--primary); text-decoration: none; }
.info-card-value a:hover { text-decoration: underline; }

.service-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.service-table th { background: var(--dark); color: white; padding: 13px 16px; text-align: left; font-weight: 600; letter-spacing: 0.3px; }
.service-table th:first-child { border-radius: 6px 0 0 0; }
.service-table th:last-child  { border-radius: 0 6px 0 0; }
.service-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-dark); vertical-align: top; }
.service-table tr:last-child td { border-bottom: none; }
.service-table tr:nth-child(even) td { background: var(--bg-gray); }
.service-table a { color: var(--primary); text-decoration: none; }
.service-table a:hover { text-decoration: underline; }

.disclaimer-box {
  background: rgba(139,0,0,0.04); border: 1px solid rgba(139,0,0,0.15);
  border-left: 3px solid var(--primary); border-radius: 4px;
  padding: 18px 22px; margin: 20px 0; font-size: 0.92rem; color: var(--text-dark); line-height: 1.7;
}

/* DATA BLOCKS (page données personnelles) */
.data-block {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; margin: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.data-block-header {
  background: var(--dark); color: white;
  padding: 13px 20px; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.5px;
}
.data-block-body { padding: 18px 20px; }
.data-tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.data-tag {
  background: var(--bg-gray); border: 1px solid var(--border); border-radius: 20px;
  padding: 6px 16px; font-size: 13px; font-weight: 600; color: var(--text-dark);
}

/* RETENTION TABLE */
.retention-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
.retention-table th { background: var(--dark); color: white; padding: 13px 16px; text-align: left; font-weight: 600; }
.retention-table th:first-child { border-radius: 6px 0 0 0; }
.retention-table th:last-child  { border-radius: 0 6px 0 0; }
.retention-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-dark); vertical-align: top; }
.retention-table tr:last-child td { border-bottom: none; }
.retention-table tr:nth-child(even) td { background: var(--bg-gray); }

/* RIGHTS GRID */
.rights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.right-card {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 20px 16px; text-align: center; transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.right-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(139,0,0,0.1); }
.right-card .right-title { font-family: 'Cinzel', serif; font-size: 0.9rem; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
.right-card .right-desc { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }

@media (max-width: 768px) {
  .rights-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { min-height: 260px; margin-top: 95px; }
  .hero h1 { font-size: 2rem; }
  main { padding: 50px 5% 70px; }
  .toc ol { columns: 1; }
  .info-cards { grid-template-columns: 1fr; }
  .service-table { font-size: 0.82rem; }
  .service-table th, .service-table td { padding: 10px; }
  .rights-grid { grid-template-columns: 1fr; }
  .retention-table { font-size: 0.82rem; }
  .retention-table th, .retention-table td { padding: 10px 12px; }
}
