/*
Theme Name:   ADH2OC Child
Theme URI:    https://www.adh2oc-industriel.com
Description:  Sous-thème GeneratePress — Style Prime : glassmorphism, dark/light mode, bento grid, spotlight cards
Author:       Agence Sillage
Author URI:   https://agencesillage.fr
Template:     generatepress
Version:      2.2.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  adh2oc-child
*/

/* ============================================================
   GOOGLE FONTS — Outfit uniquement
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS — MODE JOUR (défaut)
   ============================================================ */
:root {
  /* Brand */
  --brand-blue:      #0077cc;
  --brand-blue-soft: rgba(0, 119, 204, 0.12);
  --brand-blue-glow: rgba(0, 119, 204, 0.30);
  --brand-gold:      #FFC107;
  --brand-deep:      #031d38;
  --brand-cyan:      #00c6ff;

  /* Fond & surfaces */
  --bg:              #f0f4f8;
  --bg-card:         rgba(255, 255, 255, 0.85);
  --bg-card-hover:   rgba(255, 255, 255, 0.98);
  --surface:         #ffffff;
  --surface-subtle:  rgba(0, 119, 204, 0.06);

  /* Bordures — plus visibles en mode jour */
  --border:          rgba(0, 80, 160, 0.18);
  --border-hover:    rgba(0, 119, 204, 0.50);
  --border-card:     rgba(0, 80, 160, 0.14);

  /* Texte — contraste renforcé */
  --text-main:       #0f1f35;
  --text-muted:      #334a63;
  --text-soft:       #5a7290;
  --text-white:      #ffffff;

  /* Spotlight */
  --spotlight-color: rgba(0, 119, 204, 0.14);
  --spotlight-border:rgba(0, 119, 204, 0.45);

  /* Nav — fond plus opaque, ombre plus marquée */
  --nav-bg:          rgba(255, 255, 255, 0.92);
  --nav-border:      rgba(0, 80, 160, 0.20);
  --nav-shadow:      0 4px 32px rgba(0, 30, 80, 0.14), 0 1px 0 rgba(255,255,255,.9) inset;

  /* Scrollbar */
  --scrollbar-thumb: #0077cc;

  /* Typographie — Outfit partout */
  --font-sans:       'Outfit', sans-serif;
  --font-display:    'Outfit', sans-serif;

  /* Rayons */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-2xl: 32px;

  /* Transitions */
  --t:      200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   MODE SOMBRE
   ============================================================ */
html.dark-mode {
  --bg:              #060d18;
  --bg-card:         rgba(255, 255, 255, 0.04);
  --bg-card-hover:   rgba(255, 255, 255, 0.08);
  --surface:         #0d1a2e;
  --surface-subtle:  rgba(255, 255, 255, 0.05);

  --border:          rgba(255, 255, 255, 0.10);
  --border-hover:    rgba(255, 255, 255, 0.25);
  --border-card:     rgba(255, 255, 255, 0.08);

  --text-main:       #e8f0f8;
  --text-muted:      #9ab0c8;
  --text-soft:       #5a7290;

  --spotlight-color: rgba(0, 140, 255, 0.08);
  --spotlight-border:rgba(0, 119, 204, 0.60);

  --nav-bg:          rgba(6, 13, 24, 0.85);
  --nav-border:      rgba(255, 255, 255, 0.12);
  --nav-shadow:      0 4px 40px rgba(0,0,0,.7);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-slow), color var(--t-slow);
}

/* GeneratePress — forcer Outfit sur tout */
.main-navigation,
.main-navigation a,
.widget,
button,
input,
select,
textarea {
  font-family: var(--font-sans) !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--brand-blue); border-radius: 10px; }

/* ============================================================
   TEXTURE BRUIT
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Canvas constellation */
#adh-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   TYPOGRAPHIE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

p { color: var(--text-muted); margin-bottom: 1rem; }

a { color: var(--brand-blue); text-decoration: none; transition: color var(--t); }

/* Gradient texte — statique, pas d'animation qui scintille */
.adh-text-gradient {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-cyan) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-blue); /* fallback */
}

/* Visibilité garantie — pas d'animation opacity/transform sur le hero */
.adh-hero__pill,
.adh-hero__title,
.adh-hero__title span,
.adh-text-gradient {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ============================================================
   LAYOUT — GeneratePress overrides
   ============================================================ */
.site {
  position: relative;
  z-index: 1;
}

/* Neutraliser les styles GP qui bloquent le design */
.site-main,
.inside-site-main {
  padding: 0 !important;
}

.generate-columns-container,
.inside-article {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Zone de contenu principale */
.content-area,
#primary {
  width: 100%;
  float: none;
}

/* Pas de sidebar par défaut sur ce thème */
#secondary { display: none; }

/* Max-width global 1280px — contenu pages */
.grid-container {
  max-width: 1280px !important;
}
.wp-block-group__inner-container {
  max-width: 1280px !important;
}

/* ============================================================
   NAVIGATION — GLASS FLOATING
   ============================================================ */

/* Décalage barre d'admin WordPress */
.admin-bar .site-header {
  top: calc(1.5rem + 32px) !important;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: calc(0.75rem + 46px) !important;
  }
}

.site-header {
  position: fixed !important;
  top: 1.5rem !important;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 1rem;
  transition: top var(--t-slow);
}

.site-header .inside-header {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-xl);
  padding: 0.65rem 1.25rem;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: var(--nav-shadow);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  transition: background var(--t-slow), border-color var(--t-slow), box-shadow var(--t-slow);
}

html.dark-mode .site-header .inside-header {
  box-shadow: var(--nav-shadow);
}

/* Site branding — colonne gauche */
.site-header .site-branding {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Navigation principale — colonne centrale */
/* inside-navigation est l'enfant direct du grid, il prend la colonne du milieu */
.site-header #site-navigation {
  /* Fait partie de la grille → occupe la colonne centrale */
  min-width: 0;
}

.site-header .inside-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  width: 100%;
}

/* Bouton menu burger GP : on le cache sur desktop, inside-navigation prend sa place */
.site-header .mobile-menu-control-wrapper {
  display: none;
}
@media (max-width: 768px) {
  .site-header .mobile-menu-control-wrapper {
    display: flex;
    align-items: center;
  }
}

/* Liens du menu centrés */
.site-header .main-nav {
  display: flex;
  justify-content: center;
}
.site-header .main-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Zone droite — 3e colonne de la grille inside-header */
.site-header .adh-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  justify-content: flex-end;
}

/* ── Sous-menus — design glassmorphism ── */
.main-navigation ul ul,
.main-navigation .sub-menu {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--border-card) !important;
  border-top: 2px solid var(--brand-blue) !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.10) !important;
  padding: 0.4rem !important;
  min-width: 200px;
}
html.dark-mode .main-navigation ul ul,
html.dark-mode .main-navigation .sub-menu {
  box-shadow: 0 8px 32px rgba(0,0,0,.5) !important;
}
.main-navigation ul ul li a,
.main-navigation .sub-menu li a {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: var(--radius-sm) !important;
  display: block;
  transition: background var(--t), color var(--t) !important;
  background-image: none !important;
}
.main-navigation ul ul li a:hover,
.main-navigation .sub-menu li a:hover {
  background: var(--surface-subtle) !important;
  color: var(--brand-blue) !important;
  background-size: 0 !important;
}
html.dark-mode .main-navigation ul ul li a:hover,
html.dark-mode .main-navigation .sub-menu li a:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,.07) !important;
}

/* ── Logo image ── */
.adh-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
}
.adh-logo-img {
  height: 52px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  /* drop-shadow s'applique sur les pixels opaques du PNG transparent */
  filter: drop-shadow(0 2px 6px rgba(0, 30, 80, 0.15));
  transition: filter var(--t), transform var(--t);
}
.adh-logo-link:hover .adh-logo-img {
  filter: drop-shadow(0 4px 14px rgba(0, 119, 204, 0.45));
  transform: scale(1.04);
}
html.dark-mode .adh-logo-img {
  filter: drop-shadow(0 0 14px rgba(0, 198, 255, 0.28));
}
html.dark-mode .adh-logo-link:hover .adh-logo-img {
  filter: drop-shadow(0 0 22px rgba(0, 198, 255, 0.55));
}
/* Masquer TOUT le texte branding GP — le logo image le remplace */
.site-branding .main-title,
.site-branding p.main-title,
.site-branding .site-title,
.site-branding .site-description,
.site-description { display: none !important; }

/* ── Séparateur PMPro dans le menu principal ── */
/* Ajouter manuellement la classe CSS "adh-pmpro-item" dans
   WP Admin → Apparence → Menus → Options d'affichage → Classes CSS
   sur les items "Votre profil" et "Se connecter" */
.main-nav ul .adh-pmpro-first > a {
  position: relative;
  margin-left: 0.75rem !important;
  padding-left: 1.25rem !important;
}
.main-nav ul .adh-pmpro-first > a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1.1em;
  width: 1px;
  background: var(--border-hover);
}
.main-nav ul .adh-pmpro-item > a {
  font-size: 0.8rem !important;
  color: var(--text-soft) !important;
  font-style: italic;
}
.main-nav ul .adh-pmpro-item > a:hover {
  color: var(--brand-blue) !important;
}

/* ── Widget auth PMPro en fin de nav ── */
.adh-nav-auth {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Séparateur entre dark mode toggle et widget auth */
.adh-nav-right #adh-theme-toggle {
  margin-right: 0.25rem;
}
.adh-nav-right .adh-nav-auth {
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

/* Bouton "Se connecter" (non connecté) */
.adh-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-blue) !important;
  background: var(--brand-blue-soft);
  border: 1px solid rgba(0,119,204,.2);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.9rem;
  text-decoration: none !important;
  transition: all var(--t);
  white-space: nowrap;
}
.adh-nav-login i { font-size: 0.75rem; }
.adh-nav-login:hover {
  background: var(--brand-blue);
  color: #fff !important;
  border-color: var(--brand-blue);
  box-shadow: 0 0 14px rgba(0,119,204,.3);
}

/* Dropdown utilisateur connecté */
.adh-nav-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-md);
  transition: background var(--t);
  outline: none;
}
.adh-nav-user:hover,
.adh-nav-user:focus { background: var(--surface-subtle); }

.adh-nav-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 2px solid var(--border-hover);
  object-fit: cover;
  flex-shrink: 0;
}
.adh-nav-username {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adh-nav-chevron {
  font-size: 0.6rem;
  color: var(--text-soft);
  transition: transform var(--t);
}
.adh-nav-user:hover .adh-nav-chevron,
.adh-nav-user:focus .adh-nav-chevron,
.adh-nav-user.is-open .adh-nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.adh-nav-dropdown {
  position: absolute;
  top: 100%;           /* Collé directement — pas de gap */
  right: 0;
  min-width: 200px;
  background: var(--nav-bg);
  border: 1px solid var(--border-card);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  padding: 0.4rem 0.4rem 0.5rem;
  /* Padding-top invisible pour absorber le gap entre trigger et panel */
  padding-top: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--t), transform var(--t);
  z-index: 200;
}

/* Pont invisible entre le trigger et le panel :
   couvre la zone de transition pour éviter la perte du hover */
.adh-nav-user::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 12px;        /* Absorbe le micro-gap éventuel */
  background: transparent;
  z-index: 201;
}

html.dark-mode .adh-nav-dropdown {
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* Ouverture uniquement via la classe JS .is-open (plus fiable que :hover sur mobile) */
.adh-nav-user.is-open .adh-nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Sur desktop, on garde aussi :hover/:focus-within comme fallback */
@media (hover: hover) {
  .adh-nav-user:hover .adh-nav-dropdown,
  .adh-nav-user:focus-within .adh-nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.adh-nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  transition: background var(--t), color var(--t);
}
.adh-nav-dropdown__item i {
  width: 16px;
  text-align: center;
  color: var(--brand-blue);
  font-size: 0.8rem;
}
.adh-nav-dropdown__item:hover {
  background: var(--surface-subtle);
  color: var(--text-main) !important;
}
.adh-nav-dropdown__item--logout {
  margin-top: 0.25rem;
  border-top: 1px solid var(--border-card);
  padding-top: 0.65rem;
  color: #ef4444 !important;
}
.adh-nav-dropdown__item--logout i { color: #ef4444; }
.adh-nav-dropdown__item--logout:hover { background: rgba(239,68,68,.06); }

/* Nav links */
.main-navigation .nav-float ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation .nav-float ul li a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main) !important;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  background-image: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue) 100%);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease, color 0.2s;
  letter-spacing: 0.01em;
}

.main-navigation .nav-float ul li a:hover {
  color: var(--brand-blue) !important;
  background-size: 100% 2px;
}

html.dark-mode .main-navigation .nav-float ul li a:hover {
  color: #ffffff !important;
}

/* Bouton CTA nav */
.nav-cta > a,
.menu-item-nav-cta > a {
  background: var(--brand-blue-soft) !important;
  color: var(--brand-blue) !important;
  border: 1px solid rgba(0,119,204,.2) !important;
  border-radius: var(--radius-md) !important;
  padding: 0.45rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: all var(--t) !important;
  box-shadow: 0 0 15px rgba(0,119,204,.08);
}
.nav-cta > a:hover,
.menu-item-nav-cta > a:hover {
  background: var(--brand-blue) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(0,119,204,.4);
  background-size: 0% 0 !important;
}

/* Bouton dark mode toggle */
#adh-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  font-size: 0.9rem;
  transition: all var(--t);
  flex-shrink: 0;
}
#adh-theme-toggle:hover {
  transform: scale(1.1);
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
html.dark-mode #adh-theme-toggle {
  color: #FFC107;
  border-color: rgba(255,193,7,.3);
  background: rgba(255,193,7,.08);
}
html.dark-mode #adh-theme-toggle:hover {
  background: rgba(255,193,7,.2);
  color: #FFC107;
}

/* Hamburger mobile */
.menu-toggle {
  color: var(--text-main) !important;
  background: var(--surface-subtle) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.4rem 0.6rem !important;
}

/* Mobile nav panel */
.main-navigation .mobile-nav {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
  padding: 0.5rem;
}

/* ============================================================
   WRAPPER PRINCIPAL (décalage pour le header flottant)
   ============================================================ */
.site-content {
  padding-top: 7rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.adh-hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

/* Pill badge */
.adh-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 1rem;
  border-radius: 9999px;
  background: var(--brand-blue-soft);
  border: 1px solid var(--border-hover);
  color: var(--brand-blue);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  /* Pas d'animation float — cause des scintillements */
}
html.dark-mode .adh-hero__pill { color: var(--brand-gold); border-color: rgba(255,193,7,.2); background: rgba(255,193,7,.08); }

/* Seul le point pulse — animation légère, pas de transform sur le conteneur */
.adh-hero__pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
  animation: adh-pulse 2s ease-in-out infinite;
}
html.dark-mode .adh-hero__pill::before { background: var(--brand-gold); }

@keyframes adh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.5); }
}

.adh-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--brand-deep);
  margin-bottom: 0;
}
html.dark-mode .adh-hero__title { color: #ffffff; }

.adh-hero__title span {
  display: block;
}

/* ============================================================
   BARRE DE RECHERCHE
   ============================================================ */
.adh-search {
  max-width: 720px;
  margin: 2rem auto 3rem;
  position: relative;
  z-index: 20;
}

.adh-search__glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
  border-radius: calc(var(--radius-xl) + 4px);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.6s;
  pointer-events: none;
}
.adh-search:focus-within .adh-search__glow { opacity: 0.25; }

.adh-search__inner {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.06), 0 1px 0 rgba(255,255,255,.8) inset;
  transition: border-color var(--t), box-shadow var(--t);
}
html.dark-mode .adh-search__inner {
  background: rgba(0,0,0,.7);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.adh-search:focus-within .adh-search__inner {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px var(--brand-blue-glow), 0 1px 0 rgba(255,255,255,.8) inset;
}

.adh-search__icon {
  color: var(--text-soft);
  font-size: 1rem;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.adh-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.6rem 0.5rem;
}
.adh-search__input::placeholder { color: var(--text-soft); }

/* ============================================================
   BANDEAU ACTUALITÉS (TICKER)
   ============================================================ */
.adh-ticker-wrap {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.adh-ticker-card {
  background: linear-gradient(135deg, rgba(0,119,204,.06) 0%, rgba(255,255,255,.7) 100%);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--brand-gold);
  border-radius: var(--radius-xl);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
html.dark-mode .adh-ticker-card {
  background: linear-gradient(135deg, rgba(0,119,204,.12) 0%, rgba(0,0,0,.3) 100%);
}

.adh-ticker-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.adh-ticker-label .badge-news {
  background: var(--brand-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  animation: adh-pulse 2s ease-in-out infinite;
  letter-spacing: 0.05em;
}
.adh-ticker-label span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.adh-ticker-overflow {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.adh-ticker-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  white-space: nowrap;
  /* Pas d'animation ici — initialisée par JS via data-speed */
}
.adh-ticker-track.is-running {
  animation-name: adh-marquee;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.adh-ticker-track:hover { animation-play-state: paused; }

.adh-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
}
.adh-ticker-item:hover { color: var(--brand-blue); }
html.dark-mode .adh-ticker-item:hover { color: #fff; }
.adh-ticker-item i { color: var(--brand-gold); font-size: 0.65rem; transition: transform var(--t); }
.adh-ticker-item:hover i { transform: scale(1.3); }

@keyframes adh-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FAVORIS
   ============================================================ */
.adh-favorites {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), opacity var(--t-slow), margin var(--t-slow);
}
.adh-favorites.is-visible {
  max-height: 400px;
  opacity: 1;
  margin-bottom: 2.5rem;
}

.adh-favorites__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.adh-favorites__header i { color: var(--brand-gold); }
.adh-favorites__header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.adh-favorites__count {
  font-size: 0.7rem;
  background: var(--surface-subtle);
  color: var(--text-soft);
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  border: 1px solid var(--border);
}

.adh-favorites__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.adh-fav-card {
  background: rgba(255,193,7,.05);
  border: 1px solid rgba(255,193,7,.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--t);
}
.adh-fav-card:hover {
  background: rgba(255,193,7,.1);
  border-color: rgba(255,193,7,.4);
  transform: translateY(-2px);
}
.adh-fav-card a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
}
.adh-fav-card a i { color: var(--brand-gold); font-size: 0.8rem; }
.adh-fav-remove {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color var(--t);
  font-size: 0.8rem;
}
.adh-fav-remove:hover { color: #ef4444; }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.adh-countdown-section {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 1.5rem;
}

.adh-countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--border-card);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 1rem;
  backdrop-filter: blur(8px);
}
.adh-countdown-label i { color: var(--brand-gold); }

.adh-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.adh-countdown-card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,.04);
  transition: background var(--t-slow), border-color var(--t-slow);
}
html.dark-mode .adh-countdown-card {
  background: rgba(255,255,255,.04);
}

.adh-countdown-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
  display: block;
}
html.dark-mode .adh-countdown-value { color: #ffffff; }

.adh-countdown-unit {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  margin-top: 0.25rem;
  display: block;
}

/* ============================================================
   BENTO GRID — OUTILS
   ============================================================ */
.adh-tools-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.adh-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Span spéciaux */
.adh-col-span-2 { grid-column: span 2; }
.adh-col-span-3 { grid-column: span 3; }
.adh-col-span-4 { grid-column: span 4; }

/* ============================================================
   SPOTLIGHT CARD
   ============================================================ */
.adh-spotlight-wrap {
  border-radius: var(--radius-2xl);
  position: relative;
  padding: 1px;
  height: 100%;
}

/* Bordure lumineuse */
.adh-spotlight-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  background: radial-gradient(
    600px circle at var(--cx, 50%) var(--cy, 50%),
    var(--spotlight-border),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
  z-index: 0;
}
.adh-spotlight-wrap:hover .adh-spotlight-border { opacity: 1; }

.adh-spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: calc(var(--radius-2xl) - 1px);
  padding: 1.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--t), border-color var(--t);
}
.adh-spotlight-wrap:hover .adh-spotlight-card {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

/* Lueur intérieure au curseur */
.adh-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at var(--cx, -200px) var(--cy, -200px),
    var(--spotlight-color),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
  z-index: 0;
}
.adh-spotlight-wrap:hover .adh-spotlight-card::before { opacity: 1; }

/* En-tête de card */
.adh-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-card);
  position: relative;
  z-index: 10;
}

.adh-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Couleurs icônes par catégorie — plus saturées */
.adh-icon--blue    { background: rgba(0,119,204,.14);  color: #005fa8; }
.adh-icon--cyan    { background: rgba(6,182,212,.14);  color: #0778a0; }
.adh-icon--purple  { background: rgba(139,92,246,.14); color: #6d28d9; }
.adh-icon--orange  { background: rgba(249,115,22,.14); color: #c2410c; }
.adh-icon--pink    { background: rgba(236,72,153,.14); color: #be185d; }
.adh-icon--green   { background: rgba(16,185,129,.14); color: #047857; }
.adh-icon--indigo  { background: rgba(99,102,241,.14); color: #4338ca; }

html.dark-mode .adh-icon--blue    { background: rgba(0,119,204,.22);  color: #60a5fa; }
html.dark-mode .adh-icon--cyan    { background: rgba(6,182,212,.22);  color: #22d3ee; }
html.dark-mode .adh-icon--purple  { background: rgba(139,92,246,.22); color: #a78bfa; }
html.dark-mode .adh-icon--orange  { background: rgba(249,115,22,.22); color: #fb923c; }
html.dark-mode .adh-icon--pink    { background: rgba(236,72,153,.22); color: #f472b6; }
html.dark-mode .adh-icon--green   { background: rgba(16,185,129,.22); color: #34d399; }
html.dark-mode .adh-icon--indigo  { background: rgba(99,102,241,.22); color: #818cf8; }

.adh-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin: 0;
  letter-spacing: -0.01em;
}
html.dark-mode .adh-card-title { color: #ffffff; }

/* Liste d'outils */
.adh-tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.adh-tool-list--cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.1rem 1.5rem;
}

/* Ligne outil */
.adh-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--t);
}
.adh-tool-row:hover {
  background: rgba(0,119,204,.05);
  border-color: rgba(0,119,204,.1);
}
html.dark-mode .adh-tool-row:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
}

.adh-tool-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  flex: 1;
  transition: color var(--t);
}
html.dark-mode .adh-tool-link { font-weight: 400; color: #9ab0c8; }
.adh-tool-row:hover .adh-tool-link { color: var(--brand-blue); }
html.dark-mode .adh-tool-row:hover .adh-tool-link { color: #ffffff; }

.adh-tool-link i {
  width: 20px;
  text-align: center;
  color: var(--brand-blue);
  font-size: 0.85rem;
  transition: transform var(--t), color var(--t);
  flex-shrink: 0;
}
.adh-tool-row:hover .adh-tool-link i {
  transform: scale(1.25);
  color: var(--brand-gold);
}

/* Badge NEW */
.adh-new-badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,193,7,.15);
  color: var(--brand-gold);
  border: 1px solid rgba(255,193,7,.3);
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  margin-left: auto;
  margin-right: 0.4rem;
  white-space: nowrap;
}

/* Bouton favori */
.adh-fav-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.adh-tool-row:hover .adh-fav-btn,
.adh-fav-btn.is-active {
  opacity: 1;
  pointer-events: auto;
}
.adh-fav-btn:hover {
  background: rgba(255,193,7,.1);
  color: var(--brand-gold);
  transform: scale(1.1);
}
.adh-fav-btn.is-active { color: var(--brand-gold); }
.adh-fav-btn.is-active i { font-weight: 900; }

/* ── Items verrouillés (secured="yes" + accès refusé) ── */
.adh-tool-row--locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.adh-tool-link--locked {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  flex: 1;
  text-decoration: line-through;
  text-decoration-color: rgba(0,0,0,.2);
}
.adh-lock-icon {
  font-size: 0.7rem;
  color: var(--text-soft);
  flex-shrink: 0;
  margin-right: 0.25rem;
}

/* ── Badge cadenas sur le header de card sécurisée ── */
.adh-secured-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,119,204,.1);
  color: var(--brand-blue);
  font-size: 0.6rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
html.dark-mode .adh-secured-badge {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.5);
}

/* ============================================================
   CARD FLASH INFO (pleine largeur)
   ============================================================ */
.adh-flash-card {
  background: linear-gradient(135deg, rgba(0,119,204,.06), rgba(255,255,255,.7));
  border-left: 4px solid var(--brand-gold) !important;
}
html.dark-mode .adh-flash-card {
  background: linear-gradient(135deg, rgba(0,119,204,.15), rgba(0,0,0,.4));
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  background: transparent !important;
  border-top: 1px solid var(--border-card);
  padding: 2rem 0;
  margin-top: 2rem;
}

/* Masquer le crédit "Construit avec GeneratePress" natif GP */
.site-info .copyright-bar a[href*="generatepress"],
.site-info .copyright-bar a[href*="wordpress.org"],
.copyright-bar {
  /* On laisse GP afficher le .copyright-bar mais on override son contenu via PHP */
}
/* Cacher le lien GP s'il subsiste */
.site-info a[href*="generatepress.com"] { display: none !important; }

/* Notre copyright custom */
.adh-copyright {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  color: var(--text-soft);
}
.adh-copyright a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}
.adh-copyright a:hover { color: var(--text-main); }

.site-footer .inside-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-footer .inside-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-soft);
}
.footer-copyright strong { color: var(--text-muted); }

.adh-footer-socials {
  display: flex;
  gap: 0.75rem;
}
.adh-footer-social {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.875rem;
  transition: all var(--t);
}
.adh-footer-social:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

/* ============================================================
   PAGES INTÉRIEURES (articles, pages WP standard)
   ============================================================ */
.adh-page-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.entry-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-card);
}
.entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--brand-deep);
  margin-bottom: 0.25rem;
}
html.dark-mode .entry-title { color: #ffffff; }

.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  padding: 20px;
}
.entry-content h2, .entry-content h3 { color: var(--brand-deep); margin-top: 2rem; }
html.dark-mode .entry-content h2, html.dark-mode .entry-content h3 { color: #ffffff; }
.entry-content a { color: var(--brand-blue); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 1.5rem; }
.entry-content th { background: var(--brand-deep); color: #fff; padding: 0.6rem 0.9rem; text-align: left; font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; }
html.dark-mode .entry-content th { background: rgba(255,255,255,.08); }
.entry-content td { padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border-card); }
.entry-content tr:nth-child(even) td { background: var(--surface-subtle); }

/* Formulaires */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-main);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,119,204,.12);
}
input::placeholder, textarea::placeholder { color: var(--text-soft); }

/* Boutons */
.btn, input[type="submit"], button[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
}
.btn--primary, input[type="submit"], button[type="submit"] {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 15px rgba(0,119,204,.2);
}
.btn--primary:hover, input[type="submit"]:hover, button[type="submit"]:hover {
  box-shadow: 0 0 20px rgba(0,119,204,.5);
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  border-color: rgba(0,119,204,.2);
}
.btn--ghost:hover {
  background: var(--brand-blue);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .adh-bento-grid { grid-template-columns: repeat(3, 1fr); }
  .adh-col-span-4 { grid-column: span 3; }
}

@media (max-width: 1024px) {
  .adh-bento-grid { grid-template-columns: repeat(2, 1fr); }
  .adh-col-span-3, .adh-col-span-4 { grid-column: span 2; }
  .adh-tool-list--cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header { top: 0.75rem; }
  .site-content { padding-top: 6rem; }
  .adh-hero { padding: 2rem 1rem 1.5rem; }
  .adh-bento-grid { grid-template-columns: 1fr; }
  .adh-col-span-2, .adh-col-span-3, .adh-col-span-4 { grid-column: span 1; }
  .adh-countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .adh-tool-list--cols { grid-template-columns: 1fr; }
  .adh-ticker-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Mobile : le header redevient flex simple */
  .site-header .inside-header {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* Le menu desktop se cache — mais SANS !important
     pour que GP puisse le réafficher au clic hamburger */
  .site-header #site-navigation:not(.toggled) {
    display: none;
  }
  /* Quand GP ouvre le menu (classe toggled) → pleine largeur */
  .site-header #site-navigation.toggled {
    display: block;
    width: 100%;
    order: 10;
    background: var(--nav-bg);
    border-top: 1px solid var(--border-card);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0.5rem 0;
    margin-top: 0.25rem;
  }
  .site-header #site-navigation.toggled .inside-navigation {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem !important;
  }
  .site-header #site-navigation.toggled .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .site-header #site-navigation.toggled .main-nav > ul li a {
    padding: 0.6rem 0.5rem !important;
    font-size: 1rem !important;
    display: block;
    width: 100%;
  }
  .site-header #site-navigation.toggled .adh-nav-right {
    display: none; /* déjà présent hors du menu nav */
  }

  /* Hamburger visible */
  .site-header .mobile-menu-control-wrapper {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
  }

  /* Zone droite et logo restent côte à côte */
  .site-header .site-branding { flex-shrink: 0; }
  .site-header .adh-nav-right {
    margin-left: auto;
    justify-content: flex-end;
  }

  /* Username masqué sur mobile */
  .adh-nav-username { display: none; }
}

@media (max-width: 480px) {
  .site-header .inside-header { padding: 0.6rem 1rem; }
  .adh-search__input { font-size: 0.9rem; }
  .adh-countdown-value { font-size: 1.5rem; }
}

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
