/* Pages légales — même identité que le site (couleurs et polices de l'app Swipee) */
:root {
  --navy: #0B1023;
  --violet: #6E4FED;
  --violet-dark: #5638D6;
  --violet-light: #A18BFF;
  --green: #34C08A;
  --green-dark: #2AA577;
  --lavender: #F5F1FF;
  --mint: #EEF9F4;
  --line: #E8EAF2;
  --muted: #6B7280;
  --hint: #9CA3AF;
  --red: #EF4444;
  --amber: #F59E0B;
  --radius: 24px;
  --shadow: 0 2px 12px rgba(11, 16, 35, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(600px 400px at -10% -5%, var(--lavender), transparent 70%),
    radial-gradient(500px 360px at 110% 10%, var(--mint), transparent 70%),
    #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Nunito', system-ui, sans-serif; color: var(--navy); line-height: 1.2; }
a { color: var(--violet); }
a:hover { color: var(--violet-dark); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
strong { color: var(--navy); }

.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 16px 64px; }

/* Barre du haut */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 -16px 32px; padding: 14px 16px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img.icon { width: 32px; height: 32px; border-radius: 8px; }
.brand img.logo { height: 22px; width: auto; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; background: #fff;
  transition: border-color .2s, color .2s;
}
.back:hover { border-color: var(--violet); color: var(--violet); }

/* En-tête de page */
.hero-banner, .page-head {
  position: relative; overflow: hidden;
  padding: 40px 32px; margin-bottom: 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--violet), var(--violet-dark) 55%, var(--navy));
  color: #fff;
}
.hero-banner::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(52, 192, 138, 0.35); filter: blur(50px);
}
.hero-banner h1 { position: relative; margin: 0 0 8px; font-size: clamp(28px, 5vw, 40px); font-weight: 900; color: #fff; }
.hero-banner .updated { position: relative; margin: 0; color: rgba(255, 255, 255, 0.8); }
.badge-rgpd {
  position: relative; display: inline-block; margin-top: 16px; padding: 6px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.15); font-size: 13px; font-weight: 600;
}

/* Cartes */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px; margin-bottom: 20px;
  scroll-margin-top: 90px;
  animation: rise .5s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.card > h1, section.card h1 { margin: 0 0 4px; font-size: clamp(28px, 5vw, 40px); font-weight: 900; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.card h2 { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; font-size: 22px; font-weight: 800; }
.card h2:first-child { margin-top: 0; }
.card h2 .num {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 12px;
  background: var(--lavender); color: var(--violet); font-size: 15px; font-weight: 800;
}
.card h3 { margin: 20px 0 8px; font-size: 17px; font-weight: 800; }
p, li { color: #374151; font-size: 15px; }
.card ul { padding-left: 0; list-style: none; }
.card ul li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.card ul li::before {
  content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--violet);
}

/* Sommaire */
.toc { background: var(--lavender); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 20px; }
.toc h2 { margin: 0 0 12px; font-size: 18px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--navy); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--violet); }

/* Encadrés */
.info-box, .info-banner, .warning-box, .contact-box, .authority-box {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; margin: 16px 0; border-radius: 16px; font-size: 14px;
  background: var(--lavender); border: 1px solid #E4DCFF;
}
.contact-box, .authority-box { display: block; }
.info-box .icon, .info-banner .icon { font-size: 18px; line-height: 1.4; }
.info-box.blue { background: var(--lavender); border-color: #E4DCFF; }
.info-box.green { background: var(--mint); border-color: #CFEFE1; }
.info-box.yellow, .warning-box { background: #FFF8E6; border-color: #FBE3A8; }
.info-box.red { background: #FEF0F0; border-color: #FBD0D0; }
.info-banner p, .warning-box p { margin: 0; }
.contact-box p { margin: 4px 0; }
.contact-box a, .authority-box a { font-weight: 600; }

/* Tableaux */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; font-size: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { background: #FAFAFD; font-weight: 600; color: var(--navy); }
.data-table tr:last-child td, .data-table tr:last-child th { border-bottom: 0; }
.data-table tr:hover td { background: #FCFBFF; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.contrat { background: var(--lavender); color: var(--violet); }
.tag.consentement { background: var(--mint); color: var(--green-dark); }
.tag.interet { background: #FFF8E6; color: #B45309; }
.tag.obligation { background: #FEF0F0; color: #B91C1C; }

/* Droits */
.rights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.right-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; transition: transform .2s, border-color .2s; }
.right-card:hover { transform: translateY(-3px); border-color: var(--violet-light); }
.right-card .right-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.right-card p { margin: 6px 0 0; font-size: 14px; }

/* Cookies */
.cookie-cat { border: 1px solid var(--line); border-radius: 16px; margin: 12px 0; overflow: hidden; }
.cookie-cat-header { padding: 12px 16px; background: #FAFAFD; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cookie-cat-body { padding: 12px 16px; font-size: 14px; }

/* Mentions légales : grille d'infos société */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.row { background: #FAFAFD; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Formulaire de suppression */
.card-header { margin-bottom: 24px; }
.card-header h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); font-weight: 900; }
.card-header p { margin: 0; color: var(--muted); }
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
label .required { color: var(--red); }
label .optional { color: var(--hint); font-weight: 400; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; padding: 12px 16px; font: inherit; font-size: 15px; color: var(--navy);
  background: #FAFAFD; border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(110, 79, 237, 0.12); }
textarea { min-height: 110px; resize: vertical; }
.select-wrapper { position: relative; }
.select-wrapper select { appearance: none; padding-right: 40px; }
.select-wrapper::after { content: '▾'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--violet); pointer-events: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-group {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-weight: 500;
  transition: border-color .2s, background .2s;
}
.checkbox-group:has(input:checked) { border-color: var(--violet); background: var(--lavender); }
.checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--violet); flex-shrink: 0; }
.checkbox-group span { font-size: 14px; color: #374151; }
.btn-submit, .btn-home {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 20px; padding: 14px 24px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 16px; color: #fff; cursor: pointer; text-decoration: none;
  background: var(--violet); box-shadow: 0 20px 60px -15px rgba(110, 79, 237, 0.45);
  transition: background .2s, transform .1s;
}
.btn-submit:hover, .btn-home:hover { background: var(--violet-dark); color: #fff; }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.btn-home { width: auto; }
#success-message { display: none; text-align: center; padding: 16px 0; }
#success-message .success-icon { font-size: 48px; }
#success-message h2 { justify-content: center; }

/* Pied de page */
footer, footer.page-footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--hint); }
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .card, .hero-banner { padding: 24px 20px; }
  .toc ol { columns: 1; }
  .grid, .row-2 { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { animation: none; }
}
