/* Vintage Expert — refonte (non publiée) */
:root {
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-ui: "Public Sans", system-ui, -apple-system, sans-serif;

  --bg: #ebe8e2;
  --bg-deep: #121614;
  --surface: #f6f5f1;
  --text: #141816;
  --text-on-dark: #f3f1eb;
  --muted: #5a5e5a;
  --muted-on-dark: #a8ada8;
  --border: #d0ccc3;
  --border-dark: rgba(243, 241, 235, 0.14);

  --accent: #1f4d3a;
  --accent-hover: #173d2e;
  --ink: #0b1f2a;

  --container: 1120px;
  --radius: 2px;
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  font-weight: 400;
  font-size: 1.05rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Maillage interne — bloc « Pour aller plus loin » en bas de page.
   Présent sur des gabarits différents (verticales, institutionnel, produit),
   d'où le rattachement à styles.css que toutes les pages chargent. */
.maillage {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.maillage h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.maillage ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.maillage a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.maillage a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.maillage strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.maillage span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
  opacity: 0.92;
}

.btn-ghost:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #061018;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn-outline-dark:hover {
  background: var(--text);
  color: var(--surface);
}

/* —— Header —— */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(18, 22, 20, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.2s;
}

.header.is-scrolled {
  background: rgba(18, 22, 20, 0.96);
}

.nav {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-text {
  position: relative;
  display: block;
  line-height: 1.1;
  min-width: 0;
}

.logo-img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img-footer {
  height: 46px;
}

.page-verticale .header .logo-img,
.page-hub .header .logo-img,
.page-verticale .footer .logo-img,
.page-hub .footer .logo-img,
.page-produit .footer .logo-img,
.page-institutionnel .footer .logo-img {
  filter: invert(1);
}

.logo-mark {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.1;
}

.page-produit .logo-mark {
  color: #2d241e;
  font-family: "Playfair Display", Georgia, serif;
  font-style: normal;
  font-weight: 600;
}

.page-produit .header .logo-img {
  height: 64px;
}

.page-produit .footer .logo-img {
  height: 46px;
}

.page-institutionnel .logo-mark {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
  font-size: 1.05rem;
}

.logo-tag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* Tag sous la marque, hors flux → Vintage Expert reste centré sur le logo */
.page-verticale .header .logo-tag,
.page-institutionnel .header .logo-tag {
  position: absolute;
  top: calc(100% + 0.1rem);
  left: 0;
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7f74;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

/* Language switch — compact (comme le live : un seul libellé) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b5f54;
  background: none;
  border: none;
  padding: 0.15rem 0;
  cursor: pointer;
  line-height: 1;
}

.lang-switch:hover {
  color: #2d241e;
}

.lang-switch .flag {
  display: block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex-shrink: 0;
}

.lang-switch .lang-code {
  line-height: 1;
}

.page-verticale .lang-switch,
.page-hub .lang-switch {
  color: var(--muted-on-dark, #a8ada8);
}

.page-verticale .lang-switch:hover,
.page-hub .lang-switch:hover {
  color: var(--text-on-dark, #fff);
}

.page-produit .lang-switch {
  color: #6b5f54;
}

.page-produit .lang-switch:hover {
  color: #2d241e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links > li > a:not(.btn) {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  transition: color 0.15s;
}

.nav-links > li > a:not(.btn):hover {
  color: var(--text-on-dark);
}

.nav-links .btn {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

/* Le menu s'ancre sur le logo, le bloc « compte » part à droite. Sans cela la liste
   entière est poussée à droite par le space-between du .nav et les liens retombent
   au milieu du conteneur, sans rien à quoi se rattacher.
   Le :has(.nav-account) restreint la règle au header canonique : les pages univers
   ont une nav courte qui doit rester groupée à droite. */
.nav-links:has(.nav-account) {
  flex: 1;
  margin-left: 2rem;
}

/* Le sélecteur de langue appartient au bloc « compte », pas à la navigation :
   on l'écarte des liens de menu et on le colle aux deux boutons. */
.nav-links:has(.nav-account) > .nav-lang {
  margin-left: auto;
  margin-right: -0.7rem;
}

.nav-links > .nav-account {
  margin-right: -0.75rem;
}

.nav-login {
  font-weight: 600;
}

.page-produit .nav-login {
  border-color: rgba(45, 36, 30, 0.3);
  color: #2d241e;
}

.page-produit .nav-login:hover {
  border-color: rgba(45, 36, 30, 0.55);
  background: rgba(45, 36, 30, 0.05);
}

/* CTA unique du header : libellé d'action + gratuité en sous-titre */
.nav-links .btn.nav-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  line-height: 1.15;
  padding: 0.45rem 1.15rem;
}

.nav-cta-note {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-dropdown > button:hover,
.nav-dropdown.is-open > button {
  color: var(--text-on-dark);
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 220px;
  padding: 0.65rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-dark);
  z-index: 20;
}

.nav-dropdown.is-open .nav-dropdown-panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-dropdown-panel a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  padding: 0.55rem 0.65rem;
}

.nav-dropdown-panel a:hover {
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.04);
}

/* —— Sections —— */
.section {
  padding: 5rem 0;
}

.section-kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
  max-width: 18ch;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* —— Footer —— */
.footer {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo {
  margin-bottom: 0.85rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--muted-on-dark);
  max-width: 28rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links h4 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 0.85rem;
}

.footer-links a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--text-on-dark);
  margin-bottom: 0.45rem;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
}

/* Pages /en/ : marque les liens qui mènent aux pages juridiques françaises. */
.lang-note {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 1.15rem 1.5rem 1.35rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  color: var(--muted-on-dark);
  opacity: 0.72;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social-link:hover {
  opacity: 1;
  color: #fdfbf7;
  background: rgba(253, 251, 247, 0.08);
}

.footer-social-link svg {
  display: block;
  fill: currentColor;
}

.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--muted-on-dark);
  margin: 0;
}

/* Motion → motion.css */

/* —— Responsive —— */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .logo-img,
  .page-produit .header .logo-img {
    height: 52px;
  }

  /* en menu déroulant, les trois items se réempilent : on annule le resserrage */
  .nav-links:has(.nav-account) {
    margin-left: 0;
  }

  .nav-links:has(.nav-account) > .nav-lang,
  .nav-links > .nav-account {
    margin-left: 0;
    margin-right: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > li {
    border-bottom: 1px solid var(--border-dark);
  }

  .nav-links > li > a:not(.btn),
  .nav-dropdown > button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.9rem 0;
  }

  .nav-links .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .nav-dropdown-panel {
    position: static;
    border: none;
    padding: 0 0 0.75rem 0.75rem;
    background: transparent;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
