/* ===================================
   COOKIE POLICY PAGE - Styles
   Mobile-First Approach
   =================================== */

/* ===================================
   Fonts
   =================================== */

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/Lora-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===================================
   Layout Principal (Mobile First)
   =================================== */

.cookie-policy-page {
  min-height: 100vh;
  background: var(--bg-primary);
  padding-top: clamp(90px, 15vh, 120px);
  padding-bottom: clamp(40px, 8vh, 60px);
}

.cookie-policy-page .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 20px);
  width: 100%;
}

/* ===================================
   Simple Header (Fixed Navigation)
   =================================== */

.simple-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(232, 179, 119, 0.1);
  z-index: 1000;
  padding: clamp(12px, 2vh, 20px) 0;
  backdrop-filter: blur(10px);
}

.simple-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  background: transparent;
  box-shadow: none;
}

.simple-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  /* Touch target minimum 44x44px */
  min-height: 44px;
  min-width: 44px;
  /* Style du logo texte */
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: var(--accent-color);
  transition: opacity 0.3s ease;
}

.simple-header .logo:hover,
.simple-header .logo:focus {
  opacity: 0.85;
}

.simple-header .back-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(14px, 2vw, 16px);
  transition: opacity 0.3s;
  /* Touch target minimum 44x44px */
  padding: 12px 16px;
  margin: -12px -16px;
}

.simple-header .back-link:hover,
.simple-header .back-link:focus {
  opacity: 0.8;
}

/* ===================================
   Language Switcher (in Simple Header)
   =================================== */

.simple-header .language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.simple-header .lang-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  padding: clamp(4px, 1vw, 6px) clamp(6px, 1.5vw, 10px);
  border-radius: 6px;
  transition: all 0.3s ease;
  opacity: 0.6;
  white-space: nowrap;
  /* Touch target minimum 44x44px */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.simple-header .lang-btn:hover,
.simple-header .lang-btn:focus {
  opacity: 1;
  background: rgba(232, 179, 119, 0.1);
}

.simple-header .lang-btn.active {
  opacity: 1;
  color: var(--accent-color);
  background: rgba(232, 179, 119, 0.15);
}

.simple-header .lang-separator {
  color: var(--text-primary);
  opacity: 0.3;
  font-size: clamp(12px, 2vw, 14px);
}

/* ===================================
   En-tête de la page
   =================================== */

.page-header {
  text-align: center;
  margin-bottom: clamp(30px, 8vw, 60px);
}

.cookie-policy-page h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 6vw, 42px);
  color: var(--text-primary);
  margin-bottom: clamp(16px, 3vw, 20px);
  line-height: 1.2;
  word-wrap: break-word;
}

.cookie-policy-intro {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* ===================================
   Contenu principal
   =================================== */

.cookie-policy-content {
  color: var(--text-primary);
}

.policy-section {
  background: var(--bg-secondary);
  border-radius: clamp(12px, 2vw, 16px);
  padding: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(20px, 4vw, 30px);
  transition: transform 0.3s ease;
  scroll-margin-top: 100px;
}

/* Hover effect only on desktop (devices with hover capability) */
@media (hover: hover) and (pointer: fine) {
  .policy-section:hover {
    transform: translateY(-2px);
  }
}

.section-intro {
  font-size: clamp(15px, 2vw, 16px);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: clamp(20px, 3vw, 25px);
  padding: clamp(12px, 2vw, 15px) clamp(15px, 3vw, 20px);
  background: rgba(232, 179, 119, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

/* ===================================
   Typographie (Fluid Typography)
   =================================== */

.cookie-policy-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 28px);
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: clamp(20px, 3vw, 25px);
  padding-bottom: clamp(12px, 2vw, 15px);
  border-bottom: 2px solid rgba(232, 179, 119, 0.2);
  line-height: 1.3;
}

.cookie-policy-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: clamp(12px, 2vw, 15px);
  font-weight: 600;
  line-height: 1.3;
}

.cookie-policy-content h4 {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.5vw, 17px);
  color: var(--text-primary);
  margin-top: clamp(16px, 3vw, 20px);
  margin-bottom: clamp(10px, 2vw, 12px);
  font-weight: 600;
  line-height: 1.4;
}

.cookie-policy-content h5 {
  margin-top: clamp(12px, 2vw, 15px);
  margin-bottom: 8px;
  font-size: clamp(15px, 2vw, 16px);
  color: var(--text-primary);
}

.cookie-policy-content p {
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: clamp(12px, 2vw, 15px);
}

.cookie-policy-content ul {
  margin-left: clamp(16px, 3vw, 20px);
  margin-bottom: clamp(12px, 2vw, 15px);
  padding-left: 0;
}

.cookie-policy-content li {
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: clamp(6px, 1.5vw, 8px);
}

.cookie-policy-content a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: opacity 0.3s;
  /* Improve touch target */
  display: inline-block;
  min-height: 24px;
}

.cookie-policy-content a:hover,
.cookie-policy-content a:focus {
  opacity: 0.8;
}

/* ===================================
   Cookie Types Cards
   =================================== */

.cookie-type {
  background: linear-gradient(
    135deg,
    rgba(232, 179, 119, 0.03) 0%,
    rgba(232, 179, 119, 0.08) 100%
  );
  border-left: 4px solid var(--accent-color);
  padding: clamp(18px, 3vw, 25px);
  margin: clamp(20px, 3vw, 25px) 0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .cookie-type:hover {
    background: linear-gradient(
      135deg,
      rgba(232, 179, 119, 0.05) 0%,
      rgba(232, 179, 119, 0.12) 100%
    );
    transform: translateX(5px);
  }
}

.cookie-type h4 {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.5vw, 19px);
  color: var(--text-primary);
  margin-bottom: clamp(10px, 2vw, 12px);
  font-weight: 600;
}

/* ===================================
   Cookie Status & Details
   =================================== */

.cookie-status {
  display: inline-block;
  padding: clamp(6px, 1.5vw, 8px) clamp(12px, 2vw, 16px);
  background: rgba(232, 179, 119, 0.15);
  border-radius: 20px;
  font-size: clamp(13px, 2vw, 14px);
  margin-bottom: 15px;
}

.cookie-description {
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: clamp(16px, 3vw, 20px);
}

.cookie-duration {
  font-size: clamp(12px, 1.8vw, 13px);
  opacity: 0.7;
  font-style: italic;
  margin-left: 5px;
  white-space: nowrap;
}

.cookie-provider {
  margin-top: clamp(20px, 3vw, 25px);
  padding-top: clamp(16px, 3vw, 20px);
  border-top: 1px dashed rgba(232, 179, 119, 0.2);
}

.cookie-provider:first-child {
  margin-top: 15px;
  padding-top: 0;
  border-top: none;
}

.cookie-learn-more {
  margin-top: clamp(10px, 2vw, 12px);
  font-size: clamp(13px, 2vw, 14px);
}

.cookie-learn-more a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  word-break: break-word;
}

.cookie-learn-more a:hover,
.cookie-learn-more a:focus {
  opacity: 0.8;
  text-decoration: underline;
}

.cookie-legal {
  margin-top: clamp(16px, 3vw, 20px);
  padding-top: clamp(12px, 2vw, 15px);
  border-top: 1px solid rgba(232, 179, 119, 0.15);
  font-size: clamp(13px, 2vw, 14px);
  opacity: 0.9;
}

/* ===================================
   Cookie Rights Grid (Responsive)
   =================================== */

.cookie-rights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(15px, 3vw, 20px);
  margin: clamp(16px, 3vw, 20px) 0;
}

.cookie-right-item {
  background: linear-gradient(
    135deg,
    rgba(232, 179, 119, 0.04) 0%,
    rgba(232, 179, 119, 0.08) 100%
  );
  padding: clamp(18px, 3vw, 24px);
  border-radius: 12px;
  border: 1px solid rgba(232, 179, 119, 0.15);
  transition: all 0.3s ease;
  /* Minimum touch target */
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .cookie-right-item:hover {
    background: linear-gradient(
      135deg,
      rgba(232, 179, 119, 0.06) 0%,
      rgba(232, 179, 119, 0.12) 100%
    );
    border-color: var(--accent-color);
    transform: translateY(-3px);
  }
}

.cookie-right-item strong {
  display: block;
  font-size: clamp(15px, 2vw, 16px);
  color: var(--text-primary);
  margin-bottom: clamp(8px, 2vw, 10px);
  font-weight: 600;
}

.cookie-right-item p {
  font-size: clamp(13px, 2vw, 14px);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===================================
   Privacy Highlight Box
   =================================== */

.privacy-highlight {
  background: linear-gradient(
    135deg,
    rgba(232, 179, 119, 0.08) 0%,
    rgba(232, 179, 119, 0.12) 100%
  );
  border-left: 4px solid var(--accent-color);
  padding: clamp(18px, 3vw, 24px);
  margin: clamp(20px, 3vw, 25px) 0;
  border-radius: 12px;
}

.privacy-highlight p {
  margin: 0;
  font-size: clamp(14px, 2vw, 15px);
  line-height: 1.7;
}

.cookie-third-party-note {
  margin-top: 15px;
  font-size: clamp(13px, 2vw, 14px);
  opacity: 0.8;
}

/* ===================================
   Third Party Services
   =================================== */

.third-party-list {
  display: grid;
  gap: clamp(15px, 3vw, 20px);
  margin-top: clamp(20px, 3vw, 25px);
}

.third-party-item {
  background: rgba(232, 179, 119, 0.04);
  border: 1px solid rgba(232, 179, 119, 0.15);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 24px);
  transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .third-party-item:hover {
    background: rgba(232, 179, 119, 0.08);
    border-color: var(--accent-color);
    transform: translateX(5px);
  }
}

.third-party-item h4 {
  margin-top: 0;
  margin-bottom: clamp(12px, 2vw, 15px);
  color: var(--accent-color);
  font-size: clamp(16px, 2.5vw, 18px);
}

.third-party-item p {
  margin-bottom: clamp(12px, 2vw, 15px);
  line-height: 1.8;
  font-size: clamp(14px, 2vw, 15px);
}

.third-party-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(13px, 2vw, 14px);
  padding: clamp(8px, 1.5vw, 10px) clamp(14px, 2vw, 16px);
  background: rgba(232, 179, 119, 0.1);
  border-radius: 6px;
  transition: all 0.3s ease;
  /* Touch target */
  min-height: 44px;
}

.third-party-link:hover,
.third-party-link:focus {
  background: rgba(232, 179, 119, 0.2);
  transform: translateY(-2px);
}

/* ===================================
   Contact Section
   =================================== */

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(15px, 3vw, 20px);
  margin: clamp(20px, 3vw, 25px) 0;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 15px);
  padding: clamp(16px, 3vw, 20px);
  background: rgba(232, 179, 119, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(232, 179, 119, 0.15);
  transition: all 0.3s ease;
  /* Touch target */
  min-height: 44px;
}

@media (hover: hover) and (pointer: fine) {
  .contact-method:hover {
    background: rgba(232, 179, 119, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-2px);
  }
}

.contact-icon {
  font-size: clamp(24px, 4vw, 28px);
  line-height: 1;
  flex-shrink: 0;
}

.contact-method div {
  flex: 1;
  min-width: 0; /* Allow text to wrap properly */
}

.contact-method strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: clamp(14px, 2vw, 15px);
}

.contact-method a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
  word-break: break-word;
  font-size: clamp(14px, 2vw, 15px);
}

.contact-method a:hover,
.contact-method a:focus {
  opacity: 0.8;
  text-decoration: underline;
}

/* ===================================
   Update Date & Actions
   =================================== */

.cookie-policy-updated {
  font-size: clamp(13px, 2vw, 14px);
  opacity: 0.6;
  text-align: center;
  margin-top: clamp(30px, 5vw, 40px);
}

.cookie-policy-actions {
  display: flex;
  gap: clamp(15px, 3vw, 20px);
  justify-content: center;
  margin-top: clamp(40px, 6vw, 50px);
  margin-bottom: clamp(30px, 5vw, 40px);
  flex-wrap: wrap;
}

.cookie-policy-actions .btn {
  padding: clamp(14px, 2vw, 16px) clamp(24px, 4vw, 32px);
  border-radius: 10px;
  font-size: clamp(15px, 2vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-body);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
  /* Touch target minimum 44x44px */
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}

.cookie-policy-actions .btn-primary {
  background: linear-gradient(135deg, #e8b377, #d4a05f);
  color: var(--bg-primary);
}

.cookie-policy-actions .btn-primary:hover,
.cookie-policy-actions .btn-primary:focus {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #eab87f, #d6a465);
}

.cookie-policy-actions .btn-secondary {
  background: var(--bg-secondary);
  border: 2px solid rgba(232, 179, 119, 0.3);
  color: var(--text-primary);
}

.cookie-policy-actions .btn-secondary:hover,
.cookie-policy-actions .btn-secondary:focus {
  background: rgba(232, 179, 119, 0.08);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

/* ===================================
   Media Queries - Responsive Breakpoints
   =================================== */

/* Small Mobile (< 375px) */
@media (max-width: 374px) {
  .simple-header .container {
    gap: 8px;
  }

  .simple-header .back-link {
    display: none; /* Hide back link on very small screens to save space */
  }

  .simple-header .language-switcher {
    margin-left: auto;
  }

  .simple-header .lang-btn {
    min-width: 36px;
    min-height: 36px;
    font-size: 11px;
  }

  .cookie-policy-page h1 {
    font-size: 24px;
  }

  .cookie-policy-actions {
    flex-direction: column;
  }

  .cookie-policy-actions .btn {
    width: 100%;
  }
}

/* Mobile (375px - 767px) */
@media (min-width: 375px) and (max-width: 767px) {
  .cookie-rights {
    grid-template-columns: 1fr;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .cookie-policy-page {
    padding-top: 110px;
  }

  .policy-section {
    padding: 32px;
  }

  .cookie-rights {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
  .cookie-policy-page {
    padding-top: 120px;
  }

  .policy-section {
    padding: 40px;
  }

  .cookie-rights {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop (>= 1440px) */
@media (min-width: 1440px) {
  .cookie-policy-page .container {
    max-width: 1200px;
  }

  .cookie-rights {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Desktop (>= 1920px) */
@media (min-width: 1920px) {
  .cookie-policy-page .container {
    max-width: 1400px;
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .simple-header,
  .cookie-policy-actions {
    display: none;
  }

  .cookie-policy-page {
    padding-top: 20px;
  }

  .policy-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .cookie-type {
    break-inside: avoid;
  }
}

/* ===================================
   Accessibility & Focus States
   =================================== */

/* Improve focus visibility for keyboard navigation */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .policy-section {
    border: 2px solid var(--accent-color);
  }

  .cookie-type {
    border: 2px solid var(--accent-color);
  }
}
