/* ═══════════════════════════════════════════════════════════
   thefrip.css — Styles partagés TheFrip by LaGlacière
   ═══════════════════════════════════════════════════════════ */

/* ── TheFrip brand text ────────────────────────────────── */
.thefrip-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00d2e2;
}

/* ── Variables ──────────────────────────────────────────── */
:root {
  --cyan:   #00D2E2;
  --blue:   #002BD4;
  --black:  #000;
  --white:  #fff;
  --light:  #f5f7fa;
  --border: #e5e8ed;
  --muted:  #666;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base typographie ───────────────────────────────────── */
body {
  font-family: 'Barlow', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Skip nav (accessibilité) ───────────────────────────── */
.skip-nav {
  position: absolute;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  z-index: 999;
}
.skip-nav:focus {
  position: fixed;
  top: 0; left: 0;
  width: auto; height: auto;
  padding: 12px 24px;
  background: var(--blue, #002BD4);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  z-index: 9999;
}

/* ── Top banner ─────────────────────────────────────────── */
.top-banner {
  background: linear-gradient(135deg, #001a4d, #002BD4);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .3px;
}
.top-banner a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

/* ── Navigation (pages contenu) ─────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 38px; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-text .t1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00d2e2;
}
.nav-logo-text .t2 {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .5px;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  opacity: .7;
  transition: opacity .15s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Page container (pages contenu) ─────────────────────── */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}
.page-container h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.page-container h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--black);
}
.page-container h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
}
.page-container p,
.page-container li {
  font-size: .95rem;
  color: #333;
  line-height: 1.7;
}
.page-container ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
.page-container li { margin-bottom: 6px; }
.page-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ── Step cards ─────────────────────────────────────────── */
.step {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { margin: 0 0 4px; font-size: .95rem; }
.step-content p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ── CTA block ──────────────────────────────────────────── */
.cta-block {
  text-align: center;
  margin-top: 40px;
  padding: 32px;
  background: var(--light);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.cta-block a {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 50px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ── Plan table (nos-offres) ────────────────────────────── */
.plan-table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; }
.plan-table th,
.plan-table td { padding: 10px 14px; text-align: center; border: 1px solid var(--border); font-size: .88rem; }
.plan-table th { background: var(--light); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: .9rem; }
.plan-table td:first-child { text-align: left; font-weight: 600; }
.plan-featured { background: rgba(0,210,226,.06) !important; }

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--light);
  transition: background .15s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.faq-q:hover { background: #edf0f5; }
.faq-q:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.faq-q::after { content: '+'; font-size: 1.2rem; font-weight: 700; color: var(--cyan); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 18px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 18px 16px; }
.faq-a p { font-size: .88rem; color: #444; margin: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #0d1520;
  padding: 48px 24px 24px;
  margin-top: 48px;
}
.footer-grid {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00d2e2;
  font-size: .85rem;
  margin-bottom: 14px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .85rem;
  transition: color .15s;
}
.footer-col-links a:hover { color: #00d2e2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.footer-bottom img { height: 28px; }
.footer-bottom .brand-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00d2e2;
}
.footer-copy {
  color: rgba(255,255,255,.35);
  font-size: .78rem;
}
@media (max-width: 768px) {
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .footer-columns { grid-template-columns: 1fr; }
}

/* ── Responsive (pages contenu) ─────────────────────────── */
@media (max-width: 600px) {
  nav { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .nav-links { gap: 14px; font-size: .82rem; }
  .nav-cta { padding: 7px 14px; font-size: .8rem; }
  .page-container { padding: 32px 16px 40px; }
  .page-container h1 { font-size: 1.6rem; }
  .step { flex-direction: column; gap: 10px; }
  .plan-table { font-size: .8rem; }
  .plan-table th,
  .plan-table td { padding: 6px 8px; }
}

/* ═══════════════════════════════════════════════════════════
   NAV MODERNE — site-nav, dropdowns, drawer mobile
   ═══════════════════════════════════════════════════════════ */

/* Nav container */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.site-nav .nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-nav .nav-logo img { height: 52px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,210,226,.25)); }

/* Centre (liens desktop) */
.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

/* Lien de base */
.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-link:hover { color: var(--cyan); background: var(--light); }

/* Chevron */
.nav-chevron {
  font-size: 9px;
  transition: transform .2s;
  display: inline-block;
  margin-top: 1px;
}
.nav-dropdown-wrapper:hover .nav-chevron { transform: rotate(180deg); }

/* Dropdown wrapper */
.nav-dropdown-wrapper { position: relative; }

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  padding: 16px;
  min-width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.nav-dropdown-wrapper:hover .nav-dropdown,
.nav-dropdown-wrapper:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Grille 2 colonnes */
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
  margin-bottom: 12px;
}
.nav-dropdown-grid a {
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  color: #333;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 7px;
  transition: background .12s, color .12s;
  display: block;
}
.nav-dropdown-grid a:hover { background: var(--light); color: var(--blue); }

/* Lien "Voir tout" en bas du dropdown */
.nav-dropdown-all {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  padding: 9px 10px;
  border-top: 1px solid var(--border);
  text-align: center;
  border-radius: 0 0 8px 8px;
  transition: color .15s, background .15s;
}
.nav-dropdown-all:hover { color: var(--blue); background: var(--light); }

/* Groupe actions droite */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Bouton icône rond */
.nav-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  color: var(--black);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: var(--light); }
.nav-icon-btn svg { display: block; }

/* Badge panier */
.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--cyan);
  color: #fff;
  border-radius: 999px;
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
  line-height: 1;
}

/* Profil dropdown (shared) */
.profile-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 220px;
  z-index: 300;
  padding: 8px 0;
  animation: ddFadeIn .15s ease;
}
.profile-dropdown.open { display: block; }
@keyframes ddFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.dd-header { padding: 12px 18px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.dd-item { display: block; padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--black); text-decoration: none; transition: background .15s, color .15s; }
.dd-item:hover { background: rgba(0,210,226,.06); color: var(--cyan); }
.dd-sep { border-top: 1px solid var(--border); margin: 4px 0; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--black);
  padding: 6px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ── DRAWER MOBILE ─────────────────────────── */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}
.nav-drawer.open { pointer-events: all; }

.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.42);
  opacity: 0;
  transition: opacity .25s;
}
.nav-drawer.open .nav-drawer-overlay { opacity: 1; }

.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  padding: 20px 0;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }

.nav-drawer-close {
  display: block;
  margin: 0 20px 16px auto;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}
.nav-drawer-close:hover { color: var(--black); }

.nav-drawer-links { display: flex; flex-direction: column; }

/* Section avec sous-liens */
.nav-drawer-section { border-bottom: 1px solid var(--border); }
.nav-drawer-heading {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  transition: color .15s;
}
.nav-drawer-heading:hover { color: var(--cyan); }
.nav-drawer-heading.active { color: var(--cyan); }
.nav-drawer-arrow { font-size: 18px; transition: transform .2s; }
.nav-drawer-heading.active .nav-drawer-arrow { transform: rotate(90deg); }

.nav-drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  display: flex;
  flex-direction: column;
  background: var(--light);
}
.nav-drawer-sub.open { max-height: 400px; }
.nav-drawer-sub a {
  padding: 11px 32px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .15s, background .15s;
}
.nav-drawer-sub a:last-child { border-bottom: none; }
.nav-drawer-sub a:hover { color: var(--cyan); background: #edf0f5; }
.nav-drawer-see-all { color: var(--cyan) !important; font-weight: 600 !important; }

.nav-drawer-link {
  display: block;
  padding: 14px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.nav-drawer-link:hover { color: var(--cyan); }

.nav-drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* Responsive nav */
@media (max-width: 768px) {
  .site-nav { padding: 0 16px; }
  .nav-center { display: none; }
  .hamburger { display: flex; }
  .nav-actions { gap: 2px; }
}

/* ── Suppression compte (zone dangereuse) ───────────────── */
.vp-danger-zone { border: 1px solid #e74c3c; border-radius: 8px; padding: 20px; margin-top: 32px; }
.vp-btn--danger { background: #e74c3c; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .2s; }
.vp-btn--danger:hover { background: #c0392b; }
.vp-btn--danger:disabled { opacity: .5; cursor: not-allowed; }
