/* ==========================================================================
   Navbar + hero au style fischer-demo (https://fischer-demo.vercel.app/de)
   Préfixe .fe-* : n'affecte pas le reste du thème.
   ========================================================================== */
:root {
    --fe-ink: #0a1730;
    --fe-paper: #f4f6f9;
    --fe-signal: #1d5aab;
    --fe-signal-dark: #15468a;
    --fe-signal-soft: #e4edf9;
    --fe-steel-200: #d5dbe4;
    --fe-steel-400: #8b95a7;
    --fe-steel-600: #556074;
    --fe-steel-800: #1a2944;
    --fe-font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --fe-font-display: "Inter Tight", "Inter", ui-sans-serif, sans-serif;
    --fe-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

/* Le thème met overflow-x:hidden sur html ET body : body devient alors un conteneur de
   défilement et position:sticky du header ne fonctionne plus. « clip » coupe pareil sans cet effet. */
@supports (overflow-x: clip) {
    body { overflow-x: clip !important; }
}

.fe-container {
    width: 100%;
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px) {
    .fe-container { padding-inline: 2rem; }
}
@media (min-width: 1280px) {
    .fe-container { width: min(60vw + 384px, 1920px); padding-inline: 0; }
}

.fe-skip {
    position: absolute;
    left: -9999px;
}
.fe-skip:focus {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 100;
    padding: .75rem 1.25rem;
    border-radius: 9999px;
    background: var(--fe-ink);
    color: var(--fe-paper);
}

/* ---------- Barre supérieure ---------- */
.fe-topbar {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--fe-steel-200);
    color: var(--fe-steel-600);
    font-family: var(--fe-font-sans);
    font-size: 13px;
}
@media (min-width: 768px) {
    .fe-topbar { display: block; }
}
.fe-topbar__inner {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fe-topbar__group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.fe-topbar a {
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: color .15s;
}
.fe-topbar a:hover { color: var(--fe-signal); }
.fe-topbar__group > a i {
    color: var(--fe-signal);
    font-size: 11px;
}
.fe-topbar__social {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.fe-topbar__social a {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
}
.fe-topbar__social a:hover { background: var(--fe-paper); }
.fe-topbar__social .is-youtube { color: #ff0000; font-size: 15px; }
.fe-topbar__social .is-linkedin { color: #0a66c2; font-size: 14px; }
.fe-topbar__social a:hover.is-youtube { color: #ff0000; }
.fe-topbar__social a:hover.is-linkedin { color: #0a66c2; }
.fe-topbar__lang {
    display: flex;
    align-items: center;
    font-family: var(--fe-font-mono);
    font-size: 11px;
}
.fe-topbar__lang a {
    padding: 2px 8px;
    border-radius: 4px;
}
.fe-topbar__lang a.is-active {
    background: var(--fe-signal-soft);
    color: var(--fe-signal);
}

/* ---------- Header principal ---------- */
.fe-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--fe-steel-200);
    background: rgba(244, 246, 249, .9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: var(--fe-font-sans);
}
.fe-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 72px;
}
@media (min-width: 1024px) {
    .fe-header__inner { height: 84px; }
}
.fe-header__logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    color: var(--fe-ink);
    font-weight: 600;
}
.fe-header__logo img {
    height: 28px;
    width: auto;
    max-width: none;
    mix-blend-mode: multiply;
}
@media (min-width: 640px) {
    .fe-header__logo img { height: 32px; }
}

/* Navigation */
.fe-nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--fe-steel-800);
}
@media (min-width: 1280px) {
    .fe-nav { display: flex; }
}
.fe-nav__item { position: relative; }
.fe-nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-block: 1.5rem;
    color: var(--fe-steel-800);
    text-transform: none;
    letter-spacing: normal;
    transition: color .15s;
}
.fe-nav__link:hover,
.fe-nav__link.is-active,
.fe-nav__item:hover > .fe-nav__link,
.fe-nav__item:focus-within > .fe-nav__link { color: var(--fe-signal); }
.fe-nav__link i {
    font-size: 9px;
    color: var(--fe-steel-400);
    transition: transform .2s;
}
.fe-nav__item:hover > .fe-nav__link i,
.fe-nav__item:focus-within > .fe-nav__link i { transform: rotate(180deg); }

.fe-nav__panel {
    position: absolute;
    left: 0;
    top: 100%;
    width: 300px;
    padding-block: 6px;
    border: 1px solid var(--fe-steel-200);
    background: #fff;
    box-shadow: 0 20px 44px -24px rgba(10, 23, 48, .45);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s ease-out, transform .15s ease-out, visibility .15s;
}
.fe-nav__item:hover > .fe-nav__panel,
.fe-nav__item:focus-within > .fe-nav__panel {
    visibility: visible;
    opacity: 1;
    transform: none;
}
.fe-nav__panel ul {
    max-height: 68vh;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fe-nav__panel li a {
    display: block;
    padding: 10px 16px;
    transition: background-color .15s;
}
.fe-nav__panel li a:hover { background: var(--fe-paper); }
.fe-nav__panel-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fe-ink);
    transition: color .15s;
}
.fe-nav__panel li a:hover .fe-nav__panel-title { color: var(--fe-signal); }
.fe-nav__panel-all {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--fe-steel-200);
    margin-top: 6px;
    padding: 12px 16px 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fe-signal);
}
.fe-nav__panel-all:hover { color: var(--fe-signal); text-decoration: underline; }
.fe-nav__panel-all i { font-size: 9px; }

/* Actions : recherche, CTA, burger */
.fe-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fe-search {
    display: none;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--fe-steel-200);
    border-radius: 9999px;
    background: transparent;
    transition: width .3s ease-out, border-color .3s, background-color .3s;
}
@media (min-width: 640px) {
    .fe-search { display: flex; }
}
.fe-search:hover { border-color: var(--fe-signal); }
.fe-search.is-open {
    width: 280px;
    border-color: var(--fe-signal);
    background: #fff;
}
/* !important : le thème stylise globalement les boutons submit des formulaires */
.fe-header .fe-search .fe-search__btn {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 38px !important;
    height: 38px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fe-ink) !important;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}
.fe-header .fe-search .fe-search__btn:hover { color: var(--fe-signal) !important; }
.fe-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
    color: var(--fe-ink);
    outline: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.fe-search__input::placeholder { color: var(--fe-steel-400); }
.fe-search.is-open .fe-search__input {
    opacity: 1;
    pointer-events: auto;
}

.fe-cta {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9999px;
    background: var(--fe-signal);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    transition: background-color .15s;
}
@media (min-width: 640px) {
    .fe-cta { display: inline-flex; }
}
.fe-cta:hover { background: var(--fe-signal-dark); color: #fff; }
.fe-cta i { font-size: 12px; }

.fe-burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--fe-steel-200);
    border-radius: 9999px;
    background: transparent;
    color: var(--fe-ink);
    cursor: pointer;
}
@media (min-width: 1280px) {
    .fe-burger { display: none; }
}

/* ---------- Hero ---------- */
.fe-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 306px;
    background: var(--fe-ink);
    font-family: var(--fe-font-sans);
}
@media (min-width: 640px) {
    .fe-hero { min-height: 380px; }
}
@media (min-width: 1024px) {
    .fe-hero { min-height: min(18.75vw + 120px, 480px); }
}
.fe-hero__media {
    position: absolute;
    inset: 0;
}
.fe-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 72% center;
    opacity: 0;
    transition: opacity 1.1s ease-out;
}
@media (min-width: 1024px) {
    .fe-hero__slide { object-position: 64% center; }
}
.fe-hero__slide.is-active { opacity: 1; }
.fe-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 23, 48, .45), rgba(10, 23, 48, .1), transparent);
}
.fe-hero__body {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
}
.fe-hero__content {
    padding-block: 28px;
}
@media (min-width: 1024px) {
    .fe-hero__content { padding-block: 32px; }
}
.fe-hero__card {
    width: 100%;
    max-width: 35rem;
    padding: 24px 28px;
    background: #fff;
}
@media (min-width: 1024px) {
    .fe-hero__card { padding: 28px 32px; }
}
.fe-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-family: var(--fe-font-mono);
    font-size: 11px;
    letter-spacing: .025em;
    color: var(--fe-steel-600);
}
.fe-hero__flag {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 14px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(10, 23, 48, .1);
}
.fe-hero__flag span { flex: 1; }
.fe-hero__flag span:nth-child(1) { background: #000; }
.fe-hero__flag span:nth-child(2) { background: #dd0000; }
.fe-hero__flag span:nth-child(3) { background: #ffce00; }
.fe-hero .fe-hero__title {
    margin: 0;
    font-family: var(--fe-font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #333;
}
@media (min-width: 1024px) {
    .fe-hero .fe-hero__title { font-size: 30px; }
}
.fe-hero__text {
    max-width: 30rem;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.625;
    color: var(--fe-steel-600);
}
.fe-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .4);
    text-underline-offset: 4px;
    transition: color .25s, text-decoration-color .25s;
}
.fe-hero__link:hover {
    color: #fff;
    text-decoration-color: #fff;
}
.fe-hero__link i { font-size: 10px; }
.fe-hero__dots {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}
.fe-hero__dots button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-block: -14px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.fe-hero__dots button::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .45);
    transition: all .5s;
}
.fe-hero__dots button:hover::before { background: rgba(255, 255, 255, .75); }
.fe-hero__dots button[aria-current="true"]::before {
    width: 44px;
    background: #fff;
}
