/* Tokens Liquidex — extraits de website-front-end/src/assets/styles/root.scss.
   Phase 1 : les mutualiser dans un fichier partagé entre SPA et SSR. */
:root {
  --paper: #FBF9F4;
  --surface: #F3EDE1;
  --ink: #17140F;
  --ink-soft: #5A554B;
  --ink-mute: #8E887B;
  --line: #E6DCC8;
  --gold: #BC9233;
  --gold-deep: #9A7522;
  --gold-soft: rgba(188, 146, 51, 0.12);
  --shadow: 0 22px 44px -26px rgba(23, 20, 15, 0.30);
}

* { box-sizing: border-box; }

/* L'attribut hidden doit toujours gagner, même sur les éléments dont la
   classe pose display:flex/grid (event-card, dialogs, steps…). */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; padding: 80px 20px; }

/* ==== Header — portage fidèle de navigation_V2.vue (état déconnecté) ===== */
.lqx-mark { display: inline-block; flex-shrink: 0; vertical-align: middle; color: var(--ink); }
.lqx-mark--on-dark { color: var(--paper); }
.lqx-mark__liquid { transform-box: fill-box; animation: lqx-liquid-wave 8s linear infinite; }
@keyframes lqx-liquid-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lqx-mark__liquid { animation: none; } }

.lqx-wordmark {
  font-family: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif;
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--ink); display: inline-flex; align-items: baseline; user-select: none;
}
.lqx-wordmark--light { color: var(--paper); }
.lqx-wordmark__accent, .lqx-wordmark__dot { color: var(--gold); }
.lqx-wordmark__dot { font-size: 1.15em; line-height: 0; margin-left: 0.02em; }

.nav-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; background: var(--paper); color: var(--ink-soft);
  /* --border du thème clair SPA (root.scss:100), pas --line */
  padding: 0 66px; border-bottom: 1px solid rgba(23, 20, 15, 0.20);
}
.bloc-logo-navigation { display: flex; align-items: center; min-width: 0; }
.lqx-nav-logo {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 4px 0; margin-right: 14px; min-width: 30px; text-decoration: none;
}
.navigation-auth ul { display: flex; margin: 0 0 0 30px; padding: 0; list-style: none; }
.navigation-auth ul li { display: flex; align-items: center; margin-right: 15px; }
.navigation-auth .nav-link {
  position: relative; display: flex; align-items: center; cursor: pointer;
  text-decoration: none; padding: 0;
}
.navigation-auth .nav-link img { margin-right: 8px; }
.navigation-auth .nav-link p { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.navigation-auth .nav-link::after {
  content: ''; position: absolute; top: 45px; left: 0; height: 2px; width: 100%;
  border-bottom: 2px solid transparent; transition: border-color 300ms ease;
}
.navigation-auth .nav-link:hover::after,
.navigation-auth .nav-link.is-active::after { border-bottom-color: var(--gold); }

.bloc-actions { display: flex; align-items: center; font-size: 16px; font-weight: 600; }
.bloc-actions > a {
  color: var(--ink); text-decoration: none; margin-right: 15px; font-size: 15px;
  transition: color 0.2s ease; white-space: nowrap;
}
.bloc-actions > a:hover { color: var(--gold); }

.lang-choice {
  position: relative; display: flex; align-items: center; margin-left: 10px;
  cursor: pointer; color: var(--ink); background: none; border: 0; padding: 0; font: inherit;
}
.lang-globe { position: relative; display: inline-flex; align-items: center; }
.lang-globe img { transition: opacity 0.2s ease; display: block; }
.lang-img--gold { position: absolute; top: 0; left: 0; opacity: 0; }
.lang-choice:hover .lang-img:not(.lang-img--gold) { opacity: 0; }
.lang-choice:hover .lang-img--gold { opacity: 1; }

.user-menu {
  display: flex; align-items: center; justify-content: space-evenly;
  background-color: var(--gold); border: 0; border-radius: 21px;
  width: 72px; height: 40px; margin-left: 10px; cursor: pointer; padding: 0;
}
/* .light-icon de root.scss : les icônes sombres deviennent blanches sur la
   pastille dorée (appliqué dans tous les thèmes côté SPA). */
.user-menu img { display: block; filter: invert(1) hue-rotate(180deg); }

/* Drawers (menu / langues) — équivalent el-drawer, à droite */
.lqx-drawer-overlay {
  position: fixed; inset: 0; background: rgba(23, 20, 15, 0.5); z-index: 2000;
}
.lqx-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2001;
  width: 40%; min-width: 300px; max-width: 480px;
  background: var(--paper); box-shadow: var(--shadow);
  padding: 20px 24px; overflow-y: auto;
}
.lqx-drawer--lang { width: 30%; }
@media screen and (max-width: 900px) {
  .lqx-drawer { width: 70%; }
  .lqx-drawer--lang { width: 60%; }
}
.lqx-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lqx-drawer__title { color: var(--ink); font-weight: 600; }
.lqx-drawer__close {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 76px;
  height: 38px; width: 38px; font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer;
}
.lang-choice-active { cursor: default; }
.lang-option {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 0 8px; border-radius: 8px; height: 38px;
  color: var(--ink-soft); text-decoration: none; font-size: 15px;
}
.lang-option:hover { background: var(--gold-soft); }
.flag-lang { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.flag-lang img { border-radius: 2px; }
.activeLang { background: var(--surface); color: var(--ink); font-weight: 600; }

.menu-user-logout .menu-logout {
  display: flex; margin: auto auto 25px; justify-content: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); width: 100%;
}
.menu-user-logout ul { list-style: none; margin: 0; padding: 0 0 28px; }
.menu-user-logout li { margin-bottom: 6px; }
.menu-li-action {
  display: flex; align-items: center; color: var(--ink); text-decoration: none;
  font-size: 16px; padding: 8px 16px 8px 0; cursor: pointer; border-radius: 8px;
}
.menu-li-action:hover { background: var(--gold-soft); }
.menu-li-action > div { display: flex; justify-content: center; width: 35px; margin-right: 8px; }

@media screen and (max-width: 1090px) {
  .nav-top { padding: 0 40px; }
  .bloc-actions .hide-tel { display: none; }
}
@media screen and (max-width: 975px) {
  .hide-min-tel { display: none !important; }
  .navigation-auth .nav-link::after { display: none; }
}
@media screen and (max-width: 720px) {
  .nav-top { padding: 0 5px; height: 60px; }
  .lqx-nav-logo { margin-right: 4px; }
  .lqx-nav-logo .lqx-wordmark { display: none; }
  .user-menu { width: 40px; height: 40px; margin-left: 5px; }
  .lang-choice { margin-left: 0; min-height: 40px; }
  .navigation-auth ul { margin-left: 10px; }
  .navigation-auth ul li { margin-right: 10px; }
  .navigation-auth .nav-link img { margin-right: 0; }
}
@media screen and (max-width: 480px) {
  .nav-top { padding: 0 12px; }
  .navigation-auth ul { margin-left: 6px; }
  .navigation-auth ul li { margin-right: 9px; min-width: 34px; min-height: 40px; justify-content: center; }
  .navigation-auth ul li:last-child { margin-right: 0; }
  .navigation-auth .nav-link img { width: 21px; }
  .user-menu { width: 40px; height: 40px; margin-left: 6px; }
  .lqx-drawer, .lqx-drawer--lang { width: 100%; max-width: none; }
}

/* Blog list — portage fidèle de Blog.vue : liste verticale une colonne,
   cartes horizontales bordées (vignette à gauche, texte à droite). */
.page-title { font-size: clamp(28px, 4vw, 40px); margin: 40px 0 24px; }
.empty { color: var(--ink-mute); }

.blog-list { display: flex; flex-direction: column; align-items: center; margin: 2vh auto 5vh; }
.blog-intro {
  margin: 0 0 14px; text-align: center;
  font-size: 24px; font-weight: 700; color: var(--ink);
  font-family: 'Bricolage Grotesque', 'IBM Plex Sans', sans-serif;
}

.blog-filters {
  width: 45vw; min-width: 800px; max-width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
}
.blog-filters__label { color: var(--ink-soft); font-size: 14px; }
.blog-filters__tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.blog-filters__tag {
  display: inline-block; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-soft); background: #fff; text-decoration: none; font-size: 13px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.blog-filters__tag:hover { border-color: var(--gold); color: var(--ink); }
.blog-filters__tag.is-active { background: var(--gold); border-color: var(--gold); color: #fff; font-weight: 600; }
.blog-filters__reset {
  margin-left: 10px; background: var(--gold); border: none; color: #fff;
  padding: 4px 12px; border-radius: 6px; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.blog-filters__reset:hover { background: var(--gold-deep); }

.blog-empty { text-align: center; margin-top: 15px; color: var(--ink-mute); }

.articles {
  width: 45vw; min-width: 800px; max-width: 100%;
  display: flex; flex-direction: column; gap: 2px;
  margin: 1vh 0 64px;
}
.article-row {
  min-height: 10vh; padding: 10px; text-align: justify;
  border-radius: 5px; border: 1px solid var(--line);
  display: flex; overflow: hidden;
}
.article-row__img {
  max-width: 7vw; min-width: 90px; height: auto; margin-right: 1vw;
  display: flex; justify-content: center; align-items: center;
}
.article-row__img img { max-width: 6vw; min-width: 90px; height: auto; }
.article-row__body {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; overflow-wrap: break-word;
}
.article-row__title { margin: 0 0 1vh; text-align: initial; font-weight: 700; letter-spacing: -0.02em; }
.article-row__title a { color: var(--ink); text-decoration: none; }
.article-row__title a:hover { color: var(--gold-deep); }
.article-row__excerpt {
  overflow: hidden; display: -webkit-box;
  -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  text-overflow: ellipsis; color: var(--ink);
}
.article-row__excerpt p { margin: 0 0 6px; }
.article-row__excerpt a { color: var(--gold-deep); }
.article-row__dates {
  margin-top: 2vh; width: 100%; display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-soft);
}
.article-row__dates p { margin: 0; min-width: fit-content; }
.article-row__dates p:nth-of-type(2) { font-style: italic; }
.article-row__tags { display: flex; gap: 5px; flex-wrap: wrap; color: var(--ink); font-weight: bold; font-size: 14px; }
.article-row__tags p { margin: 0; min-width: fit-content; }

@media screen and (max-width: 900px) {
  .blog-filters, .articles { width: 95%; min-width: 0; }
  .article-row { flex-direction: column; align-items: center; width: 100%; padding: 0; }
  .article-row__img { margin-right: 0; padding-top: 15px; max-width: none; }
  .article-row__img img { max-width: none; width: 350px; border-radius: 5px; }
  .article-row__body { margin-top: 10px; width: 95%; padding-bottom: 10px; }
}
@media screen and (max-width: 500px) {
  .article-row__img { padding-top: 10px; }
  .article-row__img img { width: 250px; }
}

.meta-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink-mute); font-size: 13px; }
.tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--gold-soft); color: var(--gold-deep); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; }

/* Article — portage fidèle de Article.vue : contenu justifié, dates puis tags
   en pied, médias bornés en hauteur. */
.article-page { max-width: 1200px; text-align: justify; }
.article-page article { margin: 5vh 0 64px; }
.article-page .content { font-size: 17px; }
.article-page .content img { width: auto; max-width: 100%; max-height: 45vh; height: auto; margin: 4vh 0; display: block; }
.article-page .content video,
.article-page .content iframe { max-width: 100%; max-height: 50vh; height: auto; }
.article-page .content a { color: var(--gold-deep); }
.article-dates {
  margin-top: 2vh; width: 100%; display: flex; flex-direction: column;
  font-size: 14px; color: var(--ink-soft);
}
.article-dates p { margin: 0; }
.article-tags { display: flex; gap: 5px; flex-wrap: wrap; color: var(--ink); font-weight: bold; }
.article-tags p { margin: 0; }

/* ==== Footer — portage fidèle de Footer_V2.vue ========================== */
.lqx-footer {
  background: var(--ink); color: var(--paper);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 4vw, 52px) 28px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 1; margin-top: 40px;
}
.lqx-footer__grid {
  max-width: 1240px; margin: 0 auto; display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 8px;
}
.lqx-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.lqx-footer__wordmark {
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  width: fit-content; text-decoration: none;
}
.lqx-footer__tagline { font-size: 13px; line-height: 1.6; color: var(--gold); max-width: 260px; margin: 0; }
.lqx-footer__newsletter { margin-top: 4px; max-width: 320px; }
.lqx-footer__newsletter .newsletter { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0; }
.lqx-footer__newsletter input {
  color: var(--paper); width: 100%; height: 42px; outline: none;
  background-color: rgba(251, 249, 244, 0.08); border: 0; border-radius: 20px;
  padding-left: 10px; font-size: 15px; text-align: center; font-family: inherit;
}
.lqx-footer__newsletter input::placeholder { color: rgba(251, 249, 244, 0.45); }
.lqx-footer__newsletter .sub-btn {
  width: 100%; font-size: 15px; font-weight: 600; height: 44px; border: none;
  border-radius: 22px; background: var(--gold); color: #fff; cursor: pointer;
  transition: background 0.15s ease; font-family: inherit;
}
.lqx-footer__newsletter .sub-btn:hover { background: var(--gold-deep); }
.lqx-footer__newsletter .sub-btn:disabled { opacity: 0.7; cursor: default; }
.lqx-footer__newsletter .newsletter-msg { font-size: 13px; color: var(--gold); margin: 0; }
.lqx-footer__col { display: flex; flex-direction: column; gap: 10px; }
.lqx-footer__col-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold); margin-bottom: 4px;
}
.lqx-footer__col a {
  display: block; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px;
  color: rgba(251, 249, 244, 0.55); padding: 3px 0; cursor: pointer;
  transition: color 0.15s ease; text-decoration: none;
}
.lqx-footer__col a:hover { color: var(--gold); }
.lqx-footer__partners { display: flex; gap: 14px; margin-top: 12px; align-items: center; }
.lqx-footer__partners img { filter: brightness(0) invert(1); opacity: 0.5; transition: opacity 0.2s ease; }
.lqx-footer__partners a:hover img { opacity: 1; }
.lqx-footer__bottom {
  max-width: 1240px; margin: 0 auto; padding-top: 6px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.lqx-footer__copy { font-size: 12.5px; color: rgba(251, 249, 244, 0.45); }
.lqx-footer__socials { display: flex; gap: 14px; align-items: center; }
.lqx-footer__socials a {
  color: rgba(251, 249, 244, 0.55); display: inline-flex; transition: color 0.15s ease;
}
.lqx-footer__socials a:hover { color: var(--gold); }
.lqx-footer__socials svg { width: 18px; height: 18px; }
@media screen and (max-width: 900px) {
  .lqx-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media screen and (max-width: 520px) {
  .lqx-footer__grid { grid-template-columns: 1fr; }
}

/* ---- Bannière de consentement (interne, remplace Cookiebot) — chargée partout */
.lqx-consent { position: fixed; inset: auto 16px 16px 16px; z-index: 10000; display: flex; justify-content: center; }
.lqx-consent__box { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 44px -26px rgba(23, 20, 15, 0.30); padding: 18px 22px; max-width: 560px; }
.lqx-consent__box strong { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; }
.lqx-consent__box p { margin: 8px 0 14px; color: var(--ink-soft); font-size: 14px; }
.lqx-consent__box a { color: var(--gold-deep); }
.lqx-consent__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lqx-consent__actions button { font: inherit; border-radius: 999px; padding: 9px 20px; cursor: pointer; font-weight: 600; }
.lqx-consent__accept { background: var(--gold); color: #fff; border: none; }
.lqx-consent__accept:hover { background: var(--gold-deep); }
.lqx-consent__deny { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.lqx-consent__deny:hover { color: var(--ink); }

/* ==== Vérification d'âge — portage majorVerification.vue (el-dialog) ===== */
body.lqx-major-open > header,
body.lqx-major-open > main,
body.lqx-major-open > footer { filter: blur(10px); pointer-events: none; user-select: none; }
body.lqx-major-open { overflow: hidden; }
.lqx-major {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(23, 20, 15, 0.35); padding: 16px;
}
/* display:flex écraserait l'attribut hidden : fermée = vraiment retirée du flux */
.lqx-major[hidden] { display: none; }
.lqx-major__dialog {
  background: var(--paper); border-radius: 8px; box-shadow: var(--shadow);
  width: 100%; max-width: 640px; padding: 34px 28px;
}
.major-dialog h1 {
  color: var(--ink); max-width: 506px; text-align: center;
  margin: 0 auto 20px; font-size: 20px;
}
.major-dialog p { font-size: 16px; font-weight: 500; margin: auto; text-align: center; }
.major-dialog-actions {
  display: flex; justify-content: space-between; margin: 15px 23px 0;
}
.major-dialog-actions .generic-btn {
  width: 271px; margin: 8px; height: 44px; border: none; border-radius: 22px;
  background: var(--gold); color: #fff; font: inherit; font-weight: 600;
  font-size: 15px; cursor: pointer;
}
.major-dialog-actions .generic-btn:hover { background: var(--gold-deep); }
.major-dialog-actions .nok { background: var(--surface); }
.major-dialog-actions .nok:hover { background: var(--line); }
.major-dialog-actions .nok a { color: var(--ink); text-decoration: none; display: block; }
.major-dialog-conditions { display: flex; justify-content: center; margin-top: 20px; }
.major-dialog-conditions p { font-size: 14px; font-weight: 500; max-width: 450px; }
.major-dialog-conditions a { font-weight: 700; color: var(--ink); }
@media screen and (max-width: 500px) {
  .major-dialog-actions { flex-wrap: wrap; justify-content: center !important; }
  .major-dialog-actions button { margin-bottom: 10px; }
}
