:root {
    --color-bg: #050505;
    --color-bg-soft: #0b0b0b;
    --color-card: #101010;

    --color-orange: #d46b12;
    --color-orange-light: #ff8a1f;
    --color-orange-dark: #8f3f05;

    --color-text: #ffffff;
    --color-muted: #a7a7a7;
    --color-border: rgba(255, 138, 31, 0.35);

    --shadow-orange: 0 0 24px rgba(255, 138, 31, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    background: rgba(5, 5, 5, 0.96);
    /* border-top: 1px solid rgba(255, 255, 255, 0.14); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    min-height: 44px;
    background: linear-gradient(90deg, #0b0703, #1a0d02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 0.85rem;
    color: #f2f2f2;
    border-bottom: 1px solid rgba(255, 138, 31, 0.18);
}

.promo-bar {
  position: relative;
  /* background: linear-gradient(90deg, #000 0%, #120702 50%, #000 100%); */
  background: #000;
  color: #f3f3f3;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 0;
  height: 34px;
  overflow: hidden;
  font-family: 'Raleway', Arial, sans-serif;
  border-bottom: 1px solid rgba(255, 138, 31, 0.22);
  box-shadow: inset 0 -1px 0 rgba(255, 138, 31, 0.08);
}

.promo-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.promo-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 520px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 138, 31, 0.85),
    transparent
  );
  z-index: 1;
}

.promo-track {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  animation: slideUp 7s infinite;
}

.promo-track span {
  height: 34px;
  line-height: 34px;
  display: block;
  font-weight: 500;
  color: #f5f5f5;
  text-shadow: 0 0 14px rgba(255, 138, 31, 0.22);
}

@keyframes slideUp {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(0); }
  45%  { transform: translateY(-34px); }
  80%  { transform: translateY(-34px); }
  90%  { transform: translateY(-68px); }
  100% { transform: translateY(-68px); }
}

.badge-new {
    background: rgba(212, 107, 18, 0.18);
    color: var(--color-orange-light);
    border: 1px solid rgba(255, 138, 31, 0.35);
    padding: 5px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 3px;
}

.top-btn {
    background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
    color: #fff;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: var(--shadow-orange);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;

}
.logo img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
    padding-right: 12px;
}

.logo-icon {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange-dark));
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-links a {
    color: #d7d7d7;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-orange-light);
}

.lang-btn {
    background: #1c1c1c;
    border: 1px solid rgba(255, 138, 31, 0.25);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    border-radius: 4px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange-dark));
    color: #fff;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(255, 138, 31, 0.28);
}

.btn-secondary {
    background: rgba(255, 138, 31, 0.06);
    border-color: rgba(255, 138, 31, 0.55);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 138, 31, 0.14);
}

.software-window::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 138, 31, 0.12),
        transparent
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.hero-preview:hover .software-window::before {
    opacity: 1;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
    padding: 70px 24px 26px;
    color: #777;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 70px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
}

.footer-logo img {
    height: 52px;
    width: auto;
}

.footer-brand p {
    max-width: 360px;
    color: #8d8d8d;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-column h4 {
    color: #d7d7d7;
    font-size: 0.95rem;
    margin-bottom: 22px;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: #8d8d8d;
    font-size: 0.88rem;
    margin-bottom: 13px;
    transition: 0.2s ease;
}

.footer-column a:hover {
    color: var(--color-orange-light);
    transform: translateX(1px);
}

.footer-warning {
    margin-top: 14px;
    color: #666;
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 55px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #666;
    font-size: 0.8rem;
}

.footer-bottom p:last-child {
    text-align: right;
}

@media screen and (max-width: 950px) {

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom p:last-child {
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .site-footer {
        padding: 50px 22px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-logo img {
        height: 46px;
    }
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8d8d8d;
    transition: 0.2s ease;
}

.footer-socials a:hover {
    color: var(--color-orange-light);
    border-color: rgba(255, 138, 31, 0.45);
    transform: translateY(-1px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-socials a:nth-child(2) svg,
.footer-socials a:nth-child(3) svg {
    fill: currentColor;
    stroke: none;
}

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px;
    text-align: center;
}



/* Séparateur nav */
.nav-separator {
    width: 1px;
    height: 16px;
    background: #1e1e1e;
    margin: 0 4px;
    display: inline-block;
    vertical-align: middle;
}

/* Liens actifs */
.nav-links a.active {
    color: #e85d26 !important;
}

/* Patch ECU : même style que les autres, orange seulement si actif */
.nav-highlight {
    font-weight: 600 !important;
}

/* Liens admin : même taille que les autres liens */
.nav-admin {
    font-size: inherit !important;
    font-weight: 600 !important;
    color: #d7d7d7 !important;
    text-transform: none;
    letter-spacing: 0;
}

.nav-admin:hover {
    color: var(--color-orange-light) !important;
}

.nav-admin.active {
    color: #e85d26 !important;
}

/* ── Right side */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Boutons connexion/inscription */
.btn-nav-login {
    font-size: 13px;
    color: #888;
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid #1e1e1e;
    border-radius: 6px;
    transition: color 0.15s, border-color 0.15s;
}

.btn-nav-login:hover { color: #ccc; border-color: #333; }

.btn-nav-register {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 6px;

    background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange-dark));
    border: 1px solid rgba(255, 138, 31, 0.45);
    box-shadow: 0 0 20px rgba(255, 138, 31, 0.16);

    transition: 0.2s ease;
}

.btn-nav-register:hover {
    filter: brightness(1.08);
    color: #fff;
}

/* ── Quota badge */
.quota-badge {
    display: flex;
    flex-direction: column;
        align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 10px;
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    min-width: 80px;
}

.quota-plan {
    font-size: 9px;
    font-weight: 700;
    color: #e85d26;
    letter-spacing: 0.12em;
}

.quota-nums {
    font-size: 12px;
    font-family: 'Courier New', monospace;
    color: #ccc;
    line-height: 1;
}

.quota-nums strong { 
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
 }

.quota-nums span   { 
    color: #777; 
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
}

.quota-bar {
    width: 100%;
    height: 2px;
    background: #1e1e1e;
    border-radius: 1px;
    overflow: hidden;
}

.quota-fill {
    height: 100%;
    background: #e85d26;
    border-radius: 1px;
    transition: width 0.3s ease;
}

/* ── User menu */
.user-menu { position: relative; }

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    color: #ccc;
    font-size: 13px;
    transition: border-color 0.15s;
}

.user-btn:hover { border-color: #333; }

.user-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: var(--shadow-orange);
    flex-shrink: 0;
}

.user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    min-width: 180px;
    padding: 6px;
    display: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.user-dropdown.open { display: block; }

.user-dropdown a {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.1s, color 0.1s;
}

.user-dropdown a:hover { background: #1a1a1a; color: #ccc; }

.dropdown-sep {
    height: 1px;
    background: #1a1a1a;
    margin: 4px 0;
}

.dropdown-logout { color: #ef4444 !important; }
.dropdown-logout:hover { background: rgba(239,68,68,0.08) !important; }

.lang-switcher { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.lang-btn:hover { background: rgba(255,255,255,0.1); }

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    min-width: 140px;
    z-index: 999;
}

.lang-dropdown.open { display: block; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.lang-option:hover { background: rgba(255,255,255,0.08); }
.lang-option.active { color: #e63946; }
.lang-option img { width: 20px; border-radius: 2px; }

@media screen and (max-width: 950px) {
    .top-bar {
        padding: 12px;
        flex-direction: column;
        text-align: center;
    }

    .navbar {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }
}

/* =========================================
   HAMBURGER MENU
   ========================================= */

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 138, 31, 0.25);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: #d7d7d7;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

.nav-overlay {
    display: none;
}

/* =========================================
   TABLETTE / MOBILE (≤950px)
   ========================================= */

@media screen and (max-width: 950px) {
    .navbar {
        height: 70px;
        flex-direction: row;
        padding: 0 20px;
        justify-content: space-between;
    }

    .nav-burger {
        display: flex;
    }

        .nav-mobile-panel .nav-close {
        display: flex;
    }

    .nav-mobile-panel {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: #0b0b0b;
        border-left: 1px solid rgba(255, 138, 31, 0.22);
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        z-index: 1100;
        padding: 90px 24px 24px;
        display: flex;
        flex-direction: column;
        gap: 28px;
        overflow-y: auto;
        transition: right 0.3s ease;
    }

    .nav-mobile-panel.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
        font-size: 1rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-separator {
        display: none;
    }

    .nav-right {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
    }

    .user-menu,
    .lang-switcher {
        width: 100%;
    }

    .user-btn {
        width: 100%;
        justify-content: space-between;
    }

    .user-name {
        max-width: none;
        flex: 1;
        text-align: left;
    }

    .user-dropdown {
        position: static;
        margin-top: 8px;
        box-shadow: none;
        width: 100%;
        min-width: 0;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
    }

    .lang-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        min-width: 0;
    }

    .quota-badge {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
    }

    .btn-nav-login,
    .btn-nav-register {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 950px) {
    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1050;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
}

@media screen and (max-width: 950px) {
    .top-bar {
        padding: 10px 16px;
        flex-wrap: wrap;
        font-size: 0.78rem;
        gap: 10px;
    }

    .badge-new {
        font-size: 0.62rem;
        padding: 4px 10px;
        letter-spacing: 2px;
    }

    .top-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .promo-track span {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .top-bar {
        font-size: 0.72rem;
    }

    .promo-bar {
        font-size: 11px;
    }

    .logo img {
        height: 44px;
    }
}

@media screen and (max-width: 950px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-column h4 {
        text-align: center;
    }

    .footer-column a {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-warning {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom p:last-child {
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .site-footer {
        padding: 50px 22px 24px;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 34px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
        margin: 0 auto 22px;
    }

    .footer-logo img {
        height: 46px;
    }
}

@media screen and (min-width: 951px) {
    .nav-mobile-panel {
        display: contents;
    }
}

.nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: rgba(255, 138, 31, 0.08);
    border: 1px solid rgba(255, 138, 31, 0.25);
    border-radius: 8px;
    color: #d7d7d7;
    cursor: pointer;
    transition: 0.2s ease;
}

.nav-close:hover {
    color: #fff;
    border-color: rgba(255, 138, 31, 0.5);
    background: rgba(255, 138, 31, 0.14);
}

.nav-close svg {
    width: 18px;
    height: 18px;
}
