@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #101014;
    --fg: #f4f2f7;
    --muted: #a09ca9;
    --accent: #ec624a;
    --line: #ffffff16
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: 'SUSE', sans-serif
}

.q-page,
.q-layout {
    background: var(--bg)
}

.q-page-container {
    padding: 0 !important
}

.q-page .nicegui-content {
    padding: 0;
    gap: 0;
    display: block
}

.site-root {
    width: 100%
}



a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

a,
button {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px
}

.wrap {
    width: min(1280px, 90%);
    margin: auto
}

.site-footer {
    width: 100%;
}

.footer-presection {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.footer-presection-column {
    padding: 8px 16px;
    text-align: center;
}

.footer-presection-column + .footer-presection-column {
    border-left: 1px solid var(--line);
}

.footer-presection h2 {
    color: var(--fg);
    font-size: clamp(13px, 1.5vw, 18px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

.nav {
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    gap: 20px
}

.logo {
    font-family: 'SUSE', sans-serif;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.7px;
    display: flex;
    gap: 9px;
    align-items: center
}

.logo>span:first-child {
    color: var(--accent);
    font-size: 36px
}

.logo-dot {
    margin-left: -9px
}

.nav nav {
    display: flex;
    gap: 36px;
    font-size: 13px;
    color: #c1bdca
}

.nav-cta {
    font-size: 13px;
    border: 1px solid #ffffff30;
    padding: 13px 20px;
    border-radius: 30px
}

.nav-cta span {
    margin-left: 20px
}

.nav a:hover,
.text-link:hover {
    color: var(--accent)
}

.hero {
    min-height: 770px;
    position: relative;
    display: grid;
    grid-template-columns: 1.06fr 1fr;
    align-items: center;
    padding-top: 65px
}

.hero-copy {
    position: relative;
    z-index: 2
}

.eyebrow {
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bcb8c7
}

.status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px #ec624a70
}

h1,
h2,
h3,
p {
    margin: 0
}

h1,
h2,
h3 {
    font-family: 'SUSE', sans-serif
}

h1 {
    font-size: clamp(52px, 5.9vw, 83px);
    line-height: .9;
    font-weight: 500;
    letter-spacing: -4.7px;
    margin-top: -80px
}

em {
    font-style: normal;
    color: var(--accent)
}

.hero-copy>p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--muted);
    max-width: 365px
}

.actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 32px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 17px 23px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    transition: transform .2s, background .2s
}

.button:hover {
    transform: translateY(-3px);
    background: #f18370
}

.primary {
    background: var(--accent);
    color: #17111f
}

.button span {
    font-size: 20px;
    line-height: 1
}

.text-link {
    font-size: 14px
}

.text-link span {
    margin-left: 10px
}

.hero-note {
    display: flex;
    gap: 18px;
    margin-top: 38px;
    align-items: center
}

.hero-note span:first-child {
    font-size: 8px;
    letter-spacing: 1.2px;
    border-right: 1px solid #ffffff30;
    padding-right: 18px;
    color: #797381
}

.hero-note span:last-child {
    font-size: 10px;
    color: #aaa3b2
}

.art {
    height: 590px;
    position: relative;
    margin-left: -45px;
    align-self: center
}

.art:before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(ellipse, #963e2f28, transparent 66%)
}

#scene {
    position: absolute;
    inset: 0
}

#scene canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1
}

.fallback-orbit {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border: 40px solid #ec624a;
    border-radius: 50%;
    transform: rotate(-35deg) scaleX(.75);
    box-shadow: inset 12px 5px 35px #59251c, 0 0 75px #bc4e3b30
}

.scene-top,
.scene-bottom {
    position: absolute;
    left: 13%;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
    font-size: 8px;
    letter-spacing: 1.8px;
    color: #7f788d;
    pointer-events: none
}

.scene-top {
    top: 16px
}

.tiny-cross {
    font-size: 23px
}

.scene-bottom {
    bottom: 30px
}

.scene-bottom i {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 6px
}

.scene-bottom button {
    pointer-events: auto;
    border: 1px solid #ffffff25;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    background: transparent;
    color: var(--fg);
    cursor: pointer
}

.hero-footer {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    letter-spacing: 1.4px;
    color: #77727e;
    padding: 37px 0 28px
}

.hero-footer a {
    color: #b2aaba
}

.hero-footer a span {
    margin-left: 17px
}

.slogan {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 38px 0;
    background: radial-gradient(ellipse at center, #ec624a09, transparent 70%);
    text-align: center
}

.slogan__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 56px)
}

.slogan p {
    margin: 0;
    color: var(--fg);
    font-size: clamp(20px, 2.3vw, 30px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -.02em;
    text-wrap: balance
}

.slogan strong {
    color: var(--accent);
    font-weight: 500
}

.section {
    padding: 110px 0
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.section-heading .eyebrow {
    grid-column: 1/-1
}

h2 {
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.17;
    letter-spacing: -2px;
    font-weight: 500
}

.section-heading>p {
    align-self: end;
    justify-self: end;
    max-width: 320px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 45px
}

.cards article {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #ffffff04, transparent);
    border-radius: 12px;
    padding: 29px;
    transition: border-color .2s
}

.cards article:hover {
    border-color: #ec624a66
}

.card-number {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--fg)
}

.card-icon {
    font-size: 40px;
    color: var(--accent);
    margin: 8px 0 4px
}

.card-icon .material-icons {
    display: inline-block;
    font-size: inherit;
    line-height: 1;
    vertical-align: middle;
}

.cards h3 {
    font-size: 21px;
    letter-spacing: -.6px
}

.cards p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.85;
    margin: 14px 0 30px
}

.tags {
    font-size: 10px;
    color: #bbb3c9
}

.approach {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px
}

.approach h2 {
    margin: 25px 0
}

.approach p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 410px
}

.approach ol {
    margin: 0;
    padding: 0;
    list-style: none
}

.approach li {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding: 23px 0
}

.approach li>span {
    color: var(--accent);
    font-size: 11px;
    margin-top: 5px
}

.approach h3 {
    font-size: 20px;
    margin-bottom: 7px
}

.contact {
    text-align: center;
    border: 1px solid #ec624a25;
    border-radius: 18px;
    padding: 76px 20px;
    background: radial-gradient(ellipse at 50% 100%, #682b214d, transparent 75%)
}

.contact .eyebrow {
    justify-content: center
}

.contact h2 {
    margin: 25px 0 30px;
    font-size: clamp(34px, 4vw, 56px)
}

.contact p {
    color: var(--muted);
    margin-top: 22px
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 0;
    color: #807987;
    font-size: 11px
}

.footer .logo {
    color: var(--fg);
    font-size: 24px
}

.skip {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 50;
    background: var(--accent);
    color: #101014;
    padding: 12px
}

.skip:focus {
    top: 10px
}

@media(min-width:1500px) {
    .hero {
        min-height: 820px
    }
}

@media(max-width:900px) {
    .nav nav {
        gap: 20px
    }

    .hero {
        grid-template-columns: 1.1fr 1fr;
        min-height: 670px
    }

    h1 {
        letter-spacing: -3px;
        font-size: 58px
    }

    .art {
        margin-left: -80px;
        height: 500px
    }

    .actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px
    }

    .hero-note {
        display: none
    }

    .approach {
        gap: 45px
    }

    .cards article {
        padding: 22px
    }

    .section {
        padding: 75px 0
    }
}

@media(max-width:600px) {
    .nav {
        height: 80px
    }

    .nav nav {
        display: none
    }

    .nav-cta {
        font-size: 10px;
        padding: 10px 13px
    }

    .nav-cta span {
        margin-left: 8px
    }

    .logo {
        font-size: 26px
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding-top: 45px
    }

    .hero-copy {
        z-index: 2
    }

    h1 {
        font-size: 57px;
        letter-spacing: -3.5px
    }

    .hero-copy>p {
        font-size: 14px;
        max-width: 310px
    }

    .actions {
        flex-direction: row;
        align-items: center;
        gap: 17px
    }

    .button {
        padding: 15px 16px;
        gap: 14px;
        font-size: 12px
    }

    .text-link {
        font-size: 12px
    }

    .art {
        width: 100%;
        height: 370px;
        margin: 25px 0 0
    }

    .scene-top,
    .scene-bottom {
        left: 0;
        right: 0
    }

    .scene-bottom {
        bottom: 5px
    }

    .hero-footer {
        padding: 28px 0;
        font-size: 7px;
        letter-spacing: .7px
    }

    .hero-footer>span {
        max-width: 140px
    }

    .slogan {
        padding: 28px 0
    }

    .section-heading {
        display: block
    }

    .section-heading h2 {
        margin: 22px 0
    }

    .section-heading>p {
        margin: 0;
        max-width: 100%
    }

    .cards {
        grid-template-columns: 1fr
    }

    .cards article {
        padding: 28px
    }

    .card-icon {
        margin: 15px 0
    }

    .cards p {
        margin-bottom: 18px
    }

    .approach {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .contact {
        padding: 50px 20px
    }

    .footer {
        flex-wrap: wrap;
        gap: 25px
    }

    .footer>span:nth-child(2) {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

/* Three.js canvas mounted directly inside the hero */
.hero-copy-container {
    min-width: 0;
    position: relative;
    z-index: 2
}

.hero-footer-container {
    grid-column: 1/-1;
    width: 100%
}

.art {
    isolation: isolate
}

.bloom-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none
}

.bloom-host canvas {
    display: block;
    touch-action: pan-y;
    background: transparent;
    mix-blend-mode: screen;
    -webkit-mask-image: none;
    mask-image: none
}

.bloom-host #bloom-info {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 70px;
    font-size: 9px;
    line-height: 1.5;
    color: var(--muted);
    z-index: 2
}

.bloom-host a {
    color: var(--accent)
}

.bloom-host #bloom-pause {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    border: 1px solid #ec624a66;
    border-radius: 50%;
    background: #101014cc;
    color: var(--accent);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font: inherit
}

.bloom-host #bloom-status {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    font-size: 12px;
    color: var(--accent);
    pointer-events: none
}

/* Full-width background scene; foreground content keeps its original wrap. */
.hero.hero-full {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    padding-top: 65px;
    overflow: hidden
}

.hero-full>.art {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 0;
    align-self: auto;
    pointer-events: auto
}

.hero-full>.art:before {
    display: none
}

.hero-full .bloom-host,
.hero-full #bloom-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent
}

.hero-full .bloom-host canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    mask-image: none;
    -webkit-mask-image: none
}

.hero-full .hero-copy-container {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    pointer-events: none
}

.hero-full .hero-copy {
    width: 52%;
    pointer-events: none
}

.hero-full .hero-copy a {
    pointer-events: auto
}

.hero-full .hero-footer-container {
    position: relative;
    z-index: 2;
    flex: none;
    pointer-events: none
}

.hero-full .hero-footer-container a {
    pointer-events: auto
}

.hero-full #bloom-info {
    left: 56%;
    right: max(80px, 5%);
    bottom: 85px
}

.hero-full #bloom-pause {
    right: 5%;
    bottom: 85px
}

.hero-full #bloom-status {
    left: 56%;
    top: 25px
}

@media(max-width:900px) {
    .hero.hero-full {
        min-height: 670px
    }

    .hero-full .hero-copy {
        width: 60%
    }
}

@media(max-width:600px) {
    .hero.hero-full {
        padding-top: 45px;
        min-height: 800px
    }

    .hero-full .hero-copy-container {
        align-items: flex-start
    }

    .hero-full .hero-copy {
        width: 100%
    }

    .hero-full #hero-title {
        margin-top: 0
    }

    .hero-full #bloom-info {
        left: 5%;
        right: 75px;
        bottom: 75px
    }

    .hero-full #bloom-pause {
        right: 5%;
        bottom: 75px
    }

    .hero-full #bloom-status {
        left: 5%;
        top: auto;
        bottom: 120px
    }
}
/* Identité et bandeau de références clients */
.logo .brand-icon { width: auto; height: 40px; display: block; flex: none; object-fit: contain; }
.footer .logo .brand-icon { height: 32px; }
.clients-section { padding: 100px 0 110px; border-top: 1px solid var(--line); overflow: hidden; }
.clients-heading { margin-bottom: 44px; }
.clients-heading h2 { margin: 18px 0 12px; }
.clients-heading h2 em { color: var(--accent); }
.clients-heading p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 530px; }
.clients-carousel { position: relative; overflow: hidden; width: 100%; mask-image: linear-gradient(to right,transparent,black 8%,black 92%,transparent); -webkit-mask-image: linear-gradient(to right,transparent,black 8%,black 92%,transparent); }
.clients-track { display: flex; width: max-content; animation: client-scroll 48s linear infinite; }
.clients-group { display: flex; gap: 22px; padding-right: 22px; flex: none; align-items: center; }
.client-logo { width: 190px; height: 112px; padding: 26px 27px; flex: none; background: #ffffff11; border: 1px solid #ffffff12; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.client-logo img { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.clients-carousel:hover .clients-track, .clients-carousel:focus-within .clients-track { animation-play-state: paused; }
@keyframes client-scroll { to { transform: translateX(-50%); } }
@media(max-width:600px) { .logo .brand-icon { width: auto; height: 32px; } .clients-section { padding: 65px 0 75px; } .clients-heading { margin-bottom: 28px; } .client-logo { width: 154px; height: 94px; padding: 22px; } .clients-group { gap: 14px; padding-right: 14px; } }
@media(prefers-reduced-motion:reduce) { .clients-track { animation: none; } .clients-carousel { overflow-x: auto; mask-image: none; -webkit-mask-image: none; } .clients-group[aria-hidden="true"] { display: none; } }

.simulation-host,
.simulation-section {
  width: 100%;
}
.simulation-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.simulation-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, #10101480 70%, var(--bg) 100%);
}
.simulation-section img {
  display: block;
  width: 100%;
  height: auto;
}

.galaxy-host {
  position: relative;
  z-index: 0;
  margin-top: -100px;
}
.galaxy-section {
  position: relative; width: 100%; height: clamp(560px, 60vw, 850px);
  overflow: hidden; isolation: isolate; background: transparent;
}
.galaxy-section__viewport, .galaxy-section__viewport canvas {
  display: block; width: 100%; height: 100%;
}
.galaxy-section__viewport canvas { outline: none; pointer-events: none; }
.galaxy-section__status { position: absolute; inset: 0; display: grid; place-items: center;
  color: #e8e9fa; font: 500 15px system-ui, sans-serif; }
.galaxy-section__caption { position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 0 25px; background: transparent; color: #fff; pointer-events: none; }
.galaxy-section__caption-inner { display: flex; flex-direction: column; gap: 6px; }
.galaxy-section__eyebrow { color: #adc1ff; letter-spacing: .16em; font-size: 11px; }
.galaxy-section__caption strong { font-size: clamp(24px, 3.4vw, 43px); line-height: 1.1; }
@media(max-width:767px) {
  .galaxy-host { margin-top: -60px; }
  .galaxy-section { height: 540px; }
}

/* Navigation principale et menu mobile natif. */
.main-nav { position: relative; z-index: 10; height: 96px; gap: 24px; }
.nav-brand { gap: 12px; flex-shrink: 0; }
.main-nav .desktop-navigation { gap: 6px; align-items: center; }
.main-nav nav a { padding: 11px 13px; border-radius: 8px; font-size: 16px; transition: color .2s, background .2s; }
.main-nav nav a:hover { background: #ffffff08; color: var(--fg); }
.main-nav nav a[aria-current="page"] { background: #ec624a14; color: var(--accent); }
.main-nav > .nav-cta { background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 9px; padding: 13px 18px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: color .2s, border-color .2s; }
.main-nav > .nav-cta:hover { background: transparent; color: #f18370; border-color: #f18370; }
.main-nav .nav-cta span { margin-left: 12px; }
.mobile-navigation { display: none; }
@media(max-width:1100px) {
    .main-nav { gap: 12px; }
    .main-nav nav a { padding: 10px; font-size: 15px; }
    .main-nav > .nav-cta { padding: 12px; font-size: 14px; }
}
@media(max-width:900px) {
    .main-nav { height: 80px; }
    .main-nav .desktop-navigation, .main-nav > .nav-cta { display: none; }
    .mobile-navigation { display: block; }
    .mobile-navigation summary { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid #ffffff30; border-radius: 9px; cursor: pointer; list-style: none; font-size: 16px; }
    .mobile-navigation summary::-webkit-details-marker { display: none; }
    .mobile-navigation summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    .menu-icon { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
    .mobile-navigation[open] summary { color: var(--accent); border-color: var(--accent); }
    .main-nav .mobile-navigation nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #ffffff20; border-radius: 14px; background: #19191f; box-shadow: 0 18px 45px #0006; }
    .main-nav .mobile-navigation nav a { padding: 14px; font-size: 16px; }
    .main-nav .mobile-navigation .mobile-contact { display: flex; justify-content: space-between; margin-top: 6px; background: var(--accent); color: #17111f; font-weight: 600; }
}

/* Pied de page : identité, rubriques et contact. */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #ffffff03, transparent); }
.footer-content { padding-top: 52px; }
.footer-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-bottom: 42px; }
.footer-brand { gap: 12px; }
.footer-intro p { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 44px; height: 44px; margin-top: 16px; padding: 0; border: 1px solid #ffffff1f; border-radius: 13px; background: #ffffff06; color: #9299a5; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
.footer-social svg { width: 21px; height: 21px; }
.footer-social:hover { color: var(--fg); background: #ffffff0d; border-color: #ffffff35; }
.footer-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-footer .footer-presection { padding: 34px 0 40px; border-top: 1px solid var(--line); gap: 32px; }
.site-footer .footer-presection-column { padding: 0; text-align: left; border-left: 0; }
.site-footer .footer-presection h2 { margin-bottom: 20px; font-size: 15px; font-weight: 600; color: var(--fg); }
.footer-presection ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-presection a { display: inline-block; color: var(--muted); font-size: 14px; line-height: 1.6; padding: 3px 0; transition: color .2s; }
.footer-presection a:hover, .footer-bottom a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.footer-bottom a { padding: 8px 0; }
.footer-bottom a span { color: var(--accent); margin-left: 10px; }
@media(max-width:700px) {
    .footer-intro { align-items: flex-start; flex-direction: column; }
    .site-footer .footer-presection { gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-content { padding-top: 36px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media(max-width:380px) {
    .site-footer .footer-presection { grid-template-columns: 1fr; }
}

/* Compact language selector on every screen size. */
.language-switch { position: relative; flex-shrink: 0; color: var(--muted); font-size: 13px; }
.language-switch summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 7px; cursor: pointer; list-style: none; color: var(--accent); background: #ec624a14; font-weight: 600; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.language-options { position: absolute; right: 0; top: calc(100% + 8px); min-width: 140px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #19191f; box-shadow: 0 12px 30px #0005; z-index: 20; }
.language-options a { display: flex; align-items: center; min-height: 40px; padding: 8px 12px; border-radius: 6px; }
.language-options a[aria-current] { color: var(--accent); background: #ec624a14; }
.language-options a:hover { color: var(--fg); background: #ffffff08; }
@media (min-width: 901px) and (max-width: 1200px) {
    .main-nav { gap: 10px; }
    .main-nav .brand-icon { height: 32px; }
    .main-nav nav a { padding: 9px 7px; font-size: 14px; }
    .main-nav > .nav-cta { padding: 11px; font-size: 13px; }
}
@media (max-width: 900px) { .language-switch { margin-left: auto; } }
@media (max-width: 480px) {
    .main-nav { gap: 8px; }
    .main-nav .brand-icon { height: 23px; }
    .mobile-navigation summary { padding: 10px 8px; gap: 7px; font-size: 14px; }
}
@media (max-width: 380px) { .main-nav .brand-icon { height: 19px; } }

/* Scientific software suite. */
.tools-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--line); }
.tools-section .section-heading { margin-bottom: 0; }
.tools-description { padding: 30px 32px; border-left: 2px solid var(--accent); background: linear-gradient(90deg, #ec624a0a, transparent); }
.tools-description p { margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.7; }
@media (max-width: 700px) {
    .tools-section { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .tools-description { padding: 20px 24px; }
}

.alert-progress,
.alert-success,
.alert-error {
    margin: 0;
    padding: 14px 18px;
    border: 1px solid;
    border-left-width: 3px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.alert-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a8d5ff;
    background: #60a5fa14;
    border-color: #60a5fa66;
}

.alert-progress::before {
    content: '';
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 2px solid #60a5fa44;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: alert-progress-spin .8s linear infinite;
}

@keyframes alert-progress-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .alert-progress::before { animation: none; }
}

.alert-success {
    color: #9de3b5;
    background: #4ade8014;
    border-color: #4ade8066;
}

.alert-error {
    color: #ffb4a6;
    background: #ec624a14;
    border-color: #ec624a66;
}


/* Native Three.js Galaxy in the NiceGUI landing (no iframe). */
#services {
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}
#services .cards article {
  background: linear-gradient(135deg, #ffffff04, transparent), var(--bg);
}
#services .cards article:hover,
#services .cards article:focus-within {
  background: linear-gradient(135deg, #ec624a30 0%, #ec624a10 50%, transparent 100%), var(--bg);
  border-color: #ec624a66;
}

/* Compact service cards with individual skill badges. */
#services { padding-top: 68px; }
#services .section-heading { gap: 16px; }
#services .cards { gap: 14px; margin-top: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#services .cards article { display: flex; flex-direction: column; padding: 20px; min-width: 0; }
#services .service-card-heading { display: flex; align-items: center; gap: 12px; }
#services .card-number { font-size: 14px; font-weight: 500; line-height: 1.5; letter-spacing: 1px; color: var(--fg) overflow-wrap: anywhere; }
#services .card-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; height: 28px; margin: 0; color: var(--accent); }
#services .card-icon svg { display: block; width: 28px; height: 28px; }
#services .cards h3 { margin: 0; }
#services .cards p { font-size: 16px; line-height: 1.65; margin: 40px 0 40px; }
#services .tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: auto 0 0; font-size: 13px; line-height: 1.4; color: #7e7b83; }
#services .tags li { padding: 5px 9px; border-radius: 6px; background: #ffffff09; border: 1px solid #ffffff0b; overflow-wrap: anywhere; max-width: 100%; }
#services .cards article { position: relative; }
#services .service-card-link { color: inherit; text-decoration: none; text-transform: uppercase; }
#services .service-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
#services .service-card-link:focus-visible { outline: none; }
#services .service-card-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (min-width: 601px) and (max-width: 1000px) {
    #services .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    #services { padding-top: 44px; }
    #services .cards { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
    #services .cards article { padding: 18px; }
    #services .section-heading h2 { margin: 14px 0 0; }
}

.careers-page { padding-top: 80px; padding-bottom: 72px; }
.careers-intro { max-width: 920px; padding-bottom: 80px; }
.careers-intro h1 { margin: 22px 0 24px; font-size: clamp(40px, 5.5vw, 72px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.careers-intro h1 em { color: var(--accent); font-style: normal; }
.careers-intro p { max-width: 610px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.careers-jump { display: inline-flex; align-items: center; gap: 20px; margin-top: 30px; color: var(--accent); font-size: 15px; }
.careers-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); }
.careers-heading h2 { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.025em; }
.careers-heading > span { color: var(--muted); font-size: 14px; }
.careers-list { display: grid; gap: 18px; }
.career-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(120deg, #ffffff05, transparent); }
.career-number { padding-top: 4px; color: var(--accent); font-size: 14px; font-variant-numeric: tabular-nums; }
.career-copy h3 { margin: 0 0 14px; font-size: clamp(22px, 2.5vw, 29px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.career-copy p { max-width: 790px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.career-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; margin-top: 26px; }
.career-actions a { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; font-size: 14px; }
.career-apply { padding: 11px 17px; border: 1px solid var(--accent); border-radius: 9px; color: var(--accent); transition: background .2s; }
.career-apply:hover { background: #ec624a14; }
.career-link { overflow-wrap: anywhere; transition: color .2s; }
.career-link:hover, .careers-empty a { color: var(--accent); }
.careers-empty { color: var(--muted); padding: 24px 0; }
@media (max-width: 600px) {
    .careers-page { padding-top: 42px; padding-bottom: 32px; }
    .careers-intro { padding-bottom: 48px; }
    .careers-intro p { font-size: 16px; }
    .careers-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .career-card { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 24px; }
    .career-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* Messages d’état des formulaires. */
.message-form [hidden] {
    display: none !important;
}


/* Page contact */
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.contact-page { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 90px); padding: 85px 0; align-items: start; }
.contact-title { margin: 26px 0; font-size: clamp(42px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -2px; }
.contact-title-service { font-size: clamp(42px, 4.6vw, 60px); margin: 0 0 26px 0;}
.contact-intro p { color: var(--muted); line-height: 1.85; font-size: 16px; margin-bottom: 30px; }
.contact-intro .text-link { color: var(--accent); font-size: 15px; overflow-wrap: anywhere; }
.message-form { min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: clamp(22px, 3vw, 40px); border: 1px solid #ec624a30; border-radius: 18px; background: linear-gradient(135deg, #ffffff04, #ec624a06); }
.message-form h2 { font-size: 28px; letter-spacing: -.8px; }
.message-form .form-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.contact-service-description {
  margin: 26px 0;
  padding: 20px;
  border: 1px solid #ec624a66;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec624a30 0%, #ec624a10 50%, transparent 100%), var(--bg);
  width: 100%;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.form-field label { font-size: 14px; font-weight: 500; }
.form-field input, .form-field textarea { width: 100%; padding: 14px 15px; border: 1px solid #ffffff26; border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; }
.form-field textarea { resize: vertical; min-height: 160px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8f899b; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.message-form .button { border: 0; cursor: pointer; align-self: flex-start; font-size: 14px; }
#contact-status:empty { display: none; }
@media(max-width:900px) { .contact-page { grid-template-columns: 1fr; padding: 55px 0; } .contact-intro p { max-width: 600px; } }
@media(max-width:600px) { .form-grid { grid-template-columns: 1fr; } .contact-page { padding: 40px 0; } .contact-intro .eyebrow { font-size: 12px; } .message-form .button { width: 100%; } }

/* Localisation de la page contact. */
.contact-location { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(28px, 5vw, 70px); padding: 55px 0 65px; border-top: 1px solid var(--line); }
.location-copy h2 { margin: 20px 0 24px; }
.location-copy address { margin-bottom: 28px; font-style: normal; color: var(--muted); font-size: 18px; line-height: 1.8; }
.contact-map-preview { margin: 0; min-width: 0; position: relative; display: block; overflow: hidden; border: 1px solid #ec624a30; border-radius: 16px; background: #17171e; box-shadow: 0 20px 50px #0003; }
.contact-map-preview img { display: block; width: 100%; height: auto; }
.map-preview-action { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #202027; color: var(--fg); font-size: 13px; }
.map-preview-action > span { color: var(--accent); }
@media(max-width:700px) {
    .contact-location { grid-template-columns: 1fr; padding: 36px 0 40px; }
}

.location-map-links { display: flex; flex-wrap: wrap; gap: 10px; }
.location-map-link { min-width: 0; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: #ffffff06; color: var(--fg); }
.location-map-link:hover { background: #ec624a20; border-color: var(--accent); }
.location-map-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.map-provider-icon { display: block; width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.location-map-link .map-provider-name { font-size: 14px; line-height: 1.4; }
.location-map-link .map-provider-arrow { margin-left: auto; color: var(--accent); font-size: 18px; }

