/* ================================================================
   EURÉCIA · CENTRE D'AIDE — À portée de clic
   style.css — v2.0 (Mise à jour Page d'accueil)
   ================================================================ */

/* ── Déclarations de polices (hors de :root, sinon le navigateur les ignore) ── */
@font-face{
  font-display:swap;
  font-family:PPWoodland;
  font-style:normal;
  font-weight:400;
  src:local("PPWoodland-Regular"),url(/hc/theming_assets/01KWXQ3ZG3RTWWGVGVR5F831YR) format("woff2")
}
@font-face{
  font-display:swap;
  font-family:PPWoodland;
  font-style:normal;
  font-weight:500;
  src:local("PPWoodland-Medium"),url(/hc/theming_assets/01KWXQ3YRJB734KXSN441A85KT) format("woff2")
}
@font-face{
  font-display:swap;
  font-family:PPWoodland;
  font-style:normal;
  font-weight:700;
  src:local("PPWoodland-Bold"),url(/hc/theming_assets/01KWXQ3XZV4N17TA3HAWPVC8FB) format("woff2")
}

/* DM Mono auto-hébergée (sous-ensemble latin, licence OFL) */
@font-face{
  font-display:swap;
  font-family:'DM Mono';
  font-style:normal;
  font-weight:400;
  src:url(/hc/theming_assets/01M3VZQNEKA2P3HQ6791R4XJP9) format("woff2");
}
@font-face{
  font-display:swap;
  font-family:'DM Mono';
  font-style:normal;
  font-weight:500;
  src:url(/hc/theming_assets/01M3VZQRJAHRPWEQ2GFBKTTZ6Q) format("woff2");
}

@font-face{
  font-display:swap;
  font-family:Figtree;
  font-style:normal;
  font-weight:300;
  src:local("figtree-light"),url(/hc/theming_assets/01M3VZQN3B3E9EQCRKTA1FVXFP) format("woff2");
}
@font-face{
  font-display:swap;
  font-family:Figtree;
  font-style:normal;
  font-weight:400;
  src:local("figtree-regular"),url(/hc/theming_assets/01M3VZQPR9HG7NRTQ6TH5SE6R9) format("woff2");
}
@font-face{
  font-display:swap;
  font-family:Figtree;
  font-style:normal;
  font-weight:500;
  src:local("figtree-medium"),url(/hc/theming_assets/01M3VZQN5XR4EVE9VKYC2Y77YM) format("woff2");
}
@font-face{
  font-display:swap;
  font-family:Figtree;
  font-style:normal;
  font-weight:600;
  src:local("figtree-semibold"),url(/hc/theming_assets/01M3VZQNVBAVWP27H228GHTA8N) format("woff2");
}
@font-face{
  font-display:swap;
  font-family:Figtree;
  font-style:normal;
  font-weight:700;
  src:local("figtree-bold"),url(/hc/theming_assets/01M3VZQMWS6KBAH1Z7MYF2BJMN) format("woff2");
}

/* ── 1. VARIABLES ──────────────────────────────────────────────── */
:root {
  /* ── Couleurs marque principales ── */
  --petrol:       #294B53;
  --petrol-80:    #294B53;
  --petrol-60:    #486267;
  --petrol-30:    #90C4CE;
  --petrol-10:    #C9E0E5;
  --petrol-05:    #EAF4F6;

  /* Vert menthe */
  --mint:         #73DFB4;
  --mint-mid:     #A8EDD3;
  --mint-light:   #E8FAF3;
  --mint-dark:    #1A6B4A;

    /* Vert */
  --green:         #79BF9D;
  --green-mid:     #34A853;
  --green-light:   #73DFB4;
  --green-dark:    #398F61;

  /* Bleu ciel */
  --sky:          #90C4CE;
  --sky-mid:      #B8D8E0;
  --sky-light:    #EAF4F6;
  --sky-dark:     #2A5F6B;

  /* Corail */
  --coral:        #F39071;
  --coral-mid:    #FAC4B0;
  --coral-light:  #FEF3EF;
  --coral-dark:   #7A2E10;

  /* Jaune soleil */
  --sun:          #FDEB6E;
  --sun-mid:      #FAF0A0;
  --sun-light:    #FEFBE6;
  --sun-dark:     #6B5500;

  /* Magenta */
  --magenta:      #C95F7D;
  --magenta-light:#FAE9EF;

  /* Rouge */
  --red:          #AD402B; /* contraste AA : 5,9:1 sur blanc, 5,3:1 sur crème */
  --red-light:    #FAEAE8;

  /* Lime */
  --lime:         #8DC63F;
  --lime-light:   #EFF7E0;

  /* ── Neutres ── */
  --cream:        #F6F2EA;
  --cream-dark:   #EDE9DF;
  --cream-border: #E2DDD5;
  --fg:           #1A1714;
  --fg-muted:     #6B6560;
  --white:        #FFFFFF;

  /* ── Typographie ── */
  --font-brand:   'PPWoodland', sans-serif;
  --font-body:    'Figtree', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* ── Ombres ── */
  --shadow-sm:    0 1px 3px rgba(41,75,83,0.08);
  --shadow-md:    0 4px 16px rgba(41,75,83,0.12);
  --shadow-lg:    0 8px 32px rgba(41,75,83,0.16);

  /* ── Rayons ── */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-full:  999px;

  /* ── Layout ── */
  --max-w:        1200px;
  --header-h:     68px;
}

/* ── 2. RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── 3. HEADER ─────────────────────────────────────────────────── */
/* Texte réservé aux lecteurs d'écran */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Anneau de focus clavier global (--petrol : 9,4:1 sur blanc) */
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* Lien d'évitement : hors écran, visible au focus clavier */
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; padding: 10px 16px; background: var(--petrol); color: var(--white); font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm); transition: top .15s; }
.skip-link:focus { top: 0; outline: 2px solid var(--mint); outline-offset: 2px; }
.hc-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--cream-border); height: var(--header-h); }
.hc-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; gap: 32px; }
.hc-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.hc-brand img, .hc-brand-logo { height: 28px; width: auto; display: block; }
.hc-brand-name-fallback { font-family: var(--font-brand); font-weight: 700; font-size: 17px; color: var(--petrol); }
.hc-brand-divider { width: 1px; height: 22px; background: var(--cream-border); }
.hc-brand-name { font-family: var(--font-brand); font-weight: 600; font-size: 17px; color: var(--petrol); letter-spacing: -0.01em; white-space: nowrap; }
.hc-brand-name em { font-style: italic; font-weight: 500; color: var(--magenta); }

.hc-nav { flex: 1; }
.hc-nav-list { display: flex; align-items: center; gap: 2px; }
.hc-nav-item { position: relative; }
.hc-nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--fg-muted); background: transparent; border: none; transition: color .15s, background .15s; white-space: nowrap; }
.hc-nav-link:hover, .hc-nav-link.is-active, .hc-nav-item.is-open .hc-nav-link { color: var(--petrol); background: var(--cream); }
.hc-nav-chevron { transition: transform .2s; flex-shrink: 0; }
.hc-nav-item.is-open .hc-nav-chevron { transform: rotate(180deg); }
.hc-nav-badge { color: var(--magenta); font-size: 8px; margin-left: -2px; vertical-align: super; }

/* MEGA MENU */
.mega-menu { position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-8px); width: 900px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; }
.hc-nav-item.is-open .mega-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-menu-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 8px; }
.mega-group { padding: 16px; border-right: 1px solid var(--cream-border); }
.mega-group:last-child { border-right: none; }
.mega-group-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 12px; }
.mega-group-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mega-group-list { display: flex; flex-direction: column; gap: 2px; }
.mega-link { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); transition: background .15s; }
.mega-link:hover { background: var(--cream); }
.mega-link-icon { width: 30px; height: 30px; flex-shrink: 0; }
.mega-link-icon img { width: 26px; height: 26px; object-fit: contain; }
.mega-link strong { display: block; font-size: 13px; font-weight: 600; color: var(--petrol); line-height: 1.3; }
.mega-link-sub { display: block; font-size: 12px; color: var(--fg-muted); line-height: 1.4; margin-top: 1px; }

/* Sous menu Académie */
.hc-submenu { position: absolute; top: calc(100% + 12px); left: 0; width: 280px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 8px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; z-index: 200; }
.hc-nav-item.is-open .hc-submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hc-submenu-link { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); transition: background .15s; }
.hc-submenu-link:hover { background: var(--cream); }
.hc-submenu-icon { font-size: 20px; flex-shrink: 0; line-height: 1.2; }
.hc-submenu-link strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--petrol); }
.hc-submenu-sub { display: block; font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

/* Actions Droite */
.hc-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.hc-action-media { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--fg-muted); border: 1px solid var(--cream-border); transition: color .15s, background .15s; }
.hc-action-media:hover { color: var(--petrol); background: var(--cream); }
.hc-action-tickets { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--petrol-60); border: 1px solid var(--cream-border); transition: color .15s, background .15s; }
.hc-action-tickets:hover { background: var(--cream); }
.hc-tickets-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; background: var(--magenta); color: var(--white); font-size: 12px; font-weight: 700; border-radius: var(--radius-full); }
.hc-btn-login { display: inline-flex; align-items: center; padding: 9px 18px; background: var(--petrol); color: var(--white); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; transition: background .15s; }
.hc-btn-login:hover { background: var(--petrol-60); }

/* User menu */
.hc-user-menu { position: relative; }
.hc-user-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--cream); border: 1px solid var(--cream-border); border-radius: var(--radius-full); font-size: 13px; font-weight: 500; color: var(--petrol); }
.hc-user-avatar { width: 28px; height: 28px; background: var(--petrol); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hc-user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 180px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .15s, transform .15s; z-index: 200; }
.hc-user-menu.is-open .hc-user-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hc-user-dropdown li a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--fg); transition: background .15s; }
.hc-user-dropdown li a:hover { background: var(--cream); }

/* Sélecteur de langue */
.hc-lang-menu { position: relative; }
.hc-lang-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; background: transparent; border: 1px solid var(--cream-border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--fg-muted); cursor: pointer; transition: color .15s, background .15s; }
.hc-lang-btn:hover, .hc-lang-menu.is-open .hc-lang-btn { color: var(--petrol); background: var(--cream); }
.hc-lang-menu.is-open .hc-nav-chevron { transform: rotate(180deg); }
.hc-lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity .15s, transform .15s; z-index: 200; }
.hc-lang-menu.is-open .hc-lang-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hc-lang-dropdown li a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; color: var(--fg); white-space: nowrap; transition: background .15s; }
.hc-lang-dropdown li a:hover { background: var(--cream); }

/* Burger mobile */
.hc-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: transparent; border: 1px solid var(--cream-border); border-radius: var(--radius-sm); padding: 8px; }
.hc-burger span { display: block; height: 1.5px; background: var(--petrol); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hc-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hc-burger.is-open span:nth-child(2) { opacity: 0; }
.hc-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 4. COMPOSANTS GLOBAUX ─────────────────────────────────────── */
.hc-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--red); text-transform: uppercase; letter-spacing: 0.3em; }
/* Couleur du point (écrasée par !important dans les pages module : .mod-xxx .hc-kicker-dot) */
.hc-kicker-dot-petrol { background: var(--petrol-30); }
.hc-kicker-dot-magenta { background: var(--magenta); }
/* Image en erreur : posée par le listener unique de script.js (attribut data-img-fallback).
   !important pour garder le comportement de l'ancien style="display:none" inline. */
.is-img-error { display: none !important; }
.hc-btn { display: inline-flex; align-items: center; justify-content: center; padding: 20px 30px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; font-family: var(--font-brand); transition: background .15s, transform .1s; text-decoration: none; }
.hc-btn:hover { background: var(--cream-dark); transform: translateY(-1px); }
.hc-btn--primary { background: var(--petrol); color: var(--white); border: none; }
.hc-btn--primary:hover { background: var(--petrol-60); }
.hc-btn--ghost { background: var(--white); color: var(--petrol); border: 1px solid var(--cream-border); border-radius: var(--radius-full);}
.hc-btn--ghost:hover { background: var(--cream); }

/* ── 5. HOME PAGE ──────────────────────────────────────────────── */
.hp-hero { position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--cream-border); padding: 72px 32px 64px; text-align: center; }
.hp-hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.hp-hero-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(42px, 7vw, 64px); line-height: 1.0; letter-spacing: -0.025em; color: var(--petrol); margin: 16px 0 18px; }
.hp-hero-title em { font-weight: 600; color: var(--mint); }
.hp-hero-sub { font-size: 18px; line-height: 1.55; color: var(--fg-muted); max-width: 560px; margin: 0 auto 36px; }
.hp-hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-hero-bg img {
  max-width: 1599px;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.hp-hero-logo {
  display: inline;
  width: auto;
  height: 0.75em;
  vertical-align: 0em;
  margin: 0 0.08em;
  color: var(--petrol);
}

/* Barre de recherche Home */
.hp-search-wrap { max-width: 680px; margin: 0 auto; }
.hp-search { display: flex; align-items: center; background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 4px 24px rgba(41,75,83,0.08), 0 0 0 1px var(--cream-border); padding: 6px 6px 6px 20px; gap: 8px; transition: box-shadow .2s; }
.hp-search::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='5.5' stroke='%2390C4CE' stroke-width='1.6'/%3E%3Cpath d='M12.5 12.5L15.5 15.5' stroke='%2390C4CE' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.hp-search input[type="search"], .hp-search input[name="query"] { flex: 1; border: none; outline: none; font-size: 16px; font-family: var(--font-body); color: var(--fg); background: transparent; padding: 12px 0; min-width: 0; }
.hp-search input[type="search"]::placeholder { color: var(--fg-muted); }
.hp-search input[type="hidden"] { display: none; }
.hp-search:focus-within { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* ── MINI SEARCH (Category/Section pages) ── */
.mini-search { display: flex; align-items: center; background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 2px 8px rgba(41,75,83,0.08), 0 0 0 1px var(--cream-border); padding: 8px 8px 8px 14px; gap: 6px; transition: box-shadow .2s; width: 30%; }
.mini-search::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='7' cy='7' r='4.5' stroke='%2390C4CE' stroke-width='1.5'/%3E%3Cpath d='M11.5 11.5L14 14' stroke='%2390C4CE' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.mini-search input[type="search"], .mini-search input[name="query"] { flex: 1; border: none; outline: none; font-size: 12px; font-family: var(--font-body); color: var(--fg); background: transparent; padding: 2px 0; min-width: 0; }
.mini-search input[type="search"]::placeholder { color: var(--fg-muted); }
.mini-search input[type="hidden"] { display: none; }
.mini-search:focus-within { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* Sujets populaires (Chips) */
/* HP / Chips : article populaires  */

.hp-search-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.hp-search-chips-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.hp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--cream-dark);
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--petrol);
  text-decoration: none;
  transition: all .15s;
}
.hp-chip::before {
  content: '↗';
  font-size: 12px;
  color: var(--petrol-80);
}
.hp-chip:hover {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
  transform: translateY(-1px);
}
.hp-chip:hover::before { color: var(--mint); }

/* ── DUAL XP BANNER (Base & Couleurs dynamiques) ── */
/* display:none par défaut : showDualXpIfNeeded() (script.js) ne révèle le bandeau
   que pour les modules listés dans DUAL_XP_MODULES. Masquer ici plutôt qu'en JS
   évite le flash sur les pages section, où la fonction n'est appelée qu'après un
   fetch. */
.cat-dual-xp {
  display: none; /* Réaffiché par script.js (showDualXpIfNeeded) pour les modules concernés */
  padding: 12px 32px;
  border-bottom: none;
  background: var(--petrol-05); /* Fallback par défaut */
}
/* Section « TROUVEZ VOTRE VERSION » (bas de la page module) : même périmètre que
   le bandeau, révélée par showDualXpIfNeeded() pour les seuls DUAL_XP_MODULES.
   TODO son contenu est encore factice (images placeholder, deux cartes au titre
   identique, href="#"). */
#cat-dual-cards {
  display: none;
}
.cat-dual-xp-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cat-dual-xp-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--petrol); /* Fallback par défaut */
}

/* ── BADGES DUAL XP (Globaux) ── */
.dual-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.dual-badge:hover {
  transform: translateY(-1px);
}

/* Badge Version New (Fond foncé) */
.dual-badge--new {
  background: var(--fg);
  color: var(--white);
}

/* Badge Version Classic (Fond blanc) */
.dual-badge--classic {
  background: var(--white);
  color: var(--fg);
}

/* Couleurs par module : Fond (Mid) et Texte (Dark) */
.mod-petrol  .cat-dual-xp { background: var(--petrol-60); }
.mod-petrol  .cat-dual-xp-label { color: var(--petrol-10); }

.mod-vert  .cat-dual-xp { background: var(--mint-mid); }
.mod-vert  .cat-dual-xp-label { color: var(--mint-dark); }

.mod-bleu  .cat-dual-xp { background: var(--sky-mid); }
.mod-bleu  .cat-dual-xp-label { color: var(--sky-dark); }

.mod-rouge .cat-dual-xp { background: var(--coral-mid); }
.mod-rouge .cat-dual-xp-label { color: var(--coral-dark); }

.mod-ambre .cat-dual-xp { background: var(--sun-mid); }
.mod-ambre .cat-dual-xp-label { color: var(--sun-dark); }

.mod-grey  .cat-dual-xp { background: var(--zd-color-grey-600); }
.mod-grey  .cat-dual-xp-label { color: var(--zd-color-grey-300); }

/* Navigation Hero (New, Actu...) */
.hero-nav { display: flex; justify-content: center; gap: 16px; margin-top: 36px; }
.btn_bloc { background: var(--white); border: 1px solid var(--cream-border); padding: 10px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--petrol); transition: box-shadow 0.2s, transform 0.1s, background 0.2s; box-shadow: 0 2px 8px rgba(41, 75, 83, 0.08); }
.btn_bloc:hover { box-shadow: 0 4px 16px rgba(41, 75, 83, 0.15); transform: translateY(-2px); }
/* Bouton NEW démarqué */
.btn_bloc--new {
  background: var(--sun-mid);
  border: 1px solid var(--sun);
  color: var(--petrol);
  box-shadow: 0 4px 16px rgba(253, 235, 110, 0.3);
  font-weight: 700;
}

.btn_bloc--new:hover {
  background: #f5e050;
  box-shadow: 0 6px 20px rgba(253, 235, 110, 0.4);
  transform: translateY(-2px);
}

.btn_bloc--new svg {
  width: 14px;
  height: 14px;
  margin-right: 0px;
  display: inline;
  vertical-align: -2px;
}

/* Le lien porte directement le style du bouton */
a.btn_bloc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

html { scroll-behavior: smooth; }


/* Section générique */
.hp-section { padding: 64px 32px; background: var(--white); }
.hp-section--cream { background: var(--cream); border-top: 1px solid var(--cream-border); }
.hp-section-inner { max-width: var(--max-w); margin: 0 auto; }
.hp-section-header { text-align: center; margin-bottom: 48px; }
.hp-section-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(26px, 4vw, 36px); color: var(--petrol); margin: 8px 0 0; letter-spacing: -0.02em; }

/* Modules Fond Petrol */
.hp-modules-dark { background: var(--petrol); padding: 72px 32px; }
.hp-modules-dark-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.hp-modules-dark .hp-section-title { color: var(--white); margin-bottom: 40px; }
.hp-modules-dark { color: var(--mint); }

.hp-modules-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1200px; margin: 0 auto; }
.hp-module-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; background: var(--cream); border-radius: var(--radius-md); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.hp-module-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.hp-module-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.hp-module-icon img { width: 100%; height: 100%; object-fit: contain; }
.hp-module-info strong { display: block; font-size: 16px; font-weight: 700; color: var(--petrol); margin-bottom: 6px; }
.hp-module-info p { font-size: 13px; color: var(--fg-muted); line-height: 1.4; margin: 0; }

/* ── AUTRES ESPACES (accueil) ──
   Flex + wrap plutôt qu'une grille à colonnes fixes : la section contient 1 ou 2
   cartes selon que l'utilisateur est connecté ou non (« Espace consultants »),
   et justify-content: center garde les deux états centrés sans case vide.
   Cartes claires (blanc sur --cream-border) car la section est sur fond cream :
   .hp-module-card, lui, a un fond cream conçu pour le bloc pétrol. */
.hp-extra-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.hp-extra-card { flex: 0 1 360px; display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); padding: 24px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.hp-extra-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
/* Visuels : ce sont des collages, pas des pictogrammes carrés. D'où pleine
   largeur et height:auto — ratio d'origine préservé, ni recadrage ni
   déformation — au lieu de la boîte 56x56 de .hp-module-icon.
   Pas de bordure ici : la carte en a déjà une, un second cadre à 24px du bord
   donnerait un effet de double encadrement. */
.hp-extra-card-visual { width: 100%; height: auto; display: block; border-radius: 8px; margin-bottom: 16px; }
.hp-extra-card-title { font-family: var(--font-brand); font-weight: 700; font-size: 18px; color: var(--petrol); margin: 0 0 8px; }
.hp-extra-card-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 0 0 16px; }
/* margin-top: auto → les CTA s'alignent en bas même si les accroches n'ont pas
   la même hauteur (les cartes s'étirent, align-items: stretch par défaut). */
.hp-extra-card-cta { font-size: 13px; font-weight: 600; color: var(--petrol-60); margin-top: auto; }

.center-btn { display: flex; justify-content: center; margin-top: 48px; }
.btn-yellow { background: var(--sun); color: var(--petrol); padding: 14px 32px; border-radius: var(--radius-md); font-weight: 700; font-family: var(--font-body); border: none; font-size: 16px; transition: transform 0.2s; }
.btn-yellow:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--petrol); padding: 14px 32px; border-radius: var(--radius-md); font-weight: 700; font-family: var(--font-body); border: none; font-size: 16px; transition: transform 0.2s; }
.btn-green:hover { background: var(--green-light); transform: translateY(-2px); }

/* ── CARROUSEL WEBINAIRES ── */
.hp-carousel {
  position: relative;
  overflow: hidden;
}

.hp-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hp-carousel-card {
  flex: 0 0 calc(33.333% - 14px);
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.hp-carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hp-carousel-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.hp-carousel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
  border-radius: 0;
  border: none;
  margin: 0;
}
.hp-carousel-card:hover .hp-carousel-img img {
  transform: scale(1.04);
}

.hp-carousel-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hp-carousel-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.hp-carousel-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hp-carousel-type--article { color: var(--petrol-60); }
.hp-carousel-type--video   { color: var(--coral); }

.hp-carousel-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--petrol);
  margin: 0;
  flex: 1;
}

.hp-carousel-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--petrol-60);
  margin-top: auto;
}
.hp-carousel-card:hover .hp-carousel-cta { color: var(--petrol); }

/* Contrôles */
.hp-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.hp-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--cream-border);
  background: var(--white);
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.hp-carousel-btn:hover {
  background: var(--cream);
  border-color: var(--petrol-30);
}

.hp-carousel-dots {
  display: flex;
  gap: 8px;
}
.hp-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--cream-border);
  cursor: pointer;
  transition: background .15s, transform .15s;
  padding: 0;
}
.hp-carousel-dot.is-active {
  background: var(--petrol);
  transform: scale(1.3);
}

@media (max-width: 768px) {
  .hp-carousel-card { flex: 0 0 85%; }
}

/* Articles à la une */
.hp-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-article-card { display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); padding: 24px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.hp-article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.hp-articles-grid .hp-article-card { color: var(--petrol); }
.hp-article-pill { background: var(--mint-light); color: var(--mint-dark); padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; border: 1px solid var(--mint-mid); }
.hp-article-title { font-family: var(--font-brand); font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--petrol); margin-bottom: 8px; }
.hp-article-excerpt { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin-bottom: 16px; }
.hp-article-link { color: var(--mint-dark); font-size: 13px; font-weight: 600; margin-top: auto; }

/* CTA Contact */
.hp-cta { padding: 72px 32px 80px; background: var(--white); text-align: center; }
.hp-cta-inner { max-width: 580px; margin: 0 auto; }
.hp-cta h2 { font-family: var(--font-brand); font-weight: 700; font-size: clamp(24px, 4vw, 32px); color: var(--petrol); margin: 10px 0 12px; letter-spacing: -0.02em; }
.hp-cta p { font-size: 15px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 24px; }
.hp-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 6. FOOTER ─────────────────────────────────────────────────── */
.hc-footer { background: #2a2a2a; color: rgba(255,255,255,0.85); margin-top: auto; }
.hc-footer-inner { max-width: 1400px; margin: 0 auto; padding: 64px 32px 40px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr; gap: 48px; align-items: start; }

/* ── Colonne 1 : SUIVEZ-NOUS (réseaux sociaux) ── */
.hc-footer-col--social { }
.hc-footer-col--social .hc-footer-title { font-family: var(--font-body); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); margin-bottom: 24px; font-weight: 600; }
.hc-footer-social { display: flex; align-items: center; gap: 5px; }
.hc-footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; ; color: rgba(255,255,255,0.8); transition: background .2s, color .2s; }
.hc-footer-social-link:hover { background: rgba(255,255,255,0.25); color: var(--white); }
.hc-footer-app-badges { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.hc-footer-app-badge { display: inline-flex; width: fit-content; }
.hc-footer-app-badge img { display: block; height: 40px; width: auto; }

/* ── Colonne 2+ : À PROPOS, RESSOURCES, LÉGAL ── */
.hc-footer-col { }
.hc-footer-col .hc-footer-title { font-family: var(--font-body); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.hc-footer-col ul { display: flex; flex-direction: column; gap: 5px; }
.hc-footer-col li { list-style: none; }
.hc-footer-col a { font-size: 14px; color: rgba(255,255,255,0.8); text-decoration: none; transition: color .15s; }
.hc-footer-col a:hover { color: var(--white); }

/* ── Colonne 5 : CONTACT ── */
.hc-footer-col--contact { display: flex; flex-direction: column; gap: 20px; }
.hc-footer-contact-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; background: var(--white); color: #2a2a2a; border: 1px solid var(--white); border-radius: var(--radius-sm); font-weight: 600; font-size: 13px; text-decoration: none; transition: background .2s, color .2s; width: fit-content; }
.hc-footer-contact-btn:hover { background: transparent; color: var(--white); }
.hc-footer-phone { font-size: 14px; color: rgba(255,255,255,0.8); font-weight: 500; }
.hc-footer-phone a:hover { text-decoration: underline; }
/* Footer sombre : anneau de focus blanc (le pétrole serait invisible sur #2a2a2a) */
.hc-footer :focus-visible { outline-color: var(--white); }

/* ── Footer avec logo en arrière-plan ── */
.hc-footer {
  position: relative;
  overflow: hidden; /* Crop le logo en bas */
  background: #2a2a2a;
  background-image: url('https://help.eurecia.com/hc/theming_assets/01KWKJ81Z7DZ90Y3D589T8NH2A');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 1450px;
  background-attachment: local;
  opacity: 1;
}

.hc-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 42, 42, 0.85); /* Overlay semi-transparent */
  z-index: 0;
  pointer-events: none;
}

.hc-footer-inner {
  position: relative;
  z-index: 1;
}
.hc-footer-bottom {
  position: relative;
  z-index: 1;
}

/* ── Supprime l'élément logo (s'il existe) ── */
.hc-footer-logo-bg {
  display: none;
}

/* ── Bouton Contact : bordure visible ── */
.hc-footer-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background .2s, color .2s;
  width: fit-content;
}
.hc-footer-contact-btn:hover {
  background: var(--fg);
  color: #2a2a2a;
}

/* ── Copyright réduit ── */
.hc-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px 32px;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.hc-footer-bottom-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 12px;
}

/* ── 9. RESPONSIVE HOME ────────────────────────────────────────── */
/* Header en mode burger jusqu'à 1260px : en dessous, le menu desktop + les actions dépassent l'écran, et le mega-menu (900px centré) sort à gauche.
   Valeur à garder synchronisée avec BURGER_BREAKPOINT dans script.js */
@media (max-width: 1260px) {
  .hc-burger { display: flex; width: 44px; height: 44px; }
  .hc-nav { display: none; }
  .hc-nav.is-open { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); overflow-y: auto; padding: 16px; z-index: 95; }
  .hc-nav-list { flex-direction: column; align-items: stretch; }
  .mega-menu, .hc-submenu { position: static; width: auto; box-shadow: none; border: none; transform: none; background: var(--cream); border-radius: var(--radius-md); margin-top: 4px; }
  .mega-menu-inner { grid-template-columns: 1fr; }
  .mega-group { border-right: none; border-bottom: 1px solid var(--cream-border); }
  /* Sous-menus : cachés par défaut (sinon ils réservent leur hauteur) ; l'état ouvert annule le décalage translateX(-50%) du desktop */
  .mega-menu, .hc-submenu { display: none; opacity: 1; pointer-events: auto; }
  .hc-nav-item.is-open .mega-menu, .hc-nav-item.is-open .hc-submenu { display: block; transform: none; }
}
@media (max-width: 1024px) {
  .hp-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-carousel-track { grid-template-columns: repeat(2, 1fr); }
  .hc-footer-inner { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .hc-footer-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 830px) {
  :root { --header-h: 60px; }
  /* Header : la marque et les actions ne se compressent pas, on réduit les actions pour éviter le scroll horizontal */
  .hc-header-inner { gap: 12px; }
  .hc-header-actions { gap: 8px; }
  .hc-action-tickets, .hc-user-name, .hc-user-btn .hc-nav-chevron { display: none; } /* « Mes tickets » reste dans le menu utilisateur */
  .hc-user-btn { padding: 4px; }
  .hc-action-media span { display: none; }
  .hp-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-articles-grid { grid-template-columns: 1fr; }
  .hp-carousel-track { grid-template-columns: 1fr; }
  .hero-nav { flex-wrap: wrap; }
  .hc-footer-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 40px 20px; }
  .hc-footer-bottom { flex-direction: column; gap: 16px; text-align: center; padding: 16px 20px; }
  .hc-footer-bottom-links { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .hp-hero { padding: 48px 20px 48px; }
  .hp-section { padding: 48px 20px; }
  .hp-modules-grid { grid-template-columns: 1fr; }
  .hc-footer-nav { grid-template-columns: 1fr 1fr; }
  .hc-header-inner { padding: 0 20px; }
  .hc-brand-divider, .hc-brand-name { display: none; } /* logo seul */
}

/* ================================================================
   CATEGORY PAGE & SECTION PAGE
   ================================================================ */

/* ── FIL D'ARIANE ── */
.hc-breadcrumb-wrap { background: var(--white); border-bottom: 1px solid var(--cream-border); }
.hc-breadcrumb-inner { max-width: var(--max-w); margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hc-breadcrumb-inner nav, .hc-breadcrumb-inner ol, .hc-breadcrumb-inner ul { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13px; color: var(--fg-muted); }
.hc-breadcrumb-inner a { color: var(--petrol-60); text-decoration: none; transition: color .15s; }
.hc-breadcrumb-inner a:hover { color: var(--petrol); }
.hc-breadcrumb-inner li + li::before { content: '/'; color: var(--cream-border); margin-right: 6px; }

/* ── CATEGORY HERO ── */
.cat-hero { padding: 48px 32px 24px; border-bottom: 1px solid var(--cream-border); background: var(--cream); transition: background .3s; }
.cat-hero-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.cat-hero-text { flex: 1; }
.cat-hero-tag { display: inline-flex; align-items: center; padding: 3px 10px; background: rgba(255,255,255,0.7); border: 1px solid var(--cream-border); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 12px; }
.cat-hero-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.02em; color: var(--petrol); margin: 0; line-height: 1.1; }
.cat-hero-desc { font-size: 16px; line-height: 1.6; color: var(--fg-muted); max-width: 560px; margin-top: 8px; }
.cat-hero-desc--empty { font-size: 13px; color: var(--fg-muted); font-style: italic; opacity: 0.6; }
.cat-hero-picto { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-hero-picto img { width: 100%; height: 100%; object-fit: contain; }
.cat-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cat-hero-parent { font-size: 13px; font-weight: 700; color: var(--petrol-60); text-decoration: none; transition: color .15s; }
.cat-hero-parent:hover { color: var(--petrol); }
/* Ligne picto + titre (pages catégorie et section) */
.cat-hero-head, .sec-hero-head { display: flex; align-items: center; margin-top: 16px; }
.cat-hero-head { gap: 16px; }
.sec-hero-head { gap: 8px; }
/* Kicker « MODULE » / « FONCTIONNALITÉ » décalé du lien retour */
.cat-hero-meta .hc-kicker, .sec-hero-meta .hc-kicker { margin-left: 8px; }

/* ── Décoration SVG organique ── */
.cat-hero-decoration {
  position: absolute; /* Revient à absolu, relatif au hero */
  bottom: 0;
  right: 0;
  width: 312px;
  height: 207px;
  pointer-events: none;
  z-index: 0;
  color: var(--petrol-30);
  opacity: 0.3;
}

.cat-hero-decoration svg {
  width: 100%;
  height: 100%;
}

/* Couleurs par module */
.mod-petrol .cat-hero-decoration { color: var(--petrol-60); }
.mod-vert .cat-hero-decoration { color: var(--mint-dark); }
.mod-bleu .cat-hero-decoration { color: var(--sky-dark); }
.mod-rouge .cat-hero-decoration { color: var(--coral-dark); }
.mod-ambre .cat-hero-decoration { color: var(--sun-dark); }
.mod-grey .cat-hero-decoration { color: var(--zd-color-grey-600); }

/* ── Hero : croppe le SVG ── */
.cat-hero {
  position: relative;
  overflow: hidden; /* Croppe tout ce qui dépasse */
}

.cat-hero-inner {
  position: relative;
  z-index: 1;
}

/* Idem pour section */
.sec-hero {
  position: relative;
  overflow: hidden; /* Croppe tout ce qui dépasse */
}

.sec-hero-inner {
  position: relative;
  z-index: 1;
}

/* ── COULEURS PAR MODULE ── */
/* VERT */
.mod-vert .cat-hero, .mod-vert .sec-hero, .mod-vert .univ-hero { background: linear-gradient(135deg, #E8FAF3 0%, #B8F0D8 100%); border-color: #A8EDD3; }
.mod-vert .cat-hero-title, .mod-vert .sec-hero-title, .mod-vert .univ-hero-title { color: #1A6B4A; }
.mod-vert .hc-kicker-dot { background: #73DFB4 !important; }
#art-page.mod-vert .art-hero { background: linear-gradient(135deg, #E8FAF3 0%, #C8F0DF 100%); border-color: #A8EDD3; }
#art-page.mod-vert .art-title { color: #1A6B4A; }
#art-page.mod-vert .art-module-name { color: #1A6B4A; }

/* BLEU */
.mod-bleu .cat-hero, .mod-bleu .sec-hero, .mod-bleu .univ-hero { background: linear-gradient(135deg, #EAF4F6 0%, #C9E0E5 100%); border-color: #B8D8E0; }
.mod-bleu .cat-hero-title, .mod-bleu .sec-hero-title, .mod-bleu .univ-hero-title { color: #2A5F6B; }
.mod-bleu .hc-kicker-dot { background: #90C4CE !important; }
#art-page.mod-bleu .art-hero { background: linear-gradient(135deg, #EAF4F6 0%, #C9E0E5 100%); border-color: #B8D8E0; }
#art-page.mod-bleu .art-title { color: #2A5F6B; }
#art-page.mod-bleu .art-module-name { color: #2A5F6B; }

/* ROUGE */
.mod-rouge .cat-hero, .mod-rouge .sec-hero, .mod-rouge .univ-hero { background: linear-gradient(135deg, #FEF3EF 0%, #FAC8B4 100%); border-color: #FAC4B0; }
.mod-rouge .cat-hero-title, .mod-rouge .sec-hero-title, .mod-rouge .univ-hero-title { color: #7A2E10; }
.mod-rouge .hc-kicker-dot { background: #F39071 !important; }
#art-page.mod-rouge .art-hero { background: linear-gradient(135deg, #FEF3EF 0%, #FAC8B4 100%); border-color: #FAC4B0; }
#art-page.mod-rouge .art-title { color: #7A2E10; }
#art-page.mod-rouge .art-module-name { color: #7A2E10; }

/* AMBRE */
.mod-ambre .cat-hero, .mod-ambre .sec-hero, .mod-ambre .univ-hero { background: linear-gradient(135deg, #FEFBE6 0%, #FEF5A0 100%); border-color: #FAF0A0; }
.mod-ambre .cat-hero-title, .mod-ambre .sec-hero-title, .mod-ambre .univ-hero-title { color: #6B5500; }
.mod-ambre .hc-kicker-dot { background: #FDEB6E !important; }
#art-page.mod-ambre .art-hero { background: linear-gradient(135deg, #FEFBE6 0%, #FEF5A0 100%); border-color: #FAF0A0; }
#art-page.mod-ambre .art-title { color: #6B5500; }
#art-page.mod-ambre .art-module-name { color: #6B5500; }

/* PETROL */
.mod-petrol .cat-hero, .mod-petrol .sec-hero, .mod-petrol .univ-hero { background: linear-gradient(135deg, #EAF4F6 0%, #C9E0E5 100%); border-color: #B8D8E0; }
.mod-petrol .cat-hero-title, .mod-petrol .sec-hero-title, .mod-petrol .univ-hero-title { color: #294B53; }
.mod-petrol .hc-kicker-dot { background: #90C4CE !important; }
#art-page.mod-petrol .art-hero { background: linear-gradient(135deg, #EAF4F6 0%, #C9E0E5 100%); border-color: #B8D8E0; }
#art-page.mod-petrol .art-title { color: #294B53; }
#art-page.mod-petrol .art-module-name { color: #294B53; }

/* GREY */
.mod-grey .cat-hero, .mod-grey .sec-hero, .mod-grey .univ-hero { background: linear-gradient(135deg, #f8f9f9 0%, #e9ebed 100%); border-color: #d8dcde; }
.mod-grey .cat-hero-title, .mod-grey .sec-hero-title, .mod-grey .univ-hero-title { color: #49545c; }
.mod-grey .hc-kicker-dot { background: #87929d !important; }
#art-page.mod-grey .art-hero { background: linear-gradient(135deg, #f8f9f9 0%, #e9ebed 100%); border-color: #d8dcde; }
#art-page.mod-grey .art-title { color: #49545c; }
#art-page.mod-grey .art-module-name { color: #49545c; }


/* ── ARTICLES ÉPINGLÉS ── */
.cat-section { padding: 64px 32px; }
.cat-section--main { padding-bottom: 40px; background: var(--cream); }
.cat-section--pinned { background: var(--petrol-60); color: var(--white); }
.cat-section--pinned .hc-kicker { color: var(--mint-mid); }
.cat-section--pinned .cat-section-title { color: var(--white); margin-top: 8px; }
.cat-section-inner { max-width: var(--max-w); margin: 0 auto; }
.cat-section-header { margin-bottom: 20px; }
.cat-section-title { font-family: var(--font-brand); font-weight: 700; font-size: 22px; color: var(--petrol); margin-top: 6px; }

/* Bloc « Trouvez votre version » : grille des deux cartes + pastille + aperçu */
.cat-dual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 32px; }
.dual-card-tag { display: inline-block; padding: 4px 12px; margin-bottom: 16px; border-radius: 12px; font-size: 13px; font-weight: 700; }
[data-version-choice="nouveau"] .dual-card-tag { background: var(--fg); color: var(--white); }
[data-version-choice="classique"] .dual-card-tag { background: var(--white); color: var(--fg); border: 1px solid var(--cream-border); }
.dual-card-preview { width: 100%; height: auto; margin-bottom: 16px; border: 1px solid var(--cream-border); border-radius: 8px; }
.cat-promoted-list { display: flex; flex-direction: column; gap: 8px; }
.cat-promoted-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--white); border: 1px solid var(--fg); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--petrol); transition: background .15s, transform .15s; }
.cat-promoted-item:hover { background: var(--cream); transform: translateX(4px); }
.cat-promoted-pin { flex-shrink: 0; }
.cat-promoted-list:empty, .sec-promoted:empty { display: none; }

/* ── GRILLE SECTIONS ── */
.cat-sections-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-section-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat-section-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--petrol-10); }
.cat-section-card-header { display: flex; align-items: flex-start; gap: 4px; }
.cat-section-card-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;}
.cat-section-card-title { font-family: var(--font-body); font-weight: 700; font-size: 18px; color: var(--petrol); line-height: 1.3; margin: 0; padding-top: 4px; }
.cat-section-card-desc { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); flex: 1; }
.cat-section-card-desc--empty { font-style: italic; opacity: 0.5; font-size: 12px; }
.cat-section-card-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--petrol-60); margin-top: auto; }

/* ── CTA CONTACT CATEGORY ── */
.cat-cta { padding: 40px 32px; background: var(--cream); border-top: 1px solid var(--cream-border); text-align: center; }
.cat-cta-inner { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cat-cta-text { font-size: 16px; color: var(--fg-muted); }
/* Variante page catégorie (.cat-cta est aussi utilisé par custom_pages/mod_*.hbs, qui garde le gabarit de base) */
.cat-page .cat-cta { padding: 64px 32px; }
.cat-page .cat-cta-inner { max-width: 820px; }
.cat-cta-title { text-align: center; font-size: 32px; }
.cat-cta-search { width: 70%; min-width: min(320px, 100%); }

/* ── SECTION PAGE : HERO ── */
.sec-hero { padding: 40px 32px 24px; border-bottom: 1px solid var(--cream-border); background: var(--cream); }
.sec-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.sec-hero-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sec-hero-parent { font-size: 13px; font-weight: 700; color: var(--petrol-60); text-decoration: none; transition: color .15s; }
.sec-hero-parent:hover { color: var(--petrol); }
.sec-hero-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); background: var(--white); border: 1px solid var(--cream-border); padding: 2px 8px; border-radius: var(--radius-full); }
.sec-hero-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(24px, 4vw, 36px); letter-spacing: -0.02em; color: var(--petrol); margin: 0; line-height: 1.15; }
.sec-hero-desc { font-size: 15px; line-height: 1.6; color: var(--fg-muted); max-width: 620px; margin-top: 12px; }
/* Pictogramme du module : l'<img> est injecté par setCategoryIcon() (script.js) */
.sec-hero-icon { width: 56px; height: 56px; }
.sec-hero-icon img { width: 56px; height: 56px; object-fit: contain; }
.sec-hero-desc--empty { font-style: italic; opacity: 0.5; font-size: 13px; }

/* ── SECTION PAGE : LAYOUT 2 COLONNES ── */
.sec-layout { padding: 40px 32px 64px; background: var(--cream); }
/* Sidebar à gauche (300px), liste des articles à droite */
.sec-layout-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.sec-main { min-width: 0; }
/* Intitulé au-dessus d'une liste d'articles (hérite de .hc-kicker) */
.sec-list-label { display: block; margin-bottom: 12px; }
.sec-promoted { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--cream-border ); }
.sec-promoted-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--cream-dark); border-bottom: 1px solid var(--cream-border); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: var(--petrol); transition: background .15s; }
.sec-promoted-item:hover { background: var(--cream-border); }
.sec-articles-list { display: flex; flex-direction: column; gap: 8px; border: none; }
.sec-article-item { border: 1px solid var(--cream-border); border-radius: var(--radius-sm); background: var(--white); transition: box-shadow .15s; }
.sec-article-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; text-decoration: none; color: var(--petrol); transition: background .15s; border-radius: var(--radius-sm); }
.sec-article-link:hover { background: var(--cream); }
.sec-article-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.sec-article-main svg { flex-shrink: 0; color: var(--petrol-30); }
.sec-article-title { font-size: 14px; font-weight: 600; color: var(--petrol); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-article-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sec-article-badge { padding: 2px 8px; border-radius: 12px; background: var(--fg); color: var(--white); font-size: 12px; font-weight: 700; }
.sec-article-more { font-size: 12px; font-weight: 600; color: var(--petrol-60); }
.sec-article-date { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.sec-article-arrow { color: var(--petrol-30); transition: transform .15s; }
.sec-article-link:hover .sec-article-arrow { transform: translateX(3px); color: var(--petrol); }

/* Sidebar Section */
/* Le cadre blanc est porté par .sec-sidebar-card, l'<aside> reste transparent */
.sec-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }
.sec-sidebar-card { background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 24px; }
.sec-sidebar-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--font-brand); font-size: 16px; color: var(--petrol); }
.sec-sidebar-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; }
.sec-sidebar-icon img { object-fit: contain; }
.sec-sidebar-desc { margin-bottom: 12px; font-size: 13px; line-height: 1.5; color: var(--fg-muted); }
.sec-sidebar-header { margin-bottom: 14px; }
.sec-sidebar-title { font-family: var(--font-brand); font-weight: 700; font-size: 16px; color: var(--petrol); margin-top: 6px; }
.sec-sidebar-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.sec-sidebar-item a, .sec-sidebar-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-sm); font-size: 13px; color: var(--fg-muted); text-decoration: none; transition: background .15s, color .15s; }
.sec-sidebar-link:hover { background: var(--cream); color: var(--petrol); }
.sec-sidebar-item.is-current .sec-sidebar-link { background: var(--cream); color: var(--petrol); font-weight: 600; }
.sec-sidebar-link-icon { width: 22px; height: 22px; margin-right: 2px; }
.sec-sidebar-current-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--petrol); flex-shrink: 0; }
.sec-sidebar-loading { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px; color: var(--fg-muted); }
.sec-sidebar-spinner { width: 14px; height: 14px; border: 2px solid var(--cream-border); border-top-color: var(--petrol-30); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.sec-sidebar-back { display: block; font-size: 12.5px; font-weight: 600; color: var(--petrol-60); border-top: 1px solid var(--cream-border); padding-top: 14px; text-decoration: none; transition: color .15s; }
.sec-sidebar-back:hover { color: var(--petrol); }

/* ── RESPONSIVE CATEGORY & SECTION ── */
@media (max-width: 1024px) {
  .cat-sections-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-layout-inner { grid-template-columns: 240px 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .cat-hero-inner { flex-direction: column; }
  .cat-hero-picto { display: none; }
  .cat-sections-grid { grid-template-columns: 1fr; }
  .sec-layout-inner { grid-template-columns: 1fr; }
  .sec-sidebar { position: static; order: -1; }
  .cat-section, .sec-layout { padding: 32px 20px; }
  .cat-hero, .sec-hero { padding: 32px 20px; }
  .hc-breadcrumb-inner { padding: 10px 20px; }
}

/* ================================================================
   ARTICLE PAGE
   ================================================================ */

.art-page { min-height: 60vh; }

/* ── LAYOUT 3 COLONNES ── */
.art-layout { padding: 40px 32px 64px; }
.art-layout-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }

/* ── HEADER ARTICLE ── */
.art-main { background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-lg); padding: 20px; overflow-y: auto; flex-shrink: 0; }

.art-header { padding-bottom: 28px; border-bottom: 1px solid var(--cream-border); margin-bottom: 32px; }
.art-hero { align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--cream-border); border-radius: var(--radius-sm); font-size: 13px; color: var(--fg-muted); text-decoration: none; transition: background .15s, color .15s; }

.art-labels { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;}
.art-module-picto img { width: 36px; height: 36px; vertical-align: middle; object-fit: contain; }
.art-module-band { display: flex; align-items: center; gap: 6px; }
#art-page .art-module-band .art-module-name { color: var(--fg); font-weight: 700; }
.art-label { display: inline-flex; align-items: center; padding: 3px 10px; background: var(--petrol-05); border: 1px solid var(--petrol-10); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--petrol-60); }
.art-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(24px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.02em; color: var(--petrol); margin: 8px 0 0px; }

/* ── Audiences/Cibles (Chips) ── */
.art-audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.art-audience-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--mint-light);
  border: 1px solid var(--mint-mid);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--mint-dark);
  white-space: nowrap;
}
.art-audience-chip:hover {
  background: var(--mint-mid);
  transition: background .15s;
}
.art-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.art-author { display: flex; align-items: center; gap: 10px; }
.art-author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream-border); }
.art-author-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--petrol); }
.art-author-name a { color: inherit; text-decoration: none; }
.art-author-name a:hover { text-decoration: underline; }
.art-author-date { display: block; font-size: 12px; color: var(--fg-muted); margin-top: 1px; }
.art-meta-actions { display: flex; align-items: center; gap: 10px; }

/* ── ARTICLES CONSULTÉS RÉCEMMENT ── */
.art-recent-list { display: flex; flex-direction: column; gap: 0; }

.art-recent-list li,
.art-recent-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 5px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--petrol);
  text-decoration: none;
  transition: background .15s, transform .15s;
}

.art-recent-list li:hover,
.art-recent-list > div:hover {
  background: var(--cream-border);
  transform: translateX(2px);
}

/* ── ARTICLES ASSOCIÉS ── */
.art-associated-list { display: flex; flex-direction: column; gap: 0; }

.art-associated-list li,
.art-associated-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 5px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--petrol);
  text-decoration: none;
  transition: box-shadow .15s, transform .15s, background .15s;
}

.art-associated-list li:hover,
.art-associated-list > div:hover {
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.art-recent-list li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2C4.5 2 1.5 4.5 0.5 8c1 3.5 4 6 7.5 6s6.5-2.5 7.5-6c-1-3.5-4-6-7.5-6z' stroke='%23294B53' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='8' cy='8' r='2.5' stroke='%23294B53' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.art-associated-list li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71' stroke='%23294B53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71' stroke='%23294B53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Profils et Auteur liés */
.art-profiles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
/* Masqué tant que initArticleProfiles() (script.js) n'a rien à afficher : le JS pose display:flex en CSSOM */
#art-profiles { display: none; }
.art-profiles-label { font-size: 12px; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.07em; }
.art-profile-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; color: var(--petrol); background: var(--cream); border: 1px solid var(--cream-border); }
.art-profile-tag[data-profil="Admin"] { background: var(--sun-light); }
.art-profile-tag[data-profil="Manager"] { background: var(--sky-light); }
.art-profile-tag[data-profil="Collaborateur"] { background: var(--mint-light); }
.art-profile-tag[data-profil="RH"] { background: var(--magenta-light); }
.art-profile-tag[data-profil="Consultant"] { background: var(--cream); }
.art-profile-tag[data-profil="Tous"] { background: var(--petrol-05); }
.art-author-footer { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--cream-border); margin-top: 32px; }
.art-author-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-muted); margin-bottom: 2px; }

/* ── CORPS ── */
.art-body { font-size: 15px; line-height: 1.75; color: var(--fg); }
.art-body h2 { font-family: var(--font-brand); font-weight: 700; font-size: 22px; color: var(--petrol); margin: 40px 0 14px; letter-spacing: -0.01em; scroll-margin-top: calc(var(--header-h) + 20px); }
.art-body h3 { font-family: var(--font-brand); font-weight: 600; font-size: 17px; color: var(--petrol); margin: 28px 0 10px; scroll-margin-top: calc(var(--header-h) + 20px); }
.art-body p { margin: 0 0 16px; }
.art-body ul, .art-body ol { margin: 0 0 16px 24px; }
.art-body li { margin-bottom: 6px; }
.art-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--cream-border); margin: 16px 0; cursor: zoom-in; }
.art-body a { color: var(--petrol); text-decoration: underline; }
.art-body a:hover { color: var(--petrol-60); }
.art-body code { font-family: var(--font-mono); font-size: 13px; background: var(--cream); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--cream-border); }
.art-body pre { background: var(--petrol); color: var(--white); padding: 20px; border-radius: var(--radius-md); overflow-x: auto; margin: 16px 0; }
.art-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: 13px; }
.art-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; border-radius: var(--radius-md); border-radius: 16px; overflow: hidden;}
.art-body th { background: var(--cream); font-weight: 700; padding: 10px 14px; text-align: left; border: 1px solid var(--cream-border); color: var(--petrol); }
.art-body td { padding: 10px 14px; border: 1px solid var(--cream-border); vertical-align: top;  }
.art-body tr:nth-child(even) td { background: var(--cream);  }

/* ── PIÈCES JOINTES ── */
.art-attachments { margin: 32px 0; padding: 20px; background: var(--cream); border-radius: var(--radius-md); border: 1px solid var(--cream-border); }
.art-attachments-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--petrol); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; }
.art-attachments-list { display: flex; flex-direction: column; gap: 8px; }
.art-attachment-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.art-attachment-link { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--petrol); font-weight: 500; }
.art-attachment-link:hover { text-decoration: underline; }
.art-attachment-size { font-size: 12px; color: var(--fg-muted); }

/* ── VOTE ── */
.art-vote { margin: 40px 0 0; padding: 28px; background: var(--cream); border-radius: var(--radius-lg); border: 1px solid var(--cream-border); text-align: center; }
.art-vote-question { font-family: var(--font-brand); font-weight: 600; font-size: 16px; color: var(--petrol); margin-bottom: 16px; }
.art-vote-btns { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.art-vote-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: 2px solid var(--petrol); border-radius: var(--radius-sm); background: var(--white); font-size: 14px; font-weight: 700; color: var(--petrol); cursor: pointer; transition: background .15s, border-color .15s, color .15s; min-width: 140px; justify-content: center; }
.art-vote-btn:hover { background: var(--petrol-05); border-color: var(--petrol-30); }
.art-vote-btn.vote-voted.art-vote-btn--up { background: var(--mint-light); border-color: var(--mint); color: #2A7A58; }
.art-vote-btn.vote-voted.art-vote-btn--down { background: var(--red-light); border-color: var(--red); color: var(--red); }
.art-vote-btn--up::before { content: "✓ Oui";}
.art-vote-btn--down::before { content: "✗ Non";}
.art-vote-count { font-size: 12px; color: var(--fg-muted); }

/* ── REQUEST CALLOUT & RELATED ── */
.art-request { margin: 24px 0; }
.art-related { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; padding-top: 32px; border-top: 1px solid var(--cream-border); }

/* ── COMMENTAIRES ── */
.art-comments { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--cream-border); }
.art-comments-title { font-family: var(--font-brand); font-weight: 700; font-size: 20px; color: var(--petrol); display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.art-comments-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--cream); border: 1px solid var(--cream-border); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; color: var(--fg-muted); }
.art-comments-sorter { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--fg-muted); }
.art-comments-sorter .dropdown { position: relative; }
.art-comments-sorter .dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-sm); font: inherit; color: var(--fg); cursor: pointer; }
.art-comments-sorter .dropdown-toggle::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.art-comments-sorter .dropdown-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px; padding: 6px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); box-shadow: var(--shadow-md); z-index: 50; }
.art-comments-sorter .dropdown-menu[hidden] { display: none; }
.art-comments-sorter .dropdown-menu a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--fg); transition: background .15s; }
.art-comments-sorter .dropdown-menu a:hover, .art-comments-sorter .dropdown-menu a:focus-visible { background: var(--cream); }
.art-comments-sorter .dropdown-menu a[aria-current="true"] { font-weight: 700; }
.art-comment-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.art-comment { display: flex; gap: 14px; }
.art-comment-avatar { position: relative; flex-shrink: 0; }
.art-comment-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream-border); }
.art-comment-agent-dot { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: var(--mint); border: 2px solid var(--white); border-radius: 50%; }
.art-comment-body { flex: 1; min-width: 0; }
.art-comment-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.art-comment-author { font-size: 13.5px; color: var(--petrol); }
.art-comment-author a { color: inherit; text-decoration: none; }
.art-comment-date { font-size: 12px; color: var(--fg-muted); }
.art-comment-ticket { font-size: 12px; padding: 2px 8px; background: var(--petrol-05); border: 1px solid var(--petrol-10); border-radius: var(--radius-full); color: var(--petrol-60); }
.art-comment-content { font-size: 14px; line-height: 1.65; color: var(--fg); }
.art-comment-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.art-comment-vote { display: flex; align-items: center; gap: 6px; }
.art-comment-vote-btn { font-size: 12px; color: var(--fg-muted); background: none; border: none; cursor: pointer; padding: 2px 6px; border-radius: var(--radius-sm); transition: background .15s; }
.art-comment-vote-btn:hover { background: var(--cream); }
.art-comment-vote-sum { font-size: 12px; color: var(--fg-muted); }
.art-comment-form-inner { display: flex; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--cream-border); }
.art-comment-form-fields { flex: 1; }
.art-comment-form-submit { margin-top: 12px; }

/* ── SIDEBAR : TOC & ARTICLES ── */
.art-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 24px; }
.art-toc { background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-lg); padding: 20px; max-height: 40vh; overflow-y: auto; flex-shrink: 0; }
.art-toc::-webkit-scrollbar { width: 4px; }
.art-toc::-webkit-scrollbar-track { background: transparent; }
.art-toc::-webkit-scrollbar-thumb { background: var(--cream-border); border-radius: 2px; }
.art-toc::-webkit-scrollbar-thumb:hover { background: var(--petrol-30); }
.art-toc-title { font-family: var(--font-brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 14px; }
.art-toc-list { display: flex; flex-direction: column; gap: 2px; }
.art-toc-item { list-style: none; }
.art-toc-item--h3 { padding-left: 14px; }
.art-toc-link { display: block; padding: 6px 8px; font-size: 12.5px; line-height: 1.4; color: var(--fg-muted); border-radius: var(--radius-sm); border-left: 2px solid transparent; text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
.art-toc-link:hover { color: var(--petrol); background: var(--cream); }
.art-toc-link.is-active { color: var(--petrol); font-weight: 600; border-left-color: var(--petrol); background: var(--cream); }
.art-toc:has(#art-toc-list:empty) { display: none; }

.art-sidenav { background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-lg); padding: 20px; }
.art-sidenav-title { font-family: var(--font-brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 14px; }
.art-sidenav-list { display: flex; flex-direction: column; gap: 2px; }
.art-sidenav-link { display: block; padding: 7px 10px; font-size: 13px; line-height: 1.4; color: var(--fg-muted); border-radius: var(--radius-sm); border-left: 2px solid transparent; text-decoration: none; transition: color .15s, background .15s; }
.art-sidenav-link:hover { color: var(--petrol); background: var(--cream); }
.art-sidenav-link.is-current { color: var(--petrol); font-weight: 600; border-left-color: var(--petrol); background: var(--cream); }
.art-sidenav-more { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--petrol-60); text-decoration: none; padding-top: 12px; border-top: 1px solid var(--cream-border); width: 100%; }
.art-sidenav-more:hover { color: var(--petrol); }

/* Bouton Retour haut */
.art-back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--petrol); color: var(--white); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; z-index: 50; }
.art-back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.art-back-to-top:hover { background: var(--petrol-60); }
.art-share-hidden, .art-share-hidden * { display: none !important; }

/* ENCARTS DANS LES ARTICLES */
.encart-attention { background: #feebef; border-left: 5px solid #d63031; color: #2d3436; }
/* INTRO BOXES */
.art-body > div[style*="background-color: #f6f2ea"] { border-radius: 12px; }

/* IMAGES DANS LES ARTICLES */
.wysiwyg-image-resized { max-width: 100% !important; height: auto !important; }

/* DETAILS/SUMMARY (Accordéons) */
.details-summary { margin: 20px 0; }
.details-summary summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 12px; background: var(--cream); border-radius: var(--radius-sm); border: 1px solid var(--cream-border); color: var(--petrol); user-select: none; list-style: none; transition: background .15s, color .15s; }
.details-summary summary:hover { background: var(--cream-dark); }
.details-summary summary::-webkit-details-marker { display: none; }
.details-summary summary::before { content: '▶ '; display: inline-block; margin-right: 8px; transition: transform .2s; }
.details-summary[open] summary::before { transform: rotate(90deg); }
.details-summary[open] summary { background: var(--petrol-05); color: var(--petrol); }
.details-summary > *:not(summary) { padding: 16px 12px; font-size: 14px; color: var(--fg); }

/* LIGNE ESPACÉE */
.ligne-espacee { line-height: 1.8; margin: 12px 0; }

/* WYSIWYG TEXT ALIGNMENT */
.wysiwyg-text-align-center { text-align: center; }
.wysiwyg-text-align-left { text-align: left; }
.wysiwyg-text-align-right { text-align: right; }

.encart { border-radius: 16px; padding: 18px 22px; margin: 16px 0; font-size: 1.5rem; line-height: 1.6; display: flex; gap: 14px; align-items: flex-start; overflow: hidden;}
.encart-titre { font-family: var(--font-brand); font-weight: 700; font-size: 1.6rem; margin-bottom: 6px; }
.encart-bleu   { background: #D4E8EB; border-left: 3px solid #6B9BA3; color: #2d3436; }
.encart-jaune  { background: #FEF4D9; border-left: 3px solid #D4A574; color: #2d3436; }
.encart-rouge  { background: #F9E6E3; border-left: 3px solid #D4876B; color: #2d3436; }
.encart-vert   { background: #E6F3F0; border-left: 3px solid #7BAA9F; color: #2d3436; }
.encart-fonce  { background: #294B53; border-left: 5px solid #90C4CE; color: #fff; }
.encart-icone  { font-size: 2.5rem; flex-shrink: 0; margin-top: 2px; }
.encart strong { font-weight: 700; }
.carte { background: #F6F2EA; border-radius: 20px; padding: 16px 24px; margin: 16px 0; box-shadow: 4px 4px 0px var(--petrol-30); font-size: 1.5rem; line-height: 1.6; }
.carte-bleu   { border-left: 6px solid #F6F2EA; box-shadow: 4px 4px 0px #90C4CE; }
.carte-jaune  { border-left: 6px solid #F6F2EA; box-shadow: 4px 4px 0px #FDEB6E; }
.carte-rouge  { border-left: 6px solid #F6F2EA; box-shadow: 4px 4px 0px #F39071; }
.carte-vert   { border-left: 6px solid #F6F2EA; box-shadow: 4px 4px 0px #79BF9D; }
.carte-titre  { font-family: var(--font-brand); font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.carte-bleu  .carte-titre { color: #486267; }
.carte-jaune .carte-titre { color: #E6B83F; }
.carte-rouge .carte-titre { color: var(--red); }
.carte-vert  .carte-titre { color: #79BF9D; }
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.grille-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 16px 0; }

.encart-vertical { flex-direction: column; align-items: flex-start; gap: 12px; }


@media (max-width: 1024px) {
  .art-layout-inner { grid-template-columns: 1fr 220px; gap: 32px; }
}
@media (max-width: 768px) {
  .art-layout { padding: 24px 20px 48px; }
  .art-layout-inner { grid-template-columns: 1fr; }
  .art-sidebar { position: static; order: -1; }
  .art-toc { display: none; }
  .art-related { grid-template-columns: 1fr; }
  .grille-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grille-2, .grille-3 { grid-template-columns: 1fr; }
}

/* ================================================================
   SEARCH RESULTS PAGE
   ================================================================ */

.sr-page { min-height: 60vh; }
.sr-hero { background: var(--cream); border-bottom: 1px solid var(--cream-border); padding: 40px 32px 36px; }
.sr-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.sr-hero-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(22px, 4vw, 32px); color: var(--petrol); margin: 10px 0 24px; letter-spacing: -0.02em; line-height: 1.2; }
.sr-hero-title em { font-style: normal; color: var(--magenta); }
.sr-query { color: var(--petrol-60); font-style: italic; }
.sr-search-wrap { max-width: 560px; }
.sr-search { display: flex; align-items: center; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm), 0 0 0 1px var(--cream-border); padding: 6px 6px 6px 16px; gap: 8px; }
.sr-search:focus-within { outline: 2px solid var(--petrol); outline-offset: 2px; }
.sr-search input[type="search"] { flex: 1; border: none; outline: none; font-size: 15px; font-family: var(--font-body); color: var(--fg); background: transparent; padding: 8px 0; }
.sr-search input[type="search"]::placeholder { color: var(--fg-muted); }
.sr-search input[type="hidden"] { display: none; }

.sr-layout { padding: 40px 32px 64px; }
.sr-layout-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.sr-section-header { margin-bottom: 20px; }
.sr-list { display: flex; flex-direction: column; }
.sr-item { border-bottom: 1px solid var(--cream-border); margin: 5px 0 5px;}
.sr-item:first-child { border-top: 1px solid var(--cream-border); }
.sr-item-link { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; text-decoration: none; color: inherit; border-radius: var(--radius-md); transition: background .15s; }
.sr-item-link:hover { background: var(--cream); }
.sr-item-main { flex: 1; min-width: 0; }
.sr-item-title { margin: 0; }
.sr-item-breadcrumb { margin: 0; padding-left: 20px;font-size: 12px; }
.sr-item-breadcrumb li { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-muted); }
.sr-item-breadcrumb li + li::before { content: '/'; color: var(--cream-border); }
.sr-item-breadcrumb a { color: var(--petrol-60); text-decoration: none; }
.sr-item-breadcrumb a:hover { text-decoration: underline; }
.sr-item-excerpt { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-item-excerpt em, .sr-item-excerpt strong { color: var(--petrol); font-style: normal; font-weight: 700; background: var(--sun-light); padding: 0 2px; border-radius: 2px; }
.sr-item-meta { display: flex; justify-content: flex-end; gap: 8px; margin: 0; }
.sr-item-votes::before { content: '•'; margin-right: 8px; }.sr-item-votes { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-muted); }
.sr-item-date { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.sr-item-arrow { color: var(--petrol-30); transition: transform .15s; }
.sr-item-link:hover .sr-item-arrow { transform: translateX(3px); color: var(--petrol); }

.sr-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 32px; gap: 16px; }
.sr-empty-icon { font-size: 48px; }
.sr-empty-title { font-family: var(--font-brand); font-weight: 700; font-size: 22px; color: var(--petrol); }
.sr-empty-desc { font-size: 15px; color: var(--fg-muted); }

.sr-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.sr-sidebar-block { background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-lg); padding: 20px; }
.sr-sidebar-title { font-family: var(--font-brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); margin-bottom: 14px; }
.sr-sidebar-modules { display: flex; flex-direction: column; gap: 2px; }
.sr-sidebar-link { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; color: var(--fg-muted); text-decoration: none; transition: background .15s, color .15s; }
.sr-sidebar-link:hover { background: var(--cream); color: var(--petrol); }
.sr-sidebar-picto { width: 36px; height: 36px; flex-shrink: 0; object-fit: contain; }


.sr-main nav.pagination, .sr-main .pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.sr-main .pagination ul, .sr-main .pagination ol { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.sr-main .pagination li { display: inline-flex; list-style: none; }
.sr-main .pagination a, .sr-main .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--petrol); border: 1px solid var(--cream-border); text-decoration: none; transition: background .15s, border-color .15s; }
.sr-main .pagination a:hover { background: var(--cream); border-color: var(--petrol-30); }
.sr-main .pagination .current, .sr-main .pagination [aria-current="page"] { background: var(--petrol); color: var(--white); border-color: var(--petrol); }

@media (max-width: 768px) {
  .sr-layout-inner { grid-template-columns: 1fr; }
  .sr-sidebar { position: static; order: -1; }
  .sr-layout { padding: 24px 20px 48px; }
  .sr-hero { padding: 32px 20px; }
}

/* ================================================================
   USER PROFILE PAGE
   ================================================================ */

.up-page { min-height: 60vh; }
.up-hero { background: var(--cream); border-bottom: 1px solid var(--cream-border); padding: 48px 32px 40px; }
.up-hero-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.up-hero-main { display: flex; align-items: center; gap: 24px; }
.up-avatar { position: relative; flex-shrink: 0; }
.up-avatar-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: var(--shadow-md); }
.up-agent-badge { position: absolute; bottom: 0; right: 0; width: 22px; height: 22px; background: var(--petrol); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid var(--white); }
.up-name { font-family: var(--font-brand); font-weight: 700; font-size: clamp(22px, 3vw, 30px); color: var(--petrol); margin: 0 0 6px; letter-spacing: -0.02em; }
.up-name a { color: inherit; text-decoration: none; }
.up-name a:hover { text-decoration: underline; }
.up-private-badge { display: inline-flex; padding: 3px 10px; background: var(--cream-dark); border: 1px solid var(--cream-border); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.up-description { font-size: 14px; color: var(--fg-muted); line-height: 1.5; margin: 6px 0 12px; }
.up-hero-actions { display: flex; align-items: center; gap: 10px; }

.up-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; padding: 24px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-lg); }
.up-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.up-stat-value { font-family: var(--font-brand); font-weight: 700; font-size: 22px; color: var(--petrol); line-height: 1; }
.up-stat-label { font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.up-nav { border-bottom: 1px solid var(--cream-border); background: var(--white); position: sticky; top: var(--header-h); z-index: 10; }
.up-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.up-nav-list { display: flex; gap: 0; list-style: none; }
.up-nav-item { padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--fg-muted); border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; }
.up-nav-item a { color: inherit; text-decoration: none; }
.up-nav-item:hover, .up-nav-item a:hover { color: var(--petrol); }
.up-nav-item.is-active { color: var(--petrol); font-weight: 700; border-bottom-color: var(--petrol); }

.up-content { padding: 40px 32px 64px; }
.up-content-inner { max-width: var(--max-w); margin: 0 auto; }
.up-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.up-section-title { font-family: var(--font-brand); font-weight: 700; font-size: 20px; color: var(--petrol); }
.up-section-desc { font-size: 13px; color: var(--fg-muted); }

.up-activity-list { display: flex; flex-direction: column; gap: 20px; }
.up-activity-item { display: flex; gap: 14px; padding: 20px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); }
.up-activity-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--cream-border); }
.up-activity-body { flex: 1; min-width: 0; }
.up-activity-label { font-size: 13px; color: var(--fg-muted); margin-bottom: 10px; }

.up-contribution-list { display: flex; flex-direction: column; }
.up-contribution-item { padding: 20px 8px; border-bottom: 1px solid var(--cream-border); }
.up-contribution-item:first-child { border-top: 1px solid var(--cream-border); }
.up-contribution-title { font-family: var(--font-brand); font-weight: 600; font-size: 16px; margin: 0 0 8px; }
.up-contribution-title a { color: var(--petrol); text-decoration: none; }
.up-contribution-title a:hover { text-decoration: underline; }
.up-breadcrumb { display: flex; align-items: center; gap: 4px; list-style: none; margin: 6px 0; flex-wrap: wrap; }
.up-breadcrumb li { font-size: 12px; color: var(--fg-muted); display: flex; align-items: center; gap: 4px; }
.up-breadcrumb li + li::before { content: '/'; color: var(--cream-border); }
.up-breadcrumb a { color: var(--petrol-60); text-decoration: none; }
.up-breadcrumb a:hover { text-decoration: underline; }
.up-contribution-excerpt { font-size: 13.5px; line-height: 1.55; color: var(--fg-muted); margin: 8px 0; }
.up-contribution-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--fg-muted); }
.up-contribution-link { color: var(--petrol); text-decoration: none; font-weight: 600; }
.up-contribution-link:hover { text-decoration: underline; }

.up-status-badge { display: inline-flex; padding: 2px 8px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.up-status-pending { background: var(--sun-light); color: #6B5500; border: 1px solid var(--sun); }
.up-status-official { background: var(--petrol-05); color: var(--petrol); border: 1px solid var(--petrol-10); }

.up-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 32px; gap: 12px; color: var(--fg-muted); font-size: 15px; }
.up-empty-icon { font-size: 40px; }

@media (max-width: 768px) {
  .up-hero { padding: 32px 20px; }
  .up-stats { grid-template-columns: repeat(3, 1fr); }
  .up-content { padding: 24px 20px; }
  .up-nav-inner { padding: 0 20px; }
  .up-nav-item { padding: 12px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
  .up-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   REQUESTS PAGE — Mes demandes
   ================================================================ */

.rq-page { min-height: 60vh; }
.rq-main-nav { background: var(--white); border-bottom: 1px solid var(--cream-border); }
.rq-main-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.rq-main-nav-list { display: flex; gap: 0; list-style: none; }
.rq-main-nav-item { padding: 14px 20px; font-size: 14px; font-weight: 500; color: var(--fg-muted); border-bottom: 2px solid transparent; cursor: pointer; }
.rq-main-nav-item a { color: inherit; text-decoration: none; }
.rq-main-nav-item:hover, .rq-main-nav-item a:hover { color: var(--petrol); }
.rq-main-nav-item.is-active { color: var(--petrol); font-weight: 700; border-bottom-color: var(--petrol); }

.rq-hero { background: var(--cream); border-bottom: 1px solid var(--cream-border); padding: 36px 32px 32px; }
.rq-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.rq-hero-title { font-family: var(--font-brand); font-weight: 700; font-size: clamp(24px, 4vw, 32px); color: var(--petrol); margin: 10px 0 0; letter-spacing: -0.02em; }

.rq-layout { padding: 32px 32px 64px; }
.rq-layout-inner { max-width: var(--max-w); margin: 0 auto; }
.rq-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.rq-filters-list { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.rq-filter-item { padding: 7px 16px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; color: var(--fg-muted); border: 1px solid var(--cream-border); background: var(--white); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.rq-filter-item a { color: inherit; text-decoration: none; }
.rq-filter-item:hover, .rq-filter-item a:hover { background: var(--cream); color: var(--petrol); }
.rq-filter-item.is-active { background: var(--petrol); color: var(--white); border-color: var(--petrol); font-weight: 600; }

.rq-search-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rq-search-input-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px; background: var(--white); border: 1px solid var(--cream-border); border-radius: var(--radius-md); padding: 8px 14px; transition: border-color .15s; }
.rq-search-input-wrap:focus-within { border-color: var(--petrol); outline: 2px solid var(--petrol); outline-offset: 2px; }
.rq-search-input { flex: 1; border: none; outline: none; font-size: 14px; font-family: var(--font-body); color: var(--fg); background: transparent; }
.rq-search-input::placeholder { color: var(--fg-muted); }

.rq-filter-select-wrap { display: flex; align-items: center; gap: 8px; }
.rq-filter-label { font-size: 13px; font-weight: 500; color: var(--fg-muted); white-space: nowrap; }
.rq-select { padding: 8px 12px; border: 1px solid var(--cream-border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-body); color: var(--petrol); background: var(--white); cursor: pointer; }

.rq-search-info { font-size: 13px; color: var(--fg-muted); margin-bottom: 16px; padding: 10px 14px; background: var(--cream); border-radius: var(--radius-sm); }
.rq-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 32px; gap: 14px; color: var(--fg-muted); font-size: 15px; }
.rq-empty-icon { font-size: 40px; }

.rq-table-wrap { border: 1px solid var(--cream-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.rq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rq-table thead tr { background: var(--cream); border-bottom: 1px solid var(--cream-border); }
.rq-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-muted); white-space: nowrap; }
.rq-table th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.rq-table th a:hover { color: var(--petrol); }
.rq-row { border-bottom: 1px solid var(--cream-border); transition: background .15s; }
.rq-row:last-child { border-bottom: none; }
.rq-row:hover { background: var(--cream); }
.rq-row--closed { opacity: 0.6; }
.rq-table td { padding: 14px 16px; vertical-align: middle; }

.rq-subject-link { font-weight: 600; color: var(--petrol); text-decoration: none; display: block; line-height: 1.4; }
.rq-subject-link:hover { text-decoration: underline; }
.rq-id { font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.rq-date { font-size: 13px; color: var(--fg-muted); white-space: nowrap; }
.rq-requester { font-size: 13px; color: var(--fg-muted); }

.rq-status-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rq-status-open, .rq-status-new { background: var(--mint-light); color: var(--mint-dark); border: 1px solid var(--mint-mid); }
.rq-status-pending { background: var(--sun-light); color: #6B5500; border: 1px solid var(--sun-mid); }
.rq-status-solved, .rq-status-closed { background: var(--cream); color: var(--fg-muted); border: 1px solid var(--cream-border); }
.rq-status-hold { background: var(--coral-light); color: var(--coral-dark); border: 1px solid var(--coral-mid); }
.rq-row-meta-mobile { display: none; }

@media (max-width: 768px) {
  .rq-layout { padding: 24px 20px 48px; }
  .rq-hero { padding: 28px 20px; }
  .rq-main-nav-inner { padding: 0 20px; }
  .rq-search-bar { flex-direction: column; align-items: stretch; }
  .rq-search-input-wrap { min-width: unset; }
  .rq-th-id, .rq-td-id, .rq-th-created, .rq-td-created, .rq-th-updated, .rq-td-updated { display: none; }
  .rq-row-meta-mobile { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--fg-muted); }
}

/* ================================================================
   SUBSCRIPTION — Abonnement
   ================================================================ */
.sub-filter-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sub-title-wrap { display: flex; align-items: center; gap: 10px; }
.sub-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--cream-border); }
.sub-type-badge { display: inline-flex; padding: 3px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.sub-type-article { background: var(--petrol-05); color: var(--petrol); border: 1px solid var(--petrol-10); }
.sub-type-section { background: var(--mint-light); color: var(--mint-dark); border: 1px solid var(--mint-mid); }
.sub-type-category { background: var(--sun-light); color: #6B5500; border: 1px solid var(--sun-mid); }
.sub-type-user { background: var(--coral-light); color: var(--coral-dark); border: 1px solid var(--coral-mid); }
.sub-unsubscribe { text-align: right; }
.sub-unsubscribe a, .sub-unsubscribe button { font-size: 12px; color: var(--fg-muted); text-decoration: none; padding: 4px 10px; border: 1px solid var(--cream-border); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; transition: background .15s, color .15s; }
.sub-unsubscribe a:hover, .sub-unsubscribe button:hover { background: var(--red-light); color: var(--red); border-color: var(--red); }

/* ================================================================
   CONTRIBUTIONS
   ================================================================ */
.contrib-votes { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--petrol); }

/* ================================================================
	Ne conserver que les 9 premiers articles à la une
================================================================ */
.hp-articles-grid .hp-article-card:nth-child(n+10) {
  display: none;
}

/* ── Préférence « réduire les animations » ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
