/* ============================
   CSS — Access France Notices
   Sobre · Élégant · Luxe
   Palette :
   Bleu clair  #7c89a0
   Rouge       #7f6462
   Bleu foncé  #364370
   Blanc cassé #faf3ee
   Blanc       #ffffff
   Noir texte  #1a1a1a
============================ */
:root {
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface2:    #f8f9fb;
  --border:      #e8ebf0;
  --border-soft: #f0f2f5;
  --accent:      #7f6462;       /* rouge — touche chaleureuse */
  --accent-soft: #f5f0ef;
  --navy:        #364370;       /* bleu foncé — autorité */
  --blue:        #7c89a0;       /* bleu clair — menus */
  --text:        #1a1a1a;       /* noir texte */
  --text-mid:    #444444;
  --text-light:  #7c89a0;
  --footer-bg:   #364370;
  --footer-text: #faf3ee;
  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.09);
  --transition:  .2s cubic-bezier(.4,0,.2,1);
  --header-h:    90px;
  --thumb-w:     148px;
  --thumb-h:     100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; overflow-x: hidden; overflow-y: scroll; max-width: 100%; }

body { overscroll-behavior-y: none;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}

/* ── Fond 3 colonnes ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Défaut : blanc partout — remplacé dynamiquement par JS */
  background: linear-gradient(
    to right,
    var(--col-left,  #ffffff) 0%,
    var(--col-left,  #ffffff) var(--col-left-w, 10%),
    var(--col-center,#ffffff) var(--col-left-w, 10%),
    var(--col-center,#ffffff) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, #ffffff) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, #ffffff) 100%
  );
  pointer-events: none;
}

/* Desktop : bandes larges */
@media (min-width: 960px) {
  :root {
    --col-left-w:  15vw;
    --col-right-w: 15vw;
  }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 959px) {
  :root {
    --col-left-w:  10%;
    --col-right-w: 10%;
  }
  /* Sidebars cachées sur tablette — menus et contenu pleine largeur */
  .cat-menu-inner,
  .sub-menu-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .app-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Aligner les menus sur le padding du content-area */
  .cat-menu-wrap,
  .sub-menu-wrap,
  .sub2-menu-wrap {
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }
  .cat-menu-wrap::after,
  .sub-menu-wrap::after,
  .sub2-menu-wrap::after {
    left: 24px;
    right: 24px;
  }
}

/* Mobile : bandes fines, juste un rappel */
@media (max-width: 599px) {
  :root {
    --col-left-w:  8px;
    --col-right-w: 8px;
  }
  /* Mobile : menus et contenu pleine largeur */
  .cat-menu-inner,
  .sub-menu-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .app-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

img    { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a      { color: inherit; text-decoration: none; }

/* ============================
   HEADER — blanc, sobre
============================ */
.site-header {
  height: var(--header-h);
  background: var(--header-bg, var(--surface));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.site-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  white-space: nowrap;
  letter-spacing: .02em;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Logo image — taille mobile */
.site-logo img#siteLogo {
  height: calc(72px * var(--logo-size-mobile, 80) / 100);
  max-width: calc(220px * var(--logo-size-mobile, 80) / 100);
  object-fit: contain;
  display: none;
}

.site-logo span { color: var(--accent); }
.header-divider  { flex: 1; }

.header-badge {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ============================
   MAIN LAYOUT
============================ */
.app-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
  box-sizing: border-box;
  width: 100%;
}

/* Sur desktop : les menus et contenu sont centrés via leur propre marge/padding */
@media (min-width: 960px) {
  /* Le content-area se positionne entre les colonnes pub */
  .content-area {
    margin-left: var(--col-left-w, 15%);
    margin-right: var(--col-right-w, 15%);
    max-width: none;
  }
}

/* ── Sidebar Ad Columns ── */
.sidebar-col {
  position: fixed;
  top: var(--header-h, 72px);
  bottom: 50px; /* above footer */
  width: var(--col-left-w, 15%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 8px;
  gap: 16px;
  box-sizing: border-box;
  z-index: 10;
  pointer-events: none;
}
.sidebar-col * { pointer-events: auto; }
.sidebar-col-left  { left: 0; }
.sidebar-col-right { right: 0; width: var(--col-right-w, 15%); }

/* Widget base */
.ad-widget {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  overflow: hidden;
  word-break: break-word;
  box-sizing: border-box;
}

/* Image fixe */
.ad-img { width: 100%; border-radius: 10px; object-fit: cover; display: block; }
.ad-img-link { display: block; width: 100%; }
.ad-img-link:hover { opacity: .88; }

/* Image 3D rotative */
.ad-3d-wrap {
  width: 100%;
  aspect-ratio: 1;
  perspective: 600px;
}
.ad-3d-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotate3d 8s linear infinite;
}
.ad-3d-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  backface-visibility: hidden;
}
@keyframes rotate3d {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Texte défilant */
.ad-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(0,0,0,.06);
  border-radius: 6px;
  padding: 6px 4px;
}
.ad-ticker-text {
  display: block;
  white-space: nowrap;
  animation: ticker-scroll 15s linear infinite;
  font-size: .72rem;
  color: var(--text-mid);
  font-weight: 500;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Texte simple */
.ad-title { font-size: .8rem; font-weight: 700; color: var(--navy); line-height: 1.3; }
.ad-text  { font-size: .72rem; color: var(--text-mid); line-height: 1.5; }

/* Bouton CTA */
.ad-btn {
  display: block; width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .75rem; font-weight: 700;
  text-align: center; text-decoration: none;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: opacity .2s;
}
.ad-btn:hover { opacity: .82; }

/* Compteur */
.ad-counter-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--navy);
  line-height: 1;
}
.ad-counter-label { font-size: .68rem; color: var(--text-light); }

/* QR Code */
.ad-qr { width: 80%; aspect-ratio: 1; }

/* Masquer sur mobile et tablet */
@media (max-width: 959px) {
  .sidebar-col { display: none; }
  /* Fond pleine couleur centre — pas de bandes latérales */
  body::before {
    background: var(--col-center, #ffffff) !important;
  }
  /* Menus pleine couleur centre */
  .cat-menu-wrap,
  .sub-menu-wrap,
  .sub2-menu-wrap {
    background: var(--col-center, var(--surface)) !important;
  }
  .cat-menu-wrap::after,
  .sub-menu-wrap::after,
  .sub2-menu-wrap::after {
    left: 0;
    right: 0;
  }
  /* Header fond centre aussi */
  .site-header {
    background: var(--header-bg, var(--col-center, #ffffff)) !important;
  }
}

/* ============================
   CATEGORY MENU
   Écriture bleu clair #7c89a0
============================ */
.cat-menu-wrap {
  position: relative;
  z-index: 10;
  background: linear-gradient(
    to right,
    var(--col-left,  var(--surface)) 0%,
    var(--col-left,  var(--surface)) var(--col-left-w, 10%),
    var(--col-center,var(--surface)) var(--col-left-w, 10%),
    var(--col-center,var(--surface)) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, var(--surface)) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, var(--surface)) 100%
  );
  padding: 12px 0 10px;
}

.cat-menu-wrap::after,
.sub-menu-wrap::after,
.sub2-menu-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: var(--col-left-w, 10%);
  right: var(--col-right-w, 10%);
  height: 1px;
  background: var(--border);
}

.cat-menu-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-left: var(--col-left-w, 15%);
  margin-right: var(--col-right-w, 15%);
}

/* Boutons ◀ ▶ */
.cat-nav-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.cat-nav-btn:hover:not(:disabled) {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--surface2);
}

.cat-nav-btn:disabled { opacity: .2; cursor: default; }

.cat-menu-viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-menu-viewport::-webkit-scrollbar { display: none; }

.cat-menu {
  display: flex;
  gap: 6px;
  padding: 2px 2px 2px;
  justify-content: center;
}
.cat-menu.overflows { justify-content: flex-start; }

/* ── Menu catégories — cercles dégradés luxe ── */
.cat-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 10px 10px;
  border: none;
  background: transparent;
  transition: var(--transition);
  min-width: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.cat-item:hover .cat-ring { transform: scale(1.05); }

/* Actif : anneau garde sa couleur, label bleu foncé gras */
.cat-item.active .cat-label { color: var(--navy); font-weight: 700; }

/* Anneau dégradé */
.cat-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;           /* épaisseur de l'anneau dégradé */
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

/* Cercle blanc intérieur */
.cat-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;  /* défaut — écrasé par le style inline du JS */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.cat-ring-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* défaut — écrasé par style inline JS (cover/contain) */
  object-position: center;
  border-radius: 50%;
  /* JAMAIS fill ici — le JS gère via style inline */
}

/* Compatibilité anciens éléments */
.cat-thumb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--border);
  overflow: hidden;
  background: var(--surface2);
  object-fit: cover;
}

.cat-thumb-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* Label menu — bleu clair */
.cat-label {
  font-size: .62rem;
  font-weight: 600;
  color: var(--blue);
  text-align: center;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  max-width: 80px;
  white-space: normal;
  word-break: break-word;
  overflow: visible;
}

/* ============================
   SUB-MENU
============================ */
.sub-menu-wrap, .sub2-menu-wrap {
  position: relative;
  z-index: 9;
}
.sub-menu-wrap {
  background: linear-gradient(
    to right,
    var(--col-left,  var(--surface)) 0%,
    var(--col-left,  var(--surface)) var(--col-left-w, 10%),
    var(--col-center,var(--surface)) var(--col-left-w, 10%),
    var(--col-center,var(--surface)) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, var(--surface)) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, var(--surface)) 100%
  );
  position: relative;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
}

.sub-menu-wrap.open { max-height: 54px; }

.sub-menu-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-left: var(--col-left-w, 15%);
  margin-right: var(--col-right-w, 15%);
}

.sub-nav-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.sub-nav-btn:hover:not(:disabled) {
  border-color: var(--navy);
  color: var(--navy);
}

.sub-nav-btn:disabled { opacity: .2; cursor: default; }

.sub-menu-viewport {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sub-menu-viewport::-webkit-scrollbar { display: none; }

.sub-menu {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  justify-content: center;
}
.sub-menu.overflows { justify-content: flex-start; }
.sub-menu::-webkit-scrollbar { display: none; }

.sub-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 6px 18px;
  border-radius: 50px;          /* pill moderne */
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--surface2);
  border: none;                  /* sans bordure — plus moderne */
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 1.5px transparent;
}

.sub-item:hover {
  background: #eaecf2;
  color: var(--navy);
}

.sub-item.active {
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(54,67,112,.25);
}

/* ============================
   SOUS-SOUS-MENU — même style que sous-menu
============================ */
.sub2-menu-wrap {
  background: linear-gradient(
    to right,
    var(--col-left,  var(--surface)) 0%,
    var(--col-left,  var(--surface)) var(--col-left-w, 10%),
    var(--col-center,var(--surface)) var(--col-left-w, 10%),
    var(--col-center,var(--surface)) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, var(--surface)) calc(100% - var(--col-right-w, 10%)),
    var(--col-right, var(--surface)) 100%
  );
  position: relative;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4,0,.2,1);
}

.sub2-menu-wrap.open { max-height: 62px; }

/* ============================
   CONTENT AREA
============================ */
.content-area {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.slider-viewport-wrap {
  flex: 1;
  min-width: 0;
  padding: 24px 16px 36px;
}

/* Desktop : limiter content-area à la zone centrale entre les sidebars */
@media (min-width: 960px) {
  .content-area {
    max-width: calc(100% - var(--col-left-w, 15%) - var(--col-right-w, 15%));
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fil d'ariane — style Instagram : cercle gauche + 2 lignes droite */
.notice-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

/* Miniature cercle dégradé */
.breadcrumb-mini-ring {
  display: inline-flex;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  padding: 2.5px;
  flex-shrink: 0;
}

.breadcrumb-mini-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
}

.breadcrumb-mini-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Les 2 lignes empilées à droite du cercle */
.bc-lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.bc-cat-name {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ligne 2 : étoile rouge + titre sous-menu */
.bc-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  overflow: hidden;
}

.bc-star {
  color: var(--accent);
  font-size: .7rem;
  flex-shrink: 0;
  line-height: 1;
}

.bc-sub-name {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ligne 3 : sous-sous-titre */
.bc-sub2 {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.3;
  overflow: hidden;
}

.bc-sub2 .bc-star {
  color: var(--blue);
  font-size: .55rem;
  flex-shrink: 0;
}

/* Zone image */
.notice-image-wrap {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-md);
}

.notice-image-wrap > img {
  border-radius: 0;
}

.notice-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.notice-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--border);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.notice-image-placeholder .icon { font-size: 2.2rem; opacity: .35; }

/* Tag — minimaliste */
.notice-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: #ffffff;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
}

/* Titre — élégant, serif */
.notice-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* Conteneur titre au dessus de l'image */
.notice-body { padding: 0; }

/* Conteneur méta/accroche/contenu sous l'image */
.notice-body-content { padding: 0; }

/* Méta */
.notice-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .68rem;
  color: var(--blue);
  margin-bottom: 20px;
  flex-wrap: wrap;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}

.notice-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Accroche — fond blanc cassé, élégant */
.notice-lead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 22px;
  padding: 16px 20px;
  background: #faf3ee;         /* blanc cassé */
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* Corps du texte */
.notice-text {
  font-size: .92rem;
  color: var(--text);
  line-height: 1.8;
  writing-mode: horizontal-tb !important;
}
.notice-text * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}

.notice-text h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin: 24px 0 8px;
  font-weight: 400;
  letter-spacing: .01em;
}

.notice-text p          { margin-bottom: 14px; }
.notice-text ul,
.notice-text ol         { padding-left: 22px; margin-bottom: 14px; }
.notice-text li         { margin-bottom: 6px; }
.notice-text strong     { font-weight: 600; color: var(--text); }

/* Encadré avertissement */
.notice-text .warning-box {
  background: var(--accent-soft);
  border: 1px solid #dcc8c6;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  font-size: .86rem;
  margin: 18px 0;
  color: var(--text-mid);
  font-style: italic;
}
.notice-text .warning-box::before { content: '⚠️  '; font-style: normal; }

/* Séparateur */
.notice-divider {
  border: none;
  border-top: 1px solid var(--border-soft);
  margin: 22px 0;
}

/* État vide */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--border);
}
.empty-state .icon { font-size: 2.5rem; margin-bottom: 14px; opacity: .3; }
.empty-state p     { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }

/* ============================
   FOOTER — bleu foncé
============================ */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--footer-bg, #364370);
  color: var(--footer-text-color, var(--footer-text));
  padding: 10px 24px;
  text-align: center;
  box-shadow: 0 -1px 0 rgba(255,255,255,.05),
              0 -8px 24px rgba(54,67,112,.2);
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-text {
  font-size: .7rem;
  color: var(--footer-text-color, rgba(250,243,238,.65));
  letter-spacing: .04em;
}

.footer-sep { color: var(--footer-text-color, rgba(124,137,160,.35)); opacity: .4; }

.footer-phone {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--footer-text-color, #faf3ee);
  letter-spacing: .04em;
  white-space: nowrap;
  font-weight: 400;
}

.footer-phone-icon {
  color: var(--footer-phone-icon-color, var(--footer-text-color, #faf3ee));
}

.footer-phone:hover { opacity: .75; }
.footer-aide { display: none; }
.footer-refresh { display: none; }

/* ============================
   ANIMATIONS
============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notice-card-anim { animation: fadeUp .25s ease both; }

/* ============================
   SLIDER
============================ */
.slider-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;   /* pour positionner les flèches */
}

.slider-track {
  display: flex;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.slide { flex: 0 0 100%; width: 100%; }

/* Wrapper image + flèches */
.notice-slide-wrap {
  position: relative;
  margin-bottom: 24px;
  padding: 0 30px;
}

.notice-slide-wrap .notice-image-wrap {
  margin-bottom: 0;
}

/* Flèches image — même style que les boutons de navigation */

/* ── Bandes latérales de navigation — intégrées dans le flux ── */
.content-area.has-side-nav {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}
.side-nav-band {
  flex-shrink: 0;
  width: 36px;
  position: relative;
  display: block;
  cursor: pointer;
  background: var(--surface2, #f0f2f5);
  border: 1px solid var(--border);
  padding: 0;
  transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  color: var(--blue);
  overflow: hidden;
}
.side-nav-band-left  { border-radius: 0 8px 8px 0; border-left: none; }
.side-nav-band-right { border-radius: 8px 0 0 8px; border-right: none; }
.side-nav-band:hover:not([disabled]) {
  background: var(--navy, #364370);
  color: #fff;
  border-color: var(--navy);
}
.side-nav-band[disabled] {
  opacity: 0;
  pointer-events: none;
}
.side-nav-arrow {
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.side-nav-label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  pointer-events: none;
  line-height: 1;
  opacity: .8;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.side-nav-band-left  .side-nav-label { transform: translate(-50%, -50%) rotate(180deg); }
.side-nav-band-right .side-nav-label { transform: translate(-50%, -50%) rotate(0deg); }

@media (max-width: 599px) {
  .side-nav-band { width: 22px; }
  .side-nav-label { font-size: .42rem; letter-spacing: .1em; }
  .side-nav-arrow { font-size: .7rem; }
}

.img-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.img-btn:hover:not(:disabled) {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--surface2);
}

.img-btn:disabled { opacity: .2; cursor: default; }
.img-btn-prev { left: 0; }
.img-btn-next { right: 0; }

/* ============================
   RESPONSIVE — MOBILE < 600px
============================ */
@media (max-width: 599px) {

  /* Footer 1 ligne compact */
  .site-footer  { padding: 7px 12px; }
  .footer-inner { flex-wrap: nowrap; gap: 0 10px; }
  .footer-text  { display: none; }
  .footer-sep   { display: none; }
  .footer-phone { font-size: .85rem; }
  .footer-aide  {
    display: inline;
    font-size: .7rem;
    color: rgba(250,243,238,.5);
    white-space: nowrap;
  }
  /* Bouton actualiser — visible sur mobile */
  .footer-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: rgba(250,243,238,.8);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    vertical-align: middle;
  }
  .app-wrapper { padding-bottom: 36px; }

  /* Menu — taille réduite sur mobile */
  .cat-menu-wrap { padding: 8px 0 4px; }
  .cat-menu      { padding: 2px 4px; }
  .sub-menu      { padding: 8px 8px; }
  .cat-nav-btn { width: 30px; height: 30px; font-size: .85rem; }
  .sub-nav-btn { width: 30px; height: 30px; font-size: .85rem; }

  /* Non-sticky sur mobile */
  .site-header   { position: relative; }
  .cat-menu-wrap { position: relative; top: auto; }
  .sub-menu-wrap { position: relative; top: auto; }

  .notice-lead { padding: 12px 14px; }
  .content-area { padding: 16px 12px 28px; }

  /* Image plus grande sur mobile */
  .notice-image-wrap img { max-height: 320px; }
  .notice-slide-wrap { padding: 0 32px; }
  .img-btn { width: 28px; height: 28px; font-size: .75rem; }
}

/* ============================
   RESPONSIVE — TABLET 600px
============================ */
@media (min-width: 600px) {
  :root { --header-h: 92px; }
  .content-area       { padding: 28px 24px 40px; }
  .cat-menu           { padding: 0 20px; gap: 8px; }
  .sub-menu           { padding: 9px 20px; }
  .sub-menu-wrap.open { max-height: 62px; }
  .img-btn            { width: 30px; height: 30px; }
  .img-btn-prev       { left: 2px; }
  .img-btn-next       { right: 2px; }
}

/* ============================
   RESPONSIVE — DESKTOP 960px
============================ */
@media (min-width: 960px) {
  :root { --header-h: 150px; }
  .site-header       { padding: 0 36px; }
  .cat-menu          { padding: 0 36px; gap: 16px; }
  .sub-menu          { padding: 9px 36px; }
  .content-area      { padding: 32px 36px 56px; }

  .notice-title      { font-size: 2.1rem; }

  /* Logo grand écran — centré dans la colonne gauche */
  .site-header {
    padding-left: 0;
    padding-right: 24px;
  }
  .site-logo {
    width: var(--col-left-w, 15%);
    min-width: var(--col-left-w, 15%);
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    flex-shrink: 0;
  }
  .site-logo img#siteLogo {
    width: calc((var(--col-left-w, 15%) - 20px) * var(--logo-size-desktop, 80) / 100);
    height: auto;
    max-height: calc((var(--header-h) - 20px) * var(--logo-size-desktop, 80) / 100);
    object-fit: contain;
  }

  /* Cercles plus grands sur desktop */
  .cat-ring { width: 92px; height: 92px; padding: 3.5px; }
  .cat-ring-inner { font-size: 2rem; }
  .cat-label { font-size: .72rem; max-width: 110px; white-space: normal; word-break: break-word; }
  .cat-item  { gap: 10px; padding: 10px 12px 12px; }
}

/* ============================
   RESPONSIVE — WIDE 1400px
============================ */
@media (min-width: 1400px) {
  .cat-menu-wrap,
  .sub-menu-wrap { padding: 0; }
  .cat-menu,
  .sub-menu { max-width: 1200px; margin: 0 auto; width: 100%; }
}

/* ── Bouton lien interne notice ── */
.notice-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: var(--navy, #364370);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  margin: 4px 2px;
  box-shadow: 0 2px 8px rgba(54,67,112,.2);
}
.notice-link-btn:hover {
  background: var(--blue, #7c89a0);
  box-shadow: 0 4px 12px rgba(54,67,112,.3);
}

/* ════════════════════════════════════════
   BLOCS NOTICE STEP — notice-etape style
   ════════════════════════════════════════ */
.notice-text, .notice-text * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
}
.notice-step p, .notice-step h1, .notice-step h2, .notice-step h3,
.notice-step ul, .notice-step ol, .notice-step li, .notice-step div,
.notice-step span, .notice-step strong {
  margin: 0; padding: 0;
}
.notice-step {
  display: block;
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: #1d1d1f;
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}
.notice-step + .notice-step {
  margin-top: 32px;
}
.notice-step .ns-header { text-align:center; margin-bottom:28px; }
.notice-step .ns-badge {
  display: inline-flex; align-items:center; gap:8px;
  padding: 5px 14px; border-radius:100px;
  background: rgba(0,113,227,0.07);
  font-size: 11px; font-weight:600; letter-spacing:1.5px;
  text-transform:uppercase; color:#0071e3; margin-bottom:16px;
}
.notice-step .ns-badge-dot {
  width:6px; height:6px; border-radius:50%; background:#0071e3;
}
.notice-step .ns-header h2 {
  font-size:24px; font-weight:600; letter-spacing:-0.3px;
  line-height:1.2; margin-bottom:6px; color:#1d1d1f;
}
.notice-step .ns-header p { font-size:14px; color:#6e6e73; line-height:1.6; }

/* Touche clavier */
.notice-step .ns-key {
  display:inline-flex; align-items:center; justify-content:center;
  padding:3px 10px; background:#f5f5f7;
  border:1px solid #d2d2d7; border-radius:6px;
  font-family:'Courier New',monospace; font-size:13px;
  font-weight:600; color:#1d1d1f;
  box-shadow:0 1px 0 #d2d2d7; margin:0 2px; vertical-align:middle;
}
.notice-step .ns-key-arrow { width:38px; height:38px; padding:0; font-size:18px; }

/* Écran terminal */
.notice-step .ns-screen-wrap { display:flex; justify-content:center; margin:24px 0; }
.notice-step .ns-device {
  width:240px; background:#1d1d1f; border-radius:18px; padding:12px;
  box-shadow:0 8px 32px rgba(0,0,0,.15);
}
.notice-step .ns-device::before {
  content:''; display:block; width:32px; height:4px;
  border-radius:4px; background:#2c2c2e; margin:0 auto 8px;
}
.notice-step .ns-screen {
  background:#0a1a2e; border:1px solid #1a3050; border-radius:10px;
  padding:24px 16px; min-height:130px;
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; text-align:center;
}
.notice-step .ns-sline {
  display:block; font-family:'Courier New',monospace;
  font-size:13px; font-weight:600; color:#4de8b4;
  letter-spacing:2px; text-transform:uppercase; margin-bottom:5px;
}
.notice-step .ns-sline.bright { color:#fff; font-size:15px; }
.notice-step .ns-sline.dim    { color:#1a5c45; font-size:11px; }

/* Menu simulation */
.notice-step .ns-menu-list { display:flex; justify-content:center; margin-bottom:24px; }
.notice-step .ns-menu {
  width:240px; background:#f5f5f7; border-radius:12px;
  border:1px solid #e5e5e7; overflow:hidden;
}
.notice-step .ns-menu-item {
  padding:11px 16px; font-size:13px; color:#86868b;
  border-bottom:1px solid #e5e5e7;
  display:flex; align-items:center; gap:8px;
}
.notice-step .ns-menu-item:last-child { border-bottom:none; }
.notice-step .ns-menu-item.selected { background:#0071e3; color:#fff; font-weight:600; }
.notice-step .ns-menu-item .ns-mi-arrow { margin-left:auto; opacity:0; font-size:12px; }
.notice-step .ns-menu-item.selected .ns-mi-arrow { opacity:1; }
.notice-step .ns-menu-item .ns-mi-dot {
  width:7px; height:7px; border-radius:50%; background:#d2d2d7; flex-shrink:0;
}
.notice-step .ns-menu-item.selected .ns-mi-dot { background:rgba(255,255,255,.5); }

/* Flèche indicateur */
.notice-step .ns-arrow-hint {
  display:flex; justify-content:center; align-items:center;
  gap:8px; margin-bottom:18px;
  font-size:13px; color:#86868b;
}
.notice-step .ns-arrow-hint .ns-key {
  background:#0071e3; border-color:#0071e3; color:#fff;
  box-shadow:0 2px 8px rgba(0,113,227,.25);
  animation:ns-pulse 1.5s ease infinite;
}
@keyframes ns-pulse {
  0%,100% { box-shadow:0 2px 8px rgba(0,113,227,.25); }
  50%      { box-shadow:0 4px 16px rgba(0,113,227,.4); }
}

/* Blocs instruction */
.notice-step .ns-instructions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 60%;
  margin: 0 auto;
}
@media (max-width: 599px) {
  .notice-step .ns-instructions {
    width: 100%;
  }
}
.notice-step .ns-instr {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ns-instr-bg, #f5f5f7);
  border-radius: 12px;
  transition: background .2s;
  box-sizing: border-box;
  min-height: 60px;
}
.notice-step .ns-instr:hover { filter:brightness(.97); }
.notice-step .ns-instr-icon {
  width:36px; height:36px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; font-size:18px; margin:0; padding:0;
}
.notice-step .ns-icon-do     { background:rgba(0,113,227,.08); color:#0071e3; }
.notice-step .ns-icon-ok     { background:rgba(52,199,89,.08);  color:#34c759; }
.notice-step .ns-icon-select { background:rgba(88,86,214,.08);  color:#5856d6; }
.notice-step .ns-icon-warn   { background:rgba(255,149,0,.08);  color:#ff9500; }
.notice-step .ns-icon-info   { background:rgba(0,113,227,.08);  color:#0071e3; }
.notice-step .ns-instr-text {
  flex:1; min-width:0; writing-mode:horizontal-tb !important;
}
.notice-step .ns-instr-text strong {
  display:block; font-size:14px; font-weight:600; color:#1d1d1f;
  margin:0 0 2px 0; padding:0; word-break:break-word; writing-mode:horizontal-tb !important;
}
.notice-step .ns-instr-text span {
  display:block; font-size:13px; color:#6e6e73; line-height:1.5;
  margin:0; padding:0; word-break:break-word; writing-mode:horizontal-tb !important;
}

/* Indicateur de page */
.notice-step .ns-page {
  text-align:center; margin-top:28px;
  font-size:11px; font-weight:500; color:#86868b; letter-spacing:1px;
}
.notice-step .ns-page em { font-style:normal; color:#0071e3; font-weight:600; }
