/* Yuunou — adaptations tablette / mobile, communes à toutes les pages.
   Les composants posent leurs mises en page en styles inline : ces règles les
   surchargent (d'où les !important) en ciblant la valeur des styles inline. */

html, body { overflow-x: hidden; }
img { max-width: 100%; }

/* ── Menu : liens + bouton Contact → bouton ☰ ─────────────────────────── */
@media (max-width: 900px) {
  .yb-nav-links, .yb-nav-cta { display: none !important; }
  .yb-nav-burger { display: inline-flex !important; }
}
@media (min-width: 901px) {
  .yb-nav-mobile { display: none !important; }
}

/* ── Tablette ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Grilles de mise en page (colonnes en fr) → une colonne.
     Les petites grilles « icône / vignette + texte » (« 64px 1fr »…) restent. */
  [style*="grid-template-columns"]:not([style*="px 1fr"]):not([style*="repeat"]) {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(6"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  /* Grands écarts entre colonnes devenues lignes */
  [style*="gap: 96px"], [style*="gap: 80px"], [style*="gap: 72px"], [style*="gap: 64px"] {
    gap: 40px !important;
  }
  /* Portrait + texte (accueil, À propos) */
  [style*="grid-template-columns: 440px 1fr"] { grid-template-columns: 1fr !important; }
}

/* ── Mobile ────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Marges latérales : 56px / 40px → 20px */
  [style*="padding"][style*=" 56px"], [style*="padding: 56px"],
  [style*="padding: 0px 56px"], footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  section[style*="padding: 110px"], section[style*="padding: 120px"] {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
  /* Encadrés à gros rembourrage */
  [style*="padding: 72px"] { padding: 32px 20px !important; }
  [style*="padding: 44px"] { padding: 24px !important; }
  [style*="padding: 32px 56px"] { padding: 24px 16px !important; }
  [style*="padding: 28px 40px"] { padding: 24px 20px !important; }

  /* 2 colonnes → 1 pour les listes de cartes */
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* Encadré d'appel « icône + texte + bouton » */
  [style*="64px 1fr auto"] { grid-template-columns: 1fr !important; }
  /* Blog : vignette + texte + lien → empilés */
  [style*="180px 1fr auto"] { grid-template-columns: 104px 1fr !important; gap: 14px !important; align-items: start !important; }
  [style*="180px 1fr auto"] > span:last-child { display: none; }
  [style*="180px 1fr auto"] p {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  /* Coordonnées du bloc contact */
  [style*="120px 1fr"] { grid-template-columns: 1fr !important; gap: 2px !important; }
  /* Pied de page : bas de page empilé */
  footer [style*="justify-content: space-between"] { flex-wrap: wrap; gap: 4px 16px; }
  /* Accueil, secteurs : cartes photo avec texte superposé → plus hautes */
  #secteurs [style*="aspect-ratio"] { aspect-ratio: 4 / 5 !important; }
  #secteurs [style*="padding: 40px"] { padding: 24px !important; }
  section[style*="padding: 130px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  /* Fond « parallaxe » fixe : non pris en charge sur mobile (image grise) */
  [style*="background-attachment: fixed"] { background-attachment: scroll !important; }
  /* Page Services : carrousel → liste d'une colonne, images plus basses, flèches masquées */
  [data-services-carousel] [style*="grid-template-columns: repeat("] { grid-template-columns: 1fr !important; gap: 28px !important; }
  [data-services-carousel] [style*="padding: 0px 24px"] { padding: 0 !important; }
  [data-services-carousel] [style*="aspect-ratio: 1 / 1"] { aspect-ratio: 16 / 9 !important; }
  [data-services-carousel] button[aria-label="Précédent"],
  [data-services-carousel] button[aria-label="Suivant"] { display: none !important; }
  /* Grands titres */
  h1, h2 { overflow-wrap: break-word; }
}

/* Carte entièrement cliquable : le lien « En savoir plus » s'étire sur toute la carte
   (la carte doit être en position: relative). */
.yb-card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* ── Pied de page mobile compact ──────────────────────────────────────────
   Logo, puis « Site » et « Contact » côte à côte, « Services » dessous sur 2 colonnes. */
@media (max-width: 640px) {
  footer { padding-top: 44px !important; padding-bottom: 28px !important; }
  /* sélecteur renforcé : doit l'emporter sur la règle générale « grilles → 1 colonne » */
  footer [style*="grid-template-columns"][style*="2fr 1fr 1fr 1fr"][style*="gap"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 20px !important;
    margin-bottom: 28px !important;
  }
  footer [style*="2fr 1fr 1fr 1fr"] > div:first-child { grid-column: 1 / -1; }
  footer [style*="2fr 1fr 1fr 1fr"] > div:nth-child(3) { grid-column: 1 / -1; order: 3; }
  footer [style*="2fr 1fr 1fr 1fr"] > div:nth-child(3) ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  footer [style*="2fr 1fr 1fr 1fr"] ul { gap: 8px !important; }
  footer [style*="2fr 1fr 1fr 1fr"] > div > div { margin-bottom: 12px !important; }
  footer [style*="2fr 1fr 1fr 1fr"] a { font-size: 13.5px !important; }
  footer [style*="padding-top: 28px"] { padding-top: 18px !important; }
}
/* Tablette : logo au-dessus, puis Site / Services / Contact sur 3 colonnes */
@media (min-width: 641px) and (max-width: 900px) {
  footer [style*="grid-template-columns"][style*="2fr 1fr 1fr 1fr"][style*="gap"] {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px 24px !important;
  }
  footer [style*="2fr 1fr 1fr 1fr"] > div:first-child { grid-column: 1 / -1; }
}

/* ── Mobile : navigation plus ramassée ────────────────────────────────────
   Listes de cartes → carrousels à faire glisser (la carte suivante dépasse),
   sections et grands visuels resserrés. #root renforce la priorité sur les
   règles « grilles → 1 colonne » ci-dessus. */
@media (max-width: 640px) {
  #root [data-swipe] {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-template-columns: none !important;
    grid-auto-columns: 84% !important;
    gap: 14px !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -20px !important;
    margin-right: -20px !important;
    padding: 4px 20px 16px !important;
    scroll-padding-left: 20px;
  }
  #root [data-swipe]::-webkit-scrollbar { display: none; }
  #root [data-swipe] > * { scroll-snap-align: start; min-width: 0; }
  /* L'effet de survol n'a pas de sens au doigt et décale les cartes */
  #root [data-swipe] .solide-cta:hover { transform: none; box-shadow: none; }

  /* Sections : marges verticales réduites */
  section[style*="padding: 110px"], section[style*="padding: 120px"], section[style*="padding: 130px"] {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  [style*="padding: 180px"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  /* Colonnes séparées par un filet vertical, une fois empilées : filet horizontal, sans retrait */
  [style*="border-left: 1px solid"][style*="padding-left: 28px"] {
    padding-left: 0 !important;
    border-left: none !important;
    border-top: 1px solid rgba(14, 42, 34, 0.1);
    padding-top: 20px !important;
  }
  section[style*="padding: 80px 56px"], section[style*="padding: 88px 56px"] {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  [style*="padding: 80px 56px 90px"] { padding-top: 40px !important; padding-bottom: 40px !important; }
  [style*="margin-bottom: 72px"], [style*="margin-bottom: 60px"] { margin-bottom: 28px !important; }
  [style*="margin-top: 72px"], [style*="margin-top: 64px"], [style*="margin-top: 56px"] { margin-top: 32px !important; }

  /* Accueil : bandeau photo, carte de France, portrait */
  [style*="height: 520px"] { height: 280px !important; }
  img[src*="france-map"] { max-width: 180px; }
  img[src*="portrait-aymeric"][style*="aspect-ratio"],
  figure[style*="aspect-ratio: 4 / 5"] { aspect-ratio: 1 / 1 !important; }

  /* Pages Secteurs / À propos : illustration décorative du haut masquée */
  [style*="opacity: 0.85"][style*="height: 360px"],
  [style*="opacity: 0.85"][style*="height: 320px"] { display: none; }
  /* Cartes secteurs dans le carrousel : sans la pastille-icône, le texte respire */
  [style*="60px 1fr 36px"] { grid-template-columns: 1fr 36px !important; }
  [style*="60px 1fr 36px"] > :first-child { display: none !important; }
}

/* ── Fenêtre de détail (SolideSheet) ───────────────────────────────────────
   Ordinateur : fenêtre centrée. Téléphone : panneau qui monte du bas. */
@keyframes ybBackdropIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ybBackdropOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes ybDialogIn  { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ybDialogOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes ybSheetIn  { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ybSheetOut { from { transform: translateY(0); } to { transform: translateY(100%); } }

.yb-sheet-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(14, 42, 34, 0.5);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  animation: ybBackdropIn .22s ease both;
}
.yb-sheet-backdrop.is-closing { animation: ybBackdropOut .24s ease both; }
.yb-sheet {
  position: relative;
  width: 100%; max-height: 92vh;
  display: flex; flex-direction: column;
  background: #FDFBF6;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(14, 42, 34, 0.28);
  overflow: hidden;
  animation: ybDialogIn .28s cubic-bezier(.2,.8,.2,1) both;
}
.yb-sheet.is-closing { animation: ybDialogOut .22s ease both; }
.yb-sheet-bar { position: absolute; top: 14px; right: 14px; z-index: 3; }
.yb-sheet-handle { display: none; }
.yb-sheet-close {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(253, 251, 246, 0.94); border: 1px solid rgba(14, 42, 34, 0.1);
  color: #0E2A22; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.yb-sheet-close:hover { background: #fff; transform: rotate(90deg); }
.yb-sheet-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  .yb-sheet-backdrop { align-items: flex-end; padding: 0; }
  .yb-sheet {
    max-width: none !important;
    max-height: 92vh; max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(14, 42, 34, 0.22);
    animation: ybSheetIn .36s cubic-bezier(.32,.72,0,1) both;
  }
  .yb-sheet.is-closing { animation: ybSheetOut .24s cubic-bezier(.32,.72,0,1) both; }
  /* Barre du haut : poignée centrée + croix, toujours visible */
  .yb-sheet-bar {
    position: relative; top: auto; right: auto; flex: none;
    height: 52px; display: flex; align-items: center; justify-content: flex-end;
    padding: 0 12px;
    border-bottom: 1px solid rgba(14, 42, 34, 0.06);
    background: #FDFBF6;
    touch-action: none;
  }
  .yb-sheet-handle {
    display: block; position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
    width: 40px; height: 5px; border-radius: 3px; background: rgba(14, 42, 34, 0.18);
  }
  .yb-sheet-close { width: 36px; height: 36px; }
  .yb-sheet-close:hover { transform: none; }
  .yb-sheet-body { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (prefers-reduced-motion: reduce) {
  .yb-sheet, .yb-sheet-backdrop { animation-duration: .01s !important; }
}
/* Contenu des fiches sur téléphone */
@media (max-width: 640px) {
  .yb-sheet-content[style*="padding: 36px 44px 32px"],
  .yb-sheet-content [style*="padding: 32px 40px 36px"] { padding: 20px 20px 28px !important; }
  .yb-sheet-content h2 { font-size: 28px !important; line-height: 1.12 !important; }
  .yb-sheet-content [style*="border-radius: 999px"][style*="padding: 10px 14px"] { border-radius: 14px !important; }
  .yb-sheet-content [style*="justify-content: space-between"][style*="padding-top"] {
    flex-direction: column; align-items: stretch !important; gap: 6px !important;
  }
  .yb-sheet-content [style*="justify-content: space-between"][style*="padding-top"] > a { justify-content: center; }
}
.yb-sheet-close:focus:not(:focus-visible) { outline: none; }
@media (max-width: 640px) {
  .yb-sheet-content [style*="justify-content: space-between"][style*="padding-top"] > button { justify-content: center; }
}

/* ── Mobile : pages secondaires plus courtes ───────────────────────────── */
.yb-ml-details > summary { list-style: none; }
.yb-ml-details > summary::-webkit-details-marker { display: none; }
@media (min-width: 641px) { .yb-ml-details > summary { cursor: default; } }

@media (max-width: 640px) {
  /* Éléments secondaires masqués sur téléphone (encarts redondants, illustrations) */
  [data-m="hide"] { display: none !important; }

  /* Grands titres : moins d'écran pour la même information */
  h1[style*="clamp("] { font-size: 34px !important; line-height: 1.08 !important; }
  h2[style*="clamp("] { font-size: 28px !important; line-height: 1.12 !important; }

  /* Bas de sections : 96 / 80 / 64 px → 40 px */
  section[style*="56px 96px"], section[style*="56px 80px"], section[style*="56px 64px"] {
    padding-bottom: 40px !important;
  }
  section[style*="padding: 64px 56px 36px"] { padding-top: 28px !important; }
  section[style*="padding: 40px 56px 56px"] { padding-top: 24px !important; padding-bottom: 32px !important; }
  [style*="margin: 0px 0px 56px"] { margin-bottom: 24px !important; }

  /* Encadrés d'appel à contact en bas de page : compacts, sans pastille */
  [style*="60px 1fr auto"], [style*="64px 1fr auto"] {
    grid-template-columns: 1fr !important;
    padding: 22px 20px !important;
    gap: 12px !important;
    text-align: left !important;
  }
  [style*="60px 1fr auto"] > :first-child, [style*="64px 1fr auto"] > :first-child { display: none !important; }
  section[style*="padding: 64px 32px 96px"] { padding: 36px 20px 44px !important; }

  /* Listes « icône au-dessus + texte centré » → lignes « icône à gauche + texte » */
  [data-m="icon-rows"] { grid-template-columns: 1fr !important; gap: 20px !important; text-align: left !important; }
  [data-m="icon-rows"] > * { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  [data-m="icon-rows"] > * > :first-child { width: 44px !important; height: 44px !important; margin: 0 !important; grid-row: span 2; }
  [data-m="icon-rows"] > * > :first-child svg { width: 20px; height: 20px; }
  [data-m="icon-rows"] h3 { margin: 2px 0 4px !important; }
  [data-m="icon-rows"] p { max-width: none !important; margin: 0 !important; }

  /* À propos : portrait en format paysage */
  [data-bio] figure { aspect-ratio: 4 / 3 !important; }
  /* Article : photo d'en-tête moins haute */
  [data-article-hero] [style*="aspect-ratio: 4 / 3"] { aspect-ratio: 16 / 10 !important; }

  /* Mentions légales : accordéon */
  #root article[id] { padding-top: 0 !important; margin-top: 0 !important; }
  .yb-ml-details { border-bottom: 1px solid rgba(14, 42, 34, 0.1); }
  .yb-ml-details > summary {
    display: grid; grid-template-columns: 1fr 24px; align-items: center;
    padding: 16px 0; cursor: pointer;
  }
  .yb-ml-details > summary > div { display: none; }
  .yb-ml-details > summary h2 { font-size: 18px !important; margin: 0 !important; }
  .yb-ml-details > summary::after {
    content: ''; width: 9px; height: 9px; justify-self: end; margin-right: 6px;
    border-right: 1.6px solid #08a89d; border-bottom: 1.6px solid #08a89d;
    transform: rotate(45deg); transition: transform .2s ease;
  }
  .yb-ml-details[open] > summary::after { transform: rotate(-135deg); }
  .yb-ml-details[open] { padding-bottom: 8px; }
}

/* Secteurs / À propos : quand l'en-tête passe sur une colonne, l'illustration décorative
   se retrouvait sous le texte et créait un grand vide → masquée */
@media (max-width: 1100px) {
  [style*="opacity: 0.85"][style*="height: 360px"],
  [style*="opacity: 0.85"][style*="height: 320px"] { display: none; }
}

/* ── Survol : cartes secteurs de l'accueil et bouton « Découvrir mon parcours » ── */
.yb-arrow { display: inline-block; transition: transform .28s cubic-bezier(.2,.7,.2,1); }

.yb-sector-card {
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.yb-sector-card img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.yb-sector-card h3 { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.yb-sector-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding-bottom: 3px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: #FDFBF6;
  border-bottom: 1px solid rgba(253, 251, 246, 0.5);
  align-self: flex-start;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.yb-sector-card:hover, .yb-sector-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(14, 42, 34, 0.55);
}
.yb-sector-card:hover img, .yb-sector-card:focus-visible img { transform: scale(1.06); }
.yb-sector-card:hover h3, .yb-sector-card:focus-visible h3 { transform: translateY(-2px); }
.yb-sector-card:hover .yb-sector-cta, .yb-sector-card:focus-visible .yb-sector-cta { opacity: 1; transform: none; }
.yb-sector-card:hover .yb-arrow, .yb-sector-card:focus-visible .yb-arrow { transform: translateX(4px); }
.yb-sector-card:focus-visible { outline: 3px solid #1faad8; outline-offset: 3px; }

.yb-btn-outline {
  color: #0E2A22; background: transparent;
  border: 1px solid rgba(14, 42, 34, 0.18);
  transition: background .28s ease, color .28s ease, border-color .28s ease,
              transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease;
}
.yb-btn-outline:hover, .yb-btn-outline:focus-visible {
  background: #0E2A22; color: #FDFBF6; border-color: #0E2A22;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(14, 42, 34, 0.45);
}
.yb-btn-outline:hover .yb-arrow, .yb-btn-outline:focus-visible .yb-arrow { transform: translateX(4px); }
.yb-btn-outline:focus-visible { outline: 3px solid #1faad8; outline-offset: 3px; }

/* Écrans tactiles (pas de survol) : le lien « Voir le secteur » reste visible */
@media (hover: none) {
  .yb-sector-cta { opacity: 1; transform: none; }
  .yb-sector-card:hover { transform: none; box-shadow: none; }
  .yb-sector-card:hover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .yb-sector-card, .yb-sector-card img, .yb-sector-card h3, .yb-sector-cta, .yb-arrow, .yb-btn-outline { transition: none !important; }
}

/* Légende de la bande photo de l'accueil : courte et discrète sur téléphone */
@media (max-width: 640px) {
  .yb-hide-phone { display: none; }
  #root .yb-band-caption { font-size: 12px !important; padding: 7px 12px !important; }
  [style*="bottom: 32px"][style*="left: 56px"] { left: 20px !important; right: 20px !important; bottom: 18px !important; }
}

/* ── Accueil, Contact sur téléphone : tient dans un écran sous le menu ──── */
@media (max-width: 640px) {
  #contact { scroll-margin-top: 72px; padding-top: 22px !important; padding-bottom: 24px !important; }
  /* Menu fixe un peu plus bas de hauteur sur téléphone (85 → 73 px) */
  #root .yb-nav-bar { padding-top: 14px !important; padding-bottom: 14px !important; }
  #contact > div > div { gap: 14px !important; }
  #contact > div > div > div:first-child > div:first-child { display: none; }      /* « CONTACT » */
  #contact h2 { font-size: 26px !important; line-height: 1.1 !important; }
  #contact > [style*="pointer-events: none"] { display: none; }                      /* icône décorative */
  #contact > div > div > div:first-child > p { display: none; }                      /* introduction */
  #contact [style*="margin-top: 48px"] { margin-top: 8px !important; gap: 0 !important; }
  #contact [style*="margin-top: 48px"] > :not(:first-child) { display: none !important; } /* LinkedIn, Zone */
  #contact [style*="120px 1fr"] > :first-child { display: none; }                    /* libellé « Email » */
  #contact [style*="120px 1fr"] > :last-child { font-size: 15px !important; opacity: .9; }
  #contact form { padding: 18px 18px 20px !important; gap: 10px !important; }
  #contact form label > span { font-size: 11px !important; margin-bottom: 4px !important; }
  #contact form input { padding: 11px 14px !important; font-size: 16px !important; }
  #contact form textarea { padding: 11px 14px !important; height: 84px; font-size: 16px !important; }
  #contact form button[type=submit] { padding: 14px 24px !important; margin-top: 4px !important; }
}
/* Très petits écrans (ex. iPhone SE 1re génération, 568 px de haut) : encore plus compact */
@media (max-width: 640px) and (max-height: 700px) {
  #contact { padding-top: 12px !important; padding-bottom: 12px !important; }
  #contact h2 { font-size: 22px !important; }
  #contact form { padding: 14px 14px 16px !important; gap: 6px !important; }
  #contact form label > span { margin-bottom: 2px !important; }
  #contact form input { padding: 8px 12px !important; }
  #contact form textarea { height: 56px; padding: 8px 12px !important; }
  #contact form button[type=submit] { padding: 12px 20px !important; }
}

/* Libellés alternatifs (design mobile v2) : version courte masquée par défaut */
.yb-v2-short { display: none; }

/* ── Menu mobile ouvert : grille compacte de deux colonnes ───────────────── */
.yb-nav-mobile { animation: ybMenuIn .2s ease-out both; }
@keyframes ybMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.yb-nav-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.yb-nav-cell {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 46px; padding: 0 14px; border-radius: 10px;
  font-family: 'Manrope', system-ui, sans-serif; font-size: 16px; font-weight: 500;
  color: #0E2A22; background: rgba(14, 42, 34, 0.045); text-decoration: none;
  transition: background .2s ease;
}
.yb-nav-cell:active { background: rgba(14, 42, 34, 0.09); }
/* page en cours : couleur de la rubrique (--rub, posée par le menu) en fond teinté, contour et pastille */
.yb-nav-cell.is-active {
  background: var(--rub-bg, rgba(8, 168, 157, 0.12));
  box-shadow: inset 0 0 0 2px var(--rub, #08a89d);
  font-weight: 700;
}
.yb-nav-cell.is-active::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rub, #08a89d); flex: none; }
.yb-nav-cell.is-contact { background: #08a89d; color: #FDFBF6; font-weight: 600; }
.yb-nav-cell.is-contact:active { background: #079389; }
.yb-nav-cell:focus-visible { outline: 3px solid #1faad8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .yb-nav-mobile { animation: none; } }
