/* Styles dédiés à la page Politique de confidentialité Big Foo */
.policy-page {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

.policy-page .site-header {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

@media (min-width: 901px) {
  .policy-page nav#main-nav {
    margin-left: auto;
    margin-right: 12px;
  }
}

.policy-page .header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(24, 33, 57, 0.08);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px;
  user-select: none;
}

.lang-btn {
  background: transparent;
  border: 0;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 5px 11px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  line-height: 1;
}

.lang-btn:hover:not(.active) {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(24, 33, 57, 0.18);
}

/* Language Visibility Rules */
html[data-lang="fr"] .lang-en {
  display: none !important;
}

html[data-lang="en"] .lang-fr {
  display: none !important;
}

/* Hero */
.policy-hero {
  padding: 68px 24px 44px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.policy-hero .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  min-height: 20px;
  line-height: 1.5;
}

.policy-hero .eyebrow .eyebrow-dash {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.policy-hero .eyebrow .eyebrow-text,
.policy-hero .eyebrow span.lang-fr,
.policy-hero .eyebrow span.lang-en {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
  text-transform: inherit !important;
}

.policy-hero h1 {
  clear: both;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.policy-hero h1 strong {
  color: var(--orange);
}

.policy-hero-intro {
  max-width: 660px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

/* Piliers d'engagements */
.policy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
  text-align: left;
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(24, 33, 57, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 33, 57, 0.07);
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 11px var(--mono);
  font-weight: 500;
  color: var(--orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pillar-card strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.pillar-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* Layout 2 colonnes */
.policy-layout {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 44px;
  align-items: start;
}

/* Sidebar sommaire */
.policy-sidebar {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(24, 33, 57, 0.03);
}

.sidebar-title {
  margin: 0 0 14px;
  font: 11px var(--mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  background: rgba(255, 107, 61, 0.09);
  color: var(--orange-dark);
  transform: translateX(3px);
}

.sidebar-link span.badge {
  font: 10px var(--mono);
  color: var(--muted);
  font-weight: normal;
}

.sidebar-help {
  background: linear-gradient(145deg, #fffaf6 0%, #fbf3ee 100%);
  border: 1px solid rgba(255, 107, 61, 0.22);
}

.sidebar-help h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sidebar-help p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.sidebar-help .button {
  width: 100%;
  padding: 12px 14px;
  font-size: 12px;
  gap: 8px;
}

/* Sections & Cards */
.policy-cards {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px 42px;
  box-shadow: 0 6px 25px rgba(24, 33, 57, 0.035);
  scroll-margin-top: 32px;
}

.policy-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.policy-card-header .app-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.header-meta {
  flex: 1;
  min-width: 0;
}

.header-meta-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.policy-card-header h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  letter-spacing: -0.04em;
  font-weight: 800;
}

.header-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.policy-card-header .card-link {
  flex-shrink: 0;
  color: var(--orange-dark);
}

.policy-card-body p {
  margin: 0 0 16px;
  color: #4c566a;
  font-size: 15px;
  line-height: 1.8;
}

.policy-card-body p:last-child {
  margin-bottom: 0;
}

/* Sub-blocs & Détails */
.policy-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
}

.policy-subitem {
  padding: 16px 20px;
  border: 1px solid rgba(24, 33, 57, 0.08);
  border-radius: 12px;
  background: #faf8f3;
}

.policy-subitem h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.policy-subitem h3 span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.policy-subitem p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #556075;
}

/* Listes d'engagements */
.policy-feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

.policy-feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.6;
  color: #4c566a;
}

.policy-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange-dark);
  font-weight: 800;
  font-family: var(--mono);
}

/* Callout */
.policy-highlight {
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(255, 107, 61, 0.07);
  border-left: 4px solid var(--orange);
  margin-top: 22px;
}

.policy-highlight p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.policy-highlight strong {
  color: var(--orange-dark);
}

/* Section Droits / Grille numérotée */
.rights-steps {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.rights-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fdfcf9;
  align-items: start;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font: 13px var(--mono);
  font-weight: 700;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
}

.step-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* Note finale de mise à jour */
.policy-footer-note {
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.policy-footer-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.policy-footer-note strong {
  color: var(--ink);
}

/* Responsiveness */
@media (max-width: 960px) {
  .policy-pillars {
    grid-template-columns: 1fr;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .policy-sidebar {
    position: static;
  }

  .sidebar-box {
    padding: 18px 20px;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-link {
    background: #faf8f3;
    padding: 8px 14px;
    border: 1px solid var(--line);
  }

  .sidebar-link span.badge {
    display: none;
  }

  .sidebar-help {
    display: none;
  }

  .policy-card {
    padding: 28px 24px;
  }
}

@media (max-width: 600px) {
  .policy-hero {
    padding: 44px 16px 30px;
  }

  .policy-hero h1 {
    font-size: 34px;
  }

  .policy-hero-intro {
    font-size: 15px;
  }

  .policy-layout {
    width: calc(100% - 32px);
    padding-bottom: 70px;
  }

  .policy-card {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .policy-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rights-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .policy-footer-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

