/* RGPD + accessibilité — site vitrine Yovo */

.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.yovo-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10001;
  padding: 12px 20px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
}

.yovo-skip-link:focus {
  left: 16px;
  top: 0;
  width: auto;
  height: auto;
  outline: 3px solid #fbbf24;
  outline-offset: 2px;
}

:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* Cookie banner */
.yovo-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: #0f172a;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  padding: 20px 5%;
}

.yovo-cookie-banner[hidden],
.yovo-cookie-preferences[hidden] {
  display: none !important;
}

.yovo-cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.yovo-cookie-banner__title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.yovo-cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 16px;
  max-width: 900px;
}

.yovo-cookie-banner__text a {
  color: #93c5fd;
  text-decoration: underline;
}

.yovo-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.yovo-cookie-btn {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.yovo-cookie-btn--primary {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
}

.yovo-cookie-btn--primary:hover {
  background: #e2e8f0;
}

.yovo-cookie-btn--secondary {
  background: transparent;
  color: #f8fafc;
  border-color: #94a3b8;
}

.yovo-cookie-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f8fafc;
}

/* Preference center */
.yovo-cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.yovo-cookie-preferences__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  border: 0;
  cursor: pointer;
}

.yovo-cookie-preferences__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.yovo-cookie-preferences__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.yovo-cookie-preferences__header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.yovo-cookie-close {
  font-size: 1.75rem;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  color: #334155;
  padding: 4px 8px;
  border-radius: 8px;
}

.yovo-cookie-preferences__intro {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 18px;
}

.yovo-cookie-preferences__intro a {
  color: #1d4ed8;
}

.yovo-cookie-categories {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.yovo-cookie-category {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.yovo-cookie-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.yovo-cookie-category__head label {
  font-weight: 700;
  font-size: 0.95rem;
}

.yovo-cookie-category p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.yovo-cookie-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 999px;
}

.yovo-cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.yovo-cookie-preferences__actions .yovo-cookie-btn--secondary {
  color: #0f172a;
  border-color: #94a3b8;
}

.yovo-cookie-preferences__links {
  font-size: 0.85rem;
  margin: 0;
}

.yovo-cookie-preferences__links a {
  color: #1d4ed8;
}

.yovo-manage-cookies {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
}

.yovo-manage-cookies:hover {
  color: #1d4ed8;
}

footer .yovo-manage-cookies,
.footer-col .yovo-manage-cookies {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

footer .yovo-manage-cookies:hover,
.footer-col .yovo-manage-cookies:hover {
  color: #fff;
}

/* Pages légales / compliance */
.yovo-legal-page {
  --yovo-blue: #1d4ed8;
  font-family: 'Montserrat', system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}

.yovo-legal-page header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 8%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.yovo-legal-page header img {
  height: 48px;
}

.yovo-legal-page nav a {
  margin-left: 18px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
}

.yovo-legal-page main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 8% 48px;
}

.yovo-legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.yovo-legal-page .lead {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 28px;
}

.yovo-legal-page section {
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

.yovo-legal-page h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
}

.yovo-legal-page h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 18px 0 8px;
}

.yovo-legal-page p,
.yovo-legal-page li {
  line-height: 1.65;
  color: #334155;
  font-size: 0.95rem;
}

.yovo-legal-page ul {
  padding-left: 1.25rem;
  margin: 10px 0;
}

.yovo-legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 12px 0;
}

.yovo-legal-page th,
.yovo-legal-page td {
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.yovo-legal-page th {
  background: #f1f5f9;
  font-weight: 700;
}

.yovo-legal-page footer {
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  padding: 28px 8%;
}

.yovo-legal-page footer a {
  color: #93c5fd;
  text-decoration: none;
  margin: 0 8px;
}

.yovo-legal-page footer a:hover {
  text-decoration: underline;
}

.yovo-legal-page .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .yovo-cookie-banner__actions,
  .yovo-cookie-preferences__actions {
    flex-direction: column;
  }

  .yovo-cookie-btn {
    width: 100%;
    text-align: center;
  }

  .yovo-legal-page nav {
    display: none;
  }
}
