/* Import du thème - Changez le nom du fichier pour changer de thème */


@font-face {
  font-family: 'Feeling';
  src: url('../fonts/Feeling_Passionate.woff');
  src: url('../fonts/Feeling_Passionate.woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'nunito';
  src: url('../fonts/nunito-regular.woff');
  src: url('../fonts/nunito-regular.woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'nunito-light';
  src: url('../fonts/nunito-300.woff');
  src: url('../fonts/nunito-300.woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'nunito-semibold';
  src: url('../fonts/nunito-600.woff');
  src: url('../fonts/nunito-600.woff2');
  font-weight: 600;
  font-style: italic;
}

@font-face {
  font-family: 'nunito-bold';
  src: url('../fonts/nunito-700.woff');
  src: url('../fonts/nunito-700.woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'nunito-italic';
  src: url('../fonts/nunito-italic.woff');
  src: url('../fonts/nunito-italic.woff2');
  font-weight: normal;
  font-style: italic;
}

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'nunito', sans-serif;
    background: var(--deep);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* Animated background */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
      radial-gradient(ellipse 80% 50% at 10% 20%, var(--accent) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 90% 80%, var(--accent2) 0%, transparent 55%),
      radial-gradient(ellipse 40% 60% at 50% 50%, var(--mid) 0%, transparent 70%);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
  }
  
  /* Ajustement pour thèmes clairs */
  body[data-theme="light"]::before,
  body[data-theme="minimal"]::before,
  body[data-theme="soft-blue"]::before,
  body[data-theme="soft-green"]::before,
  body[data-theme="cream"]::before {
    opacity: 0.03;
  }

  /* ===== NAV ===== */
  .menu-burger {
    display: flex;
    flex-direction: column;
    width: 30px;
    height: 50px;
    background: none;
    border: none;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-burger .bar {
    width: 100%;
    height: 3px;
    background: var(--bar);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .menu-burger:hover .bar {
    background: var(--accent);
  }

  .menu-burger.is-open .bar1 {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-burger.is-open .bar2 {
    opacity: 0;
  }

  .menu-burger.is-open .bar3 {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: var(--nav-bg, color-mix(in srgb, var(--deep) 85%, transparent));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  nav button:focus{
    outline: none;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'nunito', sans-serif;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: var(--text);
  }

  .nav-logo-content a {
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-logo-content a:hover {
    text-decoration: none;
  }

  @media (max-width: 768px) {
    .nav-logo-text {
      display: none;
    }
  }

  .nav-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
    }
  }

  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s;
  }

  .nav-links a:hover, .nav-links a.active {
    color: var(--text);
    background: var(--border);
  }

  @media (max-width: 768px) {
    .nav-user-toggle .nav-user-name {
      display: none;
    }
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  /* Bouton bascule thème clair / sombre */
  .theme-toggle-btn {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s, transform 0.15s;
  }
  .theme-toggle-btn:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
  }
  .theme-toggle-btn:active {
    transform: scale(0.96);
  }
  .theme-toggle-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
  }
  .theme-toggle-inner .theme-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
    transition: opacity 0.25s, transform 0.25s;
  }
  .theme-toggle-inner .theme-icon svg {
    width: 26px;
    height: 26px;
  }
  /* En mode clair : afficher lune (passer au sombre) */
  .theme-toggle-btn[data-theme="light"] .theme-icon-moon {
    opacity: 1;
    transform: none;
  }
  /* En mode sombre : afficher soleil (passer au clair) */
  .theme-toggle-btn[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
    transform: none;
  }

  .btn-ghost {
    font-family: 'nunito', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    /* border: 1px solid var(--border-strong); */
    /* border-radius: 8px; */
    border: none;
    /* padding: 8px 18px; */
    cursor: pointer;
    transition: all 0.2s;
  }

.btn-ghost img{
  filter: brightness(0) saturate(100%) invert(24%) sepia(27%) saturate(2146%) hue-rotate(173deg) brightness(95%) contrast(87%);
  transition: all 0.3s;
}

  .btn-ghost:hover img{
    filter: brightness(0) saturate(100%) invert(50%) sepia(27%) saturate(2146%) hue-rotate(173deg) brightness(95%) contrast(87%);
  }

  .btn-primary {
    font-family: 'nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--deep);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
  }

  .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 30%, transparent); background: linear-gradient(135deg, var(--accent), var(--accent2)); }

  .menu-icon-grid > a:hover {
    background: var(--accent);
  }

  .menu-icon-grid > a {
    font-size: 10px !important;
  }

  /* ===== NOTIFICATIONS DROPDOWN ===== */
  .notification-dropdown {
    min-width: 260px;
    max-width: 320px;
    padding: 0;
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--glow), 0 18px 45px rgba(15, 23, 42, 0.25);
    overflow: hidden;
  }

  .notification-dropdown::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
  }

  .notification-header a {
    padding: 10px 16px 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .notification-title {
    font-family: 'nunito', sans-serif;
    font-size: 14px;
    color: var(--text);
  }

  .notification-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
    white-space: nowrap;
  }

  .notification-scroll {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 4px 6px;
  }

  .notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    background: transparent;
    transition: background 0.18s ease, transform 0.12s ease;
    color: var(--text);
  }

  .notification-item:hover {
    background: color-mix(in srgb, var(--accent2) 6%, transparent);
    transform: translateY(-1px);
  }

  .notification-content {
    flex: 1;
    min-width: 0;
  }

  .notification-label {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--text);
  }

  .notification-meta {
    font-size: 11px;
    margin: 0;
    color: var(--text-muted);
  }

  .notification-text p {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-muted);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .notification-scroll::-webkit-scrollbar {
    width: 4px;
  }

  .notification-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .notification-scroll::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent2) 35%, transparent);
    border-radius: 999px;
  }

  /* ===== USER MENU (CONNECTED STATE) ===== */
  .nav-user {
    position: relative;
  }

  .nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--panel) 40%, transparent);
    border: 1px solid var(--border);
    color: var(--text);
  }

  .nav-user-toggle:hover {
    background: color-mix(in srgb, var(--accent2) 6%, transparent);
    border-color: var(--border-strong);
  }

  .nav-user-toggle:hover img {
    filter: none;
  }

  .nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-strong);
    flex-shrink: 0;
  }

  .nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
  }

  .nav-user-avatar:hover img {
    filter: none;
  }

  .nav-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
  }

  .nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }

  .nav-user-label {
    font-size: 11px;
    color: var(--text-muted);
  }

  .nav-user-caret {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 4px;
  }

  .nav-user-menu.dropdown-menu {
    min-width: 220px;
    padding: 8px 0;
    position: absolute;
    background: var(--panel);
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--glow), 0 18px 45px rgba(15, 23, 42, 0.25);
  }

  .nav-user-menu.dropdown-menu::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    margin-bottom: 4px;
  }

  .nav-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
  }

  .nav-user-menu .dropdown-item:hover {
    background: color-mix(in srgb, var(--accent2) 6%, transparent);
  }

  .nav-user-menu .dropdown-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(24%) sepia(27%) saturate(2146%) hue-rotate(173deg) brightness(95%) contrast(87%);
  }

  /* ===== LANGUAGE SWITCHER ===== */
  .lang-row-below-header {
    position: relative;
    z-index: 95;
    background: color-mix(in srgb, var(--panel) 85%, var(--deep) 15%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  }

  .lang-row-below-header .lang-switcher {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 24px 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .lang-switcher {
    display: flex;
    gap: 8px;
  }

  .lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'nunito', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease, color 0.18s ease;
  }

  .lang-switcher__btn:hover {
    background: color-mix(in srgb, var(--accent2) 6%, transparent);
    border-color: var(--border-strong);
    transform: translateY(-1px);
  }

  .lang-switcher__btn.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
    color: var(--deep);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);
  }

  .lang-switcher__flag-wrap {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lang-switcher__flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .lang-switcher__code {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* ===== SIDE MENU ===== */
  .menu {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 320px;
    background: var(--panel);
    border-right: 1px solid var(--border-strong);
    transform: translateX(-100%);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    z-index: 120;
    display: flex;
  }

  .menu.is-open {
    transform: translateX(0);
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
  }

  /* .menu .main-menu,
  .menu .sub-menu {
    flex: 1;
  } */

  .menu .main-menu {
    background: color-mix(in srgb, var(--deep) 80%, var(--panel) 20%);
    border-right: 1px solid var(--border);
  }

  .menu .sub-menu {
    background: color-mix(in srgb, var(--panel) 92%, var(--mid) 8%);
  }

  .menu .scroll {
    height: 100%;
    padding: 16px 0;
  }

  .menu .list-unstyled {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .menu .main-menu a,
  .menu .sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  }

  .menu .main-menu li.active > a,
  .menu .main-menu a:hover {
    background: color-mix(in srgb, var(--accent2) 10%, transparent);
    color: var(--text);
  }

  .menu .sub-menu li.active > a,
  .menu .sub-menu a:hover {
    background: linear-gradient(135deg,
      color-mix(in srgb, var(--accent) 15%, transparent),
      color-mix(in srgb, var(--accent2) 10%, transparent));
    /* color: var(--deep); */
  }

  .menu .main-menu i,
  .menu .sub-menu i {
    font-size: 16px;
  }

  .menu .sub-menu ul[data-link] {
    display: none;
  }

  .menu .sub-menu ul[data-link].is-active {
    display: block;
  }

  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
    z-index: 110;
  }

  .menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }

  @media (min-width: 992px) {
    .menu {
      width: 390px;
    }
  }

  @media (max-width: 768px) {
    .menu {
      width: 100%;
    }
  }

  /* ===== LOGIN MODAL ===== */
  .modal-right .modal-dialog {
    max-width: 485px;
    margin: 1.75rem auto;
    padding: 1rem;
  }

  .modal-content {
    background: var(--panel);
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--glow), 0 28px 70px rgba(15, 23, 42, 0.55);
    overflow: hidden;
  }

  @media (max-width: 768px) {
    .modal-right .modal-dialog {
      margin: 1.5rem auto;
    }

    .modal-content {
      border-radius: 18px;
    }
  }

  .modal-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    align-items: center;
  }

  .modal-title {
    font-family: 'nunito', sans-serif;
    font-size: 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .modal-title i {
    color: var(--accent);
    font-size: 20px;
  }

  .modal-body {
    padding: 20px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .modal-footer {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
  }

  .modal-body .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }

  .modal-content .input-group-text {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid var(--border-strong);
    color: var(--accent);
  }

  .modal-content .form-control {
    border: 1px solid var(--border-strong);
    box-shadow: none;
  }

  .modal-content .form-control:focus {
    border-color: var(--accent);
    outline: none;
  }

  .modal-content p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
  }

  .modal-content .btn-primary {
    width: 100%;
  }

  /* ===== MAIN ===== */
  main {
    position: relative;
    z-index: 1;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px 80px;
    flex: 1;
  }

  @media (max-width: 768px) {
    main {
      max-width: 100%;
    }
  }

  /* ===== HERO ===== */
  .hero {
    padding: 70px 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  @media (max-width: 768px) {
    .hero {
      grid-template-columns: 1fr;
    }
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
    border-radius: 20px;
    padding: 5px 12px;
    margin-bottom: 20px;
  }

  .hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
  }

  .hero h2 {
    font-family: 'Feeling', serif;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
  }

  .hero h2 em {
    font-style: italic;
    padding-left: 10px;
    padding-right: 10px;
    padding-right: 10px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 460px;
  }

  .hero--license {
    display: flex;
    justify-content: center;
    gap: 60px;
  }

  .hero--license .hero-visual {
    max-width: 500px;
    width: 100%;
  }

  @media (max-width: 768px) {
    .hero-visual {
      /* max-width: 375px; */
    }
  }

  .hero--license .hero-badge {
    margin-bottom: 16px;
  }

  .hero--license h1 {
    margin-bottom: 16px;
  }

  .hero--license p {
    max-width: 520px;
  }

  .hero--project .hero-badge {
    margin-bottom: 16px;
  }

  .hero--project h1 {
    margin-bottom: 16px;
  }

  .hero--project p {
    max-width: 520px;
  }

  .hero-list {
    list-style: none;
    margin: 0;
    margin-top: 10px;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
  }

  .hero-list li {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .hero-list li span:first-child {
    font-size: 14px;
  }

  .hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
  }

  .btn-hero, a.btn-hero {
    font-family: 'nunito', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--deep);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none;
    border-radius: 10px;
    padding: 13px 28px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 24px color-mix(in srgb, var(--accent) 25%, transparent);
  }

  .btn-hero:hover, a.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px color-mix(in srgb, var(--accent) 40%, transparent); }

  .btn-secondary {
    font-family: 'nunito', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
  }

  .btn-secondary:hover { color: var(--text); background: none; box-shadow: none; }

  /* Hero visual */
  .hero-visual {
    position: relative;
  }

  .hero-card {
    background: var(--panel);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--glow), 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
  }

  @media (max-width: 768px) {
    .hero-card-content {
      flex-wrap: wrap;
    }
  }

  .hero-card--license {
    width: 100%;
  }

  .hero-card--project {
    max-width: 380px;
    margin-left: auto;
    text-align: center;
  }

  .project-hero-icon {
    margin-bottom: 16px;
  }

  .project-hero-icon img {
    display: block;
    margin: 0 auto;
  }

  .project-hero-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
  }

  .hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
  }

  .hero-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
  }

  .modal-video {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .modal-video-close {
    color: white;
    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 1001;
  }

  .modal-video-close button {
    color: white;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
  }

  .modal-video-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
  }

  .modal-video-content video {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .water-donut {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 24px;
  }

  .water-donut-flex {
    flex-wrap: wrap;
  }

  .donut-wrap {
    position: relative;
    width: 120px; height: 120px;
    flex-shrink: 0;
  }

  .donut-svg { transform: rotate(-90deg); }

  .donut-bg { fill: none; stroke: color-mix(in srgb, var(--accent2) 10%, transparent); stroke-width: 14; }
  .donut-fill { fill: none; stroke: url(#donutGrad); stroke-width: 14; stroke-linecap: round;
    stroke-dasharray: 339; stroke-dashoffset: 13;
    animation: donut 1.2s ease-out forwards; }

  @keyframes donut {
    from { stroke-dashoffset: 339; }
    to { stroke-dashoffset: 13; }
  }

  .donut-center {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center;
  }

  .donut-pct {
    font-family: 'nunito', sans-serif;
    font-size: 26px;
    line-height: 1;
    color: var(--text);
  }

  .donut-sub { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

  .donut-legend {
    flex: 1;
  }

  .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
  }

  .legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .legend-pct { margin-left: auto; font-weight: 600; color: var(--text); font-size: 13px; }

  .mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mini-stats-title {
    grid-column: 1 / -1;
  }

  .mini-stat {
    background: color-mix(in srgb, var(--deep) 60%, transparent);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
  }

  .mini-stat-val {
    font-family: 'nunito', sans-serif;
    font-size: 22px;
    color: var(--accent);
    line-height: 1;
  }

  .mini-stat-val.blue { color: var(--accent2); background: none;}
  .mini-stat-val.warn { color: var(--warn); }

  .mini-stat-label p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.4;
  }

  /* Floating badges */
  .floating-badge {
    position: absolute;
    background: var(--mid);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }

  .floating-badge-top { top: -50px; right: 0px; animation-delay: 0.5s; }
  .floating-badge-bottom { bottom: -50px; left: 0px; color: var(--accent2); animation-delay: 1.2s; }

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  /* ===== SECTION TITLES ===== */
  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .section-title {
    font-family: 'nunito', sans-serif;
    font-size: 22px;
    color: var(--text);
  }

  .section-sub {
    font-size: 13px;
    color: var(--text-muted);
  }

  /* ===== LICENSE BANNER ===== */
  .license-banner {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent2) 8%, transparent));
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 16px;
    padding: 24px 32px;
    margin-top: 10px;
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
  }

  @media (max-width: 768px) {
    .license-banner-content {
      /* grid-template-columns: 1fr; */
    }
  }

  .license-title {
    font-family: 'nunito', sans-serif;
    font-size: 18px;
    color: var(--text);
    margin-bottom: 6px;
  }

  .license-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
  }

  .license-input-wrap {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
  }

  @media (max-width: 768px) {
    .license-input-wrap {
      flex-wrap: wrap;
    }
  }

  .license-input-wrap a {
    font-size:13px;
    color:var(--text-muted);
    text-decoration:none;
    margin-left:8px;
  }

  .license-input {
    font-family: 'nunito', sans-serif;
    font-size: 14px;
    background: color-mix(in srgb, var(--deep) 60%, transparent);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 16px;
    width: 240px;
    outline: none;
    transition: border-color 0.2s;
  }

  .license-input:focus { border-color: var(--accent); }
  .license-input::placeholder { color: var(--text-muted); }

  .btn-activate {
    font-family: 'nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--deep);
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .btn-activate:hover { background: var(--accent3); }

  /* Licence request page */
  .license-banner--request {
    grid-template-columns: 1.3fr minmax(0, 420px);
  }

  .license-form-card {
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--glow), 0 16px 40px rgba(15, 23, 42, 0.35);
    padding: 20px 22px;
  }

  .license-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .license-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .license-form-field-radio {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

  .license-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
  }

  .license-form-input,
  .license-form-select {
    font-family: 'nunito', sans-serif;
    font-size: 14px;
    background: color-mix(in srgb, var(--deep) 60%, transparent);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
  }

  .license-form-input:focus,
  .license-form-select:focus {
    border-color: var(--accent);
  }

  .license-form-input::placeholder {
    color: var(--text-muted);
  }

  .license-form-submit {
    width: 100%;
    margin-top: 6px;
    text-align: center;
  }
  
  input:focus, textarea:focus, .form-control:focus, input:active, textarea:active, .form-control:active {
    border-color: var(--accent);
    box-shadow: var(--glow);
  }

  .question-group {
    margin-top: 20px;
  }

  .question-group h2 {
    color: var(--text);
    font-size: 1.25rem;
  }
  
  #solutionTabs {
    border-bottom: 1px solid var(--accent);
  }

  #solutionTabs .nav-link {
    cursor: pointer;
  }

  #solutionTabs .nav-link.active {
    color: white;
    background: color-mix(in srgb, var(--accent) 50%, transparent);
    border-color: var(--accent) var(--accent) #fff;
  }

  #solutionTabs .nav-link:hover {
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: var(--accent) var(--accent) #fff;
  }
  
  .solution-group h2{
    font-size: 1.25rem;
  }

  .alert{
    margin-top: 20px;
  }

  .alert:has(a){
    padding: 0;
    overflow: hidden;
  }

  .alert a{
    color: var(--accent);
    width: 100%;
    padding: 0.75rem 1.25rem;
    display: inline-block;
    transition: all 0.3s;
  }

  .alert a:hover{
    color: white;
    text-decoration: none;
    background: var(--accent);
  }
  
  #generate-report {
    font-size: 1rem;
  }

  .card-profile-header {
    margin-bottom: 20px;
  }
  
  .card-profile-header h3 {
    margin-bottom: 0;
  }
  
  .btn-header-light {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border);
  }

  .custom-radio .custom-control-input:checked ~ .custom-control-label::before{
    background: var(--accent);
    border-color: var(--accent);
  }

  .breadcrumb-link{
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    background: var(--border);
  }

  a{
    color: var(--accent);
  }

  /* ===== KPI GRID ===== */
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 48px;
  }

  .kpi-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
  }

  .kpi-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

  .kpi-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.2s;
  }

  .kpi-card:hover::after { opacity: 1; }

  .kpi-icon {
    font-size: 20px;
    margin-bottom: 12px;
    display: block;
  }

  .kpi-value {
    font-family: 'nunito', sans-serif;
    font-size: 32px;
    color: var(--text);
    line-height: 1;
  }

  .kpi-unit {
    font-size: 16px;
    color: var(--text-muted);
    font-family: 'nunito', sans-serif;
    font-weight: 400;
  }

  .kpi-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
  }

  .kpi-badge {
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 8px;
  }

  .kpi-badge.eco { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
  .kpi-badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }

  /* ===== CHARTS ROW ===== */
  .charts-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  .charts-row.charts-row-money{
    grid-template-columns: 1fr 1fr;
  }

  @media (max-width: 768px) {
    .charts-row {
      grid-template-columns: 1fr;
    }
  }

  .chart-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
  }

 
  .chart-title {
    font-family: 'nunito', sans-serif;
    font-size: 17px;
    color: var(--text);
    margin-bottom: 4px;
  }

  .chart-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
  }

  /* Fake bar chart */
  .bar-chart {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
  }

  .bar-label { color: var(--text-muted); width: 130px; flex-shrink: 0; }

  .bar-track {
    flex: 1;
    height: 8px;
    background: color-mix(in srgb, var(--accent2) 8%, transparent);
    border-radius: 4px;
    overflow: hidden;
  }

  .bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    animation: barIn 1s ease-out forwards;
    transform-origin: left;
  }

  @keyframes barIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }

  .bar-pct { color: var(--text); font-weight: 600; width: 36px; text-align: right; flex-shrink: 0; font-size: 13px; }

  /* Fake line chart */
  .line-chart-wrap {
    position: relative;
    height: 130px;
  }

  .line-chart-svg { width: 100%; height: 100%; }

  .line-months {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
  }

  .line-month { font-size: 11px; color: var(--text-muted); }

  ApexCharts axes adaptation aux thèmes
  .apexcharts-xaxis text,
  .apexcharts-xaxis-label {
    fill: var(--text-muted) !important;
    color: var(--text-muted) !important;
  }

  .apexcharts-yaxis text,
  .apexcharts-yaxis-label {
    fill: var(--text-muted) !important;
    color: var(--text-muted) !important;
  }

  /* ===== USAGE GRID ===== */
  .usage-section {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  /* ===== INFO CARDS ===== */
  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  @media (max-width: 768px) {
    .info-grid {
      grid-template-columns: 1fr;
    }
  }

  .project-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-info-card {
    grid-column: 1 / -1;
  }

  .info-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
  }

  .info-card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
  }

  .info-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
  }

  .info-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .info-card-title {
    font-family: 'nunito', sans-serif;
    font-size: 20px;
    color: var(--text);
    margin-bottom: 12px;
  }

  .info-card-intro {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 12px;
  }

  .info-card-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
  }

  .info-card-text p {
    margin-bottom: 1em;
  }

  .info-card-text p:last-child {
    margin-bottom: 0;
  }

  .info-card-subtitle {
    font-family: 'nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 1.25em 0 0.5em;
  }


  /* ===== FOOTER ===== */
  footer {
    border-top: 1px solid var(--border);
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
  }

  .footer-left {
    font-size: 13px;
    color: var(--text-muted);
  }

  .footer-right {
    display: flex;
    gap: 24px;
  }

  .footer-right a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-right a:hover { color: var(--accent); }

  /* ===== SECTION DIVIDER ===== */
  .section-mb { margin-bottom: 48px; }

  /* Tab bar for license */
  .tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 0;
  }

  .tab {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
    background: none;
    border-left: none; border-right: none; border-top: none;
    font-family: 'nunito', sans-serif;
  }

  .tab.active { color: var(--accent); border-bottom-color: var(--accent); }

  /* Vertical metric line */
  .metric-number {
    font-family: 'nunito', sans-serif;
  }

  /* animated water waves in bg */
  .wave-container {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
  }

  .fade-in {
    animation: fadeUp 0.6s ease-out both;
  }
  .fade-in:nth-child(2) { animation-delay: 0.1s; }
  .fade-in:nth-child(3) { animation-delay: 0.2s; }
  .fade-in:nth-child(4) { animation-delay: 0.3s; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

/* Steps Diagnosis */
.step-header .card-header {
  padding: 0;
}

.step-header .nav-tabs {
  border-bottom: #0083d5;
}

.step-header .nav-link {
  transition: all 0.3s ease;
  border-radius: 0;
}

.step-header .nav-link:hover {
  background: #0083d5;
}

.nav-tabs {
  border-bottom: 1px solid var(--border);
}

.nav-tabs .nav-item .nav-link:not(.disabled):hover{
  color: #fff;
}

.nav-tabs .nav-item .nav-link.active, .nav-tabs .nav-item .nav-link:hover{
  color: #fff;
  height: 100%;
  transition: all 0.3s ease;
  background: var(--accent2, color-mix(in srgb, var(--deep) 85%, transparent));
  border-color: var(--accent);
}

.nav-tabs .nav-item .nav-link.active:hover{
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.step-recap-sidebar button {
  padding: 0.5rem 0.75rem;
  border-radius: 0;
}

.step-recap-sidebar .border {
  margin-bottom: 5px;
}

.step-recap-sidebar button h4 {
  font-size: 13px;
  margin: 0;
}

/* message de validation des etapes */
.alert.alert-success.js-auto-dismiss-success {
  margin-top: 20px;
}

.step-form-layout form textarea {
  height: 150px;
}
