/* ============================================================
   POLITIQUE DE CONFIDENTIALITÉ - Boréal Architecture
   ============================================================ */

/* ── Container principal ──────────────────────────────────── */
.politique-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .politique-container {
    padding: 2rem 1.5rem;
  }
}

/* ── Header de la page ────────────────────────────────────── */
.politique-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #042825;
}

.politique-header h1 {
  font-family: var(--font-heading-primary, "TT-Milks-Casual-Pie-Line", serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #042825;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.politique-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #666666;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.politique-date {
  font-size: 1rem;
  color: #999999;
  font-style: italic;
}

/* ── Contenu principal ────────────────────────────────────── */
.politique-content {
  line-height: 1.8;
  color: #042825;
}

/* ── Sections ─────────────────────────────────────────────── */
.politique-section {
  margin-bottom: 3.5rem;
  padding: 2rem;
  background-color: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #d9a33e;
  transition: all 0.3s ease;
}

.politique-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.politique-section--rgpd {
  background-color: #f0f8f7;
  border-left-color: #042825;
}

@media (max-width: 768px) {
  .politique-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
}

/* ── Titres de section ────────────────────────────────────── */
.politique-section h2 {
  font-family: var(--font-heading-secondary, "Poiret", serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #042825;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.3;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  background-color: #d9a33e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.politique-section h3 {
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 1.3rem;
  color: #042825;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.politique-section h4 {
  font-family: var(--font-body, "Montserrat", sans-serif);
  font-size: 1.1rem;
  color: #042825;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

/* ── Contenu des sections ─────────────────────────────────── */
.section-content {
  font-size: 1rem;
  line-height: 1.8;
}

.section-content p {
  margin-bottom: 1rem;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* ── Listes ───────────────────────────────────────────────── */
.section-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.section-content ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0.5rem;
}

.section-content ul li::marker {
  color: #d9a33e;
  font-size: 1.2em;
}

/* ── Boîtes d'information ─────────────────────────────────── */
.info-box {
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-box p {
  margin-bottom: 0.75rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box--important {
  background-color: #fff9e6;
  border-color: #d9a33e;
  border-width: 2px;
}

.info-box--important h4 {
  color: #d9a33e;
  margin-top: 0;
}

/* ── Mise en évidence ─────────────────────────────────────── */
.highlight {
  background-color: #fff9e6;
  padding: 0.75rem 1rem;
  border-left: 3px solid #d9a33e;
  margin: 1rem 0;
  font-weight: 500;
  border-radius: 4px;
}

/* ── Liens ────────────────────────────────────────────────── */
.section-content a,
.email-link {
  color: #d9a33e;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.section-content a:hover,
.email-link:hover {
  color: #042825;
  border-bottom-color: #d9a33e;
}

/* ── Protection email (avant chargement JS) ───────────────── */
.email-protected {
  display: inline-block;
  min-width: 200px;
  min-height: 1.2em;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 3px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Une fois le JS chargé, l'email apparaît normalement */
.email-protected:not(:empty) {
  background: none;
  animation: none;
  min-width: auto;
  min-height: auto;
}

/* ── Texte en gras ────────────────────────────────────────── */
.section-content strong {
  font-weight: 600;
  color: #042825;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .politique-section h2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .section-number {
    min-width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .info-box {
    padding: 1rem;
  }

  .section-content ul {
    padding-left: 1.5rem;
  }
}

@media (max-width: 480px) {
  .politique-container {
    padding: 1.5rem 1rem;
  }

  .politique-header {
    margin-bottom: 2rem;
  }

  .politique-section {
    padding: 1rem;
    border-left-width: 3px;
  }

  .section-content {
    font-size: 0.95rem;
  }
}

/* ── Impression ───────────────────────────────────────────── */
@media print {
  .politique-container {
    max-width: 100%;
    padding: 1rem;
  }

  .politique-section {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #cccccc;
  }

  .politique-section:hover {
    transform: none;
  }

  .section-content a,
  .email-link {
    color: #000000;
    text-decoration: underline;
  }
}
