/* Éléments communs à toutes les pages */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999;
  background: #0E1A0C; border-top: 1px solid rgba(74,138,122,0.25);
  padding: 16px 6%; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: 'Inter', sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.6);
  transform: translateY(110%); transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { flex: 1; min-width: 240px; line-height: 1.6; margin: 0; }
#cookie-banner a { color: #8DCAB8; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button { font-family: inherit; font-size: 0.8rem; border-radius: 5px; cursor: pointer; transition: all 0.2s; }
.cookie-accept { background: #4A8A7A; color: #F0EBE3; border: none; padding: 9px 22px; font-weight: 600; }
.cookie-accept:hover { background: #3a7065; }
.cookie-refuse { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.18); padding: 9px 18px; }
.cookie-refuse:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.35); }
/* Sélecteur de langue FR | EN (même visuel que sur l'accueil) */
.lang-seg { display: inline-flex; margin-left: 14px; border: 1px solid rgba(141,202,184,0.3); border-radius: 100px; overflow: hidden; font: 700 0.7rem/1 'Inter', sans-serif; letter-spacing: 0.1em; }
.lang-seg .nav-lang { padding: 6px 12px; color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.2s; }
.lang-seg .nav-lang:hover, .lang-seg .nav-lang:focus-visible { color: #fff; }
.lang-seg .nav-lang.active { background: #4A8A7A; color: #fff; }
.lang-seg--light { border-color: rgba(74,138,122,0.45); }
.lang-seg--light .nav-lang { color: #6B6456; }
.lang-seg--light .nav-lang:hover, .lang-seg--light .nav-lang:focus-visible { color: #1C2418; }
.lang-seg--light .nav-lang.active { background: #4A8A7A; color: #fff; }
.nav-end { display: flex; align-items: center; gap: 4px; }
/* Les liens d'ancre descendent sous la barre fixe */
[id] { scroll-margin-top: 72px; }
body.has-bar [id] { scroll-margin-top: 125px; }
html { scroll-behavior: smooth; }

/* Barre du haut des pages de solutions : retour à l'accueil, titre, langue (reprise de la version validée) */
body.has-bar { padding-top: 53px; }
#back-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1100; height: 53px; display: flex; align-items: center; gap: 14px;
  padding: 0 18px; background: rgba(28,36,24,0.98); border-bottom: 1px solid rgba(141,202,184,0.15); }
#back-btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; font-family: 'Inter', sans-serif; font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8DCAB8; background: none; border: 1px solid rgba(141,202,184,0.3);
  padding: 7px 16px; border-radius: 4px; text-decoration: none; transition: all 0.2s; }
#back-btn:hover { background: rgba(141,202,184,0.08); border-color: rgba(141,202,184,0.6); }
#back-label { font-family: 'Libre Baskerville', serif; font-style: italic; font-size: 0.82rem; color: rgba(255,255,255,0.3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { #back-label { display: none; } }
#back-bar .lang-switch { margin-left: auto; flex-shrink: 0; display: inline-flex; border: 1px solid rgba(141,202,184,0.25); border-radius: 100px; overflow: hidden; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; }
#back-bar .lang-switch a { padding: 6px 12px; color: rgba(255,255,255,0.45); text-decoration: none; transition: all 0.2s; }
#back-bar .lang-switch a:hover { color: #F0EBE3; }
#back-bar .lang-switch a.active { background: #4A8A7A; color: #fff; }
body.has-bar #progress-bar { top: 53px; }
body.has-bar nav, body.has-bar nav.scrolled { top: 53px; }
body.has-bar.bar-o1 nav:not(.scrolled) { top: 55px; }
body.has-bar #hero { min-height: calc(100vh - 53px); }
