/* Kravyos Studio - feuille de style globale.
   Palette monochrome sombre + accent rouge. */

:root {
  --bg: #060507;
  --surface: #100d11;
  --surface-2: #16121a;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f4f1f3;
  --muted: #8f8a93;
  --accent: #c0202a;
  --accent-2: #b91c1c;
  --blood: #ff2d3f;
  --glow: rgba(193, 32, 42, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(160deg, rgba(0,0,0,1) 0%, rgba(12,8,10,0.94) 45%, rgba(24,6,8,0.96) 70%, rgba(239,68,68,0.02) 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  background-size: cover;
  line-height: 1.6;
}

main { flex: 1 0 auto; }

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================ Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--line);
}
.site-header .container { padding-left: 0; }
.site-header .divider { height: 1px; background: var(--line); }
.site-header.shadow { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand .wordmark {
  font-weight: 700;
  letter-spacing: 0.20em;
  font-size: 20px;
  opacity: 0.95;
  font-family: 'Cinzel', serif;
}
.logo { display: grid; place-items: center; }
.logo-img { width: 80px; height: 80px; object-fit: contain; transition: transform 160ms ease; }

.primary { justify-self: center; display: flex; align-items: center; }
.primary ul { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.primary a {
  position: relative;
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 16px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .12s ease;
  font-family: 'Cinzel', serif;
}
.primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -12px;
  height: 2px;
  background: linear-gradient(90deg, transparent 20%, var(--accent) 50%, transparent 80%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.primary a:hover { color: var(--accent); background: rgba(185,28,28,0.06); border-color: rgba(185,28,28,0.12); }
.primary a:hover::after, .primary a.active::after { transform: scaleX(1); }
.primary a.active {
  background: linear-gradient(90deg, rgba(185,28,28,0.12), rgba(185,28,28,0.06));
  border-color: rgba(185,28,28,0.18);
  color: var(--accent);
}

.auth { display: flex; gap: 20px; align-items: center; justify-self: end; white-space: nowrap; }
.auth .user-label { color: var(--accent); font-size: 14px; font-weight: 700; margin-right: 6px; }
.auth a { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.15s; font-family: 'Cinzel', serif; }
.auth a:hover { color: var(--accent); }
.auth .lang-dd { flex-shrink: 0; }

.lang-dd { position: relative; }
.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lang-dd-btn img { width: 18px; height: 12px; border-radius: 2px; object-fit: cover; }
.lang-dd-btn i { font-size: 8px; color: var(--muted); transition: transform 0.15s; }
.lang-dd-btn:hover, .lang-dd.open .lang-dd-btn { border-color: var(--accent); color: var(--accent); }
.lang-dd.open .lang-dd-btn i { transform: rotate(180deg); }
.lang-dd-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(16,13,17,0.97);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  z-index: 60;
  display: none;
}
.lang-dd.open .lang-dd-menu { display: block; }
.lang-dd.drop-up .lang-dd-menu { top: auto; bottom: calc(100% + 6px); }
.lang-dd-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.lang-dd-menu img { width: 20px; height: 13px; border-radius: 2px; object-fit: cover; }
.lang-dd-menu a:hover { background: rgba(192,32,42,0.1); color: var(--blood); }
.lang-dd-menu a.active { background: rgba(192,32,42,0.14); color: var(--blood); }
/* Telephone : menu des langues centre au milieu de l'ecran, fond assombri. */
.lang-dd-menu.is-centered {
  display: block;
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(280px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 10px;
  border-radius: 14px;
  z-index: 1000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
}
.lang-dd-menu.is-centered a { padding: 12px 14px; font-size: 15px; }
.lang-dd-menu.is-centered img { width: 24px; height: 16px; }
.lang-dd-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.6); }
/* Menu des langues facon gothique : cadre rouge a coins coupes, en-tete "Langue du site", coche sur la langue active. */
.lang-dd-menu {
  --lc: 12px;
  min-width: 300px;
  padding: 14px 16px 12px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  box-shadow: none;
  isolation: isolate;
  clip-path: polygon(var(--lc) 0, calc(100% - var(--lc)) 0, 100% var(--lc), 100% calc(100% - var(--lc)), calc(100% - var(--lc)) 100%, var(--lc) 100%, 0 calc(100% - var(--lc)), 0 var(--lc));
}
.lang-dd-menu::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(180deg, #230810 0%, #0f0507 100%);
  clip-path: polygon(calc(var(--lc) - 0.5px) 0, calc(100% - var(--lc) + 0.5px) 0, 100% calc(var(--lc) - 0.5px), 100% calc(100% - var(--lc) + 0.5px), calc(100% - var(--lc) + 0.5px) 100%, calc(var(--lc) - 0.5px) 100%, 0 calc(100% - var(--lc) + 0.5px), 0 calc(var(--lc) - 0.5px));
}
.lang-dd-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 0 12px;
  color: var(--accent);
}
.lang-dd-fleur { width: 22px; height: 22px; }
.lang-dd-title {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #e8dfe0;
}
.lang-dd-title::before, .lang-dd-title::after { content: ""; flex: 1; height: 1px; background: rgba(196, 32, 44, 0.7); }
.lang-dd-menu li + li:not(:nth-child(2)) { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.lang-dd-menu a {
  gap: 20px;
  margin: 2px 0;
  padding: 12px 18px;
  border-radius: 2px;
  border-left: 2px solid transparent;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eee6e7;
}
.lang-dd-menu img { width: 32px; height: 21px; border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.lang-dd-menu a:hover { background: linear-gradient(90deg, rgba(150, 20, 30, 0.35), rgba(60, 8, 12, 0.25)); border-left-color: var(--blood); color: #fff; }
.lang-dd-menu a.active { background: linear-gradient(90deg, rgba(120, 15, 24, 0.5), rgba(60, 8, 12, 0.35)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); color: #fff; }
.lang-dd-check { margin-left: auto; font-size: 17px; color: var(--blood); }
.lang-dd-menu.is-centered { width: min(320px, calc(100vw - 32px)); min-width: 0; padding: 14px 12px 10px; border-radius: 0; }
.lang-dd-menu.is-centered a { padding: 12px 14px; font-size: 15px; }
.lang-dd-menu.is-centered img { width: 30px; height: 20px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Raccourci de connexion visible dans la barre mobile (masque sur desktop). */
.quick-login { display: none; }

/* ============================================================ Hero */

.hero { padding: 24px 0 12px; text-align: center; }
.hero-title { margin: 0; font-size: 48px; line-height: 1.05; font-family: 'Noto Serif', serif; font-weight: 700; }
.hero-tagline {
  margin: 12px auto 0;
  max-width: 920px;
  font-size: 20px;
  color: var(--muted);
  font-family: 'Noto Serif', serif;
  font-weight: 400;
}

/* ============================================================ Sections / titres */

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; padding-bottom: 96px; }

h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lead { color: var(--muted); margin: 6px 0 22px; }

/* Page d'erreur (404) */
.error-page { text-align: center; padding: 48px 0 72px; }
.error-page .error-code {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(96px, 20vw, 200px);
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-page h2 { display: inline-block; }
.error-page .lead { max-width: 520px; margin: 6px auto 0; }
.error-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.btn-alt-inline { color: var(--muted); text-decoration: none; font-weight: 600; transition: color .15s; }
.btn-alt-inline:hover { color: var(--accent); }

/* ============================================================ Listes (home / news / projects) */

.linear { display: grid; gap: 22px; }
.slice {
  border: 1px solid rgba(180,180,180,0.35);
  border-radius: 16px;
  background: rgba(22,22,30,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.slice:hover { border-color: rgba(180,180,180,0.55); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.slice-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.slice h3 { margin: 0; font-size: 22px; font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 0.06em; }
.home .slice h3 {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.items { list-style: none; padding: 6px 8px 12px; margin: 0; display: grid; gap: 8px; }
.items li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 8px;
  border-radius: 8px;
  transition: transform 220ms cubic-bezier(.22,.9,.16,1), box-shadow 220ms ease, background-color 180ms ease;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.items li:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.6);
  background: rgba(255,255,255,0.03);
}
.items li[role="link"] { cursor: pointer; }
.items li[role="link"]:focus { outline: none; box-shadow: 0 10px 30px rgba(239,68,68,0.14); border-radius: 10px; transform: translateY(-6px); }
.items li .content { flex: 1; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.items .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.items .title { color: var(--text); text-decoration: none; font-weight: 600; display: block; width: 100%; margin-bottom: 6px; }
.items .title:hover { color: var(--accent); }
.home .slice .items .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.items .excerpt {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  margin: 0;
  text-align: left;
  width: 100%;
  line-height: 1.5;
}

.thumb {
  width: 120px; height: 80px;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
  margin-right: 12px;
  transition: transform 220ms cubic-bezier(.22,.9,.16,1), box-shadow 220ms ease;
}
.items li:hover .thumb { transform: scale(1.04); box-shadow: 0 8px 18px rgba(0,0,0,0.5); }

.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; }
.pageinfo { color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .items li, .items li .thumb { transition: none !important; transform: none !important; }
}

/* Floutage des articles pour les visiteurs non connectes */
.not-logged .items li.blurred img,
.not-logged .items li.blurred video,
.not-logged .items li.blurred .title,
.not-logged .items li.blurred .excerpt .excerpt-blurred {
  -webkit-filter: blur(11px);
  filter: blur(11px);
  transition: filter .18s ease;
}
.excerpt .excerpt-visible { filter: none; }
.excerpt .excerpt-blurred { display: inline-block; }
.not-logged .items li.blurred { position: relative; overflow: hidden; opacity: 0.96; cursor: pointer; }
.not-logged .items li.blurred .no-blur { -webkit-filter: none !important; filter: none !important; }

/* Voile "contenu membres" : couvre toute la carte, revele au survol */
.lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(160deg, rgba(6,5,7,0.85) 0%, rgba(26,7,10,0.82) 60%, rgba(192,32,42,0.28) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}
.lock-overlay i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--blood);
  background: rgba(192,32,42,0.14);
  border: 1px solid rgba(192,32,42,0.5);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(192,32,42,0.3);
}
.lock-overlay span {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.blurred:hover .lock-overlay, .blurred:focus-within .lock-overlay { opacity: 1; }
@media (hover: none) {
  .lock-overlay { opacity: 1; }
}

/* ============================================================ Panneaux / boutons / formulaires */

.panel {
  width: 100%;
  background: rgba(22,22,30,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(180,180,180,0.35);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.btn {
  width: fit-content;
  color: #fff;
  background: var(--accent);
  border: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(185,28,28,0.35); }
.btn.tiny { padding: 6px 10px; font-size: 12px; }
.btn.small { padding: 6px 10px; font-size: 13px; }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(26,26,36,0.8);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { font-family: inherit; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(185,28,28,0.25); }
select option { background-color: var(--surface-2); color: var(--text); }

.contact-form { margin-top: 18px; display: grid; gap: 16px; }
.contact-form textarea { resize: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.block { display: block; }
.char-counter { color: var(--muted); font-size: 12px; margin-top: 6px; text-align: right; }

.quick-contact { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.quick-contact input { flex: 1; }

/* Logo sous le formulaire de contact, aligne a droite */
.contact-logo { display: flex; justify-content: flex-end; margin-top: 36px; }
.contact-logo img { height: 220px; width: auto; max-width: 100%; object-fit: contain; opacity: 0.9; }

/* ============================================================ Reseaux sociaux */

.site-social-row { max-width: 1200px; margin: 18px auto 8px; padding: 0 24px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.social-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: #c9c6cd;
  text-decoration: none;
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.social-btn:hover {
  transform: translateY(-3px);
  color: var(--accent);
  border-color: rgba(193,32,42,0.55);
  background: rgba(193,32,42,0.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.5), 0 0 16px rgba(193,32,42,0.25);
}
.social-btn svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.social-btn img { width: 22px; height: 22px; }
.social-btn i { font-size: 19px; line-height: 1; }
.social-btn .social-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.footer-social { display: flex; justify-content: center; margin-bottom: 14px; }
.footer-social .social-buttons { justify-content: center; }

/* ============================================================ Pages legales / detail */

.prose { max-width: 820px; color: var(--muted); }
.prose h2 { font-size: 32px; }
.prose h3 { color: var(--text); font-family: 'Cinzel', serif; font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { line-height: 1.7; }
.prose a { color: var(--accent); }
.rt-img { max-width: 100%; height: auto; border-radius: 10px; margin: 14px 0; }
.rt-video { display: block; max-width: 100%; border-radius: 10px; margin: 14px 0; background: var(--surface); }
.prose a .rt-img { transition: opacity .15s ease, box-shadow .2s ease; }
.prose a:hover .rt-img { opacity: 0.92; box-shadow: 0 8px 26px rgba(193,32,42,0.25); }

.detail-image { width: 100%; height: 420px; object-fit: contain; background: var(--surface); border-radius: 8px; margin-bottom: 12px; }

/* Carrousel d'images */
.carousel { position: relative; margin-bottom: 16px; }
.carousel-viewport { overflow: hidden; border-radius: 8px; background: var(--surface); }
.carousel-track { display: flex; transition: transform .35s ease; }
.carousel-slide { flex: 0 0 100%; padding: 0; border: none; background: none; cursor: zoom-in; }
.carousel-slide img, .carousel-slide video { width: 100%; height: 440px; object-fit: contain; display: block; background: var(--surface); }
.carousel-slide.is-video { cursor: default; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(0,0,0,0.55); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-nav:hover { background: var(--accent); border-color: var(--accent); }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.25); cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--accent); }

/* Lightbox plein ecran */
.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lightbox .lb-media { display: flex; align-items: center; justify-content: center; }
.lightbox .lb-close { position: absolute; top: 16px; right: 22px; font-size: 34px; line-height: 1; color: #fff; background: none; border: none; cursor: pointer; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(0,0,0,0.5); color: #fff;
  font-size: 32px; cursor: pointer;
}
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox .lb-counter { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }
@media (max-width: 640px) {
  .carousel-slide img, .carousel-slide video { height: 260px; }
}

/* Likes + commentaires (pages detail) */
.like-bar { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: border-color .15s, background .15s, transform .1s;
}
.like-btn:hover { border-color: var(--accent); }
.like-btn:active { transform: scale(0.96); }
.like-btn.liked { background: rgba(185,28,28,0.12); border-color: var(--accent); color: var(--accent); }
.like-btn .like-count { font-variant-numeric: tabular-nums; }

.comments-section { margin-top: 40px; max-width: 820px; }
.comments-section h3 { font-family: 'Cinzel', serif; font-size: 22px; margin: 0 0 16px; }
.comment-form { display: grid; gap: 10px; margin-bottom: 24px; }
.comment-form textarea { min-height: 90px; resize: vertical; }
.comments-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.comment {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(22,22,30,0.5);
}
.comment .comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment .comment-author { font-weight: 700; }
.comment .comment-author.is-admin { color: var(--accent); }
.comment .admin-badge { display: inline-block; background: rgba(185,28,28,0.12); color: var(--accent); font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.comment .comment-date { color: var(--muted); font-size: 12px; }
.comment .comment-body { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ============================================================ Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(10,10,15,0.5);
}
.footer-copyright { text-align: center; margin: 0; }
.footer-links { margin-top: 8px; text-align: center; font-size: 0.95rem; }
.footer-links a { color: var(--muted); margin: 0 6px; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* ============================================================ Widget compteur d'inscrits */

.status-widget {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 9999;
  min-width: 190px;
  max-width: 320px;
  transition: box-shadow 180ms ease, padding 160ms ease;
}
/* Cadre rouge a coins coupes, dans le style des pages projet / actualites. */
.status-widget {
  --c: 10px;
  padding: 1px;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
  transition: transform .15s ease, filter .2s ease;
}
.status-widget::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 7, 11, 0.97) 0%, rgba(10, 5, 7, 0.97) 100%);
  clip-path: polygon(calc(var(--c) - 0.5px) 0, calc(100% - var(--c) + 0.5px) 0, 100% calc(var(--c) - 0.5px), 100% calc(100% - var(--c) + 0.5px), calc(100% - var(--c) + 0.5px) 100%, calc(var(--c) - 0.5px) 100%, 0 calc(100% - var(--c) + 0.5px), 0 calc(var(--c) - 0.5px));
}
.status-widget { isolation: isolate; }
.status-widget:hover { transform: translateY(-2px); filter: drop-shadow(0 0 16px rgba(196, 32, 44, 0.45)) brightness(1.08); }
.status-widget .sw-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: 0;
  color: #f1e8e9;
  cursor: pointer;
  text-align: left;
}
.status-widget .sw-icon { font-size: 14px; color: var(--blood); }
.status-widget .sw-title { flex: 1; font-family: 'Cinzel', serif; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #f1e8e9; white-space: nowrap; }
.status-widget .sw-chevron { font-size: 11px; color: #d8cfd1; transition: transform .2s ease; }
.status-widget .sw-header:hover .sw-title, .status-widget .sw-header:hover .sw-chevron { color: var(--blood); }
.status-widget .sw-header:focus-visible { outline: 1px solid var(--blood); outline-offset: -4px; }
.status-widget .sw-body { padding: 0 16px 12px; text-align: center; }
.status-widget .sw-ornament { display: flex; align-items: center; gap: 8px; color: #c4202c; margin: 0 0 4px; }
.status-widget .sw-ornament span { flex: 1; height: 1px; background: rgba(196, 32, 44, 0.55); }
.status-widget .sw-fleur { width: 16px; height: 16px; }
.status-widget .sw-count { font-family: 'Cinzel', serif; font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--blood); text-shadow: 0 0 14px rgba(255, 45, 63, 0.45); }
.status-widget.collapsed .sw-chevron { transform: rotate(180deg); }
.status-widget.collapsed .sw-body { display: none; }

@media (prefers-reduced-motion: reduce) {
  .status-widget { transition: none !important; }
}

/* ============================================================ Pages auth (connexion / inscription) */

.auth-container { max-width: 420px; margin: 80px auto; padding: 1.5rem; }
.auth-form { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; }
.auth-title {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-subtitle { color: var(--muted); text-align: center; margin-bottom: 1.5rem; font-size: 0.95rem; }
.auth-group { margin-bottom: 1.25rem; }
.auth-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-group input { background: var(--surface-2); border-radius: 8px; }
.auth-hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }
.btn-auth {
  width: 100%;
  padding: 0.875rem;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-auth:hover { opacity: 0.9; }
.btn-auth:active { transform: scale(0.98); }
.btn-auth:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; margin: 1.5rem 0; gap: 1rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { color: var(--muted); font-size: 0.85rem; }
.btn-alt {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.btn-alt:hover { border-color: var(--accent); background: rgba(185,28,28,0.06); }
.auth-footer { text-align: center; margin-top: 1.25rem; }
.auth-footer a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.auth-footer a:hover { color: var(--accent); }
.auth-alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.auth-alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.4); color: #4ade80; }
.auth-alert.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.4); color: #f87171; }

/* Alerte generique (helper RE.form) */
.re-alert { padding: 0.75rem 1rem; border-radius: 8px; margin: 0 0 1rem; font-size: 0.9rem; display: none; }
.re-alert.is-visible { display: block; }
.re-alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.4); color: #4ade80; }
.re-alert.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.4); color: #f87171; }

/* Widget hCaptcha */
.captcha-field { margin: 0 0 1rem; min-height: 78px; }
.auth-form .captcha-field { display: flex; justify-content: center; }

/* ============================================================================
   DIRECTION ARTISTIQUE 2026 - studio de jeux horreur (override)
   ============================================================================ */

body {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(193,32,42,0.10), transparent 55%),
    radial-gradient(80% 50% at 85% 8%, rgba(193,32,42,0.06), transparent 60%),
    linear-gradient(180deg, #08070a 0%, #060507 60%, #050406 100%);
  background-color: var(--bg);
  background-attachment: fixed;
}

/* --- Header / nav --- */
.site-header { background: rgba(8,7,10,0.78); border-bottom: 1px solid var(--line); }
.site-header.shadow { box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.nav { height: 66px; }
.logo-img { width: 46px; height: 46px; }
.brand .wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 17px;
}
.brand .wordmark::after { content: ""; }
.primary a {
  font-family: 'Cinzel', serif !important;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 14px;
  font-weight: 500;
}
.auth a { font-family: 'Cinzel', serif !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.auth .user-label { font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Titres --- */
h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: clamp(28px, 4vw, 40px);
}

/* --- Boutons --- */
.btn, .btn-glow, .btn-ghost {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 26px;
  font-size: 14px;
}
.btn-glow {
  display: inline-block;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), #8f161d);
  border: 1px solid rgba(255,80,90,0.35);
  box-shadow: 0 0 0 rgba(193,32,42,0), 0 8px 24px rgba(193,32,42,0.25);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 0 28px var(--glow), 0 12px 30px rgba(193,32,42,0.4); filter: brightness(1.08); }
.btn-ghost {
  display: inline-block;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(193,32,42,0.06); }

/* --- Hero cinematique --- */
.hero-cine {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Slideshow de fond : image 1 ~10s, fondu vers image 2 ~10s, en boucle. */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  transform-origin: center;
  will-change: transform, opacity;
  opacity: 0;
}
/* Un plan peut etre une video de fond (muette, en boucle). */
video.hero-slide { width: 100%; height: 100%; object-fit: cover; }
/* Diaporama a 3 plans : fondu enchaine, ~8s chacun (cycle 24s). Les decalages
   negatifs (-16s, -8s) repartissent les plans et evitent tout clignotement au
   premier cycle. hero-slide-1 garde opacity:1 en repli si l'animation n'a pas lieu. */
.hero-slide-1 { opacity: 1; animation: heroShow 24s ease-in-out infinite, heroDrift 26s ease-in-out infinite alternate; }
.hero-slide-2 { animation: heroShow 24s ease-in-out infinite -16s, heroDrift 22s ease-in-out infinite alternate; }
.hero-slide-3 { animation: heroShow 24s ease-in-out infinite -8s, heroDrift 28s ease-in-out infinite alternate; }
@keyframes heroShow {
  0%     { opacity: 1; }
  28%    { opacity: 1; }
  33.34% { opacity: 0; }
  94.66% { opacity: 0; }
  100%   { opacity: 1; }
}

/* Voile sombre + rouge par-dessus l'image (lisibilite du titre) */
.hero-cine-bg {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% -8%, rgba(193,32,42,0.30), transparent 54%),
    radial-gradient(72% 66% at 50% 50%, rgba(6,5,7,0.42), transparent 80%),
    linear-gradient(180deg, rgba(6,5,7,0.58) 0%, rgba(6,5,7,0.12) 40%, rgba(6,5,7,0.40) 70%, rgba(5,4,6,0.93) 100%);
}
.hero-cine-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}
.hero-cine::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 240px 70px rgba(0,0,0,0.92);
  background: linear-gradient(180deg, rgba(6,5,7,0.5) 0%, transparent 25%, transparent 70%, rgba(6,5,7,0.85) 100%);
}
.hero-cine-inner { position: relative; z-index: 3; text-align: center; padding: 90px 24px; width: 100%; }
.hero-kicker {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 6px;
  padding-left: 0.42em;
}
.hero-mega {
  position: relative;
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(48px, 16vw, 230px);
  line-height: 0.95;
  letter-spacing: 0.012em;
  margin: 8px 0 18px;
  /* Metal brosse : corrosion (multiply) par-dessus un degrade chrome gris */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='e'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='gamma' amplitude='1.15' exponent='0.55'/%3E%3CfeFuncG type='gamma' amplitude='1.15' exponent='0.55'/%3E%3CfeFuncB type='gamma' amplitude='1.15' exponent='0.55'/%3E%3CfeFuncA type='discrete' tableValues='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23e)'/%3E%3C/svg%3E") repeat,
    linear-gradient(180deg, #f7f8f9 0%, #b7bABF 16%, #74787d 37%, #eceef0 50%, #7d8086 60%, #494c51 82%, #2a2c30 100%);
  background-position: 0 0, 50% 30%;
  background-size: 190px 190px, 100% 230%;
  background-blend-mode: multiply, normal;
  animation: heroMetal 12s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter:
    drop-shadow(0 1px 0 rgba(0,0,0,0.55))
    drop-shadow(0 0 2px rgba(0,0,0,0.6))
    drop-shadow(0 10px 26px rgba(0,0,0,0.9));
}
/* La lumiere se promene sur le metal (le reflet/sheen se deplace) */
@keyframes heroMetal {
  0%, 100% { background-position: 0 0, 50% 32%; }
  50%      { background-position: 8px 6px, 50% 68%; }
}
/* Reflet de lumiere qui balaie le metal (effet chrome anime) */
.hero-mega::before {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,0.12) 47%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.12) 53%, transparent 62%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-text-stroke: 0;
  mix-blend-mode: screen;
  animation: heroShine 8.5s ease-in-out infinite;
}
/* Rayures / griffures projetees sur les lettres */
.hero-mega::after {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='160'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.012 0.5' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E") repeat;
  background-size: 320px 160px;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0.5;
  mix-blend-mode: soft-light;
}
@keyframes heroShine {
  0%       { background-position: 165% 0; }
  50%, 100%{ background-position: -65% 0; }
}
@keyframes heroDrift {
  from { transform: scale(1.08) translate(2.5%, 1.6%); }
  to   { transform: scale(1.24) translate(-2.5%, -1.8%); }
}
.hero-sub { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
/* Note : les animations du hero (reflet, sheen metal, zoom du fond) jouent meme
   si l'OS demande "reduire les animations", a la demande explicite du proprietaire. */

/* --- Projet a la une --- */
.section-featured { padding-top: 64px; }
.featured { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; }
.featured-media {
  display: block; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); position: relative; aspect-ratio: 16 / 10; background: var(--surface);
}
.featured-media img, .featured-media video { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.featured:hover .featured-media img, .featured:hover .featured-media video { transform: scale(1.04); }
.featured-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(193,32,42,0.18)); }
.eyebrow { font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 0.3em; font-size: 12px; color: var(--accent); }
.featured-title { font-family: 'Cinzel', serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 8px 0 14px; color: var(--text); }
.featured-excerpt { color: var(--muted); line-height: 1.7; margin: 0 0 22px; }

/* --- Feed (actus / projets) --- */
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.feed-head h2 { margin: 0; }
.see-all { font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.see-all:hover { color: var(--blood); }
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 20px; }
.feed-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(22,18,26,0.7), rgba(12,10,14,0.7));
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feed-card:hover { transform: translateY(-6px); border-color: rgba(193,32,42,0.5); box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 24px rgba(193,32,42,0.12); }
.feed-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.feed-media img, .feed-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feed-card:hover .feed-media img, .feed-card:hover .feed-media video { transform: scale(1.06); }
.feed-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,5,7,0.85)); }
.feed-tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: 'Cinzel', serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; padding: 4px 9px; border-radius: 6px; background: rgba(193,32,42,0.9); color: #fff; }
.feed-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feed-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.feed-title { font-family: 'Cinzel', serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; font-size: 18px; line-height: 1.25; color: var(--text); text-decoration: none; }
.feed-title:hover { color: var(--accent); }
.feed-excerpt { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }

/* Floutage des cartes pour visiteurs non connectes (contenu "membres") */
.not-logged .feed-card.blurred .feed-media img,
.not-logged .feed-card.blurred .feed-media video,
.not-logged .feed-card.blurred .feed-title,
.not-logged .feed-card.blurred .feed-excerpt,
.not-logged .featured.blurred .featured-media img,
.not-logged .featured.blurred .featured-media video { -webkit-filter: blur(12px); filter: blur(12px); }
.not-logged .feed-card.blurred, .not-logged .featured.blurred { cursor: pointer; }

/* --- Contact strip --- */
.contact-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.contact-strip-inner h2 { margin: 0 0 6px; }
.contact-strip .quick-contact { padding: 0; flex: 1; min-width: 280px; max-width: 520px; }

/* ============================================================ Responsive */

@media (max-width: 900px) {
  .site-header .container { padding-left: 16px; }
  .nav {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "brand quick toggle"
      "menu menu menu"
      "actions actions actions";
    height: auto;
    padding: 10px 0;
    column-gap: 10px;
  }
  .brand { grid-area: brand; min-width: 0; }
  .brand .wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-toggle { display: inline-flex; grid-area: toggle; flex: 0 0 auto; }

  /* Bouton "Se connecter" toujours visible dans la barre. */
  .quick-login {
    grid-area: quick;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(192, 32, 42, 0.45);
    border-radius: 10px;
    color: var(--accent);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 12px;
    white-space: nowrap;
  }
  .quick-login:hover { background: rgba(192, 32, 42, 0.08); }

  /* Menu deroulant : nav + reste de l'auth, reveles par le hamburger. */
  .primary { grid-area: menu; justify-self: stretch; display: none; }
  .primary.open { display: block; margin-top: 10px; border-top: 1px solid var(--line); }
  .primary ul { flex-direction: column; gap: 4px; padding: 10px 0; }
  .primary a { display: block; padding: 12px 14px; }
  .primary a::after { content: none; }

  .auth {
    grid-area: actions;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    white-space: normal;
    text-align: left;
  }
  .primary.open ~ .auth { display: flex; padding-bottom: 6px; }
  .auth a, .auth .user-label {
    display: block;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: left;
  }
  .auth a:hover { background: rgba(192, 32, 42, 0.06); }
  .auth .login-link { display: none; }
  .auth .lang-dd { align-self: flex-start; margin-top: 4px; }

  .row { grid-template-columns: 1fr; }
  .linear { gap: 16px; }
  .items li:hover { transform: translateY(-3px); }
  .status-widget { right: 12px; bottom: 12px; min-width: 140px; }
}

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .hero-cine { min-height: 78vh; }
  .contact-strip-inner { flex-direction: column; align-items: stretch; }
}

@media (max-width: 540px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .section:last-of-type { padding-bottom: 64px; }
  .brand .wordmark { font-size: 14px; letter-spacing: 0.14em; }
  .hero-cine { min-height: 70vh; }
  .hero-cine-inner { padding: 64px 16px; }
  .hero-sub { font-size: 16px; }
  .hero-cta { gap: 10px; }
  .thumb { width: 92px; height: 64px; margin-right: 8px; }
  .items li { gap: 10px; padding: 8px 6px; }
  .detail-image { height: 240px; }
  .carousel-slide img, .carousel-slide video { height: 220px; }
  .carousel-nav { width: 36px; height: 36px; font-size: 20px; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .lightbox img, .lightbox video { max-width: 96vw; }
  .lightbox .lb-nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox .lb-prev { left: 10px; }
  .lightbox .lb-next { right: 10px; }
  .contact-logo img { height: 130px; }
  .quick-contact { flex-wrap: wrap; }
  .contact-strip .quick-contact { min-width: 0; }
  .status-widget { right: 10px; bottom: 10px; min-width: 0; max-width: calc(100vw - 20px); }

  /* Listes : laisse les colonnes flex retrecir (sinon le texte nowrap deborde). */
  .items li, .items li .content { min-width: 0; }
  .feed-head { flex-wrap: wrap; gap: 6px 12px; }
  .feed-head h2 { min-width: 0; }
}

/* --- Fiche projet facon vitrine (project_detail.php) --- */
.pv {
  --pv-red: #c4202c;
  --pv-red-soft: rgba(196, 32, 44, 0.55);
  --pv-ink: #efe6e7;
  --pv-serif: 'Cormorant Garamond', 'Noto Serif', Georgia, serif;
  --pv-cut: 16px;
  font-variant-numeric: lining-nums;
}
.pv-hero { padding: 36px 0 28px; }
.pv-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.pv-hero-grid.no-media { grid-template-columns: minmax(0, 640px); }

/* Colonne texte */
.pv-info { min-width: 0; }
.pv-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pv-red);
}
.pv-kicker::after { content: ""; flex: 1; height: 1px; background: var(--pv-red-soft); }
.pv-title {
  margin: 0 0 18px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(42px, 5vw, 80px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #f3e9ea;
  background: linear-gradient(180deg, #ffffff 0%, #f1dfe0 55%, #c9a2a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow-wrap: anywhere;
}
.pv-badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 8px 30px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e3404d;
  border: 1px solid rgba(220, 45, 60, 0.85);
  border-radius: 3px;
  box-shadow: inset 0 0 14px rgba(196, 32, 44, 0.22), 0 0 12px rgba(196, 32, 44, 0.12);
}
.pv-tagline {
  margin: 0 0 22px;
  font-family: var(--pv-serif);
  font-size: 22px;
  line-height: 1.35;
  color: var(--pv-ink);
}
.pv-ornament, .pv-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pv-red);
}
.pv-ornament span, .pv-divider span { flex: 1; height: 1px; background: var(--pv-red-soft); }
.pv-fleur { width: 24px; height: 24px; flex-shrink: 0; }
.pv-ornament { margin: 0 0 22px; }
.pv-meta { margin: 0 0 26px; }
.pv-meta p {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d8cfd1;
}
.pv-dot { display: inline-block; margin: 0 14px; color: var(--muted); }

.pv-download-block { width: min(100%, 364px); margin: 0 0 22px; }
.pv-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 24px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f6eeee;
  background: linear-gradient(180deg, #5c0d14 0%, #3b070c 100%);
  border: 1px solid rgba(230, 55, 70, 0.8);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(196, 32, 44, 0.18), 0 8px 24px rgba(193, 32, 42, 0.22);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.pv-download i { font-size: 18px; }
.pv-download:hover { transform: translateY(-2px); box-shadow: 0 0 28px var(--glow), 0 12px 30px rgba(193, 32, 42, 0.4); filter: brightness(1.12); }
.pv-download:active { transform: translateY(0); }
.pv-download:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; }
.pv-download-meta {
  margin: 10px 0 0;
  text-align: center;
  font-family: var(--pv-serif);
  font-size: 16px;
  color: #cfc5c7;
}
.pv-download-meta .pv-dot { margin: 0 12px; }
.pv-gallery-link {
  display: inline-block;
  padding-bottom: 4px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e8dfe0;
  border-bottom: 1px solid var(--pv-red-soft);
  transition: color .2s ease, border-color .2s ease;
}
.pv-gallery-link span { display: inline-block; margin-left: 8px; transition: transform .2s ease; }
.pv-gallery-link:hover { color: var(--blood); border-color: var(--blood); }
.pv-gallery-link:hover span { transform: translateX(4px); }

/* Cadre a coins coupes : un liseret rouge (fond du cadre) autour du media. */
.pv-frame, .pv-thumb {
  --c: var(--pv-cut);
  position: relative;
  padding: 2px;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.pv-frame-media, .pv-thumb-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #050405;
  clip-path: polygon(calc(var(--c) - 1px) 0, calc(100% - var(--c) + 1px) 0, 100% calc(var(--c) - 1px), 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, calc(var(--c) - 1px) 100%, 0 calc(100% - var(--c) + 1px), 0 calc(var(--c) - 1px));
}
.pv-frame-media::after, .pv-thumb-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}

/* Grande image + compteur */
.pv-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 28px;
  align-items: stretch;
  filter: drop-shadow(0 0 22px rgba(196, 32, 44, 0.22));
}
.pv-frame-media { aspect-ratio: 16 / 10; }
.pv-frame-media img, .pv-frame-media video { width: 100%; height: 100%; object-fit: cover; }
.pv-frame-media img { cursor: zoom-in; }
.pv-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18% 0 6%;
  font-family: var(--pv-serif);
  font-size: 19px;
  color: #d9d0d2;
}
.pv-counter-current { color: var(--blood); }
.pv-counter-line { width: 1px; height: 56px; background: var(--pv-red-soft); }
.pv-counter-line.is-long { flex: 1; height: auto; min-height: 56px; }

/* Apercu du projet */
.pv-preview { padding: 18px 0 40px; }
.pv-divider { margin: 0 0 28px; }
.pv-divider .pv-fleur { width: 30px; height: 30px; }
.pv-preview-title {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0 0 22px;
  padding-left: 16px;
  font-family: 'Cinzel', serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f1e8e9;
}
.pv-preview-title::after { content: ""; flex: 1; height: 1px; background: var(--pv-red-soft); }
.pv-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pv-thumb {
  --c: 12px;
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  opacity: 0.82;
  transition: transform .15s ease, filter .2s ease, opacity .2s ease;
}
.pv-thumb-media { aspect-ratio: 16 / 9; }
.pv-thumb-media img, .pv-thumb-media video { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.pv-thumb:hover { transform: translateY(-2px); opacity: 1; filter: brightness(1.1) drop-shadow(0 0 16px rgba(196, 32, 44, 0.45)); }
.pv-thumb.is-active { opacity: 1; }
.pv-thumb:focus-visible { outline: none; filter: drop-shadow(0 0 0 var(--blood)) drop-shadow(0 0 10px var(--blood)); }

.pv-content { border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .pv-hero-grid { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 32px; }
  .pv-thumbs { gap: 18px; }
}
@media (max-width: 900px) {
  .pv-hero { padding: 20px 0 12px; }
  .pv-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pv-stage { order: -1; grid-template-columns: minmax(0, 1fr); }
  .pv-counter { display: none; }
  .pv-title { font-size: clamp(38px, 11vw, 60px); }
  .pv-download-block { width: 100%; }
  .pv-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-preview-title { padding-left: 0; letter-spacing: 0.2em; }
}
@media (max-width: 540px) {
  .pv { --pv-cut: 12px; }
  .pv-thumbs { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pv-download { gap: 14px; padding: 14px 16px; font-size: 14px; letter-spacing: 0.1em; }
  .pv-tagline { font-size: 20px; }
  .pv-meta p { letter-spacing: 0.12em; }
  .pv-dot { margin: 0 8px; }
}

/* --- Page Actualites facon journal (news.php) : reprend les cadres et ornements de la fiche projet --- */
.nv { padding: 30px 0 34px; }
/* Les titres h2/h3 du site ont un degrade rouge : couleur pleine dans ces pages. */
.pv h2, .pv h3 { background: none; -webkit-text-fill-color: currentColor; }
.nv-head { margin: 0 0 14px; }
.nv-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--pv-red);
}
.nv-kicker-text {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nv-line { flex: 1; height: 1px; background: var(--pv-red-soft); }
.nv-kicker .pv-fleur { width: 26px; height: 26px; }
.nv-title { margin: 0; font-size: clamp(44px, 5vw, 76px); }

/* A la une */
.nv-featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin: 0 0 34px;
}
.nv-featured-media { display: block; filter: drop-shadow(0 0 22px rgba(196, 32, 44, 0.22)); }
.nv-featured-media .pv-frame-media { aspect-ratio: 16 / 5.1; }
.nv-featured-media img, .nv-featured-media video,
.nv-card-media img, .nv-card-media video,
.nv-archive-media img, .nv-archive-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pv-red);
}
.nv-eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--pv-red-soft); }
.nv-eyebrow .pv-dot { margin: 0 8px; color: var(--pv-red); }
.nv-featured-title {
  margin: 0 0 16px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.3;
  text-transform: uppercase;
  color: #f4ecec;
}
.nv-featured-title a, .nv-card-title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.nv-featured-title a:hover, .nv-card-title a:hover { color: var(--blood); }
.nv-featured-body .pv-ornament { margin: 0 0 18px; }
.nv-featured-excerpt {
  margin: 0 0 24px;
  font-family: var(--pv-serif);
  font-size: 20px;
  line-height: 1.4;
  color: var(--pv-ink);
}
.nv-read-btn { display: inline-flex; gap: 22px; padding: 14px 32px; font-size: 15px; letter-spacing: 0.16em; }

/* Dernieres actualites */
.nv-latest { margin: 0 0 30px; }
.nv-latest .pv-preview-title { margin-bottom: 18px; }
.nv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.nv-card { position: relative; min-width: 0; }
.nv-card-media { display: block; opacity: 1; margin: 0 0 14px; }
.nv-card-media .pv-thumb-media { aspect-ratio: 16 / 5.6; }
.nv-card-date {
  margin: 0 0 4px;
  padding: 0 6px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9828d;
}
.nv-card-title {
  margin: 0 0 8px;
  padding: 0 6px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4ecec;
}
.nv-card-excerpt {
  margin: 0 0 12px;
  padding: 0 6px;
  font-family: var(--pv-serif);
  font-size: 18px;
  line-height: 1.35;
  color: #cfc5c7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nv-read {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pv-red);
  transition: color .2s ease;
}
.nv-read::after { content: ""; width: 56px; height: 1px; background: var(--pv-red-soft); transition: width .2s ease; }
.nv-read:hover { color: var(--blood); }
.nv-read:hover::after { width: 80px; }

/* Archives */
.nv-archives {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 12px 6px;
  border-top: 1px solid var(--pv-red-soft);
  border-bottom: 1px solid var(--pv-red-soft);
}
.nv-archives-label {
  margin: 0;
  padding-right: 34px;
  border-right: 2px solid var(--pv-red);
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f1e8e9;
}
.nv-archives-track { flex: 1; min-width: 0; }
.nv-archive { display: flex; align-items: center; gap: 18px; min-width: 0; text-decoration: none; color: #ece3e4; }
.nv-archive[hidden] { display: none; }
.nv-archive-media { --c: 5px; width: 66px; flex-shrink: 0; opacity: 1; }
.nv-archive-media .pv-thumb-media { aspect-ratio: 2 / 1; }
.nv-archive-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.nv-archive:hover .nv-archive-title { color: var(--blood); }
.nv-archive-lock { color: var(--pv-red); font-size: 12px; }
.nv-pager { display: flex; align-items: center; gap: 34px; flex-shrink: 0; }
.nv-pager-count { font-family: var(--pv-serif); font-size: 17px; letter-spacing: 0.1em; color: #d9d0d2; }
.nv-pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  color: #e8dfe0;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
}
.nv-pager-btn:hover:not(:disabled) { color: var(--blood); transform: scale(1.12); }
.nv-pager-btn:disabled { opacity: 0.35; cursor: default; }

/* Contenu membres : seule l'image est floutee avec le cadenas ; date, titre et debut du texte restent lisibles pour donner envie. */
.not-logged .nv-locked img,
.not-logged .nv-locked video { -webkit-filter: blur(9px); filter: blur(9px); }
.nv-locked .lock-overlay { z-index: 5; }

@media (max-width: 1100px) {
  .nv-featured { gap: 28px; }
  .nv-cards { gap: 20px; }
}
@media (max-width: 900px) {
  .nv-featured { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nv-featured-media .pv-frame-media { aspect-ratio: 16 / 8; }
  .nv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-archives { flex-wrap: wrap; gap: 14px 20px; }
  .nv-archives-label { padding-right: 20px; }
  .nv-archives-track { order: 3; flex-basis: 100%; }
  .nv-pager { margin-left: auto; gap: 18px; }
}
@media (max-width: 540px) {
  .nv-kicker-text { font-size: 12px; letter-spacing: 0.16em; }
  .nv-cards { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .nv-read-btn { display: flex; }
  .nv-archive-title { white-space: normal; }
}

/* --- Page Contact (contact.php) : fond illustre, cadre du formulaire, reseaux --- */
.ct-hero { position: relative; overflow: hidden; padding: 38px 0 44px; }
.ct-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('/app/assets/img/contact-fond-v2.jpg') center center / cover no-repeat;
  opacity: 1;
}
.ct-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 5, 7, 0.72) 0%, rgba(6, 5, 7, 0.35) 34%, rgba(6, 5, 7, 0.2) 52%, rgba(6, 5, 7, 0.6) 72%, rgba(6, 5, 7, 0.8) 100%),
    linear-gradient(180deg, rgba(6, 5, 7, 0.5) 0%, rgba(6, 5, 7, 0) 25%, rgba(6, 5, 7, 0) 72%, rgba(6, 5, 7, 0.98) 100%);
}
.ct-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.ct-intro { max-width: 500px; }
.ct-title { margin-bottom: 14px; }
.ct-intro .pv-ornament { margin-bottom: 20px; }
.ct-headline {
  margin: 0 0 12px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4ecec;
}
.ct-lead { margin: 0 0 30px; font-family: var(--pv-serif); font-size: 22px; line-height: 1.3; color: var(--pv-ink); }
.ct-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.ct-reasons li { display: flex; align-items: center; gap: 26px; }
.ct-reason-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  font-size: 30px;
  color: #e3404d;
  background: rgba(20, 5, 8, 0.65);
  border: 1px solid rgba(220, 45, 60, 0.85);
  border-radius: 6px;
  box-shadow: inset 0 0 14px rgba(196, 32, 44, 0.22);
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .25s ease, transform .15s ease;
}
/* Survol : le cadre rouge s eclaircit et s allume, comme les boutons du site. */
.ct-reasons li { transition: transform .15s ease; }
.ct-reasons li:hover .ct-reason-icon, .ct-reasons li:focus-within .ct-reason-icon {
  color: #ff6b75;
  background: linear-gradient(180deg, rgba(120, 14, 24, 0.85), rgba(60, 8, 14, 0.85));
  border-color: rgba(255, 90, 100, 0.95);
  box-shadow: inset 0 0 18px rgba(255, 90, 100, 0.28), 0 0 22px var(--glow);
  transform: translateY(-2px);
}
.ct-reasons li:hover .ct-reason-title, .ct-reasons li:focus-within .ct-reason-title { color: #fff; }
.ct-reasons li:hover, .ct-reasons li:focus-within { transform: translateY(-1px); }
.ct-reason-title { transition: color .2s ease; }
@media (prefers-reduced-motion: reduce) {
  .ct-reasons li:hover, .ct-reasons li:hover .ct-reason-icon { transform: none; }
}
.ct-reason-body { display: flex; flex-direction: column; gap: 2px; }
.ct-reason-title { font-family: 'Cinzel', serif; font-size: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: #f1e8e9; }
.ct-reason-text { font-family: var(--pv-serif); font-size: 18px; line-height: 1.25; color: #d8cfd1; max-width: 230px; }

/* Cadre du formulaire */
.ct-panel {
  --c: 16px;
  position: relative;
  padding: 1px;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.ct-form {
  display: flex;
  flex-direction: column;
  padding: 36px 33px 26px;
  background: linear-gradient(180deg, rgba(22, 6, 9, 0.97) 0%, rgba(12, 5, 7, 0.97) 100%);
  clip-path: polygon(calc(var(--c) - 0.5px) 0, calc(100% - var(--c) + 0.5px) 0, 100% calc(var(--c) - 0.5px), 100% calc(100% - var(--c) + 0.5px), calc(100% - var(--c) + 0.5px) 100%, calc(var(--c) - 0.5px) 100%, 0 calc(100% - var(--c) + 0.5px), 0 calc(var(--c) - 0.5px));
}
.ct-field { display: flex; flex-direction: column; gap: 10px; margin: 0 0 26px; }
.ct-label { font-family: 'Cinzel', serif; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; color: #f1e8e9; }
.ct-form input, .ct-form textarea {
  width: 100%;
  padding: 13px 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: rgba(8, 5, 7, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ct-form textarea { min-height: 140px; resize: vertical; }
.ct-form input::placeholder, .ct-form textarea::placeholder { color: #8f8a93; }
.ct-form input:focus, .ct-form textarea:focus { border-color: rgba(230, 55, 70, 0.9); box-shadow: 0 0 0 1px rgba(230, 55, 70, 0.35), 0 0 18px rgba(196, 32, 44, 0.3); }
.ct-field:has(textarea) { margin-bottom: 20px; }
.ct-counter { margin-top: 4px; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #d8cfd1; }
.ct-submit { width: 100%; gap: 28px; margin: 4px 0 26px; padding: 18px 24px; font-size: 17px; letter-spacing: 0.2em; cursor: pointer; }
.ct-submit i { font-size: 22px; }
.ct-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.ct-note-ornament { width: 80%; margin: 0 auto 12px; }
.ct-note-ornament span { background: linear-gradient(90deg, transparent, var(--pv-red-soft)); }
.ct-note-ornament span:last-child { background: linear-gradient(90deg, var(--pv-red-soft), transparent); }
.ct-note { margin: 0; text-align: center; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: #e8dfe0; }
.ct-form .captcha-field { margin-bottom: 20px; }

/* Retrouvez le studio */
.ct-social { padding: 0 0 26px; }
.ct-social .pv-divider { margin-bottom: 10px; }
.ct-social-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #f1e8e9;
  text-align: center;
}
.ct-social-title::before, .ct-social-title::after { content: ""; flex: 1; height: 1px; background: var(--pv-red-soft); }
.ct-social-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; }
.ct-social-list li { display: flex; align-items: center; min-height: 52px; padding: 0 clamp(18px, 2.6vw, 44px); }
.ct-social-list li + li { border-left: 2px solid var(--pv-red); }
.ct-social-link { display: flex; align-items: center; gap: 16px; white-space: nowrap; text-decoration: none; color: #f1e8e9; transition: color .2s ease, transform .15s ease; }
.ct-social-link:hover { color: var(--blood); transform: translateY(-2px); }
.ct-social-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; font-size: 32px; color: #fff; }
.ct-social-icon svg { width: 34px; height: 34px; fill: currentColor; }
.ct-social-icon img { width: 34px; height: 34px; object-fit: contain; }
.ct-social-link:hover .ct-social-icon { color: var(--blood); }
.ct-social-body { display: flex; flex-direction: column; }
.ct-social-name { font-family: 'Cinzel', serif; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.ct-social-desc { font-family: var(--pv-serif); font-size: 17px; color: #d8cfd1; }
.page-contact .footer-social { display: none; }

/* Ecrans moyens : tous les reseaux sur une grille centree, sans traits de separation orphelins. */
@media (max-width: 1180px) and (min-width: 901px) {
  .ct-social-list { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 22px 0; }
  .ct-social-list li + li { border-left: 0; }
  .ct-social-list li:not(:nth-child(3n + 1)) { border-left: 2px solid var(--pv-red); }
}
@media (max-width: 900px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ct-intro { max-width: none; }
  .ct-bg { background-position: center top; opacity: 0.55; }
  .ct-form { padding: 28px 20px 22px; }
  .ct-social-list { flex-direction: column; align-items: center; gap: 18px; }
  .ct-social-list li { padding: 0; }
  .ct-social-list li + li { border-left: 0; }
}
@media (max-width: 540px) {
  .ct-reasons li { gap: 18px; }
  .ct-reason-icon { width: 56px; height: 56px; font-size: 24px; }
  .ct-label { letter-spacing: 0.14em; font-size: 13px; }
  .ct-submit { gap: 14px; font-size: 14px; letter-spacing: 0.1em; padding: 16px; }
  .ct-social-title { letter-spacing: 0.16em; }
}

/* --- Accueil (index.php) : intro du studio, projets en diaporama, jeux, derniere actualite --- */
.hm { padding: 28px 0 34px; background: radial-gradient(ellipse at 0% 30%, rgba(120, 12, 20, 0.22), transparent 45%); }
.hm-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  margin-bottom: 34px;
}
.hm-hero.no-media { grid-template-columns: minmax(0, 640px); }
.hm-intro { min-width: 0; }
.hm-intro .pv-kicker { font-size: 14px; letter-spacing: 0.2em; }
.hm-intro .pv-kicker .pv-dot { margin: 0 12px; color: var(--pv-red); }
.hm-title { margin: 0 0 20px; }
.hm-title-main { display: block; margin: 0 0 4px; font-size: clamp(40px, 4.2vw, 68px); line-height: 0.95; }
.hm-title-sub {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: 1.08;
  text-transform: uppercase;
  color: #f3e9ea;
  background: linear-gradient(180deg, #ffffff 0%, #ead7d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hm-intro .pv-ornament { margin-bottom: 18px; }
.hm-lead { margin: 0 0 26px; font-family: var(--pv-serif); font-size: 20px; line-height: 1.35; color: var(--pv-ink); }
.hm-cta { display: inline-flex; gap: 22px; padding: 15px 34px; margin-bottom: 22px; }
.hm-follow { display: table; margin-left: 4px; }

/* Diaporama des projets */
.hm-stage { filter: drop-shadow(0 0 22px rgba(196, 32, 44, 0.22)); }
.hm-stage-inner { position: relative; aspect-ratio: 2 / 1; min-height: 360px; }
.hm-slide { position: absolute; inset: 0; }
.hm-slide[hidden] { display: none; }
.hm-slide-media { position: absolute; inset: 0; }
.hm-slide-media img, .hm-slide-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 5, 7, 0) 35%, rgba(6, 5, 7, 0.65) 62%, rgba(6, 5, 7, 0.94) 100%),
              linear-gradient(90deg, rgba(6, 5, 7, 0.55) 0%, rgba(6, 5, 7, 0) 60%);
  pointer-events: none;
}
.hm-slide-body { position: absolute; left: 26px; right: 200px; bottom: 22px; z-index: 2; }
.hm-slide-kicker { margin: 0 0 6px; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pv-red); }
.hm-slide-kicker .pv-dot { margin: 0 10px; color: var(--pv-red); }
.hm-slide-title { margin: 0 0 6px; font-size: clamp(30px, 3.4vw, 58px); line-height: 1; }
.hm-slide-excerpt { margin: 0 0 16px; font-family: var(--pv-serif); font-size: 19px; line-height: 1.3; color: var(--pv-ink); }
.hm-slide-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hm-slide-btn { display: inline-flex; padding: 10px 36px; font-size: 14px; letter-spacing: 0.16em; }
.hm-slide-sep { width: 2px; height: 26px; background: var(--pv-red); }
.hm-slide-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #efe6e7;
  transition: color .2s ease;
}
.hm-slide-download i { font-size: 17px; }
.hm-slide-download:hover { color: var(--blood); }
.hm-pager { position: absolute; right: 22px; bottom: 26px; z-index: 3; gap: 26px; }
.hm-pager-current { color: var(--blood); }
.hm-slide .lock-overlay { z-index: 1; }

/* Jeux & experiences */
.hm-games { margin-bottom: 26px; }
.hm-games-head { margin-bottom: 14px; }
.hm-games-title {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f1e8e9;
}
.hm-games-head .pv-fleur { width: 26px; height: 26px; }
.hm-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.hm-card {
  --c: 12px;
  position: relative;
  display: block;
  padding: 1.5px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: transform .15s ease, filter .2s ease;
}
.hm-card:hover { transform: translateY(-2px); filter: brightness(1.12); }
.hm-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #120709 0%, #0a0507 100%);
  clip-path: polygon(calc(var(--c) - 1px) 0, calc(100% - var(--c) + 1px) 0, 100% calc(var(--c) - 1px), 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, calc(var(--c) - 1px) 100%, 0 calc(100% - var(--c) + 1px), 0 calc(var(--c) - 1px));
}
.hm-card-media { display: block; aspect-ratio: 16 / 6.3; overflow: hidden; }
.hm-card-media img, .hm-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hm-card:hover .hm-card-media img, .hm-card:hover .hm-card-media video { transform: scale(1.03); }
.hm-card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 18px 12px; }
.hm-card.no-media .hm-card-body { padding-top: 22px; padding-bottom: 20px; }
.hm-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hm-card-title { font-family: 'Cinzel', serif; font-size: 18px; line-height: 1.2; text-transform: uppercase; color: #f4ecec; }
.hm-card-tag { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pv-red); }
.hm-card-more { flex-shrink: 0; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: #e8dfe0; transition: color .2s ease; }
.hm-card-more span { display: inline-block; margin-left: 10px; transition: transform .2s ease; }
.hm-card:hover .hm-card-more { color: var(--blood); }
.hm-card:hover .hm-card-more span { transform: translateX(4px); }
.hm-card .lock-overlay { z-index: 2; }

/* Derniere actualite */
.hm-news { gap: 30px; }
.hm-news-line { flex: 1; display: flex; align-items: center; gap: 20px; min-width: 0; margin: 0; }
.hm-news-date { flex-shrink: 0; font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pv-red); }
.hm-news-dash { flex-shrink: 0; width: 28px; height: 1px; background: var(--pv-red-soft); }
.hm-news-title {
  min-width: 0;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: #ece3e4;
  transition: color .2s ease;
}
.hm-news-title:hover { color: var(--blood); }
.hm-news-read { flex-shrink: 0; padding-bottom: 4px; border-bottom: 1px solid var(--pv-red-soft); }
.hm-news-read::after { display: none; }

@media (max-width: 1100px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hm-intro { max-width: 640px; }
}
@media (max-width: 900px) {
  .hm-stage-inner { aspect-ratio: auto; min-height: 460px; }
  .hm-slide-body { right: 20px; left: 20px; bottom: 70px; }
  .hm-pager { left: 20px; right: auto; bottom: 18px; }
  .hm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-news { flex-wrap: wrap; }
  .hm-news-line { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 8px 16px; }
  .hm-news-title { white-space: normal; }
  .hm-news-read { margin-left: auto; }
}
@media (max-width: 540px) {
  .hm-stage-inner { min-height: 520px; }
  .hm-slide-title { font-size: 34px; }
  .hm-slide-excerpt { font-size: 17px; }
  .hm-slide-actions { gap: 14px 18px; }
  .hm-slide-sep { display: none; }
  .hm-cards { grid-template-columns: minmax(0, 1fr); }
  .hm-games-title { letter-spacing: 0.16em; white-space: normal; }
  .hm-cta { display: flex; justify-content: center; }
}

/* --- Page Mes projets (projects.php) : projet mis en avant, filtres, autres creations --- */
.pj { padding: 22px 0 10px; background: radial-gradient(ellipse at 0% 20%, rgba(120, 12, 20, 0.2), transparent 40%); }
.pj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 14px; }
.pj-head-text { min-width: 0; flex: 1; max-width: 740px; }
.pj-title { margin: 0; font-size: clamp(42px, 4.6vw, 70px); }
.pj-subtitle { margin: 4px 0 0; font-family: var(--pv-serif); font-size: 21px; color: var(--pv-ink); }
.pj-filters { display: flex; border-bottom: 1px solid var(--pv-red-soft); margin-bottom: 18px; flex-wrap: wrap; }
.pj-filter {
  position: relative;
  padding: 8px 34px;
  background: none;
  border: 0;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8dfe0;
  cursor: pointer;
  transition: color .2s ease;
}
.pj-filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blood); transform: scaleX(0); transition: transform .2s ease; }
.pj-filter:hover { color: var(--blood); }
.pj-filter.is-active { color: var(--blood); }
.pj-filter.is-active::after { transform: scaleX(1); box-shadow: 0 0 10px rgba(255, 45, 63, 0.6); }

/* Projet mis en avant */
.pj-featured-zone { margin-bottom: 28px; }
.pj-featured[hidden], .pj-card[hidden] { display: none; }
.pj-featured {
  --c: 14px;
  padding: 1.5px;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  animation: pj-apparition .35s ease;
}
.pj-featured-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  background: linear-gradient(180deg, #14070a 0%, #0a0507 100%);
  clip-path: polygon(calc(var(--c) - 1px) 0, calc(100% - var(--c) + 1px) 0, 100% calc(var(--c) - 1px), 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, calc(var(--c) - 1px) 100%, 0 calc(100% - var(--c) + 1px), 0 calc(var(--c) - 1px));
}
.pj-featured.no-media .pj-featured-inner { grid-template-columns: minmax(0, 1fr); }
.pj-featured-media { position: relative; display: block; min-height: 310px; overflow: hidden; }
.pj-featured-media img, .pj-featured-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-featured-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 5, 7, 0) 60%, rgba(10, 5, 7, 0.9) 100%); pointer-events: none; }
.pj-featured-body { padding: 18px 26px 22px 28px; min-width: 0; }
.pj-featured-kicker { margin: 0 0 4px; font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pv-red); }
.pj-featured-kicker .pv-dot, .pj-card-tags .pv-dot { margin: 0 10px; color: var(--pv-red); }
.pj-featured-title { margin: 0 0 6px; font-size: clamp(30px, 3vw, 48px); line-height: 1; }
.pj-featured-title a { color: inherit; text-decoration: none; -webkit-text-fill-color: inherit; }
.pj-featured-excerpt { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--pv-red-soft); font-family: var(--pv-serif); font-size: 20px; line-height: 1.3; color: var(--pv-ink); }
.pj-featured-meta { margin: 0 0 18px; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #e1d8da; }
.pj-featured-meta .pv-dot { margin: 0 14px; }
.pj-progress { margin: 0 0 24px; }
.pj-progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #e1d8da; }
.pj-progress-value { font-family: var(--pv-serif); font-size: 17px; letter-spacing: 0.04em; }
.pj-progress-bar { position: relative; height: 3px; background: rgba(255, 255, 255, 0.12); }
.pj-progress-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #a3121d, var(--blood)); box-shadow: 0 0 10px rgba(255, 45, 63, 0.55); }
.pj-featured-actions { display: flex; align-items: center; gap: 14px 28px; flex-wrap: wrap; }
.pj-discover { display: inline-flex; gap: 22px; padding: 13px 26px; font-size: 14px; letter-spacing: 0.12em; }
.pj-download-link { letter-spacing: 0.12em; }

/* Autres creations */
.pj-others { margin-bottom: 24px; }
.pj-others[hidden] { display: none; }
.pj-others-head { margin-bottom: 12px; }
.pj-others-head .pv-fleur { width: 26px; height: 26px; }
.pj-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pj-card {
  --c: 14px;
  display: block;
  padding: 1.5px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: transform .15s ease, filter .2s ease;
  animation: pj-apparition .35s ease;
}
.pj-card:hover { transform: translateY(-2px); filter: brightness(1.12); }
.pj-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, #14070a 0%, #0a0507 100%);
  clip-path: polygon(calc(var(--c) - 1px) 0, calc(100% - var(--c) + 1px) 0, 100% calc(var(--c) - 1px), 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, calc(var(--c) - 1px) 100%, 0 calc(100% - var(--c) + 1px), 0 calc(var(--c) - 1px));
}
.pj-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 12px 18px 8px; }
.pj-card-number { font-family: var(--pv-serif); font-size: 21px; line-height: 1.1; color: var(--pv-red); }
.pj-card-line { flex: 0 0 52px; height: 1px; margin-top: 12px; background: var(--pv-red-soft); }
.pj-card-titles { display: flex; flex-direction: column; min-width: 0; }
.pj-card-title { font-family: 'Cinzel', serif; font-size: 19px; line-height: 1.2; text-transform: uppercase; color: #f4ecec; }
.pj-card-tags { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pv-red); }
.pj-card-media { position: relative; display: block; flex: 1; aspect-ratio: 16 / 5.6; margin: 0 8px 8px; overflow: hidden; }
.pj-card.no-media .pj-card-media { aspect-ratio: auto; min-height: 60px; }
.pj-card-media img, .pj-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pj-card:hover .pj-card-media img, .pj-card:hover .pj-card-media video { transform: scale(1.03); }
.pj-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 5, 7, 0) 55%, rgba(10, 5, 7, 0.85) 100%); pointer-events: none; }
.pj-card-cta {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 2;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--pv-red-soft);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f1e8e9;
  transition: color .2s ease;
}
.pj-card-cta span { display: inline-block; margin-left: 10px; transition: transform .2s ease; }
.pj-card:hover .pj-card-cta { color: var(--blood); }
.pj-card:hover .pj-card-cta span { transform: translateX(4px); }
.pj-card .lock-overlay { z-index: 1; }

/* Bas de page */
.pj-bottom { padding-bottom: 6px; }
.pj-bottom .pv-divider { margin-bottom: 6px; }
.pj-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pj-bottom-text { margin: 0; font-family: 'Cinzel', serif; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: #ece3e4; }
.pj-follow { color: var(--pv-red); }

@keyframes pj-apparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pj-featured, .pj-card { animation: none; } }

@media (max-width: 1100px) {
  .pj-head { flex-direction: column; align-items: stretch; }
  .pj-filters { align-self: flex-start; }
}
@media (max-width: 900px) {
  .pj-featured-inner { grid-template-columns: minmax(0, 1fr); }
  .pj-featured-media { min-height: 0; aspect-ratio: 16 / 9; }
  .pj-featured-media::after { background: linear-gradient(180deg, rgba(10, 5, 7, 0) 60%, rgba(10, 5, 7, 0.9) 100%); }
  .pj-cards { grid-template-columns: minmax(0, 1fr); }
  .pj-filter { padding: 8px 16px; }
}
@media (max-width: 540px) {
  .pj-filters { width: 100%; }
  .pj-filter { flex: 1 1 50%; padding: 10px 6px; font-size: 12px; }
  .pj-featured-body { padding: 16px 16px 20px; }
  .pj-card-line { flex-basis: 24px; }
  .pj-bottom-text { font-size: 13px; letter-spacing: 0.12em; }
}

/* --- Page d'une actualite (news_detail.php) --- */
.nd { padding: 20px 0 10px; }
.nd-crumb { margin-bottom: 10px; }
.nd-crumb-link { text-decoration: none; color: var(--pv-red); transition: color .2s ease; }
.nd-crumb-link:hover { color: var(--blood); }
.nd-crumb-link span { margin: 0 8px; }
.nd-hero { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.nd-hero.no-media { grid-template-columns: minmax(0, 760px); }
.nd-back {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 22px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ece3e4;
  transition: color .2s ease;
}
.nd-back span { font-size: 18px; transition: transform .2s ease; }
.nd-back:hover { color: var(--blood); }
.nd-back:hover span { transform: translateX(-4px); }
.nd-kicker { margin-bottom: 12px; font-size: 13px; }
.nd-kicker .pv-dot { margin: 0 8px; color: var(--pv-red); }
.nd-title { margin: 0 0 16px; font-weight: 600; font-size: clamp(30px, 3vw, 46px); line-height: 1.12; letter-spacing: 0.02em; }
.nd-intro .pv-ornament { margin-bottom: 16px; }
.nd-excerpt { margin: 0; font-family: var(--pv-serif); font-size: 21px; line-height: 1.35; color: var(--pv-ink); }
.nd-hero-media { filter: drop-shadow(0 0 22px rgba(196, 32, 44, 0.22)); }
.nd-hero-media .pv-frame-media { aspect-ratio: 16 / 6.1; }
.nd-hero-media img, .nd-hero-media video, .nd-aside-media img, .nd-aside-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd img[data-lightbox], .nd-hero-media img, .nd-aside-media img { cursor: zoom-in; }
.nd-divider { margin: 18px 0 20px; }

.nd-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0 40px; }
.nd-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-right: 34px;
  border-right: 2px solid var(--pv-red);
  align-self: start;
  position: sticky;
  top: 90px;
  text-align: center;
}
.nd-side-number { font-family: var(--pv-serif); font-size: 26px; line-height: 1; color: var(--pv-red); }
.nd-side-line { width: 1px; height: 22px; background: var(--pv-red); }
.nd-side-label { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #ece3e4; }
.nd-side-value { margin-top: -6px; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #ece3e4; }
.nd-side-rule { width: 70px; height: 1px; margin: 10px 0 8px; background: var(--pv-red-soft); }
.nd-share { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.nd-share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 19px;
  color: #ece3e4;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
}
.nd-share-btn:hover { color: var(--blood); transform: scale(1.12); }
.nd-share-btn.is-copied::after {
  content: attr(data-copied);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  white-space: nowrap;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(120, 15, 24, 0.95);
  border: 1px solid rgba(230, 55, 70, 0.7);
  border-radius: 3px;
}
.nd-like {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f1e8e9;
  background: rgba(20, 5, 8, 0.6);
  border: 1px solid rgba(220, 45, 60, 0.85);
  border-radius: 4px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.nd-like i { font-size: 12px; }
.nd-like:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 18px var(--glow); }
.nd-like.liked { background: linear-gradient(180deg, #5c0d14, #3b070c); color: #fff; }
.nd-like.liked i { color: var(--blood); }
.nd-like:disabled { cursor: default; opacity: 0.75; }
.nd-like .like-count { font-family: var(--pv-serif); font-size: 16px; letter-spacing: 0; }

.nd-main { min-width: 0; }
.nd-article.has-aside { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.nd-prose { max-width: none; font-family: var(--pv-serif); font-size: 19px; line-height: 1.45; color: #ddd4d6; }
.nd-prose strong { color: #fff; }
.nd-prose a { color: var(--blood); }
.rt-h2 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 8px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f1e8e9;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.rt-h2::after { content: ""; flex: 1; min-width: 40px; height: 1px; background: var(--pv-red-soft); }
.rt-quote {
  position: relative;
  margin: 14px 0;
  padding: 14px 20px 14px 70px;
  font-style: italic;
  font-size: 21px;
  color: #f1e8e9;
  background: linear-gradient(90deg, rgba(90, 10, 16, 0.45), rgba(40, 6, 10, 0.3));
  border: 1px solid rgba(220, 45, 60, 0.85);
  border-radius: 3px;
}
.rt-quote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-38%);
  font-family: Georgia, serif;
  font-style: normal;
  font-size: 58px;
  line-height: 1;
  color: #e3404d;
}
.nd-aside-media { margin: 0; filter: drop-shadow(0 0 18px rgba(196, 32, 44, 0.2)); }
.nd-aside-media .pv-frame-media { aspect-ratio: 16 / 10; }
.nd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 22px 0 6px; }
.nd-gallery-item { --c: 10px; opacity: 1; }
.nd-gallery-item .pv-thumb-media { aspect-ratio: 16 / 9; }

.nd-comments { max-width: none; margin-top: 26px; }
.nd-comments-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 12px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f1e8e9;
}
.nd-comments-title::after { content: ""; flex: 1; height: 1px; background: var(--pv-red-soft); }
.nd-comments-title .pv-dot { margin: 0 8px; color: var(--pv-red); }
.nd-comment-form { margin-bottom: 12px; }
.nd-comment-row { display: flex; align-items: flex-start; gap: 18px; }
.nd-comment-field { position: relative; flex: 1; }
.nd-comment-field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 70px 12px 14px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(12, 8, 10, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  resize: vertical;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nd-comment-field textarea::placeholder { text-transform: uppercase; color: #8f8a93; }
.nd-comment-field textarea:focus { border-color: rgba(230, 55, 70, 0.9); box-shadow: 0 0 16px rgba(196, 32, 44, 0.28); }
.nd-comment-counter { position: absolute; right: 22px; bottom: 8px; margin: 0; font-family: 'Cinzel', serif; font-size: 10px; color: #bdb4b6; }
.nd-publish { flex-shrink: 0; padding: 10px 34px; font-size: 13px; letter-spacing: 0.12em; cursor: pointer; }
.nd-login { font-family: var(--pv-serif); font-size: 18px; color: var(--pv-ink); }
.nd-login a { color: var(--blood); }
.nd-no-comments { list-style: none; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #cfc5c7; }
.nd-comments-list .comment { background: rgba(20, 8, 11, 0.7); border: 1px solid rgba(196, 32, 44, 0.35); border-radius: 4px; }
.nd-comments-list .comment-author { font-family: 'Cinzel', serif; letter-spacing: 0.06em; }
.nd-comments-list .comment-body { font-family: var(--pv-serif); font-size: 18px; }

.nd-pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 10px 0; border-top: 1px solid var(--pv-red-soft); }
.nd-pager-link { display: inline-flex; align-items: center; gap: 18px; font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: #ece3e4; transition: color .2s ease; }
.nd-pager-link span { font-size: 18px; transition: transform .2s ease; }
.nd-pager-link:hover { color: var(--blood); }
.nd-pager-link:first-child:hover span { transform: translateX(-4px); }
.nd-pager-link:last-child:hover span { transform: translateX(4px); }

@media (max-width: 1100px) {
  .nd-hero { grid-template-columns: minmax(0, 1fr); }
  .nd-hero-media { order: -1; }
  .nd-hero-media .pv-frame-media { aspect-ratio: 16 / 8; }
  .nd-article.has-aside { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 900px) {
  .nd-body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .nd-side { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 16px; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--pv-red-soft); }
  .nd-side-line, .nd-side-rule { display: none; }
  .nd-side-value { margin-top: 0; }
  .nd-share { flex-direction: row; margin: 0; }
  .nd-share-btn.is-copied::after { left: 50%; top: auto; bottom: calc(100% + 6px); transform: translateX(-50%); }
}
@media (max-width: 540px) {
  .nd-comment-row { flex-direction: column; align-items: stretch; }
  .rt-quote { padding-left: 54px; font-size: 19px; }
  .rt-h2 { letter-spacing: 0.08em; }
  .rt-h2::after { display: none; }
  .rt-quote::before { left: 14px; font-size: 46px; }
  .nd-pager-link { font-size: 12px; letter-spacing: 0.08em; gap: 10px; }
}

/* --- Pages Connexion / Creer un compte (_auth_layout.php) : reprend la mise en page Contact --- */
.au-bg { background-image: url('/app/assets/img/contact-fond-v2.jpg'); }
.au-title { margin: 0 0 14px; font-size: clamp(40px, 4.4vw, 70px); line-height: 0.98; }
.au-lead { max-width: 440px; }
.au-perks li { gap: 22px; }
.au-perk-text { max-width: 230px; line-height: 1.45; }
.au-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
.au-form { padding: 26px 44px 20px; }
.au-form-title {
  margin: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f3e9ea;
  background: linear-gradient(180deg, #ffffff 0%, #e9d3d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.au-form-sub { display: flex; align-items: center; gap: 18px; margin: 6px 0 0; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: #ece3e4; white-space: nowrap; }
.au-form-sub::before, .au-form-sub::after { content: ""; flex: 1; height: 1px; background: var(--pv-red-soft); }
.au-form-fleur { display: flex; justify-content: center; margin: 4px 0 6px; color: var(--pv-red); }
.au-form-fleur .pv-fleur { width: 22px; height: 22px; }
.au-field { gap: 7px; margin-bottom: 18px; }
.au-field .ct-label { font-size: 12px; letter-spacing: 0.16em; }
.au-form input[type="text"], .au-form input[type="email"], .au-form input[type="password"] { padding: 12px 18px; }
.au-hint { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #bdb4b6; }
.au-password { position: relative; display: block; }
.au-password input { padding-right: 52px !important; }
.au-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: none; border: 0; color: #e8dfe0; font-size: 16px; cursor: pointer; transition: color .2s ease; }
.au-eye:hover, .au-eye.is-on { color: var(--blood); }
.au-strength { display: flex; align-items: center; gap: 18px; }
.au-strength-label { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #bdb4b6; white-space: nowrap; }
.au-strength-bars { display: flex; gap: 6px; flex: 1; max-width: 300px; }
.au-strength-bars i { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.12); transition: background .25s ease, box-shadow .25s ease; }
.au-strength[data-level="1"] i:nth-child(-n+1) { background: #8f161d; }
.au-strength[data-level="2"] i:nth-child(-n+2) { background: #b8202b; }
.au-strength[data-level="3"] i:nth-child(-n+3) { background: #e3404d; }
.au-strength[data-level="4"] i { background: var(--blood); box-shadow: 0 0 8px rgba(255, 45, 63, 0.5); }
.au-terms { position: relative; display: flex; align-items: center; gap: 16px; margin: 0 0 18px; font-family: var(--pv-serif); font-size: 17px; color: #e8dfe0; cursor: pointer; }
.au-terms input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.au-check { flex-shrink: 0; position: relative; width: 26px; height: 26px; border: 1px solid rgba(220, 45, 60, 0.9); border-radius: 3px; background: rgba(12, 6, 8, 0.8); transition: background .2s ease, box-shadow .2s ease; }
.au-terms input:checked + .au-check { background: linear-gradient(180deg, #8f161d, #5c0d14); box-shadow: 0 0 10px rgba(196, 32, 44, 0.45); }
.au-terms input:checked + .au-check::after { content: "\f00c"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px; color: #fff; }
.au-terms input:focus-visible + .au-check { outline: 1px solid var(--blood); outline-offset: 2px; }
.au-terms > span:last-child { font-family: var(--pv-serif); font-size: 17px; letter-spacing: 0; text-transform: none; color: #e8dfe0; }
.au-terms a { color: #f1e8e9; text-decoration: underline; text-decoration-color: var(--pv-red); text-underline-offset: 3px; }
.au-terms a:hover { color: var(--blood); }
.au-submit { margin-bottom: 16px; }
.au-alt-ornament { width: 100%; margin: 0 0 6px; }
.au-alt-label { margin: 0 0 8px; text-align: center; font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #ece3e4; }
.au-alt-btn {
  display: block;
  padding: 9px 20px;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f1e8e9;
  border: 1px solid rgba(220, 45, 60, 0.85);
  border-radius: 3px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.au-alt-btn:hover { transform: translateY(-2px); background: rgba(120, 15, 24, 0.35); box-shadow: 0 0 18px var(--glow); color: #fff; }
.au-note { margin: 16px 0 0; text-align: center; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #d8cfd1; }
.au-note i { margin-right: 10px; font-size: 14px; }
.au-bottom { margin: 0 0 20px; }
.au-form .re-alert { margin-top: 10px; }
@media (max-width: 900px) {
  .au-grid { grid-template-columns: minmax(0, 1fr); }
  .au-form { padding: 24px 20px 18px; }
  .au-form-sub { letter-spacing: 0.16em; }
}

/* --- Ecran de chargement (logo + fleur de lys + barre) --- */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(70, 8, 14, 0.55) 0%, rgba(6, 5, 7, 1) 65%), #060507;
  transition: opacity .6s ease, visibility .6s ease;
}
.site-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html.loader-seen .site-loader { display: none; }
.site-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(340px, 80vw); }
.site-loader-logo { width: 120px; height: auto; filter: drop-shadow(0 0 22px rgba(196, 32, 44, 0.55)); animation: loader-pulse 2.2s ease-in-out infinite; }
.site-loader-name { margin: 4px 0 0; font-family: 'Cinzel', serif; font-size: 20px; letter-spacing: 0.34em; text-transform: uppercase; color: #f3e9ea; white-space: nowrap; }
.site-loader-ornament { display: flex; align-items: center; gap: 10px; width: 100%; color: #c4202c; }
.site-loader-ornament span { flex: 1; height: 1px; background: rgba(196, 32, 44, 0.55); }
.site-loader-ornament svg { width: 20px; height: 20px; }
.site-loader-bar { position: relative; width: 100%; height: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.site-loader-bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, transparent, #ff2d3f, transparent); box-shadow: 0 0 10px rgba(255, 45, 63, 0.7); animation: loader-bar 1.3s ease-in-out infinite; }
.site-loader-text { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: #bdb4b6; }
@keyframes loader-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes loader-bar { from { left: -40%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .site-loader-logo, .site-loader-bar::after { animation: none; } }

/* --- Survol des grandes images : meme petite animation que les cartes (monte, s'eclaire, l'image zoome) --- */
.hm-stage, .pv-stage .pv-frame, .nv-featured-media, .nd-hero-media, .nd-aside-media, .pj-featured, .nd-gallery-item {
  transition: transform .15s ease, filter .2s ease;
}
.hm-slide-media img, .hm-slide-media video,
.pj-featured-media img, .pj-featured-media video,
.pv-frame-media img, .pv-frame-media video,
.pv-thumb-media img, .pv-thumb-media video {
  transition: transform .4s ease;
}
.hm-stage:hover { transform: translateY(-2px); filter: drop-shadow(0 0 26px rgba(196, 32, 44, 0.4)) brightness(1.08); }
.hm-stage:hover .hm-slide-media img, .hm-stage:hover .hm-slide-media video { transform: scale(1.03); }
.pj-featured:hover { transform: translateY(-2px); filter: brightness(1.1); }
.pj-featured:hover .pj-featured-media img, .pj-featured:hover .pj-featured-media video { transform: scale(1.03); }
.pv-stage .pv-frame:hover, .nv-featured-media:hover, .nd-hero-media:hover, .nd-aside-media:hover { transform: translateY(-2px); filter: drop-shadow(0 0 22px rgba(196, 32, 44, 0.4)) brightness(1.1); }
.pv-frame:hover .pv-frame-media img, .pv-frame:hover .pv-frame-media video,
.pv-thumb:hover .pv-thumb-media img, .pv-thumb:hover .pv-thumb-media video { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .hm-stage:hover, .pj-featured:hover, .pv-stage .pv-frame:hover, .nv-featured-media:hover, .nd-hero-media:hover, .nd-aside-media:hover { transform: none; }
  .hm-stage:hover img, .pj-featured:hover img, .pv-frame:hover img, .pv-thumb:hover img { transform: none; }
}

/* ============================================================ Version japonaise (html[lang="ja"])
   Polices : ja-fonts.css (charge seulement en japonais). Titres = Shippori Mincho 700,
   textes editoriaux = Shippori Mincho 400, interface = Noto Sans JP 400-600.
   Les marques en alphabet latin (logo, Kravyos Studio) gardent Cinzel. */
html[lang="ja"] {
  --ja-serif: 'Shippori Mincho', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  --ja-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', Meiryo, sans-serif;
}
html[lang="ja"] body,
html[lang="ja"] input,
html[lang="ja"] select,
html[lang="ja"] textarea,
html[lang="ja"] .ct-form input,
html[lang="ja"] .ct-form textarea {
  font-family: var(--ja-sans);
}
html[lang="ja"] body { line-break: strict; word-break: normal; overflow-wrap: anywhere; font-feature-settings: "palt" 0; }

/* Interface : navigation, boutons, libelles, dates, compteurs */
html[lang="ja"] .au-alt-btn,
html[lang="ja"] .au-alt-label,
html[lang="ja"] .au-form-sub,
html[lang="ja"] .au-hint,
html[lang="ja"] .au-note,
html[lang="ja"] .au-strength-label,
html[lang="ja"] .auth .user-label,
html[lang="ja"] .auth a,
html[lang="ja"] .btn,
html[lang="ja"] .btn-ghost,
html[lang="ja"] .btn-glow,
html[lang="ja"] .ct-counter,
html[lang="ja"] .ct-label,
html[lang="ja"] .ct-note,
html[lang="ja"] .ct-reason-title,
html[lang="ja"] .ct-social-name,
html[lang="ja"] .eyebrow,
html[lang="ja"] .feed-tag,
html[lang="ja"] .feed-title,
html[lang="ja"] .hero-kicker,
html[lang="ja"] .hm-card-more,
html[lang="ja"] .hm-card-tag,
html[lang="ja"] .hm-news-date,
html[lang="ja"] .hm-news-title,
html[lang="ja"] .hm-slide-download,
html[lang="ja"] .hm-slide-kicker,
html[lang="ja"] .lang-dd-btn,
html[lang="ja"] .lang-dd-menu a,
html[lang="ja"] .lang-dd-title,
html[lang="ja"] .lock-overlay span,
html[lang="ja"] .nd-back,
html[lang="ja"] .nd-comment-counter,
html[lang="ja"] .nd-comment-field textarea,
html[lang="ja"] .nd-comments-list .comment-author,
html[lang="ja"] .nd-like,
html[lang="ja"] .nd-like .like-count,
html[lang="ja"] .nd-no-comments,
html[lang="ja"] .nd-pager-link,
html[lang="ja"] .nd-share-btn.is-copied::after,
html[lang="ja"] .nd-side-label,
html[lang="ja"] .nd-side-number,
html[lang="ja"] .nd-side-value,
html[lang="ja"] .nv-archive-title,
html[lang="ja"] .nv-card-date,
html[lang="ja"] .nv-eyebrow,
html[lang="ja"] .nv-kicker-text,
html[lang="ja"] .nv-pager-count,
html[lang="ja"] .nv-read,
html[lang="ja"] .pj-bottom-text,
html[lang="ja"] .pj-card-cta,
html[lang="ja"] .pj-card-number,
html[lang="ja"] .pj-card-tags,
html[lang="ja"] .pj-featured-kicker,
html[lang="ja"] .pj-featured-meta,
html[lang="ja"] .pj-filter,
html[lang="ja"] .pj-progress-head,
html[lang="ja"] .pj-progress-value,
html[lang="ja"] .primary a,
html[lang="ja"] .pv-badge,
html[lang="ja"] .pv-counter,
html[lang="ja"] .pv-download,
html[lang="ja"] .pv-download-meta,
html[lang="ja"] .pv-gallery-link,
html[lang="ja"] .pv-kicker,
html[lang="ja"] .pv-meta p,
html[lang="ja"] .quick-login,
html[lang="ja"] .see-all,
html[lang="ja"] .site-loader-text,
html[lang="ja"] .status-widget .sw-title {
  font-family: var(--ja-sans);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Titres */
html[lang="ja"] .au-form-title,
html[lang="ja"] .auth-title,
html[lang="ja"] .comments-section h3,
html[lang="ja"] .ct-headline,
html[lang="ja"] .ct-social-title,
html[lang="ja"] .featured-title,
html[lang="ja"] .hero-mega,
html[lang="ja"] .hm-card-title,
html[lang="ja"] .hm-games-title,
html[lang="ja"] .hm-title-sub,
html[lang="ja"] .nd-comments-title,
html[lang="ja"] .nv-archives-label,
html[lang="ja"] .nv-card-title,
html[lang="ja"] .nv-featured-title,
html[lang="ja"] .pj-card-title,
html[lang="ja"] .prose h3,
html[lang="ja"] .pv-preview-title,
html[lang="ja"] .pv-title,
html[lang="ja"] .rt-h2,
html[lang="ja"] .slice h3,
html[lang="ja"] h2 {
  font-family: var(--ja-serif);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.35;
}

/* Textes editoriaux (articles, descriptions, accroches) */
html[lang="ja"] .au-terms,
html[lang="ja"] .au-terms > span:last-child,
html[lang="ja"] .ct-lead,
html[lang="ja"] .ct-reason-text,
html[lang="ja"] .ct-social-desc,
html[lang="ja"] .hero-tagline,
html[lang="ja"] .hero-title,
html[lang="ja"] .hm-lead,
html[lang="ja"] .hm-slide-excerpt,
html[lang="ja"] .nd-comments-list .comment-body,
html[lang="ja"] .nd-excerpt,
html[lang="ja"] .nd-login,
html[lang="ja"] .nd-prose,
html[lang="ja"] .nv-card-excerpt,
html[lang="ja"] .nv-featured-excerpt,
html[lang="ja"] .pj-featured-excerpt,
html[lang="ja"] .pj-subtitle,
html[lang="ja"] .pv-tagline {
  font-family: var(--ja-serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.85;
  color: #ece4e5;
}

/* Tailles adaptees : les caracteres japonais sont plus pleins que les capitales latines */
html[lang="ja"] .hm-title-main { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.2; }
html[lang="ja"] .hm-title-sub { font-size: clamp(22px, 2.1vw, 34px); line-height: 1.4; }
html[lang="ja"] .pj-title, html[lang="ja"] .nv-title, html[lang="ja"] .ct-title { font-size: clamp(36px, 4vw, 60px); line-height: 1.2; }
html[lang="ja"] .au-title { font-size: clamp(32px, 3.4vw, 54px); line-height: 1.25; }
html[lang="ja"] .nd-title { font-size: clamp(26px, 2.4vw, 38px); line-height: 1.45; }
html[lang="ja"] .hm-slide-title { font-size: clamp(28px, 3vw, 48px); line-height: 1.25; }
html[lang="ja"] .pj-featured-title { font-size: clamp(26px, 2.6vw, 42px); line-height: 1.3; }
html[lang="ja"] .nv-featured-title { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.5; }
html[lang="ja"] .pv-preview-title, html[lang="ja"] .hm-games-title, html[lang="ja"] .ct-social-title { letter-spacing: 0.12em; }
html[lang="ja"] .nd-prose { font-size: 17.5px; line-height: 1.9; }
html[lang="ja"] .pv-tagline, html[lang="ja"] .hm-lead, html[lang="ja"] .ct-lead, html[lang="ja"] .nd-excerpt,
html[lang="ja"] .pj-subtitle, html[lang="ja"] .nv-featured-excerpt, html[lang="ja"] .pj-featured-excerpt, html[lang="ja"] .hm-slide-excerpt { font-size: 18px; }
html[lang="ja"] .nv-card-excerpt, html[lang="ja"] .ct-reason-text, html[lang="ja"] .ct-social-desc, html[lang="ja"] .nd-comments-list .comment-body { font-size: 16px; line-height: 1.75; }
html[lang="ja"] .rt-quote { font-style: normal; }
html[lang="ja"] .pv-kicker, html[lang="ja"] .nv-kicker-text, html[lang="ja"] .pv-meta p, html[lang="ja"] .nv-eyebrow,
html[lang="ja"] .hm-slide-kicker, html[lang="ja"] .pj-featured-kicker { letter-spacing: 0.08em; }
html[lang="ja"] .nv-kicker-text, html[lang="ja"] .hm-games-title, html[lang="ja"] .pj-bottom-text { white-space: normal; }
html[lang="ja"] .ct-label, html[lang="ja"] .au-field .ct-label { letter-spacing: 0.06em; }
html[lang="ja"] .pv-download, html[lang="ja"] .btn, html[lang="ja"] .btn-glow, html[lang="ja"] .au-alt-btn { font-weight: 600; letter-spacing: 0.06em; }
html[lang="ja"] .au-form-sub { white-space: normal; letter-spacing: 0.12em; }

/* Pages legales */
.legal-updated { margin: -6px 0 18px; font-size: 14px; }
.legal-text p { margin: 0 0 12px; }
.legal-text ul { margin: 8px 0 12px; padding-left: 1.3em; }
.legal-text li { margin-bottom: 6px; }
.legal-text code { font-family: Consolas, 'Courier New', monospace; font-size: 0.95em; color: var(--text); }
.legal-text strong { color: var(--text); }

/* ============================================================
   Page projet : partie basse (article, etat du projet, j'aime / commentaires)
   ============================================================ */
.pa { padding: 10px 0 40px; }
.pa-head { margin: 0 0 18px; }
.pa-title {
  margin: 0 0 12px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4ece8;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.pa-intro { max-width: 70ch; font-family: var(--pv-serif); font-weight: 500; font-size: clamp(23px, 2vw, 27px); line-height: 1.45; color: #f3ebe9; }
.pa-intro strong { color: #fff; }
.pa-divider { margin: 6px 0 26px; }

.pa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  grid-template-rows: auto 1fr;
  column-gap: 36px;
  align-items: start;
}
.pa-main { grid-column: 1; min-width: 0; }
.pa-main-first { grid-row: 1; }
.pa-main-rest { grid-row: 2; }
.pa-side { grid-column: 2; grid-row: 1 / span 2; align-self: start; position: sticky; top: 90px; }

.pa-section { margin: 0 0 22px; }
.pa-h {
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4ece8;
}
.pa-prose { max-width: 70ch; font-family: var(--pv-serif); font-weight: 500; font-size: 22px; line-height: 1.6; color: #ece4e3; overflow-wrap: anywhere; }
.pa-prose strong { color: #fff; }
.pa-prose a { color: var(--blood); }
.pa-prose .rt-quote { margin: 18px 0; font-size: 24px; line-height: 1.4; }
.pa-prose .rt-img, .pa-prose .rt-video { display: block; width: 100%; height: auto; margin: 14px 0; border: 1px solid var(--pv-red-soft); border-radius: 3px; }

.pa-figure { margin: 4px 0 26px; filter: drop-shadow(0 0 18px rgba(196, 32, 44, 0.18)); }
.pa-figure .pv-frame-media { aspect-ratio: 16 / 7; }
.pa-figure img, .pa-side-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .6s ease; }
.pa-figure:hover img, .pa-side-media:hover img { transform: scale(1.03); }

/* Colonne laterale */
.pa-card {
  --c: 14px;
  position: relative;
  isolation: isolate;
  padding: 22px 24px 26px;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.pa-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(34, 8, 12, 0.98), rgba(12, 5, 8, 0.99));
  clip-path: polygon(calc(var(--c) - 0.5px) 0, calc(100% - var(--c) + 0.5px) 0, 100% calc(var(--c) - 0.5px), 100% calc(100% - var(--c) + 0.5px), calc(100% - var(--c) + 0.5px) 100%, calc(var(--c) - 0.5px) 100%, 0 calc(100% - var(--c) + 0.5px), 0 calc(var(--c) - 0.5px));
}
.pa-card-title { margin: 0 0 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-family: 'Cinzel', serif; font-weight: 500; font-size: 18px; letter-spacing: 0.16em; text-transform: uppercase; color: #f4ece8; }
.pa-percent { margin: 0 0 10px; font-family: 'Cinzel', serif; font-size: clamp(44px, 5vw, 58px); line-height: 1; color: #f7f0ee; }
.pa-bar { height: 12px; margin: 0 0 18px; border: 1px solid rgba(220, 45, 60, 0.7); border-radius: 3px; background: rgba(40, 6, 10, 0.8); overflow: hidden; }
.pa-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8e101a, #d8232f); box-shadow: 0 0 12px rgba(216, 35, 47, 0.55); }
.pa-status { list-style: none; margin: 0 0 6px; padding: 0; }
.pa-status li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.pa-status li:last-child { border-bottom: none; }
.pa-status-label { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #ece3e4; }
.pa-pill { flex-shrink: 0; min-width: 96px; padding: 5px 10px; text-align: center; font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid; border-radius: 3px; }
.pa-pill.is-green { color: #e9f5ea; background: rgba(22, 90, 40, 0.55); border-color: rgba(70, 170, 95, 0.75); }
.pa-pill.is-gold  { color: #f3dfae; background: rgba(110, 72, 12, 0.5); border-color: rgba(214, 160, 60, 0.8); }
.pa-pill.is-red   { color: #fde6e8; background: rgba(120, 14, 24, 0.6); border-color: rgba(230, 55, 70, 0.85); }
.pa-pill.is-grey  { color: #e6e0e1; background: rgba(60, 56, 58, 0.45); border-color: rgba(170, 160, 164, 0.55); }
.pa-card-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: var(--pv-red); }
.pa-card-divider span { flex: 1; height: 1px; background: var(--pv-red-soft); }
.pa-card-divider .pv-fleur { width: 20px; height: 20px; }
.pa-date { display: grid; gap: 4px; margin: 0 0 16px; font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: #ece3e4; }
.pa-date time { color: #cfc5c7; }
.pa-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 10px 16px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f7eeee;
  background: linear-gradient(180deg, rgba(110, 12, 20, 0.95), rgba(60, 6, 12, 0.95));
  border: 1px solid rgba(230, 55, 70, 0.85);
  border-radius: 3px;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.pa-follow span { font-size: 17px; transition: transform .2s ease; }
.pa-follow:hover { transform: translateY(-2px); box-shadow: 0 0 20px var(--glow); filter: brightness(1.1); }
.pa-follow:hover span { transform: translateX(4px); }
.pa-side-media { --c: 12px; margin: 20px 0 0; }
.pa-side-media .pv-frame-media { aspect-ratio: 3 / 4; }
.pa-phrase { margin: 22px 8px 6px; text-align: center; font-family: var(--pv-serif); font-style: italic; font-size: 24px; line-height: 1.3; color: #dcb9a0; }
.pa-phrase-fleur { display: flex; justify-content: center; color: var(--pv-red); }
.pa-phrase-fleur .pv-fleur { width: 22px; height: 22px; }

/* J'aime, commentaires, navigation */
.pa-social { margin-top: 4px; }
.pa-social-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 14px; }
.pa-like { min-height: 44px; }
.pa-like .pv-dot { color: var(--blood); }
.pa-comments-title { margin: 0; font-family: 'Cinzel', serif; font-weight: 500; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; color: #f4ece8; background: none; -webkit-text-fill-color: currentColor; }
.pa-comments-title .pv-dot { margin: 0 8px; color: var(--pv-red); }
.pa-login { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 0 auto; font-family: var(--pv-serif); font-weight: 500; font-size: 20px; color: #e6dddd; }
.pa-login a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blood); text-decoration: underline; text-underline-offset: 5px; }
.pa-pager { margin-top: 26px; }
.pa-social .nd-comments-list .comment-body { font-weight: 500; font-size: 21px; line-height: 1.5; }
.pa-pager .nd-pager-link { min-height: 44px; }

@media (max-width: 900px) {
  .pa-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pa-main, .pa-main-first, .pa-main-rest, .pa-side { grid-column: 1; grid-row: auto; max-width: none; }
  .pa-side { position: static; margin: 4px 0 28px; }
  .pa-figure .pv-frame-media { aspect-ratio: 16 / 9; }
  .pa-side-media .pv-frame-media { aspect-ratio: 16 / 10; }
  .pa-login { margin-left: 0; }
}
@media (max-width: 520px) {
  .pa-card { padding: 18px 16px 22px; }
  .pa-pill { min-width: 84px; }
  .pa-prose { font-size: 20px; }
  .pa-intro { font-size: 22px; }
  .pa-pager { flex-wrap: wrap; }
}

/* Japonais */
html[lang="ja"] .pa-title, html[lang="ja"] .pa-h, html[lang="ja"] .pa-card-title, html[lang="ja"] .pa-comments-title { font-family: var(--ja-serif, 'Shippori Mincho', serif); font-weight: 700; letter-spacing: 0.06em; }
html[lang="ja"] .pa-intro, html[lang="ja"] .pa-prose, html[lang="ja"] .pa-phrase { font-family: var(--ja-serif, 'Shippori Mincho', serif); font-style: normal; line-height: 1.85; }
html[lang="ja"] .pa-prose { font-size: 18px; font-weight: 400; }
html[lang="ja"] .pa-intro { font-size: 20px; }
html[lang="ja"] .pa-social .nd-comments-list .comment-body { font-size: 17px; }
html[lang="ja"] .pa-status-label, html[lang="ja"] .pa-pill, html[lang="ja"] .pa-date, html[lang="ja"] .pa-follow, html[lang="ja"] .pa-login, html[lang="ja"] .pa-login a { font-family: var(--ja-sans, 'Noto Sans JP', sans-serif); letter-spacing: 0.04em; }

/* ============================================================
   Contenus réservés aux membres : mise en valeur dorée (VIP)
   Visiteur : cadre doré, voile cadenas doré, badge « Réservé aux membres ».
   Membre connecté : même cadre doré, badge « Accès membre », aucun flou.
   ============================================================ */
:root {
  --or: #d9b45f;
  --or-vif: #f3dc9a;
  --or-sombre: #8a5f1d;
  --or-lueur: rgba(217, 180, 95, 0.4);
}

/* Cadres (les .pv-frame / .pv-thumb utilisent leur fond comme liseré) */
.nv-locked .pv-frame, .nv-locked .pv-thumb,
.nv-vip .pv-frame, .nv-vip .pv-thumb {
  background: linear-gradient(180deg, var(--or-vif), var(--or-sombre));
}
.nv-locked .pv-frame, .nv-locked .pv-thumb, .nv-locked .pj-featured-media, .nv-locked .pj-card-media,
.nv-locked .hm-card-media, .nv-locked .hm-slide-media, .nv-locked .nv-featured-media, .nv-locked .nv-card-media,
.nv-vip .pv-frame, .nv-vip .pv-thumb, .nv-vip .pj-featured-media, .nv-vip .pj-card-media,
.nv-vip .hm-card-media, .nv-vip .hm-slide-media, .nv-vip .nv-featured-media, .nv-vip .nv-card-media {
  position: relative;
  filter: drop-shadow(0 0 16px var(--or-lueur));
}
.nv-locked .pj-featured-media, .nv-locked .pj-card-media, .nv-locked .hm-card-media, .nv-locked .hm-slide-media,
.nv-vip .pj-featured-media, .nv-vip .pj-card-media, .nv-vip .hm-card-media, .nv-vip .hm-slide-media {
  box-shadow: inset 0 0 0 1px rgba(217, 180, 95, 0.6), 0 0 18px rgba(217, 180, 95, 0.2);
}
.nv-locked .pv-frame, .nv-locked .pv-thumb,
.nv-vip .pv-frame, .nv-vip .pv-thumb { animation: orRespire 4.5s ease-in-out infinite; }
.nv-locked:hover .pv-frame, .nv-locked:hover .pv-thumb,
.nv-vip:hover .pv-frame, .nv-vip:hover .pv-thumb { animation: none; filter: drop-shadow(0 0 22px rgba(243, 220, 154, 0.5)); }
@keyframes orRespire {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(217, 180, 95, 0.22)); }
  50% { filter: drop-shadow(0 0 20px rgba(243, 220, 154, 0.42)); }
}

/* Titres et liens des contenus membres : pointe dorée */
.nv-locked .nv-card-title a, .nv-locked .nv-featured-title a, .nv-locked .nv-archive-title,
.nv-locked .hm-card-title, .nv-locked .hm-news-title, .nv-locked .pj-card-title,
.nv-vip .nv-card-title a, .nv-vip .nv-featured-title a, .nv-vip .nv-archive-title,
.nv-vip .hm-card-title, .nv-vip .hm-news-title, .nv-vip .pj-card-title { color: var(--or); }
.nv-archive-lock { color: var(--or); }

/* Voile cadenas : doré au lieu du rouge */
.nv-locked .lock-overlay, .blurred .lock-overlay {
  background: linear-gradient(160deg, rgba(8, 6, 7, 0.86) 0%, rgba(34, 23, 8, 0.82) 60%, rgba(138, 95, 29, 0.45) 100%);
}
.nv-locked .lock-overlay i, .blurred .lock-overlay i {
  color: var(--or-vif);
  background: rgba(232, 201, 160, 0.12);
  border-color: rgba(232, 201, 160, 0.6);
  box-shadow: 0 0 22px rgba(232, 201, 160, 0.35);
}
.nv-locked .lock-overlay span, .blurred .lock-overlay span { color: var(--or-vif); }

/* Badge doré */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(232, 201, 160, 0.75);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(46, 33, 12, 0.95), rgba(18, 12, 5, 0.95));
  color: var(--or-vif);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(232, 201, 160, 0.22), inset 0 1px 0 rgba(255, 245, 220, 0.14);
}
.vip-badge i { font-size: 11px; color: var(--or-vif); }
.vip-badge.is-member { border-color: rgba(232, 201, 160, 0.5); box-shadow: 0 0 12px rgba(232, 201, 160, 0.16); }
/* Le texte d invitation est plus long : deux lignes autorisees, jamais hors de la carte. */
.vip-badge.is-locked { white-space: normal; max-width: min(84%, 340px); line-height: 1.35; text-align: left; }
.nv-locked .vip-badge.is-locked { top: 10px; right: 10px; }
@media (max-width: 760px) {
  /* Petits ecrans : le badge passe en bas du media, sur toute sa largeur, sans rogner le texte. */
  .vip-badge.is-locked { font-size: 9.5px; letter-spacing: 0.08em; padding: 5px 8px; max-width: none; text-align: center; }
  .nv-locked .vip-badge.is-locked { top: auto; bottom: 8px; left: 8px; right: 8px; justify-content: center; }
}

/* Sur une carte : en haut à droite du média, au-dessus du flou */
.nv-locked .vip-badge, .nv-vip .vip-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 31;
  pointer-events: none;
}
.nv-locked .vip-badge { animation: vipLueur 4.5s ease-in-out infinite; }
@keyframes vipLueur {
  0%, 100% { box-shadow: 0 0 10px rgba(217, 180, 95, 0.16), inset 0 1px 0 rgba(255, 245, 220, 0.12); }
  50% { box-shadow: 0 0 22px rgba(243, 220, 154, 0.42), inset 0 1px 0 rgba(255, 245, 220, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
  .nv-locked .vip-badge, .nv-locked .pv-frame, .nv-locked .pv-thumb, .nv-vip .pv-frame, .nv-vip .pv-thumb { animation: none; }
}

/* Ligne « dernière actualité » de l'accueil et archives : badge à la suite du texte */
.hm-news-line .vip-badge, .nv-archive .vip-badge { position: static; margin-left: 10px; vertical-align: middle; }

/* Pages détail : badge au-dessus du titre */
.pv-info .vip-badge, .nd-info .vip-badge { margin: 0 0 12px; }

@media (max-width: 600px) {
  .vip-badge { font-size: 10px; padding: 5px 9px; letter-spacing: 0.12em; }
  .nv-locked .vip-badge, .nv-vip .vip-badge { top: 8px; right: 8px; }
}

/* Japonais : pas de capitales ni d'espacement latin */
html[lang="ja"] .vip-badge { font-family: var(--ja-sans, 'Noto Sans JP', sans-serif); letter-spacing: 0.06em; text-transform: none; font-size: 12px; }

/* Page Contact : invitation doree a creer un compte (visiteurs non connectes). */
.ct-vip {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 18px 22px;
  text-decoration: none;
  border: 1px solid rgba(217, 180, 95, 0.7);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(46, 33, 12, 0.72), rgba(14, 10, 6, 0.72));
  box-shadow: inset 0 0 18px rgba(217, 180, 95, 0.1);
  animation: orRespire 4.5s ease-in-out infinite;
  transition: border-color .2s ease, transform .15s ease, box-shadow .25s ease;
}
.ct-vip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  font-size: 22px;
  color: var(--or-vif);
  border: 1px solid rgba(217, 180, 95, 0.6);
  border-radius: 6px;
  background: rgba(217, 180, 95, 0.08);
}
.ct-vip-body { display: flex; flex-direction: column; gap: 4px; }
.ct-vip-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--or-vif);
}
.ct-vip-text { font-family: var(--pv-serif); font-size: 18px; line-height: 1.3; color: var(--or); max-width: 340px; }
.ct-vip:hover, .ct-vip:focus-visible {
  animation: none;
  border-color: rgba(243, 220, 154, 0.95);
  transform: translateY(-2px);
  box-shadow: inset 0 0 20px rgba(243, 220, 154, 0.16), 0 0 22px rgba(217, 180, 95, 0.4);
}
.ct-vip:hover .ct-vip-icon, .ct-vip:focus-visible .ct-vip-icon { color: #fff4d8; border-color: rgba(243, 220, 154, 0.9); }
@media (max-width: 600px) {
  .ct-vip { gap: 16px; padding: 16px; }
  .ct-vip-icon { width: 44px; height: 44px; font-size: 18px; }
  .ct-vip-title { font-size: 14px; }
  .ct-vip-text { font-size: 17px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-vip { animation: none; }
  .ct-vip:hover { transform: none; }
}
html[lang="ja"] .ct-vip-title { font-family: var(--ja-serif, 'Shippori Mincho', serif); letter-spacing: 0.06em; text-transform: none; }
html[lang="ja"] .ct-vip-text { font-family: var(--ja-serif, 'Shippori Mincho', serif); font-size: 16px; line-height: 1.75; }
.ct-vip-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ct-vip-btn {
  display: inline-block;
  padding: 9px 20px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1a1205;
  border: 1px solid rgba(217, 180, 95, 0.85);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--or-vif), var(--or));
  transition: filter .2s ease, box-shadow .25s ease, transform .15s ease;
}
.ct-vip-btn.is-ghost { color: var(--or-vif); background: rgba(217, 180, 95, 0.08); }
.ct-vip-btn:hover, .ct-vip-btn:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(217, 180, 95, 0.45);
}
.ct-vip-btn.is-ghost:hover, .ct-vip-btn.is-ghost:focus-visible { color: #fff4d8; background: rgba(243, 220, 154, 0.16); }
/* Pages Connexion / Creer un compte : l'invitation doree descend en bas de la
   colonne de gauche, juste au-dessus du filet rouge. */
.au-intro { display: flex; flex-direction: column; align-self: stretch; }
.au-vip { margin-top: auto; padding-top: 18px; }
.au-intro .au-perks { margin-bottom: 40px; }
@media (max-width: 900px) {
  .au-vip { margin-top: 26px; padding-top: 0; }
  .au-intro .au-perks { margin-bottom: 26px; }
}
@media (max-width: 600px) {
  .ct-vip-btn { padding: 8px 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-vip-btn:hover { transform: none; }
}
html[lang="ja"] .ct-vip-btn { font-family: var(--ja-sans, 'Noto Sans JP', sans-serif); letter-spacing: 0.06em; text-transform: none; }

/* Inscription : case (non cochee) pour les e-mails d'information. */
.au-optin { align-items: flex-start; }
.au-optin small { display: block; margin-top: 3px; font-size: 0.88em; color: #b7aeb0; }

/* ============================================================
   Archives du journal : grille de cartes (accueil + page Actualite)
   ============================================================ */
.ar { margin: 46px 0 10px; }
.ar-head { margin: 0 0 26px; }
.ar-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 10px;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blood);
}
.ar-kicker .ar-line { flex: 1; height: 1px; background: var(--pv-red-soft); }
.ar-kicker .pv-fleur { width: 18px; height: 18px; flex-shrink: 0; color: var(--blood); }
.ar-title { margin: 0; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.02; }

.ar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 28px;
}
.ar-tabs { display: flex; flex-wrap: wrap; gap: 30px; }
.ar-tab {
  padding: 0 0 10px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a79ba0;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.ar-tab:hover { color: #ece3e4; border-bottom-color: var(--pv-red-soft); }
.ar-tab.is-active { color: var(--blood); border-bottom-color: var(--blood); }
.ar-search {
  --c: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  padding: 11px 18px;
  color: #8f8a93;
  background: rgba(10, 7, 9, 0.7);
  border: 1px solid var(--pv-red-soft);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: border-color .2s ease;
}
.ar-search:focus-within { border-color: var(--blood); }
.ar-search input {
  flex: 1;
  min-width: 0;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ece3e4;
  background: none;
  border: 0;
  outline: none;
}
.ar-search input::placeholder { color: #7d7278; }

.ar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.ar-card {
  --c: 12px;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  padding: 2px;
  background: linear-gradient(180deg, #d4303b, #7c1219);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: filter .2s ease, transform .15s ease;
}
.ar-card[hidden] { display: none; }
.ar-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: #0b080a;
  clip-path: polygon(calc(var(--c) - 1px) 0, calc(100% - var(--c) + 1px) 0, 100% calc(var(--c) - 1px), 100% calc(100% - var(--c) + 1px), calc(100% - var(--c) + 1px) 100%, calc(var(--c) - 1px) 100%, 0 calc(100% - var(--c) + 1px), 0 calc(var(--c) - 1px));
}
.ar-card:hover { transform: translateY(-2px); filter: drop-shadow(0 0 18px rgba(196, 32, 44, 0.35)); }
.ar-card-media {
  --c: 10px;
  position: relative;
  z-index: 1;
  flex: 0 0 38%;
  max-width: 38%;
  margin: 0;
  opacity: 1;
}
.ar-card-media .pv-thumb-media { height: 100%; aspect-ratio: auto; min-height: 210px; }
.ar-card-media:hover { transform: none; }
.ar-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 24px 28px;
}
.ar-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; }
.ar-card-date {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blood);
}
.ar-card-title {
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f1f3;
}
.ar-card-title a { text-decoration: none; transition: color .2s ease; }
.ar-card-title a:hover { color: var(--blood); }
.ar-card-excerpt {
  margin: 0 0 20px;
  font-family: var(--pv-serif);
  font-size: 19px;
  line-height: 1.4;
  color: #cfc5c7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ar-card-read { margin-top: auto; padding: 0; }

.ar-empty {
  margin: 28px 0;
  padding: 26px;
  text-align: center;
  font-family: var(--pv-serif);
  font-size: 20px;
  color: #a79ba0;
  border: 1px solid var(--pv-red-soft);
}
.ar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin: 34px 0 0;
  padding: 16px 4px 0;
  border-top: 1px solid var(--pv-red-soft);
}
.ar-count {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a79ba0;
}
.ar-more { padding: 0; }
.ar-pager { margin: 0; }
.ar-pager[hidden] { display: none; }
.ar-pager .nv-pager-count { letter-spacing: 0.18em; }

@media (max-width: 1100px) {
  .ar-card-media { flex-basis: 42%; max-width: 42%; }
  .ar-card-body { padding: 20px 22px; }
}
@media (max-width: 900px) {
  .ar-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-search { min-width: 0; width: 100%; }
  .ar-tabs { gap: 22px; }
}
@media (max-width: 620px) {
  .ar-card { flex-direction: column; }
  .ar-card-media { flex: 0 0 auto; max-width: none; width: 100%; }
  .ar-card-media .pv-thumb-media { min-height: 0; aspect-ratio: 16 / 9; }
  .ar-card-body { padding: 18px 18px 22px; }
  .ar-card-excerpt { font-size: 18px; }
  .ar-foot { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-card:hover { transform: none; }
}
html[lang="ja"] .ar-kicker,
html[lang="ja"] .ar-tab,
html[lang="ja"] .ar-card-date,
html[lang="ja"] .ar-count,
html[lang="ja"] .ar-search input { font-family: var(--ja-sans, 'Noto Sans JP', sans-serif); letter-spacing: 0.06em; text-transform: none; }
html[lang="ja"] .ar-title,
html[lang="ja"] .ar-card-title { font-family: var(--ja-serif, 'Shippori Mincho', serif); letter-spacing: 0.04em; text-transform: none; }
html[lang="ja"] .ar-card-excerpt { font-family: var(--ja-serif, 'Shippori Mincho', serif); font-size: 17px; line-height: 1.75; }
.ar-card-media .vip-badge { position: absolute; top: 10px; right: 10px; left: 10px; z-index: 2; }
.ar-card-media .vip-badge.is-locked { max-width: none; font-size: 10px; letter-spacing: 0.08em; padding: 5px 9px; text-align: center; justify-content: center; }
.ar-card-media .vip-badge.is-member { left: auto; }
@media (max-width: 620px) {
  /* Telephone : le filet et la fleur de lys prennent trop de place a cote du sur-titre. */
  .ar-kicker { gap: 12px; font-size: 12px; letter-spacing: 0.18em; }
  .ar-kicker .ar-line, .ar-kicker .pv-fleur { display: none; }
}

/* Grand panneau de l'accueil : le titre y est enorme et monte jusqu'au coin.
   Le badge d'invitation garde son coin haut droit, mais en colonne etroite,
   pour ne plus passer par-dessus le titre. */
@media (min-width: 761px) {
  .hm-slide .vip-badge.is-locked {
    max-width: 180px;
    font-size: 9.5px;
    letter-spacing: 0.07em;
    line-height: 1.3;
    padding: 5px 9px;
  }
}
