/* Reset et variables CSS – Charte Lokatere (orange #ff6600 + rouge #f90404f4) */
:root {
  --lokatere-orange: #ff6600;
  --lokatere-orange-premium: #ff6b35;
  --lokatere-orange-deep: #e55a2b;
  --lokatere-orange-hover: #e55a00;
  --lokatere-dark: #2f3542;
  --primary-color: #f90404f4;
  --secondary-color: #ff6b6b;
  --accent-color: #ff6600;
  --text-primary: #1a202c;
  --text-secondary: #7f8c8d;
  --background-color: #f8fafc;
  --card-background: #ffffff;
  --card-border: #e2e8f0;
  --shadow-light: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-medium: 0 10px 15px -3px rgba(255, 107, 53, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-heavy: 0 20px 40px -12px rgba(255, 107, 53, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  --shadow-premium-panel: 0 4px 24px rgba(255, 107, 53, 0.08), 0 12px 40px rgba(15, 23, 42, 0.06);
  --border-radius: 12px;
  --radius-premium: 8px;
  --gradient-primary: linear-gradient(135deg, #ff6600 0%, #f90404f4 50%, #ff4444 100%);
  --gradient-hero-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.22)), linear-gradient(135deg, #ff7a1f 0%, #ff6600 48%, #df4a2a 100%);
  --gradient-cgv-hero-bg: linear-gradient(165deg, #f8fafc 0%, #eef2f7 42%, rgba(255, 107, 53, 0.07) 100%);
  --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  --gradient-hover: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  --ease-premium: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background-color);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container principal */
.cgv-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Section Hero */
.hero-section {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  background: var(--gradient-hero-soft);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.18;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideInDown 1s ease-out;
}

.title-line {
  display: inline;
  color: white;
  position: relative;
}

.title-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  animation: expandLine 1.5s ease-out 0.5s forwards;
}

@keyframes expandLine {
  to { width: 100%; }
}

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

.hero-subtitle {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-heavy);
  transform: translateY(20px);
  opacity: 0;
  animation: slideInUp 1s ease-out 0.3s forwards;
  color: #1a202c;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  font-weight: 500;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle a,
.hero-subtitle a:visited {
  color: var(--lokatere-orange);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-subtitle a:hover,
.hero-subtitle a:focus-visible {
  color: var(--lokatere-orange-hover);
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Hero CGV / pages légales — variante Premium (cgv.php via cgv_main_body) —— */
.cgv-container .hero-section.cgv-hero-premium {
  min-height: min(52vh, 560px);
  padding: clamp(3rem, 8vw, 5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  background: var(--lokatere-dark);
  align-items: stretch;
}

.cgv-container .hero-section.cgv-hero-premium::before {
  opacity: 0;
  animation: none;
}

/* Photo : couple + conseiller — signature de documents (assets/cgv-hero-signature-scene-v2.png)
   Aligné pages légales / Partenariat : pas de voile blanc bas, léger voile haut pour lisibilité navbar */
.cgv-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--lokatere-dark);
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.1) 0%,
      transparent 30%,
      transparent 100%
    ),
    linear-gradient(105deg, rgba(255, 107, 53, 0.04) 0%, transparent 52%),
    url('assets/cgv-hero-signature-scene-v2.png');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  filter: contrast(1.08) saturate(1.06);
}

@media (max-width: 768px) {
  .cgv-hero-bg {
    background-position: center 30%;
  }

  .cgv-container .hero-section.cgv-hero-premium {
    min-height: min(48vh, 480px);
  }
}

@media print {
  .cgv-hero-bg {
    background-image: none;
    background: #f8fafc;
  }

  .cgv-container .hero-section.cgv-hero-premium {
    min-height: 0;
    background: #fff;
  }
}

.cgv-container .hero-content.cgv-hero-content {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  z-index: 2;
}

.cgv-hero-panel {
  position: relative;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-premium);
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-premium-panel);
  transition:
    box-shadow 0.25s var(--ease-premium),
    transform 0.25s var(--ease-premium);
}

.cgv-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lokatere-orange-premium);
  margin: 0 0 1rem;
}

.cgv-container .hero-section.cgv-hero-premium .cgv-hero-title.hero-title,
.cgv-container .hero-section.cgv-hero-premium .cgv-hero-title {
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--lokatere-dark);
  margin: 0 0 0.25rem;
  text-shadow: none;
  animation: none;
}

.cgv-container .hero-section.cgv-hero-premium .cgv-hero-title .title-line {
  color: inherit;
}

.cgv-container .hero-section.cgv-hero-premium .cgv-hero-title .title-line::after {
  display: none;
}

.cgv-hero-divider {
  height: 3px;
  width: 4rem;
  border-radius: 2px;
  margin: 1.25rem 0 1.5rem;
  background: linear-gradient(90deg, var(--lokatere-orange-premium), var(--lokatere-orange-deep));
  opacity: 0.95;
}

.cgv-container .hero-section.cgv-hero-premium .hero-subtitle.cgv-hero-lead {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  transform: none;
  opacity: 1;
  animation: none;
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  text-align: left;
  border-left: 3px solid rgba(255, 107, 53, 0.28);
  padding-left: 1.25rem;
  margin-top: 0;
}

.cgv-container .hero-section.cgv-hero-premium .cgv-hero-lead p {
  margin: 0;
}

.cgv-container .hero-section.cgv-hero-premium .cgv-hero-lead p + p {
  margin-top: 0.75rem;
}

.cgv-container .hero-section.cgv-hero-premium .cgv-hero-lead a:focus-visible {
  outline: 2px solid var(--lokatere-orange-premium);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cgv-hero-panel {
    transition: none;
  }

  /* Hero CGV (cgv.php) uniquement — ne pas écraser les filtres .legal-hero--* */
  .cgv-container .hero-section.cgv-hero-premium:not(.legal-hero) .cgv-hero-bg {
    filter: contrast(1.03) saturate(1.02);
  }
}

/* Wrapper du contenu */
.content-wrapper {
  padding: 0 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Bandeau réassurance — aligné sur la colonne contenu (pages légales / FAQ) */
.cgv-container > .lokatere-reassurance-band {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
}

/* Révision document — traçabilité (sync PDF kit si fond modifié) */
.cgv-document-revision {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.9rem;
  color: var(--text-secondary, #64748b);
  text-align: center;
}

.cgv-document-revision__label {
  margin-right: 0.35rem;
}

.cgv-document-revision time {
  font-weight: 600;
  color: var(--text-primary, #1a202c);
}

/* Grille des articles */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

/* Cartes d'articles */
.article-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
  min-width: 0;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }
.article-card:nth-child(6) { animation-delay: 0.6s; }
.article-card:nth-child(7) { animation-delay: 0.7s; }
.article-card:nth-child(8) { animation-delay: 0.8s; }
.article-card:nth-child(9) { animation-delay: 0.9s; }
.article-card:nth-child(10) { animation-delay: 1.0s; }
.article-card:nth-child(11) { animation-delay: 1.1s; }
.article-card:nth-child(12) { animation-delay: 1.2s; }
.article-card:nth-child(13) { animation-delay: 1.3s; }
.article-card:nth-child(14) { animation-delay: 1.4s; }
.article-card:nth-child(15) { animation-delay: 1.5s; }
.article-card:nth-child(16) { animation-delay: 1.6s; }
.article-card:nth-child(17) { animation-delay: 1.7s; }
.article-card:nth-child(18) { animation-delay: 1.8s; }
.article-card:nth-child(19) { animation-delay: 1.9s; }
.article-card:nth-child(20) { animation-delay: 2.0s; }
.article-card:nth-child(21) { animation-delay: 2.1s; }
.article-card:nth-child(22) { animation-delay: 2.2s; }
.article-card:nth-child(23) { animation-delay: 2.3s; }
.article-card:nth-child(24) { animation-delay: 2.4s; }
.article-card:nth-child(25) { animation-delay: 2.5s; }
.article-card:nth-child(26) { animation-delay: 2.6s; }
.article-card:nth-child(27) { animation-delay: 2.7s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-glass {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-light);
  position: relative;
  min-width: 0;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.article-card:hover .card-glass::before {
  transform: scaleX(1);
}

.article-card:hover .card-glass {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  background: var(--gradient-hover);
}

/* En-tête de carte */
.card-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  min-width: 0;
}

.article-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 60px;
  transition: all 0.3s ease;
  position: relative;
}

.article-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.1;
  transition: all 0.3s ease;
  z-index: -1;
}

.article-card:hover .article-number::before {
  transform: translate(-50%, -50%) scale(1);
}

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  line-height: 1.4;
  margin: 0;
  transition: all 0.3s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-card:hover .card-header h3 {
  color: var(--primary-color);
}

.expand-icon {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
  background: rgba(249, 4, 4, 0.15);
}

.expand-icon span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.expand-icon span:first-child {
  transform: rotate(90deg);
}

.article-card.active .expand-icon {
  background: var(--primary-color);
  transform: rotate(180deg);
}

.article-card.active .expand-icon span {
  background: white;
}

.article-card.active .expand-icon span:first-child {
  transform: rotate(0deg);
}

/* Corps de la carte */
.card-body {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(248, 250, 252, 0.5);
  min-width: 0;
}

.article-card.active .card-body {
  max-height: none;
  padding: 2rem;
  border-top: 1px solid var(--card-border);
}

.article-content {
  color: var(--text-primary);
  line-height: 1.8;
  min-width: 0;
}

.article-content p {
  margin-bottom: 1rem;
  text-align: justify;
  font-size: 1rem;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInContent 0.5s ease-out 0.2s forwards;
}

@keyframes fadeInContent {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  text-align: justify;
  position: relative;
  color: var(--text-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content li::before {
  content: '▶';
  position: absolute;
  left: -1.5rem;
  color: var(--primary-color);
  font-size: 0.8rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.article-content a {
  color: #c44a00;
  text-decoration: underline;
  text-decoration-color: rgba(255, 102, 0, 0.38);
  text-underline-offset: 3px;
  font-weight: 600;
  transition:
    color 0.25s var(--ease-premium),
    text-decoration-color 0.25s var(--ease-premium);
  position: relative;
}

.article-content a::after {
  content: none;
}

.article-content a:hover {
  color: #e55a2b;
  text-decoration-color: rgba(229, 90, 43, 0.62);
}

.article-content a:focus-visible {
  outline: 2px solid rgba(255, 107, 53, 0.55);
  outline-offset: 2px;
  border-radius: 3px;
}

.article-content strong {
  color: #9a3412;
  font-weight: 700;
}

.article-content .contact-block {
  margin: 1rem 0;
  padding: 0;
}

.article-content .contact-block p {
  margin-bottom: 0.5rem;
}

/* Styles pour les tableaux */
.cookie-table-wrapper {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
}

.cookie-table th {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.cookie-table tr:hover {
  background: rgba(249, 4, 4, 0.05);
}

.cookie-table td {
  font-size: 0.85rem;
  line-height: 1.4;
}

.article-content blockquote.code-conso {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  position: relative;
  overflow: hidden;
}

.article-content blockquote.code-conso::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: serif;
}

.article-content blockquote.code-conso p {
  margin: 0;
  text-align: justify;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 30vh;
    padding: 60px 15px 40px;
  }

  .cgv-container .hero-section.cgv-hero-premium {
    padding: 2.5rem 1rem 2rem;
  }

  .cgv-hero-panel {
    padding: 1.5rem 1.25rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    padding: 1.5rem;
  }

  .cgv-container .hero-section.cgv-hero-premium .hero-subtitle.cgv-hero-lead {
    padding-left: 1rem;
  }
  
  .content-wrapper {
    padding: 0 15px 60px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 100%;
  }
  
  .card-header {
    padding: 1.25rem 1.5rem;
    gap: 1rem;
  }
  
  .article-number {
    font-size: 2rem;
    min-width: 50px;
  }
  
  .card-header h3 {
    font-size: 1.1rem;
  }
  
  .article-card.active .card-body {
    padding: 1.5rem;
  }
  
  .expand-icon {
    width: 35px;
    height: 35px;
  }
  
  .expand-icon span {
    width: 18px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 10px 30px;
  }

  .cgv-container .hero-section.cgv-hero-premium {
    padding: 2rem 0.75rem 1.75rem;
  }

  .cgv-hero-panel {
    padding: 1.25rem 1rem;
  }

  .cgv-hero-eyebrow {
    font-size: 0.6875rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    padding: 1rem;
    font-size: 1rem;
  }

  .cgv-container .hero-section.cgv-hero-premium .hero-subtitle.cgv-hero-lead {
    font-size: 1rem;
    padding-left: 0.875rem;
  }
  
  .content-wrapper {
    padding: 0 10px 40px;
  }
  
  .articles-grid {
    gap: 1rem;
  }
  
  .card-header {
    padding: 1rem 1.25rem;
  }
  
  .article-card.active .card-body {
    padding: 1.25rem;
  }
  
  .cookie-table-wrapper {
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 0;
  }
  
  .cookie-table th,
  .cookie-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.8rem;
  }
}

/* Scrollbar moderne */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ===== Heroes institutionnels / marketing — fond photo (legal_hero_open.php) ===== */
section.hero-section.legal-hero.cgv-hero-premium {
  background: var(--lokatere-dark);
}

section.hero-section.legal-hero.cgv-hero-premium::before {
  opacity: 0;
  animation: none;
}

.cgv-container .legal-hero.cgv-hero-premium .cgv-hero-bg,
section.legal-hero.cgv-hero-premium .cgv-hero-bg {
  background-color: var(--lokatere-dark);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

/* Mentions / confidentialité / cookies / FAQ — même traitement photo que Partenariat (net, sans voile bas) */
.legal-hero--mentions .cgv-hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.09) 0%,
      transparent 26%,
      transparent 100%
    ),
    linear-gradient(105deg, rgba(255, 107, 53, 0.03) 0%, transparent 48%),
    url('assets/legal-hero-mentions.png');
  filter: contrast(1.06) saturate(1.05);
}

.legal-hero--confidentialite .cgv-hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.09) 0%,
      transparent 26%,
      transparent 100%
    ),
    linear-gradient(105deg, rgba(255, 107, 53, 0.03) 0%, transparent 48%),
    url('assets/legal-hero-confidentialite.png');
  filter: contrast(1.06) saturate(1.05);
}

.legal-hero--cookies .cgv-hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.09) 0%,
      transparent 26%,
      transparent 100%
    ),
    linear-gradient(105deg, rgba(255, 107, 53, 0.03) 0%, transparent 48%),
    url('assets/legal-hero-cookies.png');
  filter: contrast(1.06) saturate(1.05);
}

.legal-hero--faq .cgv-hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.09) 0%,
      transparent 26%,
      transparent 100%
    ),
    linear-gradient(105deg, rgba(255, 107, 53, 0.03) 0%, transparent 48%),
    url('assets/legal-hero-faq.png');
  filter: contrast(1.06) saturate(1.05);
}

/* Partenariat : photo nette — pas de voile blanc en bas (transition vers le blanc gérée par la section suivante) */
.legal-hero--partenariat .cgv-hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.09) 0%,
      transparent 26%,
      transparent 100%
    ),
    linear-gradient(105deg, rgba(255, 107, 53, 0.03) 0%, transparent 48%),
    url('assets/legal-hero-partenariat.png');
  /* Netteté perçue sans retoucher le fichier image */
  filter: contrast(1.06) saturate(1.05);
}

.legal-hero--recrutement .cgv-hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.09) 0%,
      transparent 26%,
      transparent 100%
    ),
    linear-gradient(105deg, rgba(255, 107, 53, 0.03) 0%, transparent 48%),
    url('assets/legal-hero-recrutement.png');
  filter: contrast(1.06) saturate(1.05);
}

@media (max-width: 768px) {
  .legal-hero--mentions .cgv-hero-bg,
  .legal-hero--confidentialite .cgv-hero-bg,
  .legal-hero--cookies .cgv-hero-bg,
  .legal-hero--faq .cgv-hero-bg {
    background-position: center 30%;
  }

  .legal-hero--partenariat .cgv-hero-bg,
  .legal-hero--recrutement .cgv-hero-bg {
    background-position: center 28%;
  }
}

@media print {
  .legal-hero .cgv-hero-bg {
    background-image: none !important;
    background: #f8fafc !important;
  }

  section.hero-section.legal-hero.cgv-hero-premium {
    min-height: 0 !important;
    background: #fff !important;
  }
}

/* Pages marketing : panneau large */
.legal-hero-panel--marketing {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Espacement sous navbar — mentions, confidentialité, cookies, FAQ, Partenariat, Recrutement (harmonisé) */
.legal-hero--mentions,
.legal-hero--confidentialite,
.legal-hero--cookies,
.legal-hero--faq,
.legal-hero--partenariat.partenariat-hero-premium,
.legal-hero--recrutement.recrutement-hero-premium {
  margin-top: 0;
  padding: calc(var(--lokatere-navbar-spacing, 120px) + 7rem) clamp(1rem, 4vw, 1.5rem) 72px;
  min-height: min(58vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grain léger — cohérence avec Partenariat */
section.hero-section.legal-hero.legal-hero--mentions::before,
section.hero-section.legal-hero.legal-hero--confidentialite::before,
section.hero-section.legal-hero.legal-hero--cookies::before,
section.hero-section.legal-hero.legal-hero--faq::before,
section.hero-section.legal-hero--recrutement.recrutement-hero-premium::before,
section.hero-section.legal-hero--partenariat.partenariat-hero-premium::before {
  z-index: 1;
  opacity: 0.04;
  animation: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

/* Mentions, confidentialité, cookies, FAQ — carte vitrée (même esprit que Partenariat) */
.cgv-container section.legal-hero--mentions .cgv-hero-panel,
.cgv-container section.legal-hero--confidentialite .cgv-hero-panel,
.cgv-container section.legal-hero--cookies .cgv-hero-panel,
.cgv-container section.legal-hero--faq .cgv-hero-panel {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 32px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 12px 36px rgba(255, 107, 53, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  animation: partenariatHeroCardIn 0.85s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cgv-container section.legal-hero--mentions .cgv-hero-eyebrow,
.cgv-container section.legal-hero--confidentialite .cgv-hero-eyebrow,
.cgv-container section.legal-hero--cookies .cgv-hero-eyebrow,
.cgv-container section.legal-hero--faq .cgv-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.15rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-premium);
  background: rgba(47, 53, 66, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.2);
}

.cgv-container section.legal-hero--mentions .hero-subtitle.cgv-hero-lead,
.cgv-container section.legal-hero--confidentialite .hero-subtitle.cgv-hero-lead,
.cgv-container section.legal-hero--cookies .hero-subtitle.cgv-hero-lead,
.cgv-container section.legal-hero--faq .hero-subtitle.cgv-hero-lead {
  border-left-color: rgba(255, 107, 53, 0.45);
}

/* cgv.php — même carte vitrée + grain section que Mentions (sans classe .legal-hero) */
.cgv-container section.hero-section.cgv-hero-premium:not(.legal-hero)::before {
  z-index: 1;
  opacity: 0.04;
  animation: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.cgv-container section.hero-section.cgv-hero-premium:not(.legal-hero) .cgv-hero-panel {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 32px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 12px 36px rgba(255, 107, 53, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  animation: partenariatHeroCardIn 0.85s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.cgv-container section.hero-section.cgv-hero-premium:not(.legal-hero) .cgv-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.15rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-premium);
  background: rgba(47, 53, 66, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.2);
}

.cgv-container section.hero-section.cgv-hero-premium:not(.legal-hero) .hero-subtitle.cgv-hero-lead {
  border-left-color: rgba(255, 107, 53, 0.45);
}

/* Outer panel : le contenu vitré est dans la carte interne */
.legal-hero--partenariat.partenariat-hero-premium .cgv-hero-panel.legal-hero-panel--marketing,
.legal-hero--recrutement.recrutement-hero-premium .cgv-hero-panel.legal-hero-panel--marketing {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  max-width: 920px;
}

.legal-hero--partenariat.partenariat-hero-premium .hero-content.legal-hero-content--marketing,
.legal-hero--recrutement.recrutement-hero-premium .hero-content.legal-hero-content--marketing {
  max-width: 920px;
}

.partenariat-hero-card,
.recrutement-hero-card {
  text-align: center;
  padding: 2rem 1.75rem 2.25rem;
  border-radius: 12px;
  /* Carte plus lisible : moins de « voile » flou, fond plus dense */
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.42) 0%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 32px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 12px 36px rgba(255, 107, 53, 0.12);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  backdrop-filter: blur(10px) saturate(1.05);
  animation: partenariatHeroCardIn 0.85s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.partenariat-hero-card__eyebrow,
.recrutement-hero-card__eyebrow {
  margin-bottom: 1.35rem;
}

.partenariat-hero-badge,
.recrutement-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  background: rgba(47, 53, 66, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-premium);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.2);
}

.partenariat-hero-badge i,
.recrutement-hero-badge i {
  color: rgba(255, 183, 140, 0.95);
}

.partenariat-hero-card__headline,
.recrutement-hero-card__headline {
  margin-bottom: 1.35rem;
}

.legal-hero--partenariat.partenariat-hero-premium .partenariat-hero-card .hero-title,
.legal-hero--recrutement.recrutement-hero-premium .recrutement-hero-card .hero-title {
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin: 0 0 0.85rem;
  animation: none;
  text-shadow: none;
  color: var(--lokatere-dark);
}

/* Annule .hero-subtitle global (fond blanc + texte foncé) — évite texte blanc sur fond blanc */
.legal-hero--partenariat.partenariat-hero-premium .partenariat-hero-card .hero-subtitle,
.legal-hero--recrutement.recrutement-hero-premium .recrutement-hero-card .hero-subtitle {
  display: block;
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.58;
  font-weight: 500;
  white-space: normal;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--text-primary);
  /* Écrase le bloc « story » du hero générique cgv.css */
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-premium);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  padding: 1rem 1.15rem;
  margin-top: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

.partenariat-hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  text-align: left;
}

.partenariat-hero-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-premium);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition:
    background 0.25s var(--ease-premium),
    border-color 0.25s var(--ease-premium),
    box-shadow 0.25s var(--ease-premium),
    transform 0.25s var(--ease-premium);
}

.partenariat-hero-tile:hover {
  background: #fff;
  border-color: rgba(255, 107, 53, 0.35);
  box-shadow: 0 6px 22px rgba(255, 107, 53, 0.14);
  transform: translateY(-1px);
}

.partenariat-hero-tile__icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--lokatere-orange-deep);
  font-size: 1rem;
}

.partenariat-hero-tile__text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.partenariat-hero-card__support {
  margin: 0 auto 1.35rem;
  max-width: 40rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-hero--partenariat.partenariat-hero-premium .partenariat-hero-card .hero-note {
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  letter-spacing: 0.008em;
  color: var(--text-primary);
  text-shadow: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-premium);
  padding: 0.85rem 1rem;
}

.partenariat-hero-card__footer.hero-cta-row {
  margin-top: 0;
}

@media (max-width: 991px) {
  .legal-hero--mentions,
  .legal-hero--confidentialite,
  .legal-hero--cookies,
  .legal-hero--faq,
  .legal-hero--partenariat.partenariat-hero-premium,
  .legal-hero--recrutement.recrutement-hero-premium {
    padding-top: calc(var(--lokatere-navbar-spacing, 120px) + 5.5rem);
    min-height: min(52vh, 620px);
  }

  .partenariat-hero-tiles {
    grid-template-columns: 1fr;
  }

  .legal-hero--partenariat.partenariat-hero-premium .partenariat-hero-card .hero-title,
  .legal-hero--recrutement.recrutement-hero-premium .recrutement-hero-card .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.1rem);
  }
}

@media (max-width: 768px) {
  .legal-hero--mentions,
  .legal-hero--confidentialite,
  .legal-hero--cookies,
  .legal-hero--faq,
  .legal-hero--partenariat.partenariat-hero-premium,
  .legal-hero--recrutement.recrutement-hero-premium {
    padding-top: calc(var(--lokatere-navbar-spacing, 120px) + 5rem);
    padding-left: 16px;
    padding-right: 16px;
  }

  .partenariat-hero-card,
  .recrutement-hero-card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .cgv-container section.legal-hero--mentions .cgv-hero-panel,
  .cgv-container section.legal-hero--confidentialite .cgv-hero-panel,
  .cgv-container section.legal-hero--cookies .cgv-hero-panel,
  .cgv-container section.legal-hero--faq .cgv-hero-panel {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .cgv-container section.hero-section.cgv-hero-premium:not(.legal-hero) .cgv-hero-panel {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partenariat-hero-card,
  .recrutement-hero-card {
    animation: none;
  }

  .cgv-container section.legal-hero--mentions .cgv-hero-panel,
  .cgv-container section.legal-hero--confidentialite .cgv-hero-panel,
  .cgv-container section.legal-hero--cookies .cgv-hero-panel,
  .cgv-container section.legal-hero--faq .cgv-hero-panel {
    animation: none;
  }

  .cgv-container section.hero-section.cgv-hero-premium:not(.legal-hero) .cgv-hero-panel {
    animation: none;
  }

  .partenariat-hero-tile {
    transition: none;
  }

  .partenariat-hero-tile:hover {
    transform: none;
  }
}
