/* ============================================================================
   EN AVANT — ULTRA.CSS · Design System « Ultra-Moderne »
   Direction : full dark bleu nuit (style Linear/Stripe), orange en accent
   chirurgical, typographie géante Space Grotesk, glassmorphism profond.
   Cette feuille REMPLACE style.css / blog.css / organisation.css /
   vingt-chantiers-haiti.css / livre-blanc.css sur toutes les pages.
   (premium.css reste chargée après : formulaires .ea-*, rideau, chatbot.)
   ============================================================================ */

/* ----------------------------------------------------------------------------
   01 · TOKENS & BASE
---------------------------------------------------------------------------- */
:root {
  /* Bleu nuit assumé : presque noir, mais le bleu se voit */
  --night-950: #050b1d;
  --night-900: #071229;
  --night-850: #0a1834;
  --night-800: #0e2044;
  --night-700: #16305c;
  --night-600: #1f4378;

  /* Orange = couleur primaire de la marque */
  --orange: #ff6a2a;
  --orange-light: #ff8a4c;
  --orange-deep: #e0551f;
  --peach: #ffd9c6;

  /* Rouge du bicolore haïtien — par petites touches uniquement */
  --rouge: #d21034;
  --rouge-deep: #a30d28;

  --ink-100: #f2f5fa;
  --ink-200: rgba(238, 243, 250, 0.92);
  --ink-300: rgba(225, 233, 244, 0.72);
  --ink-400: rgba(205, 216, 232, 0.55);

  --line-1: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --glass-nav: rgba(7, 17, 38, 0.66);

  --grad-text: linear-gradient(108deg, var(--peach) 8%, var(--orange) 70%, var(--orange-light) 100%);
  --grad-btn: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);

  --glow-orange: 0 16px 50px rgba(255, 106, 42, 0.35);
  --shadow-1: 0 24px 70px rgba(2, 6, 12, 0.55);
  --shadow-2: 0 40px 120px rgba(2, 6, 12, 0.65);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s ease;
  --t-smooth: 0.45s var(--ease);

  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, sans-serif;

  --shell: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-300);
  background-color: var(--night-950);
  background-image:
    radial-gradient(52% 38% at 88% -6%, rgba(255, 106, 42, 0.12), transparent 70%),
    radial-gradient(46% 34% at 4% 4%, rgba(31, 82, 158, 0.42), transparent 70%),
    radial-gradient(30% 24% at 8% 98%, rgba(210, 16, 52, 0.07), transparent 70%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-950) 100%);
  background-repeat: no-repeat;
  background-size: 100% 1400px;
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; }
p, h1, h2, h3, h4, blockquote, figure { margin: 0 0 1rem; }
address { font-style: normal; }
iframe { border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-100);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.container, .u-shell {
  width: min(calc(100% - 2.5rem), var(--shell));
  margin: 0 auto;
}

.narrow-container, .reading-block {
  width: min(calc(100% - 2.5rem), 860px);
  margin: 0 auto;
}

.section, .intro, .themes-section, .chantier-section,
.blog-archive, .organisation-structure, .content {
  position: relative;
  padding: 6.5rem 0;
}

.text-center { text-align: center; }
.mt-5 { margin-top: 2.5rem; }
.pt-5 { padding-top: 1rem; }
.site-shell { display: contents; }
.top-line, .blog-hero-wave, .translate-widget:empty { display: none; }

/* ----------------------------------------------------------------------------
   02 · TYPOGRAPHIE — kickers, titres, texte
---------------------------------------------------------------------------- */
.section-kicker, .card-kicker, .statement-kicker, .section-tag,
.orga-kicker, .mini-label, .filters-label, .vision-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  color: var(--orange-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.section-kicker::before, .section-tag::before, .orga-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent);
}

.section-head.center .section-kicker::before,
.section-heading.centered .section-tag::before { display: none; }

.section-title,
.section-heading h2,
.organisation-structure h2,
.intro-section h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.035em;
  color: var(--ink-100);
  max-width: 22ch;
}

.section-head.center .section-title,
.section-heading.centered h2 {
  margin-inline: auto;
}

.section-head { margin-bottom: 3.2rem; }
.section-head.center, .section-heading.centered { text-align: center; }
.section-heading { margin-bottom: 2.6rem; }

.section-intro, .section-heading p {
  max-width: 680px;
  color: var(--ink-300);
}

.section-head.center .section-intro { margin-inline: auto; }

.section-heading.centered p { margin-inline: auto; }

.about-rich-text p, .reading-block p, .light-text {
  margin-bottom: 1.3rem;
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-300);
}

.about-rich-text strong, .reading-block strong { color: var(--ink-100); }

::selection { background: rgba(255, 106, 42, 0.85); color: #fff; }

/* ----------------------------------------------------------------------------
   03 · BOUTONS — toutes les variantes héritées unifiées
---------------------------------------------------------------------------- */
.btn, .btn-primary, .btn-outline, .btn-light, .btn-white,
.btn-ghost, .btn-secondary, .btn-dark, .btn-outline-light,
.btn-outline-primary, .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--t-smooth), box-shadow var(--t-smooth),
    background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn-primary, .search-submit {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), var(--glow-orange);
}

.btn-primary:hover, .search-submit:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 22px 60px rgba(255, 106, 42, 0.45);
}

.btn-light, .btn-white {
  background: var(--ink-100);
  color: var(--night-900);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.btn-light:hover, .btn-white:hover { transform: translateY(-2px); background: #fff; }

.btn-secondary, .btn-ghost, .btn-outline, .btn-dark,
.btn-outline-light, .btn-outline-primary {
  background: rgba(16, 26, 44, 0.55);
  color: var(--ink-200);
  border-color: var(--line-2);
}

.btn-secondary:hover, .btn-ghost:hover, .btn-outline:hover, .btn-dark:hover,
.btn-outline-light:hover, .btn-outline-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 76, 0.6);
  color: #fff;
  background: rgba(255, 106, 42, 0.08);
}

.btn:active, .btn-primary:active, .btn-light:active, .btn-ghost:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.12s;
}

.btn-lg { min-height: 58px; padding: 1rem 2rem; font-size: 1.05rem; }
.btn-full, .w-100 { width: 100%; }

.text-link, .read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--orange-light);
  font-weight: 800;
}

.text-link i, .read-more-link i { transition: transform var(--t-fast); }
.text-link:hover i, .read-more-link:hover i { transform: translateX(5px); }

/* ----------------------------------------------------------------------------
   04 · CHIP / EYEBROW
---------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(16, 26, 44, 0.6);
  border: 1px solid var(--line-1);
  color: var(--ink-200);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 106, 42, 0.9);
  animation: uPulse 2.4s ease-in-out infinite;
}

@keyframes uPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

/* ----------------------------------------------------------------------------
   05 · REVEAL — compatible app.js (.visible), pages (.is-visible), premium (.ea-in)
---------------------------------------------------------------------------- */
html.js-ready .reveal-up,
html.js-ready .reveal-left,
html.js-ready .reveal-right,
html.js-ready .reveal-hidden {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  will-change: opacity, transform;
}

html.js-ready .reveal-up, html.js-ready .reveal-hidden { transform: translateY(30px); }
html.js-ready .reveal-left { transform: translateX(-34px); }
html.js-ready .reveal-right { transform: translateX(34px); }

html.js-ready .reveal-up.visible, html.js-ready .reveal-up.is-visible, html.js-ready .reveal-up.ea-in,
html.js-ready .reveal-left.visible, html.js-ready .reveal-left.is-visible, html.js-ready .reveal-left.ea-in,
html.js-ready .reveal-right.visible, html.js-ready .reveal-right.is-visible, html.js-ready .reveal-right.ea-in,
html.js-ready .reveal-hidden.visible, html.js-ready .reveal-hidden.is-visible, html.js-ready .reveal-hidden.ea-in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ----------------------------------------------------------------------------
   06 · NAVBAR « PILULE FLOTTANTE » (.u-nav) — partagée par toutes les pages
---------------------------------------------------------------------------- */
/* Barre statique pleine largeur : toujours visible, collée en haut. */
.u-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1400;
  background: var(--glass-nav);
  border-bottom: 1px solid var(--line-1);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  transition: box-shadow var(--t-smooth), background var(--t-fast), border-color var(--t-fast);
}

.u-nav-shell {
  width: min(calc(100% - 2.4rem), 1440px); /* DAT : rendu aéré jusqu'à 1440px */
  margin: 0 auto;
  min-height: 76px;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.u-nav.scrolled,
.u-nav.is-scrolled {
  background: rgba(6, 10, 19, 0.88);
  border-color: var(--line-2);
  box-shadow: 0 18px 60px rgba(2, 6, 12, 0.55);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 44px; }

.brand.ea-no-logo, .footer-logo.ea-no-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  font-size: 1rem;
  white-space: nowrap;
}

.brand.ea-no-logo i { color: var(--orange); font-style: normal; }

.u-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.u-links > a {
  padding: 0.6rem 0.85rem;
  border-radius: var(--r-pill);
  color: var(--ink-300);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap; /* jamais de libellé sur deux lignes */
  transition: color var(--t-fast), background var(--t-fast);
}

.u-links > a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.u-links > a.active, .u-links > a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 106, 42, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 76, 0.35);
}

.u-links-cta { display: none; }

.u-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.u-login {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-pill);
  color: var(--ink-300);
  font-weight: 700;
  font-size: 0.92rem;
  transition: color var(--t-fast);
}

.u-login:hover { color: var(--peach); }

.u-admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 106, 42, 0.12);
  border: 1px solid rgba(255, 106, 42, 0.35);
  color: var(--peach, #ff6a2a);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  margin-left: 0.4rem;
}
.u-admin-pill:hover {
  background: rgba(255, 106, 42, 0.22);
  border-color: rgba(255, 106, 42, 0.6);
  color: var(--peach, #ff6a2a);
}

.u-nav .btn-ghost, .u-nav .btn-primary { min-height: 44px; padding: 0.6rem 1.2rem; }

.menu-toggle, .btn-hamburger {
  display: none;
  width: 46px;
  height: 46px;
  flex: none;
  border: 1px solid var(--line-1);
  border-radius: var(--r-pill);
  background: var(--glass-2);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span, .btn-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4.5px auto;
  border-radius: var(--r-pill);
  background: #fff;
  transition: var(--t-fast);
}

.menu-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* La barre principale reste STATIQUE : jamais masquée au scroll
   (premium.js exempte .u-nav ; cette règle est une ceinture de sécurité). */
.u-nav.ea-header-hidden { transform: none !important; }

/* ----------------------------------------------------------------------------
   07 · FOOTER MEGA (.u-footer)
---------------------------------------------------------------------------- */
.u-footer {
  position: relative;
  margin-top: 4rem;
  padding-top: 5.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 13, 0.9));
}

.u-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 106, 42, 0.65) 38%,
    rgba(210, 16, 52, 0.55) 62%,
    transparent
  );
}

.u-footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.u-footer h4 {
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.u-footer-brand img { height: 46px; margin-bottom: 1.2rem; }
.u-footer-brand p { max-width: 34ch; color: var(--ink-300); }

.u-footer li + li { margin-top: 0.75rem; }

.u-footer li a {
  color: var(--ink-300);
  transition: color var(--t-fast), padding-left var(--t-fast);
}

.u-footer li a:hover { color: var(--peach); padding-left: 6px; }

.u-footer address p {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  color: var(--ink-300);
}

.u-footer address i { color: var(--orange); font-size: 0.85rem; }

.u-socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; }

.u-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-1);
  background: var(--glass);
  color: var(--ink-200);
  transition: var(--t-smooth);
}

.u-socials a:hover {
  background: var(--orange);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--glow-orange);
}

.u-footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-1);
}

.u-footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  font-size: 0.92rem;
  color: var(--ink-400);
}

.u-footer-bottom-row a:hover { color: var(--peach); }
.legal-links { display: flex; gap: 1.4rem; }

.u-footer-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 17vw, 15rem);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  user-select: none;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   08 · CARTE DE VERRE — primitive partagée par toutes les pages
---------------------------------------------------------------------------- */
/* NB : pas de backdrop-filter sur les cartes (coût GPU ×40 sur mobile) —
   le rendu "verre" vient du dégradé translucide + bordure + ombre interne. */
.u-card, .u-tile,
.about-card, .value-card, .order-card, .statement-box,
.christophe-panel, .history-highlight,
.manifesto-card, .chantier-card, .panel-card,
.premium-blog-card, .orga-card,
.mini-news-card, .news-cta-box, .feature-card, .process-card {
  position: relative;
  padding: 1.9rem;
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(16, 26, 44, 0.72), rgba(10, 17, 30, 0.6));
  border: 1px solid var(--line-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 50px rgba(2, 6, 12, 0.35);
  transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth);
}

.u-card h3, .about-card h3, .value-card h3, .order-card h3,
.manifesto-card h3, .chantier-card h3, .process-card h3 {
  font-size: 1.28rem;
  margin-bottom: 0.7rem;
}

.u-card p, .about-card p, .value-card p, .order-card p,
.manifesto-card p, .chantier-card p, .process-card p {
  margin: 0;
  color: var(--ink-300);
  font-size: 0.99rem;
}

/* Icônes en pastille */
.value-card > i, .order-card > i, .manifesto-icon, .process-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 106, 42, 0.12);
  border: 1px solid rgba(255, 138, 76, 0.25);
  color: var(--orange-light);
  font-size: 1.2rem;
}

/* ----------------------------------------------------------------------------
   09 · HERO ACCUEIL — atmosphère, typo géante, cadre média en verre
---------------------------------------------------------------------------- */
.u-hero {
  position: relative;
  padding: 11rem 0 5.5rem;
  overflow: hidden;
}

.u-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 32%, black 30%, transparent 100%);
  mask-image: radial-gradient(60% 55% at 50% 32%, black 30%, transparent 100%);
  pointer-events: none;
}

.u-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(40% 44% at 20% 22%, rgba(255, 106, 42, 0.18), transparent 72%),
    radial-gradient(36% 40% at 82% 66%, rgba(31, 82, 158, 0.5), transparent 72%),
    radial-gradient(22% 26% at 72% 14%, rgba(210, 16, 52, 0.09), transparent 70%);
  pointer-events: none;
}

.u-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 4rem;
  align-items: center;
}

.u-display {
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink-100);
}

.u-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.u-lead {
  max-width: 52ch;
  margin-bottom: 2.2rem;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--ink-300);
}

.u-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.u-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-1);
}

.u-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.u-stat span {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* Cadre média de verre */
.u-frame {
  position: relative;
  border-radius: var(--r-lg);
  padding: 0.65rem;
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.8), rgba(10, 17, 30, 0.65));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.8s var(--ease);
}

.u-frame:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }

.u-frame img, .u-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  max-height: 520px;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 0.65rem);
}

.u-frame-chip {
  position: absolute;
  left: -1.4rem;
  bottom: 2rem;
  z-index: 3;
  max-width: 270px;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-md);
  background: rgba(7, 12, 22, 0.92);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
}

.u-frame-chip strong {
  display: block;
  font-family: var(--font-display);
  color: var(--peach);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.u-frame-chip span { font-size: 0.88rem; color: var(--ink-300); }

.u-hero-socials { display: flex; gap: 0.7rem; margin-top: 2.2rem; }

.u-hero-socials a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-1);
  background: rgba(16, 26, 44, 0.55);
  color: var(--ink-200);
  transition: var(--t-smooth);
}

.u-hero-socials a:hover {
  background: var(--orange);
  border-color: transparent;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--glow-orange);
}

/* ----------------------------------------------------------------------------
   10 · MARQUEE — bande de mots-clés défilante
---------------------------------------------------------------------------- */
.u-marquee {
  position: relative;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.u-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
  white-space: nowrap;
  animation: uMarquee 36s linear infinite;
  will-change: transform;
}

.u-marquee:hover .u-marquee-track { animation-play-state: paused; }

@keyframes uMarquee {
  to { transform: translateX(-50%); }
}

.u-marquee-track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.u-marquee-track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.7;
}

/* Une pastille sur deux en rouge : clin d'œil au bicolore */
.u-marquee-track i:nth-of-type(even) { background: var(--rouge); }

/* ----------------------------------------------------------------------------
   11 · BENTO GRID
---------------------------------------------------------------------------- */
.u-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.u-tile { padding: 2.1rem; overflow: hidden; }

.u-tile--xl { grid-column: span 4; grid-row: span 2; }
.u-tile--tall { grid-column: span 2; grid-row: span 2; }
.u-tile--half { grid-column: span 3; }
.u-tile--third { grid-column: span 2; }

.u-tile--orange {
  background: linear-gradient(
    135deg,
    rgba(255, 106, 42, 0.94) 0%,
    rgba(224, 85, 31, 0.9) 58%,
    rgba(178, 18, 46, 0.88) 135%
  );
  border-color: rgba(255, 217, 198, 0.35);
}

.u-tile--orange h3, .u-tile--orange p { color: #fff; }
.u-tile--orange .section-kicker { color: rgba(255, 255, 255, 0.85); }

.u-tile blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink-100);
}

.u-tile blockquote::before {
  content: "“";
  display: block;
  font-size: 3.4rem;
  line-height: 0.6;
  margin-bottom: 1rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.u-tile-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.u-tile-label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.u-tile-video { padding: 0.55rem; }

.u-tile-video iframe {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: calc(var(--r-lg) - 0.55rem);
}

/* ----------------------------------------------------------------------------
   12 · ACTUALITÉS (accueil)
---------------------------------------------------------------------------- */
.u-news {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1.2rem;
  align-items: stretch;
}

.feature-card { padding: 0; overflow: hidden; }

.feature-media { position: relative; height: 380px; overflow: hidden; }

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  filter: saturate(0.92);
}

.feature-card:hover .feature-media img { transform: scale(1.05); }

.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4, 7, 13, 0.65));
}

.feature-badge, .card-badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  background: rgba(6, 10, 19, 0.72);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--peach);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-body { padding: 1.9rem; }

.meta-row, .mini-news-meta, .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
  font-size: 0.84rem;
  color: var(--ink-400);
}

.feature-body h3 { font-size: 1.65rem; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.feature-body p { color: var(--ink-300); margin-bottom: 1.3rem; }

.news-stack { display: flex; flex-direction: column; gap: 1.2rem; }

.mini-news-card { flex: 1; padding: 1.5rem; }
.mini-news-card h4 { font-size: 1.12rem; line-height: 1.35; margin-bottom: 0.9rem; }
.mini-news-card a { color: var(--orange-light); font-weight: 800; font-size: 0.95rem; }

.news-cta-box { display: grid; place-items: center; padding: 1.5rem; }

/* ----------------------------------------------------------------------------
   13 · ÉTAPES D'ADHÉSION
---------------------------------------------------------------------------- */
.u-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: steps;
}

.process-card { padding: 2.2rem 1.9rem; }

.process-number {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 138, 76, 0.65);
}

/* ----------------------------------------------------------------------------
   14 · GALERIE — slider plein cadre
---------------------------------------------------------------------------- */
.premium-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-1);
  background: var(--night-850);
  box-shadow: var(--shadow-1);
}

.slider-track { position: relative; min-height: 540px; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.active { opacity: 1; visibility: visible; transform: scale(1); z-index: 2; }

.slide img { width: 100%; height: 540px; object-fit: cover; }

.slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  min-height: 34%;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.2rem;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 13, 0.92));
}

.slide-overlay span {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--peach);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.slide-overlay h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 2rem); color: #fff; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(6, 10, 19, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  cursor: pointer;
  transition: var(--t-fast);
}

.slider-arrow:hover { background: var(--orange); border-color: transparent; }
.slider-arrow-prev { left: 1.1rem; }
.slider-arrow-next { right: 1.1rem; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.55rem;
}

.slider-dot {
  position: relative;
  width: 22px;
  height: 4px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--t-fast);
}

.slider-dot::before { content: ""; position: absolute; inset: -9px; }
.slider-dot.active { width: 38px; background: var(--orange); }

/* ----------------------------------------------------------------------------
   15 · CTA FINAL
---------------------------------------------------------------------------- */
.u-cta { text-align: center; }

.u-cta-inner {
  position: relative;
  padding: 5rem 2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-1);
  background:
    radial-gradient(60% 90% at 50% -20%, rgba(255, 106, 42, 0.22), transparent 70%),
    linear-gradient(180deg, var(--glass-2), var(--glass));
  overflow: hidden;
}

.u-cta h2 {
  max-width: 18ch;
  margin: 0 auto 1.1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.04em;
}

.u-cta p { max-width: 56ch; margin: 0 auto 2rem; color: var(--ink-300); }

.u-cta .u-actions { justify-content: center; margin-bottom: 0; }

/* ----------------------------------------------------------------------------
   16 · LOADER (accueil)
---------------------------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 106, 42, 0.14), transparent 36%),
    linear-gradient(135deg, var(--night-950) 0%, var(--night-800) 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.page-loader.hidden { opacity: 0; visibility: hidden; }
/* Visiteur déjà venu : pas d'intro logo (masqué dès le <head>, zéro flash). */
html.ea-returning .page-loader { display: none !important; }
.loader-inner { text-align: center; }
.loader-logo {
  width: min(420px, 72vw);
  margin: 0 auto 2rem;
  animation: loaderLogoIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes loaderLogoIn {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .loader-logo { animation: none; } }

.loader-line {
  width: 150px;
  height: 3px;
  margin: 0 auto;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  animation: loaderMove 1.2s ease-in-out infinite;
}

@keyframes loaderMove {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

/* ----------------------------------------------------------------------------
   17 · HÉROS DE PAGES INTERNES (à propos, historique, organisation)
---------------------------------------------------------------------------- */
.about-hero, .history-hero, .hero-band, .blog-hero,
.site-shell .hero, .lb-hero {
  position: relative;
  padding: 10.5rem 0 4.5rem;
  overflow: hidden;
}

.about-hero::after, .history-hero::after, .hero-band::after,
.blog-hero::after, .site-shell .hero::after, .lb-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(38% 42% at 16% 32%, rgba(255, 106, 42, 0.14), transparent 72%),
    radial-gradient(36% 40% at 86% 62%, rgba(28, 58, 102, 0.42), transparent 72%);
  pointer-events: none;
}

.about-hero-bg, .history-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  filter: saturate(0.7);
}

.about-hero-bg { background-image: url("../pictures/about-hero.jpeg"); }
.history-hero-bg { background-image: url("../pictures/home-galerie/galerie-3.jpeg"); }

.about-hero-overlay, .history-hero-overlay, .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 13, 0.2), rgba(4, 7, 13, 0.75));
}

.about-hero-content, .history-hero-content,
.hero-band .container, .blog-hero .container {
  position: relative;
  z-index: 2;
}

.about-hero-content h1, .history-hero-content h1,
.hero-band h1, .blog-hero-title, .lb-hero h1 {
  max-width: 18ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.about-hero-content p, .history-hero-content p,
.blog-hero-text, .lb-hero p {
  max-width: 64ch;
  font-size: 1.1rem;
  color: var(--ink-300);
}

/* Sections héritées : tout est sombre désormais, avec des nuances */
.section-light, .section-soft { background: transparent; }

.section-soft::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0;
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  pointer-events: none;
}

.section-dark {
  background:
    radial-gradient(50% 70% at 80% 10%, rgba(255, 106, 42, 0.08), transparent 65%),
    rgba(2, 5, 10, 0.45);
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}

.section-title.light, .section-kicker.light { color: inherit; }
.section-kicker.light { color: var(--orange-light); }
.section-intro.light { color: var(--ink-300); }

/* Blocs spécifiques à propos / historique */
.about-split, .history-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.statement-box { text-align: center; padding: 3.2rem 2.4rem; }

.statement-box blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink-100);
}

.values-grid, .order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.christophe-grid, .history-dark-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.christophe-item {
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-1);
}

.christophe-item + .christophe-item { margin-top: 0.8rem; }
.christophe-item strong { display: block; color: var(--peach); margin-bottom: 0.25rem; }
.christophe-item span { color: var(--ink-300); font-size: 0.96rem; }

.history-highlight blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--ink-100);
}

.history-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.history-photo {
  margin: 0;
  height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-1);
}

.history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.9s var(--ease);
}

.history-photo:hover img { transform: scale(1.06); }

.history-final-call {
  max-width: 760px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 1.08rem;
}

.history-final-call strong { color: var(--peach); letter-spacing: 0.06em; }

/* ----------------------------------------------------------------------------
   18 · BLOG
---------------------------------------------------------------------------- */
.blog-hero { text-align: center; padding-bottom: 3rem; }
.blog-hero-title { margin-inline: auto; }
.blog-hero-text { margin: 0 auto 2.2rem; }

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 0.45rem 0.45rem 0.45rem 3rem;
  border-radius: var(--r-pill);
  background: rgba(16, 26, 44, 0.6);
  border: 1px solid var(--line-2);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.search-form:focus-within {
  border-color: rgba(255, 138, 76, 0.55);
  box-shadow: 0 18px 50px -20px rgba(255, 106, 42, 0.55);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--ink-400);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0.7rem 0.2rem;
}

.search-form input::placeholder { color: var(--ink-400); }
.search-form input:focus { outline: none; }
.search-submit { min-height: 46px; }

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.filters-label { margin: 0; }

.filters-scroll-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.quick-tag, .theme-tab {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(16, 26, 44, 0.55);
  color: var(--ink-300);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--t-fast);
}

.quick-tag:hover, .theme-tab:hover {
  color: #fff;
  border-color: rgba(255, 138, 76, 0.5);
}

.quick-tag.active, .theme-tab.is-active {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-orange);
}

.grid-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.page-blog .blog-archive {
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 67, 120, 0.28), transparent 34%),
    radial-gradient(circle at 88% 72%, rgba(255, 106, 42, 0.08), transparent 30%),
    var(--night-950);
}

.premium-blog-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.card-image-box { position: relative; height: 215px; overflow: hidden; }

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.9s var(--ease);
}

.premium-blog-card:hover .card-image-box img { transform: scale(1.07); }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,106,42,.08) 0%, rgba(10,20,50,.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,106,42,.3);
}

.card-content-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.card-title { font-size: 1.16rem; line-height: 1.4; margin-bottom: 0.7rem; }
.page-blog .card-title a { color: #111827; transition: color var(--t-fast); }
.card-title a:hover { color: var(--peach); }

.page-blog .card-excerpt {
  color: #4b5563;
  font-size: 0.95rem;
  margin-bottom: 1.3rem;
  text-align: justify;
  text-justify: inter-word;
}

.page-blog .card-meta { color: #6b7280; }
.page-blog .card-actions-bar { border-top-color: #e5e7eb; }

.card-actions-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-1);
}

.share-tools { display: flex; gap: 0.45rem; }

.btn-share-direct {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-1);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink-300);
  cursor: pointer;
  transition: var(--t-fast);
}

.btn-share-direct:hover { color: #fff; border-color: rgba(255, 138, 76, 0.55); }
.btn-share-direct.is-copied { background: rgba(47, 208, 143, 0.18); color: #2fd08f; border-color: rgba(47, 208, 143, 0.4); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.page-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-1);
  background: var(--glass);
  color: var(--ink-300);
  font-weight: 700;
  transition: var(--t-fast);
}

.page-link:hover { color: #fff; border-color: rgba(255, 138, 76, 0.5); }
.page-link.active { background: var(--grad-btn); border-color: transparent; color: #fff; }
.page-dots { color: var(--ink-400); }

/* ----------------------------------------------------------------------------
   19 · VINGT CHANTIERS
---------------------------------------------------------------------------- */
.site-shell .hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero-copy h1 span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-lead { max-width: 56ch; font-size: 1.08rem; color: var(--ink-300); margin-bottom: 1.8rem; }

.hero-actions-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-1);
}

.hero-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta span {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
}

.hero-panel { display: grid; gap: 1.1rem; }

.panel-flag h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel-pillars ul { display: grid; gap: 0.8rem; }

.panel-pillars li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink-200);
  font-weight: 600;
}

.panel-pillars i { color: var(--orange-light); }

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chantier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.chantier-card { display: flex; flex-direction: column; padding: 1.7rem; }

.chantier-card.is-hidden { display: none; }

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.card-index {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 138, 76, 0.6);
}

.card-top i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 106, 42, 0.12);
  border: 1px solid rgba(255, 138, 76, 0.25);
  color: var(--orange-light);
  font-size: 1rem;
}

.chantier-card h3 { font-size: 1.12rem; }
.chantier-card p { flex: 1; font-size: 0.93rem; }

.card-theme {
  margin-top: 1.2rem;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-1);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ----------------------------------------------------------------------------
   20 · ORGANISATION
---------------------------------------------------------------------------- */
.structure-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.6rem 0 2rem;
}

.structure-list li {
  position: relative;
  padding: 1rem 1.2rem 1rem 2.7rem;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--line-1);
  color: var(--ink-200);
  font-weight: 600;
}

.structure-list li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 106, 42, 0.8);
}

.intro-section h3 {
  margin: 2.4rem 0 1rem;
  font-size: 1.5rem;
}

.cta-row { margin-top: 2rem; }

.orga-section { margin-bottom: 0; }

.orga-section h3 {
  margin: 0 0 1.4rem;
  font-size: 1.3rem;
  color: var(--ink-100);
}

.orga-grid { display: grid; gap: 0.9rem; }
/* Carte unique (ex. Conseil Stratégique) : flex = centrage garanti partout */
.orga-grid-1 { display: flex; justify-content: center; }
.orga-grid-1 .orga-card { width: min(320px, 100%); }
.orga-grid-3 { grid-template-columns: repeat(3, 1fr); }
.orga-grid-6 { grid-template-columns: repeat(3, 1fr); }
.orga-grid-10 { grid-template-columns: repeat(5, 1fr); }

.orga-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.4rem 1rem;
  text-align: center;
}

.orga-card p { margin: 0; color: var(--ink-100); font-weight: 700; }

.orga-card span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* Emplacement photo : initiales en attendant l'upload depuis le Dashboard.
   Dès qu'une vraie photo est posée (<img> injectée), elle remplit le cercle. */
.orga-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--peach);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 138, 76, 0.42), transparent 60%),
    linear-gradient(160deg, var(--night-700), var(--night-850));
  border: 2px dashed rgba(255, 138, 76, 0.45);
  transition: border-color var(--t-fast);
}

.orga-card:hover .orga-avatar { border-color: rgba(255, 138, 76, 0.8); }

.orga-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Lignes de l'organigramme : connecteur net avec points d'ancrage */
.orga-divider {
  position: relative;
  height: 64px;
  width: 2px;
  margin: 1.4rem auto;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--orange) 0%, rgba(31, 82, 158, 0.9) 100%);
  box-shadow: 0 0 14px rgba(255, 106, 42, 0.35);
}

.orga-divider::before,
.orga-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.orga-divider::before { top: -4px; background: var(--orange); }
.orga-divider::after { bottom: -4px; background: #2c5aa8; }

.flash-target {
  animation: uFlash 1.4s ease;
  border-radius: var(--r-lg);
}

/* ----------------------------------------------------------------------------
   31 · DASHBOARD — GESTION DE L'ÉQUIPE (organigramme éditable)
---------------------------------------------------------------------------- */
.adm-team-section { margin-bottom: 1.8rem; }

.adm-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.7rem;
}

.adm-team-head h5 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.adm-team-row {
  display: grid;
  grid-template-columns: 24px 48px minmax(150px, 1.2fr) minmax(130px, 1fr) auto auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem;
  margin-bottom: 0.55rem;
  border: 1px solid var(--line-1);
  border-radius: 14px;
  background: rgba(10, 17, 30, 0.5);
}

.adm-team-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--peach);
  background: linear-gradient(160deg, var(--night-700), var(--night-850));
  border: 2px dashed rgba(255, 138, 76, 0.45);
}

.adm-team-thumb img { width: 100%; height: 100%; object-fit: cover; }

.adm-team-row input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(16, 26, 44, 0.55);
  color: var(--ink-200);
  font: inherit;
  font-size: 0.92rem;
}

.adm-team-row input:focus { outline: none; border-color: var(--orange); }

.ti-del:hover { color: #ff9eb1; border-color: rgba(255, 84, 112, 0.5); }

/* Drag handle */
.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: rgba(255,255,255,.3);
  font-size: .9rem;
  flex-shrink: 0;
  user-select: none;
  touch-action: none;
}
.drag-handle:hover { color: rgba(255,255,255,.7); }
.drag-handle:active { cursor: grabbing; }

/* États drag-and-drop */
.adm-team-row.is-dragging { opacity: .35; }
.adm-team-row.drop-before {
  box-shadow: 0 -3px 0 0 var(--ea-orange, #ff6a2a);
  border-radius: 0;
}
.adm-team-row.drop-after {
  box-shadow: 0 3px 0 0 var(--ea-orange, #ff6a2a);
  border-radius: 0;
}
.adm-team-section.drop-empty {
  outline: 2px dashed var(--ea-orange, #ff6a2a);
  border-radius: 10px;
}

/* Section drag handle */
.section-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.28);
  cursor: grab;
  touch-action: none;
}
.section-drag-handle:hover { color: rgba(255, 255, 255, 0.7); }
.section-drag-handle:active { cursor: grabbing; }

/* Section DnD states */
.adm-team-section.section-is-dragging { opacity: 0.35; }
.adm-team-section.section-drop-before .adm-team-head {
  box-shadow: 0 -3px 0 0 var(--ea-orange, #ff6a2a);
}
.adm-team-section.section-drop-after .adm-team-head {
  box-shadow: 0 3px 0 0 var(--ea-orange, #ff6a2a);
}


@media (max-width: 900px) {
  .adm-team-row { grid-template-columns: 24px 44px 1fr 1fr; }
  .adm-team-row label,
  .adm-team-row .ti-save,
  .adm-team-row .ti-del { grid-row: 2; }
}

@keyframes uFlash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 42, 0); }
  25% { box-shadow: 0 0 0 6px rgba(255, 106, 42, 0.25); }
}

/* ----------------------------------------------------------------------------
   21 · LIVRE BLANC — livre 3D
---------------------------------------------------------------------------- */
.lb-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.lb-book-scene { perspective: 1400px; display: grid; place-items: center; }

.lb-book {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 3 / 4.2;
  transform: rotateY(-24deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}

.lb-book-scene:hover .lb-book { transform: rotateY(-10deg) rotateX(2deg); }

.lb-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px 14px 14px 6px;
  box-shadow: -28px 40px 80px rgba(0, 0, 0, 0.6);
}

.lb-book::before {
  content: "";
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  right: -14px;
  width: 14px;
  background: repeating-linear-gradient(
    90deg, #e9e4da 0 2px, #cfc8ba 2px 3px
  );
  border-radius: 0 4px 4px 0;
  transform: rotateY(72deg) translateX(4px);
  transform-origin: left;
}

.lb-book::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.22), transparent 38%);
  pointer-events: none;
}

.lb-points { margin: 1.6rem 0 2.2rem; display: grid; gap: 0.9rem; }

.lb-points li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--ink-200);
}

.lb-points i { margin-top: 0.25rem; color: var(--orange-light); }

/* ----------------------------------------------------------------------------
   22 · BACK-TO-TOP des pages (blog / vingt chantiers)
---------------------------------------------------------------------------- */
.back-top {
  position: fixed;
  right: 1.4rem;
  bottom: 6.4rem;
  z-index: 1200;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--glass-nav);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--t-smooth);
}

.back-top.show, .back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--orange); border-color: transparent; box-shadow: var(--glow-orange); }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------------------------------------------------------------------------
   23 · RESPONSIVE
---------------------------------------------------------------------------- */
/* Écrans intermédiaires : on compacte la nav avant de passer au burger */
@media (max-width: 1480px) {
  .u-links > a { padding: 0.55rem 0.6rem; font-size: 0.88rem; }
  .u-login span { display: none; }
  .u-admin-pill span { display: none; }
  .u-nav .btn-ghost, .u-nav .btn-primary { padding: 0.55rem 1rem; font-size: 0.9rem; }
}

@media (max-width: 1200px) {
  .u-links { display: none; }
  .menu-toggle { display: inline-block; }

  /* Menu plein écran — fond OPAQUE.
     NB : le header .u-nav porte un backdrop-filter, ce qui en fait le bloc
     conteneur des enfants position:fixed → avec inset:0 seul, le menu se
     limitait à la hauteur du header et laissait voir la page (effet « transparent »).
     On force donc des dimensions en unités viewport + une couleur pleine. */
  .u-links.open, .u-links.menu-open, .u-links.is-open {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;   /* repli */
    height: 100dvh;  /* hauteur dynamique (barres mobiles) */
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    padding: 6rem 2rem 3rem;
    background: linear-gradient(165deg, #071229 0%, #04101f 55%, #050b1d 100%);
  }

  .u-links.open > a, .u-links.menu-open > a, .u-links.is-open > a {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-200);
    padding: 0.45rem 0;
  }

  .u-links.open .u-links-cta,
  .u-links.menu-open .u-links-cta,
  .u-links.is-open .u-links-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .u-nav-actions .u-login, .u-nav-actions .btn-ghost { display: none; }

  .menu-toggle { position: relative; z-index: 1600; }

  .u-hero-grid, .site-shell .hero-grid, .lb-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .u-frame { transform: none; }
  .u-frame-chip { left: 1rem; }

  .u-bento { grid-template-columns: repeat(2, 1fr); }
  .u-tile--xl, .u-tile--tall, .u-tile--half, .u-tile--third { grid-column: span 2; grid-row: auto; }

  .u-news, .about-split, .history-split, .christophe-grid, .history-dark-grid { grid-template-columns: 1fr; }
  .values-grid, .order-grid, .manifesto-grid, .u-steps, .grid-articles { grid-template-columns: repeat(2, 1fr); }
  .chantier-grid { grid-template-columns: repeat(2, 1fr); }
  .orga-grid-10 { grid-template-columns: repeat(3, 1fr); }
  .orga-grid-6 { grid-template-columns: repeat(2, 1fr); }

  .u-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section, .intro, .themes-section, .chantier-section,
  .blog-archive, .organisation-structure, .content { padding: 4.4rem 0; }

  .u-hero, .about-hero, .history-hero, .hero-band, .blog-hero,
  .site-shell .hero, .lb-hero { padding-top: 8.2rem; }

  .u-nav-shell { min-height: 62px; width: calc(100% - 1.6rem); }
  .brand img { height: 38px; }
  .u-nav .btn-primary { min-height: 42px; padding: 0.5rem 1rem; font-size: 0.9rem; }

  .values-grid, .order-grid, .manifesto-grid, .u-steps,
  .grid-articles, .chantier-grid, .structure-list { grid-template-columns: 1fr; }
  .orga-grid-3, .orga-grid-10 { grid-template-columns: repeat(2, 1fr); }

  .u-stats, .hero-meta { gap: 1.4rem; }
  .u-actions .btn, .u-actions .btn-primary, .u-actions .btn-light { width: 100%; }
  .slider-track, .slide img { min-height: 380px; height: 380px; }
  .u-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .search-form { flex-wrap: wrap; padding: 0.6rem; }
  .search-form input { width: 100%; padding-left: 2.4rem; }
  .search-icon { top: 1.45rem; transform: none; }
  .search-submit { width: 100%; }
}

/* ----------------------------------------------------------------------------
   24 · ACCESSIBILITÉ MOUVEMENT
---------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .u-hero::after, .u-marquee-track, .eyebrow::before,
  .about-hero::after, .history-hero::after, .hero-band::after,
  .blog-hero::after, .site-shell .hero::after, .lb-hero::after {
    animation: none !important;
  }

  html.js-ready .reveal-up, html.js-ready .reveal-left,
  html.js-ready .reveal-right, html.js-ready .reveal-hidden {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .u-frame, .lb-book { transform: none !important; }
}

/* ----------------------------------------------------------------------------
   25 · COMPTE À REBOURS (events Supabase via /api/events)
---------------------------------------------------------------------------- */
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.cd-tile {
  padding: 1.6rem 0.5rem;
  border-radius: var(--r-lg);
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.72), rgba(10, 17, 30, 0.6));
  border: 1px solid var(--line-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cd-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, var(--peach) 10%, var(--orange) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cd-tile span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ----------------------------------------------------------------------------
   26 · TRIVIA — quiz façon Duolingo
---------------------------------------------------------------------------- */
.tq-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 9.5rem 1rem 5rem;
}

.tq-head { text-align: center; margin-bottom: 2.2rem; }

.tq-stage {
  position: relative;
  padding: 2.2rem;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(16, 26, 44, 0.8), rgba(8, 14, 26, 0.7));
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-2);
}

.tq-rules { display: grid; gap: 0.8rem; margin: 1.6rem 0 2rem; }
.tq-rules li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-300); }
.tq-rules i { color: var(--orange); margin-top: 0.25rem; }

.tq-progress {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
}

.tq-progress .seg {
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  position: relative;
}

.tq-progress .seg.done::after,
.tq-progress .seg.now::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
}

.tq-progress .seg.now::after { animation: tqPulse 1.1s ease-in-out infinite alternate; }
@keyframes tqPulse { from { opacity: 0.55; } to { opacity: 1; } }

.tq-coach {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 32% 28%, var(--orange-light), var(--orange-deep));
  box-shadow: 0 14px 34px rgba(255, 106, 42, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s var(--ease);
}

.tq-coach::before, .tq-coach::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 8px;
  height: 12px;
  border-radius: 999px;
  background: #2a1205;
  transition: 0.25s ease;
}
.tq-coach::before { left: 19px; }
.tq-coach::after { right: 19px; }

.tq-coach.happy { transform: translateY(-6px) scale(1.06); }
.tq-coach.happy::before, .tq-coach.happy::after { height: 4px; top: 28px; border-radius: 999px 999px 0 0; }
.tq-coach.sad { animation: tqShake 0.4s ease; }
@keyframes tqShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.tq-qnum {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 0.7rem;
}

.tq-question {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.35;
  color: var(--ink-100);
  margin: 0 0 1.8rem;
  letter-spacing: -0.01em;
}

.tq-options { display: grid; gap: 0.8rem; }

.tq-opt {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(16, 26, 44, 0.55);
  color: var(--ink-200);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.tq-opt:hover:not(:disabled) { border-color: rgba(255, 138, 76, 0.6); transform: translateY(-2px); }
.tq-opt:active:not(:disabled) { transform: scale(0.985); }
.tq-opt:disabled { cursor: default; opacity: 0.85; }

.tq-letter {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-1);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink-400);
}

.tq-opt.is-correct {
  border-color: rgba(47, 208, 143, 0.75);
  background: rgba(47, 208, 143, 0.12);
  color: #9af0cd;
}
.tq-opt.is-correct .tq-letter { background: rgba(47, 208, 143, 0.2); color: #2fd08f; border-color: transparent; }

.tq-opt.is-wrong {
  border-color: rgba(255, 84, 112, 0.7);
  background: rgba(255, 84, 112, 0.1);
  color: #ffb3c1;
}
.tq-opt.is-wrong .tq-letter { background: rgba(255, 84, 112, 0.2); color: #ff5470; border-color: transparent; }

.tq-feedback {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  line-height: 1.6;
}
.tq-feedback.ok { background: rgba(47, 208, 143, 0.1); border: 1px solid rgba(47, 208, 143, 0.35); color: #b8f3da; }
.tq-feedback.ko { background: rgba(255, 84, 112, 0.08); border: 1px solid rgba(255, 84, 112, 0.32); color: #ffc4cf; }
.tq-feedback .tq-src { display: block; margin-top: 0.5rem; font-size: 0.82rem; opacity: 0.75; }

.tq-actions { margin-top: 1.6rem; display: flex; justify-content: flex-end; }

/* Écran de fin */
.tq-trophy {
  width: 130px;
  height: 130px;
  margin: 0.5rem auto 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25), transparent 50%),
    linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
  box-shadow: 0 24px 60px rgba(255, 106, 42, 0.45);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.tq-share-row { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 1.8rem; }
.tq-note { font-size: 0.85rem; color: var(--ink-500); }

.tq-ranking-submit,
.tq-leaderboard {
  max-width: 620px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  border: 1px solid var(--line-1);
  border-radius: 18px;
  background: rgba(10, 17, 30, 0.52);
  text-align: left;
}

.tq-ranking-submit > label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-300);
  font-weight: 700;
}

.tq-ranking-submit > div {
  display: flex;
  gap: 0.65rem;
}

.tq-ranking-submit input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(16, 26, 44, 0.7);
  color: var(--ink-100);
  font: inherit;
}

.tq-leaderboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.tq-leaderboard h3 { margin: 0; color: var(--ink-100); }
.tq-leaderboard ol { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.tq-leaderboard li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid var(--line-1);
  color: var(--ink-300);
}
.tq-leaderboard li:last-child { border-bottom: 0; }
.tq-leaderboard li span { color: var(--orange-light); font-weight: 800; }

.tq-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.tq-confetti i {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.95;
  animation: cfxFall linear forwards;
}
@keyframes cfxFall {
  to { transform: translateY(620px) rotate(540deg); opacity: 0; }
}

/* ----------------------------------------------------------------------------
   27 · PAGE ARTICLE
---------------------------------------------------------------------------- */
.art-hero { padding: 10.5rem 0 3rem; position: relative; }

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  align-items: center;
  color: var(--ink-500);
  font-size: 0.9rem;
  font-weight: 600;
}

.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.6rem;
  align-items: start;
  padding-bottom: 5rem;
}

.art-layout > article {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.22);
}

.art-cover {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-1);
  box-shadow: var(--shadow-2);
  margin-bottom: 2rem;
}
.art-cover img { width: 100%; max-height: 460px; object-fit: cover; display: block; }

.art-body { font-size: 1.08rem; line-height: 1.85; color: #374151; }
.art-body p { margin: 0 0 1.4rem; text-align: justify; text-justify: inter-word; }
.art-body p:first-of-type { font-size: 1.22rem; color: #1f2937; }
.art-body h2, .art-body h3 {
  font-family: var(--font-display);
  color: #111827;
  letter-spacing: -0.02em;
  margin: 2.4rem 0 1rem;
}
.art-body blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: #fff4ed;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #1f2937;
  text-align: justify;
}

.art-aside { position: sticky; top: 110px; display: grid; gap: 1.3rem; }
.art-aside .u-card h4 { margin: 0 0 1rem; color: var(--ink-100); font-size: 1.05rem; }
.art-aside ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.85rem; }
.art-aside ul a { color: var(--ink-300); font-weight: 600; font-size: 0.95rem; line-height: 1.45; }
.art-aside ul a:hover { color: var(--peach); }

.art-share {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.art-share-label { margin-right: 0.15rem; }
.art-share-btn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(16, 26, 44, 0.62);
  color: var(--ink-200);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.art-share-btn:hover,
.art-share-btn.is-copied {
  transform: translateY(-2px);
  color: #fff;
  border-color: var(--orange);
}
.art-share-btn.wa:hover { background: #25d366; border-color: #25d366; }
.art-share-btn.fb:hover { background: #1877f2; border-color: #1877f2; }
.art-share-btn.x:hover { background: #000; border-color: #000; }
.art-share-btn.is-copied { background: #10b981; border-color: #10b981; }

/* ----------------------------------------------------------------------------
   28 · AUTH (login) + DASHBOARD ADMIN
---------------------------------------------------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 7rem 1rem 4rem;
}

.auth-card { width: min(100%, 460px); }
.auth-card .brand { display: inline-flex; margin-bottom: 1.6rem; }
.auth-card .brand img { height: 52px; }

.u-note {
  margin-top: 1.2rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(77, 124, 255, 0.08);
  border: 1px solid rgba(77, 124, 255, 0.3);
  color: #b9ccff;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ─── Dashboard admin — layout sidebar ─────────────────────────────────── */

.adm-guard-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}
.adm-guard-page[hidden] { display: none; }

.adm-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.adm-layout[hidden] { display: none; }

/* Sidebar */
.adm-sidebar {
  background: #040b1b;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.adm-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.adm-brand-logo { width: 34px; height: auto; }
.adm-brand-text strong { display: block; font-size: 0.98rem; color: var(--ink-100); line-height: 1.2; }
.adm-brand-text small { font-size: 0.7rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.07em; }

.adm-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.adm-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,106,42,0.18);
  border: 2px solid rgba(255,106,42,0.35);
  color: var(--peach);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.adm-avatar-sm { width: 34px; height: 34px; font-size: 0.76rem; }
.adm-sidebar-user-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-100);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Sidebar nav */
.adm-nav { flex: 1; padding: 0.7rem 0; display: flex; flex-direction: column; }
.adm-nav-section {
  padding: 0.9rem 1.2rem 0.25rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-600, #3a4a6a);
  margin: 0;
}
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 1.2rem;
  color: var(--ink-400);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
  line-height: 1.3;
}
.adm-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--ink-100); }
.adm-nav-item.active {
  background: rgba(255,106,42,0.1);
  color: var(--peach);
  border-left-color: var(--peach);
  font-weight: 700;
}
.adm-nav-item i { width: 16px; text-align: center; flex-shrink: 0; }
.adm-nav-link { color: var(--ink-400); }
.adm-nav-danger { color: rgba(239,68,68,0.75); }
.adm-nav-danger:hover { background: rgba(239,68,68,0.08); color: #ef4444; }

.adm-sidebar-footer {
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

/* Topbar */
.adm-main { display: flex; flex-direction: column; min-height: 100vh; }

.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,11,29,0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}
.adm-topbar-left h1 { font-size: 1.05rem; font-weight: 700; color: var(--ink-100); margin: 0; line-height: 1.3; }
.adm-topbar-left p { font-size: 0.78rem; color: var(--ink-500); margin: 0.1rem 0 0; }
.adm-topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.adm-topbar-user { display: flex; align-items: center; gap: 0.55rem; }
#adm-email-top { font-size: 0.86rem; color: var(--ink-200); font-weight: 600; }

/* Content */
.adm-content { flex: 1; padding: 2rem; overflow-y: auto; }

/* Home stats grid */
.adm-home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.adm-stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.1rem 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: border-color 0.2s;
}
.adm-stat-card:hover { border-color: rgba(255,255,255,0.14); }
.adm-stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,106,42,0.1);
  color: var(--stat-color, var(--peach));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.adm-stat-body strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--ink-100); line-height: 1.15; }
.adm-stat-body span { font-size: 0.72rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.07em; }

/* Home row */
.adm-home-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.adm-home-box {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.4rem;
}
.adm-box-title { font-size: 0.95rem; font-weight: 700; color: var(--ink-200); margin: 0 0 1.1rem; }
.adm-quick-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.adm-quick-btn {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,106,42,0.3);
  background: rgba(255,106,42,0.1);
  color: var(--peach);
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s;
  text-align: left; width: 100%;
}
.adm-quick-btn:hover { background: rgba(255,106,42,0.18); border-color: rgba(255,106,42,0.5); }
.adm-quick-ghost {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.1);
  color: var(--ink-300);
}
.adm-quick-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); color: var(--ink-100); }
.adm-info-list { display: flex; flex-direction: column; gap: 0.85rem; }
.adm-info-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; color: var(--ink-400); }
.adm-info-row i { width: 16px; text-align: center; flex-shrink: 0; }

.adm-panel[hidden] { display: none; }

.adm-list-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.adm-list-tools input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(16, 26, 44, 0.65);
  color: var(--ink-100);
  font: inherit;
}

.adm-list-tools .list-page {
  min-width: 72px;
  text-align: center;
  color: var(--ink-400);
  font-size: 0.85rem;
}

.adm-module-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 1.2rem;
  align-items: start;
}

.adm-create-card {
  position: sticky;
  top: 72px;
}

.adm-create-card h4,
.adm-record-head h4 {
  margin: 0 0 1rem;
  color: var(--ink-100);
}

.adm-record-list {
  display: grid;
  gap: 1rem;
}

.adm-record {
  padding: 1.1rem;
}

.adm-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.adm-record-head p,
.adm-record-head small,
.adm-question-row small {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--ink-500);
}

.adm-record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.adm-record-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.adm-articles-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.adm-articles-heading h3 {
  margin: 0 0 0.25rem;
  color: var(--ink-100);
}

.adm-articles-heading p {
  margin: 0;
  color: var(--ink-400);
}

.adm-article-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
  align-items: end;
  gap: 0.85rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
}

.adm-article-filters .ea-field { margin: 0; }

.adm-article-results {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.adm-article-results > p {
  margin: 0;
  color: var(--ink-400);
  font-size: 0.86rem;
}

#articles-admin {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.adm-article-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.adm-article-card-cover {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.045);
}

.adm-article-cover-empty {
  display: grid;
  place-items: center;
  color: rgba(255, 138, 76, 0.55);
  font-size: 2rem;
}

.adm-article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.adm-article-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--ink-500);
  font-size: 0.75rem;
}

.adm-featured-badge {
  background: rgba(255, 165, 0, 0.18);
  color: #ffa500;
}

.adm-article-card h4 {
  margin: 0.85rem 0 0.55rem;
  color: var(--ink-100);
  font-size: 1.05rem;
  line-height: 1.4;
}

.adm-article-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1rem;
  color: var(--ink-400);
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.adm-article-card-actions {
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-1);
}

.adm-back-button {
  margin: 0 0 0.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--peach);
  cursor: pointer;
  font-weight: 700;
}

.adm-article-editor {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 235px);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.adm-full-create-surface {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 210px);
  padding: clamp(1.1rem, 3vw, 2rem);
}

#article-editor-view,
#event-editor-view,
#gallery-editor-view,
#user-editor-view {
  width: 100%;
}

#article-editor-view .adm-articles-heading,
#event-editor-view .adm-articles-heading,
#gallery-editor-view .adm-articles-heading,
#user-editor-view .adm-articles-heading {
  width: 100%;
}

.adm-article-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.55fr);
  gap: 1rem;
}

.adm-editor-title-field { grid-column: 1 / -1; }

.adm-article-editor-cover {
  width: min(100%, 760px);
  max-height: 360px;
  margin: 0 0 .5rem;
  object-fit: cover;
  border-radius: 14px;
}
.adm-article-image-wrap {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: .8rem;
}
.adm-article-image-del {
  align-self: flex-start;
  color: #ef4444;
  border-color: rgba(239,68,68,.3);
}
.adm-article-image-del:hover {
  background: rgba(239,68,68,.1);
  border-color: #ef4444;
}

/* ─── Soumissions membres en attente ─── */
.adm-pending-header {
  padding: .9rem 1.1rem;
  background: rgba(255,170,0,.06);
  border: 1px solid rgba(255,170,0,.2);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.adm-pending-header h4 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 .2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.adm-pending-header p {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.adm-pending-list { margin-bottom: 2rem; }
.adm-pending-card .adm-pending-preview {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .75rem 1rem;
  max-height: 120px;
  overflow: hidden;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .75rem;
  position: relative;
}
.adm-pending-card .adm-pending-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, var(--bg-card, #0d1831));
}
.adm-pending-card-actions { flex-wrap: wrap; }

/* ─── Badge nav Articles ─── */
.adm-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ea-orange, #ff6a2a);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  margin-left: auto;
  line-height: 1;
}

.adm-content-field { margin-top: 0.4rem; }

.article-editor-surface,
.article-editor-surface .ql-container,
.article-editor-surface .ql-editor {
  width: 100%;
  background: #fff;
}

.article-editor-surface .ql-editor {
  min-height: clamp(360px, 48vh, 680px);
  color: #111827 !important;
  background: #fff !important;
}
/* Force le texte sombre sur tous les blocs Quill (héritages du thème sombre) */
.article-editor-surface .ql-editor p,
.article-editor-surface .ql-editor h1,
.article-editor-surface .ql-editor h2,
.article-editor-surface .ql-editor h3,
.article-editor-surface .ql-editor li,
.article-editor-surface .ql-editor blockquote {
  color: #111827;
}

.adm-article-editor > .ea-field,
.adm-article-editor .ea-field input,
.adm-article-editor .ea-field select,
.adm-article-editor .ea-field textarea {
  width: 100%;
  max-width: none;
}

.adm-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.adm-entity-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.adm-entity-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.adm-entity-icon {
  min-height: 110px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 106, 42, 0.2), transparent 60%),
    rgba(255, 255, 255, 0.025);
  color: var(--orange-light);
  font-size: 2rem;
}

.adm-entity-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.adm-entity-card h4 {
  margin: 0.8rem 0 0.5rem;
  color: var(--ink-100);
}

.adm-entity-card p {
  color: var(--ink-400);
  font-size: 0.88rem;
}

.adm-entity-card small {
  color: var(--ink-400);
}

.adm-gallery-card {
  overflow: hidden;
  padding: 0;
}

.adm-gallery-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.adm-gallery-card-body {
  padding: 1rem;
}

.adm-gallery-card-body p {
  min-height: 48px;
  margin: 0 0 0.8rem;
  color: var(--ink-300);
}

.adm-permissions-box {
  margin: 1.2rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
}

.adm-permissions-box legend,
.adm-user-permissions > strong {
  color: var(--ink-200);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adm-permissions-grid,
.adm-permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.adm-permission-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(124, 232, 189, 0.22);
  border-radius: 999px;
  background: rgba(47, 208, 143, 0.08);
  color: var(--ink-300);
  font-size: 0.76rem;
}

.adm-permission-chip i {
  color: #7ce8bd;
}

.adm-user-card {
  padding: 0;
  overflow: hidden;
}

.adm-user-permissions {
  padding: 0 1rem 1rem;
}

.adm-user-permissions > strong {
  display: block;
  margin-bottom: 0.65rem;
}

/* Permission checkboxes dans les cartes utilisateur */
.adm-perm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.adm-perm-header strong {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-200);
}
.adm-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .3rem .8rem;
}
.adm-perm-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  font-size: .84rem;
  color: var(--ink-400);
  padding: .15rem 0;
  user-select: none;
}
.adm-perm-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--ea-orange, #ff6a2a);
  flex-shrink: 0;
  cursor: pointer;
}
.adm-perm-check input:checked + span { color: var(--ink-100); }

.adm-empty,
.adm-loading {
  color: var(--ink-400);
}

.adm-question-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-1);
  color: var(--ink-200);
}

.adm-question-row:last-child { border-bottom: 0; }

.adm-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.adm-media-card {
  padding: 0.75rem;
}

.adm-media-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.8rem;
}

.adm-integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.adm-integration {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.adm-integration-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.adm-integration.is-ready .adm-integration-icon { color: #7ce8bd; }
.adm-integration.is-missing .adm-integration-icon { color: #ffd573; }
.adm-integration h4 { margin: 0 0 0.45rem; color: var(--ink-100); }
.adm-integration p { margin: 0.65rem 0 0; color: var(--ink-400); }

.u-table {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-1);
  background: rgba(10, 17, 30, 0.55);
}
.u-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.u-table th {
  text-align: left;
  padding: 0.9rem 1.1rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  border-bottom: 1px solid var(--line-1);
}
.u-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--ink-300);
  font-size: 0.94rem;
}
.u-table tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge.pending { background: rgba(255, 196, 70, 0.14); color: #ffd573; border: 1px solid rgba(255, 196, 70, 0.4); }
.badge.approved, .badge.completed { background: rgba(47, 208, 143, 0.13); color: #7ce8bd; border: 1px solid rgba(47, 208, 143, 0.4); }
.badge.rejected, .badge.failed { background: rgba(255, 84, 112, 0.12); color: #ff9eb1; border: 1px solid rgba(255, 84, 112, 0.38); }

.btn-xs {
  min-height: 0;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .cd-grid { grid-template-columns: repeat(2, 1fr); }
  .art-layout { grid-template-columns: 1fr; }
  .art-aside { position: static; }
  .adm-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-module-layout { grid-template-columns: 1fr; }
  .adm-create-card { position: static; }
  .adm-article-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-article-editor-grid { grid-template-columns: 1fr; }
  .adm-editor-title-field { grid-column: auto; }
  .adm-article-editor { min-height: calc(100vh - 190px); }
  .adm-full-create-surface { min-height: calc(100vh - 180px); }
  .adm-media-grid { grid-template-columns: 1fr; }
  .adm-integration-grid { grid-template-columns: 1fr; }
  .tq-wrap { padding-top: 7.5rem; }
  .tq-stage { padding: 1.4rem 1.1rem; }
}

@media (max-width: 620px) {
  .adm-articles-heading,
  .adm-article-results {
    align-items: stretch;
    flex-direction: column;
  }
  .adm-article-filters { grid-template-columns: 1fr; }
  #articles-admin { grid-template-columns: 1fr; }
  .adm-editor-actions { flex-direction: column-reverse; }
  .adm-article-editor {
    min-height: 0;
    padding: 1rem;
  }
  .adm-full-create-surface {
    min-height: 0;
    padding: 1rem;
  }
  .article-editor-surface .ql-editor { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  .tq-progress .seg.now::after, .tq-coach.sad, .tq-confetti i { animation: none !important; }
}

.u-cta-alt {
  margin: 1.6rem 0 0;
  color: var(--ink-400);
  font-size: 0.98rem;
}

/* ----------------------------------------------------------------------------
   29 · BANNIÈRE TRIVIA (page Livre blanc)
---------------------------------------------------------------------------- */
.lb-quiz {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 2.4rem;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 90% at 88% 14%, rgba(255, 106, 42, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(16, 26, 44, 0.82), rgba(8, 14, 26, 0.72));
  border: 1px solid rgba(255, 138, 76, 0.3);
  box-shadow: var(--shadow-2);
}

.lb-quiz .section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }

.lb-quiz-points { display: grid; gap: 0.7rem; margin: 1.3rem 0 1.9rem; padding: 0; list-style: none; }
.lb-quiz-points li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-300); }
.lb-quiz-points i { color: var(--orange); margin-top: 0.25rem; }

.lb-quiz-visual {
  display: grid;
  justify-items: center;
  gap: 1.3rem;
  text-align: center;
}

.lb-quiz-visual .tq-coach { width: 104px; height: 104px; margin: 0; }
.lb-quiz-visual .tq-coach::before { left: 32px; top: 40px; }
.lb-quiz-visual .tq-coach::after { right: 32px; top: 40px; }

.lb-quiz-score {
  padding: 0.75rem 1.3rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-1);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-200);
}

@media (max-width: 900px) {
  .lb-quiz { grid-template-columns: 1fr; gap: 1.8rem; }
  .lb-quiz-visual { order: -1; }
  .lb-quiz .btn { width: 100%; }
}

/* ----------------------------------------------------------------------------
   30 · SÉLECTEUR DE LANGUE (FR / EN / KREYÒL / ES) — injecté par premium.js
---------------------------------------------------------------------------- */
.ea-lang { position: relative; flex: none; }

.ea-lang-float {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1800;
}

.ea-lang-float .ea-lang-btn {
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 16px 44px rgba(4, 9, 16, 0.34);
}

.ea-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: rgba(16, 26, 44, 0.55);
  color: var(--ink-200);
  font: inherit;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}

.ea-lang-btn:hover { border-color: rgba(255, 138, 76, 0.55); color: #fff; }
.ea-lang-btn svg { flex: none; }

.ea-lang-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 1700;
  min-width: 200px;
  padding: 0.45rem;
  border-radius: 16px;
  background: rgba(7, 17, 38, 0.94);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--shadow-1);
  display: none;
}

.ea-lang.open .ea-lang-menu { display: block; }

.ea-lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.62rem 0.8rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-200);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
}

.ea-lang-menu button span { font-size: 0.72rem; font-weight: 800; color: var(--ink-400); }
.ea-lang-menu button:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.ea-lang-menu button.active { color: var(--orange); }
.ea-lang-menu button.active span { color: var(--orange); }

/* Dans le menu mobile plein écran, le sélecteur s'aligne avec les CTA */
.u-links-cta .ea-lang { order: -1; }

@media (max-width: 640px) {
  .u-nav-actions .ea-lang-btn span { display: none; }
  .u-nav-actions .ea-lang-btn { padding: 0.55rem 0.7rem; }
  .ea-lang-float { top: 0.75rem; right: 0.75rem; }
}

/* Neutralisation du bandeau injecté par Google Translate */
#ea-gt { position: fixed; left: -9999px; top: 0; height: 0; overflow: hidden; }
.skiptranslate iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }

/* ─── Galerie admin ─────────────────────────────────────────────────── */
.adm-gallery-drop {
  border: 2px dashed rgba(255,255,255,.12);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.adm-gallery-drop:hover,
.adm-gallery-drop.drag-over {
  border-color: var(--ea-orange);
  background: rgba(255,106,42,.06);
}
.adm-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .6rem;
}
.adm-gallery-preview .prev-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: .5rem;
  overflow: hidden;
  background: rgba(255,255,255,.04);
}
.adm-gallery-preview .prev-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.adm-gallery-preview .prev-thumb button {
  position: absolute; top: .25rem; right: .25rem;
  background: rgba(0,0,0,.6); border: none; border-radius: .25rem;
  color: #fff; width: 22px; height: 22px; cursor: pointer; font-size: .7rem;
}
.adm-album-card {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
  cursor: pointer;
  transition: border-color .2s;
}
.adm-album-card:hover { border-color: var(--ea-orange); }
.adm-album-card .album-info strong { display: block; color: var(--ink-100); margin-bottom: .15rem; }
.adm-album-card .album-info span   { color: var(--ink-400); font-size: .85rem; }
.adm-album-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px,1fr));
  gap: .5rem;
  margin-top: .75rem;
}
.adm-album-photos img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: .5rem; cursor: pointer;
}

/* ─── Journal logs ──────────────────────────────────────────────────── */
.ea-select-sm, .ea-input-sm {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .5rem;
  color: var(--ink-100);
  font-size: .85rem;
  padding: .4rem .7rem;
  height: 34px;
}
.ea-select-sm:focus, .ea-input-sm:focus {
  outline: none;
  border-color: var(--ea-orange);
}
.adm-log-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .5rem 1rem;
  align-items: start;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: .88rem;
}
.adm-log-row:last-child { border-bottom: none; }
.adm-log-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: .25rem;
  background: rgba(255,255,255,.06);
  color: var(--ink-300);
  white-space: nowrap;
}
.adm-log-msg  { color: var(--ink-200); }
.adm-log-meta { color: var(--ink-400); font-size: .78rem; white-space: nowrap; }

/* ─── Staff panel ───────────────────────────────────────────────────── */
.adm-staff-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.adm-staff-row:last-child { border-bottom: none; }
.adm-staff-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ea-orange);
  display: grid; place-items: center;
  font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0;
}
.adm-staff-info { flex: 1; min-width: 0; }
.adm-staff-info strong { display: block; color: var(--ink-100); }
.adm-staff-info span   { color: var(--ink-400); font-size: .82rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-staff-row .user-role-select { flex-shrink: 0; }
.adm-staff-row .user-delete { flex-shrink: 0; }

/* ─── Section org éditable ──────────────────────────────────────────── */
.adm-section-title-edit {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(255,255,255,.2);
  color: var(--ink-200);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .1rem .3rem;
  width: 100%;
  max-width: 280px;
  transition: border-color .2s;
}
.adm-section-title-edit:focus {
  outline: none;
  border-color: var(--ea-orange);
  color: var(--ink-100);
}

/* ─── Quill : zone de rédaction blanche ──────────────────────────────── */
.ql-toolbar.ql-snow {
  background: #f8fafc;
  border-color: #d1d5db;
  border-radius: 8px 8px 0 0;
}
.ql-container.ql-snow {
  background: #fff;
  border-color: #d1d5db;
  border-radius: 0 0 8px 8px;
  min-height: 200px;
  color: #111827;
  font-family: inherit;
  font-size: .95rem;
}
.ql-toolbar .ql-stroke { stroke: #4b5563; }
.ql-toolbar .ql-fill  { fill: #4b5563; }
.ql-toolbar .ql-picker,
.ql-toolbar .ql-picker-options { color: #1f2937; background: #fff; border-color: #d1d5db; }
.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke { stroke: var(--ea-orange, #ff6a2a); }
.ql-toolbar button:hover .ql-fill,
.ql-toolbar button.ql-active .ql-fill   { fill: var(--ea-orange, #ff6a2a); }
.ql-toolbar .ql-picker-label:hover,
.ql-toolbar .ql-picker-label.ql-active  { color: var(--ea-orange, #ff6a2a); }
/* Color/background picker — z-index élevé pour passer au-dessus du panel admin */
.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  z-index: 9999;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.ql-snow .ql-color-picker .ql-picker-options {
  padding: 4px 6px;
  width: 160px;
}
.ql-snow .ql-color-picker .ql-picker-item {
  border: 2px solid transparent;
  border-radius: 3px;
  float: left;
  height: 18px;
  margin: 2px;
  padding: 0;
  width: 18px;
  cursor: pointer;
}
.ql-snow .ql-color-picker .ql-picker-item:hover,
.ql-snow .ql-color-picker .ql-picker-item.ql-selected { border-color: #000; }
/* Empêche le parent de rogner le dropdown */
.adm-content-field { overflow: visible; }
.article-editor-surface { overflow: visible; }
.ql-editor.ql-blank::before { color: #6b7280; font-style: normal; }
.ql-editor {
  min-height: 200px;
  background: #fff;
  color: #111827;
  text-align: justify;
  text-justify: inter-word;
}

.article-content {
  background: #fff !important;
  color: #111827 !important;
  border-color: #d1d5db !important;
  text-align: justify;
}

/* Paragraphes éditoriaux justifiés sur l'ensemble du site. */
:where(main, footer) p {
  text-align: justify;
  text-justify: inter-word;
}

:where(.section-head.center, .text-center, .blog-hero, .tq-head, .tq-stage, .adm-guard-page) p,
p.text-center {
  text-align: center;
}

/* Blocs-carte : alignement gauche naturel, sans justification. */
.u-card p, .u-tile p, .about-card p, .value-card p, .order-card p,
.statement-box p, .christophe-panel p, .history-highlight p,
.manifesto-card p, .chantier-card p, .panel-card p,
.premium-blog-card p, .orga-card p,
.mini-news-card p, .news-cta-box p, .feature-card p, .process-card p,
.membre-card p, .ea-glass-card p {
  text-align: left;
  text-justify: unset;
}

/* ─── Checkbox row ───────────────────────────────────────────────────── */
.ea-checkbox-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .875rem;
  color: var(--ink-300);
  cursor: pointer;
  margin: .5rem 0 1rem;
}
.ea-checkbox-row input[type="checkbox"] { accent-color: var(--ea-orange); width: 1rem; height: 1rem; cursor: pointer; }
font[style] { background: transparent !important; box-shadow: none !important; }

/* --- Verrouillage global du dashboard apres inactivite ------------------- */
body.adm-is-locked {
  overflow: hidden;
}

.adm-pin-lock[hidden] {
  display: none;
}

.adm-pin-lock {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 106, 42, .16), transparent 34rem),
    rgba(3, 8, 28, .78);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
}

.adm-pin-lock-card {
  width: min(100%, 450px);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.adm-pin-lock-card p {
  text-align: center;
}

.adm-pin-lock-card .ea-field {
  margin: 1.5rem 0 1rem;
  text-align: left;
}

.adm-pin-lock-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 1.25rem;
  color: #fff;
  font-size: 1.35rem;
  background: linear-gradient(145deg, var(--ea-orange), #ff8a59);
  box-shadow: 0 16px 42px rgba(255, 106, 42, .32);
}

.adm-pin-lock-logout {
  margin-top: .85rem;
  padding: .65rem 1rem;
  border: 0;
  background: transparent;
  color: var(--ink-300);
  font: inherit;
  cursor: pointer;
  transition: color .2s ease;
}

.adm-pin-lock-logout:hover,
.adm-pin-lock-logout:focus-visible {
  color: #fff;
}
