/* POLICE IBM PLEX MONO HÉBERGÉE LOCALEMENT */
/* latin-ext 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v20-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin 400 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v20-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v20-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin 500 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext 700 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v20-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin 700 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v20-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* RESET & APPLICATION DE LA POLICE IBM PLEX MONO PARTOUT */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #000000;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.no-scroll-nav {
    overflow: hidden !important;
}

.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    padding: 0;
    z-index: 1100;
}

.burger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar .logo-link {
    display: flex;
    align-items: center;
}

.navbar .logo-img {
    height: 40px;
    /* Ajuste la hauteur selon tes besoins */
    width: auto;

    /* Conserve les pixels nets et tranchants de ton image de logo */
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.navbar nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar .nav-item {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-item:hover {
    color: #81EF30;
}

.navbar .contact-link {
    color: #81EF30;
    /* Ton vert exact */
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 1px dashed #81EF30;
    padding: 8px 18px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, border-style 0.3s ease;
}

.navbar .contact-link:hover {
    background-color: #81EF30;
    color: #000000;
    border-style: solid;
}

/* Bouton d'accès admin / cadenas */
.nav-lock-link {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a0a0a0;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-lock-link:hover {
    color: #81EF30;
    border-color: #81EF30;
    background-color: rgba(129, 239, 48, 0.05);
}

.lock-icon {
    width: 16px;
    height: 16px;
}





/* SECTION HERO (NOIR) */
.section-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000000;
}

.container-center {
    max-width: 800px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.terminal-tag {
    display: inline-block;
    background-color: #111111;
    color: #81EF30;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px dashed #81EF30;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.section-hero h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-hero .hero-text {
    color: #81EF30;
    /* Ton vert exact */
    font-size: 18px;
    font-weight: 700;
    max-width: 600px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.section-hero .hero-subtext {
    color: #a0a0a0;
    font-size: 15px;
    max-width: 650px;
    line-height: 1.6;
}

/* SECTION LIME (VERT ACIDE) */
.section-lime {
    background-color: #81EF30;
    /* Ton vert exact en fond de section */
    color: #000000;
}

.section-lime h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1.2;
}

.section-lime .lime-text {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
}

/* SECTION CARDS (NOIR) */
.section-cards {
    background-color: #000000;
    padding: 80px 0;
}

.card-grid {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: stretch; /* Aligne toutes les hauteurs */
}

.card {
    flex: 1;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.card-content {
    padding: 30px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #ffffff;
}

.card-icon-svg {
    width: 32px;
    height: 32px;
    stroke: #81EF30;
    margin-bottom: 16px;
    display: block;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
    color: #a0a0a0;
}

/* Style des blocs (carrés sombres uniformes avec bordures réactives) */
.card-glow-1, .card-glow-2, .card-glow-3 {
    background: #111111;
    border: 1px solid #222222;
}

/* Au survol, la carte s'agrandit légèrement par-dessus les autres et s'illumine */
.card:hover {
    transform: scale(1.04);
    border-color: #81EF30;
    box-shadow: 0 15px 30px rgba(129, 239, 48, 0.15);
    z-index: 1;
}

/* SECTION WHITE */
.section-combined {
    background-color: #ffffff;
    color: #000000;
    padding: 80px 0;
}

.container.combined-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;
}

.combined-left {
    flex: 1.25;
}

.combined-right {
    flex: 0.75;
}

.combined-left h2, .combined-right h2 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 30px;
    color: #000000;
    line-height: 1.2;
}

.row-list {
    padding-top: 20px;
}

.row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 16px;
    border-bottom: 1px solid #e5e5e5;
    border-left: 3px solid transparent;
    transition: padding-left 0.3s ease, border-left-color 0.3s ease, background-color 0.3s ease;
}

.row-item:hover {
    padding-left: 24px;
    border-left-color: #81EF30;
    background-color: #fafafa;
}

.row-item:first-child {
    border-top: 1px solid #e5e5e5;
}

.threat-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 70%;
}

.threat-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.threat-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    border: 1px solid #e2e8f0;
    color: #64748b;
    background-color: #f8fafc;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.row-item:hover .threat-tag {
    border-color: #000000;
    color: #000000;
    background-color: #ffffff;
}

.threat-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
}

.threat-desc {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
    font-weight: 500;
}

.threat-cost {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 4px;
    white-space: nowrap;
    text-align: right;
    background-color: #000000;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.row-item:hover .threat-cost {
    background-color: #81EF30;
    color: #000000;
}

/* SECTION CONTACT (NOIR) */
.section-contact {
    background-color: #000000;
    color: #ffffff;
    padding: 100px 0;
    border-top: 1px solid #222222;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-contact h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 16px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 40px;
}

.btn-contact {
    display: inline-block;
    background-color: #81EF30;
    color: #000000;
    padding: 16px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin-bottom: 40px;
}

.btn-contact:hover {
    transform: scale(1.05);
    background-color: #9aff54;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: #8c8c8c;
    font-size: 14px;
}

.contact-info a {
    color: #81EF30;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.signal-contact-link {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.signal-logo-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: inline-block;
}

.section-methodology {
    background-color: #000000;
    color: #ffffff;
    padding: 100px 0;
    border-top: 1px solid #222222;
}
.section-methodology h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}
.methodology-intro {
    font-size: 16px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 60px;
}
.timeline {
    position: relative;
    padding-left: 40px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.timeline-item {
    position: relative;
}
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 42px;
    width: 2px;
    height: calc(100% - 42px + 50px);
    border-left: 2px dashed #333333;
}
.timeline-badge {
    position: absolute;
    left: -62px;
    top: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #111111;
    border: 2px solid #81EF30;
    color: #81EF30;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 700;
    font-size: 14px;
}
.timeline-content {
    background-color: #0d0d0f;
    border: 1px solid #222222;
    padding: 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.timeline-content:hover {
    border-color: #81EF30;
    background-color: #111111;
}
.timeline-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.timeline-threat {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
}
.timeline-toggle-text {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: #81EF30;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.timeline-toggle-text:hover {
    color: #ffffff;
}
.timeline-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #333333;
}
.vector-section {
    margin-bottom: 20px;
}
.vector-main {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 12px;
}
.vector-others {
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1.6;
}
.vector-others ul {
    margin-top: 8px;
    margin-left: 20px;
    list-style-type: square;
}
.vector-others li {
    margin-bottom: 6px;
}
.timeline-counter {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.6;
    padding-top: 16px;
    border-top: 1px dashed #333333;
}
.highlight-lime {
    color: #81EF30;
    font-weight: 700;
}

.terminal-intro {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 24px;
}
.cyber-terminal {
    background-color: #0c0c0e;
    border: 1px solid #333333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.terminal-bar {
    background-color: #1a1a1c;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #28282a;
}
.terminal-dots {
    display: flex;
    gap: 8px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #8e8e93;
    font-family: 'IBM Plex Mono', monospace;
}
.terminal-body {
    padding: 30px;
    min-height: 250px;
    text-align: left;
    font-family: 'IBM Plex Mono', monospace;
}
.terminal-line {
    margin-bottom: 16px;
    font-size: 15px;
}
.prompt {
    color: #81EF30;
    margin-right: 8px;
}
.prompt-green {
    color: #81EF30;
    font-weight: 700;
}
.typed-command {
    color: #ffffff;
}
.system-msg {
    color: #8e8e93;
    margin-bottom: 12px;
    font-size: 14px;
}
.terminal-text {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.terminal-history-line {
    color: #a0a0a0;
    margin-bottom: 12px;
    font-size: 14px;
}

.terminal-btn-start {
    background-color: #81EF30;
    color: #000000;
    border: 1px solid #81EF30;
    padding: 12px 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 12px;
}
.terminal-btn-start:hover {
    background-color: #000000;
    color: #81EF30;
}

.terminal-controls {
    padding: 0 30px 30px 30px;
    display: flex;
    gap: 16px;
}
.term-action-btn {
    flex: 1;
    padding: 14px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    background-color: #111111;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-yes {
    border: 1px solid #27c93f;
    color: #27c93f;
}
.btn-yes:hover {
    background-color: #27c93f;
    color: #000000;
}
.btn-no {
    border: 1px solid #ff5f56;
    color: #ff5f56;
}
.btn-no:hover {
    background-color: #ff5f56;
    color: #000000;
}

.result-success {
    color: #27c93f;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}
.result-warning {
    color: #ffbd2e;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}
.result-danger {
    color: #ff5f56;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
}

.terminal-btn-cta {
    display: inline-block;
    background-color: #ffbd2e;
    color: #000000;
    border: 1px solid #ffbd2e;
    padding: 12px 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 16px;
    transition: transform 0.3s ease;
}
.terminal-btn-cta:hover {
    transform: scale(1.03);
}

.terminal-btn-cta-danger {
    display: inline-block;
    background-color: #ff5f56;
    color: #ffffff;
    border: 1px solid #ff5f56;
    padding: 12px 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 16px;
    transition: transform 0.3s ease;
}
.terminal-btn-cta-danger:hover {
    transform: scale(1.03);
}

.terminal-btn-restart {
    background-color: transparent;
    color: #8e8e93;
    border: 1px solid #333333;
    padding: 12px 28px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.terminal-btn-restart:hover {
    color: #ffffff;
    border-color: #8e8e93;
}

/* SECTION SKILLS */
.section-skills {
    background-color: #0c0c0e;
    color: #ffffff;
    padding: 80px 50px;
    border-top: 1px solid #222222;
}

.section-skills .container {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.skills-intro {
    font-size: 15px;
    color: #a0a0a0;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 50px;
}

.skills-columns-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.skills-column {
    display: flex;
    flex-direction: column;
}

.skills-column-title {
    font-size: 14px;
    font-weight: 700;
    color: #81EF30;
    border-bottom: 1px dashed rgba(129, 239, 48, 0.3);
    padding-bottom: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skills-column-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-badge {
    background-color: #111112; /* Fond sombre par défaut pour l'esthétique générale */
    border: 1px solid rgba(129, 239, 48, 0.25); /* Bordure vert acide subtile */
    border-radius: 12px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 16px;
    row-gap: 2px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.skill-badge:hover {
    transform: translateY(-3px);
    background-color: #81EF30; /* Fond vert CNL complet au survol */
    border-color: #81EF30;
    box-shadow: 0 10px 25px rgba(129, 239, 48, 0.25);
}

/* Retour tactile instantané pour mobile (touch feedback) */
.skill-badge:active {
    transform: scale(0.97) translateY(0);
    background-color: #81EF30;
    border-color: #81EF30;
}

.badge-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 60px;
    height: 60px;
    background-color: #ffffff; /* Cercle blanc pour faire ressortir les logos */
    border-radius: 50%;
    padding: 10px;
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.badge-icon svg[fill="none"] {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skill-badge:hover .badge-icon, .skill-badge:active .badge-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.badge-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff; /* Texte blanc sur fond sombre par défaut */
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
    text-align: left;
}

.skill-badge:hover .badge-title, .skill-badge:active .badge-title {
    color: #000000; /* Devient noir sur fond vert lors du survol/toucher */
}

.badge-subtitle {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: 10px;
    color: #81EF30; /* Catégorie verte sur fond sombre par défaut */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    transition: color 0.3s ease;
    text-align: left;
}

.skill-badge:hover .badge-subtitle, .skill-badge:active .badge-subtitle {
    color: #222222; /* Devient gris foncé sur fond vert lors du survol/toucher */
}

.badge-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}




/* LIGHTBOX MODAL POUR LES SKILLS */
.skills-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.skills-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    background-color: #111111;
    border: 2px solid #81EF30;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(129, 239, 48, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.skills-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 32px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: #81EF30;
}

.lightbox-logo-container {
    width: 140px;
    height: 140px;
    background-color: #ffffff;
    border-radius: 50%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #111111;
}

.lightbox-logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-logo-container svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.lightbox-logo-container svg[fill="none"] {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-top: 10px;
}

.lightbox-subtitle {
    font-size: 12px;
    color: #81EF30;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.lightbox-details {
    width: 100%;
    text-align: left;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px dashed #333333;
    padding-top: 15px;
}

.detail-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 10px;
    color: #81EF30; /* Vert acide CNL */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.detail-text {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .skills-columns-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    /* Mobile Hamburger Menu */
    .burger-menu-btn {
        display: flex;
    }

    .burger-menu-btn.active .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #81EF30;
    }

    .burger-menu-btn.active .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .burger-menu-btn.active .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #81EF30;
    }

    .navbar nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 7, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 40px;
    }

    .navbar nav.active {
        transform: translateX(0);
    }

    .navbar .nav-item {
        font-size: 20px;
        font-weight: 600;
        color: #ffffff;
        text-align: center;
    }

    .navbar .contact-link {
        font-size: 18px;
        padding: 12px 30px;
        border-radius: 6px;
        margin-top: 10px;
        border-style: solid;
    }

    .navbar .nav-lock-link {
        padding: 12px 20px;
        border-radius: 6px;
        font-size: 18px;
    }

    .section-hero {
        height: auto;
        padding: 80px 20px;
    }

    .section-hero h1 {
        font-size: 32px;
    }

    .card-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    /* Correction aspect-ratio cartes sur mobile */
    .card, .card-glow-1, .card-glow-2, .card-glow-3 {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: auto;
        height: auto;
        min-height: unset;
    }

    .card:hover {
        transform: scale(1.02);
    }

    .row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .threat-info {
        max-width: 100%;
    }

    .threat-cost {
        text-align: left;
        margin-top: 4px;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    /* Typographies et ajustements mobiles pour les pages solutions */
    .solutions-intro h1 {
        font-size: 28px !important;
    }

    .detail-hero h1 {
        font-size: 28px !important;
    }

    .detail-hero .subtitle {
        font-size: 14px !important;
    }

    .detail-body h2 {
        font-size: 18px !important;
    }

    .action-banner h3 {
        font-size: 18px !important;
    }

    .action-banner {
        padding: 30px 20px !important;
    }

    /* METHODOLOGY RESPONSIVE OVERRIDES */
    .section-methodology h2 {
        font-size: 28px;
    }

    .methodology-intro {
        margin-bottom: 40px;
    }

    .timeline {
        padding-left: 30px;
        margin-left: 10px;
        gap: 40px;
    }

    .timeline-item:not(:last-child)::before {
        left: -30px;
        top: 36px;
        height: calc(100% - 36px + 40px);
    }

    .timeline-badge {
        left: -48px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* COMBINED LAYOUT RESPONSIVE OVERRIDES */
    .combined-container {
        flex-direction: column;
        gap: 50px;
    }

    .combined-left, .combined-right {
        width: 100%;
    }

    .combined-left h2, .combined-right h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .terminal-intro {
        margin-bottom: 30px;
    }

    .terminal-body {
        padding: 20px;
        min-height: 220px;
    }

    .terminal-line {
        font-size: 14px;
    }

    .terminal-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .terminal-controls {
        padding: 0 20px 20px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .term-action-btn {
        width: 100%;
        padding: 12px;
    }

    .terminal-btn-start {
        display: block;
        width: 100%;
        text-align: center;
    }

    .terminal-btn-cta, .terminal-btn-cta-danger {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .terminal-btn-restart {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* SKILLS RESPONSIVE OVERRIDES */
    .section-skills {
        padding: 50px 16px;
    }

    .skills-columns-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .skills-column {
        border-bottom: 1px dashed rgba(129, 239, 48, 0.25);
    }

    .skills-column:last-child {
        border-bottom: none;
    }

    .skills-column-title {
        font-size: 13px;
        margin-bottom: 0;
        padding: 18px 0;
        border-bottom: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
    }

    .skills-column-title::after {
        content: "[+]";
        font-size: 12px;
        font-weight: bold;
        color: #81EF30;
        transition: color 0.2s ease;
    }

    .skills-column.active .skills-column-title::after {
        content: "[-]";
    }

    .skills-column-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        gap: 12px;
        padding-bottom: 0;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding-bottom 0.3s ease;
    }

    .skills-column.active .skills-column-list {
        max-height: 700px;
        opacity: 1;
        padding-bottom: 24px;
    }

    .skill-badge {
        grid-template-columns: 50px 1fr;
        column-gap: 12px;
        padding: 12px 16px;
        border-radius: 10px;
    }

    .badge-icon {
        width: 50px;
        height: 50px;
        padding: 8px;
    }

    .badge-title {
        font-size: 13px;
        text-align: left;
    }

    .badge-subtitle {
        font-size: 9px;
        text-align: left;
    }

    /* LIGHTBOX RESPONSIVE OVERRIDES */
    .lightbox-content {
        padding: 30px 20px;
        max-width: 320px;
        gap: 16px;
    }

    .lightbox-logo-container {
        width: 100px;
        height: 100px;
        padding: 12px;
    }

    .lightbox-title {
        font-size: 18px;
    }

    .lightbox-subtitle {
        font-size: 10px;
    }

    .lightbox-details {
        margin-top: 10px;
        padding-top: 10px;
        gap: 10px;
    }

    .detail-text {
        font-size: 11px;
    }
}

/* CLASSE UTILITAIRE DE MASQUAGE POUR LA CSP STRICTE */
.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden !important;
}

/* ==============================================================================
   ANIMATIONS DE SOUMISSION ET SPINNER (CNL)
   ============================================================================== */

/* Spinner sur le bouton de soumission */
.btn-modal-submit.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #55aa1a !important;
    cursor: not-allowed;
}

.btn-modal-submit.loading svg.spinner {
    animation: cnl-rotate 2s linear infinite;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.btn-modal-submit.loading svg.spinner .path {
    stroke: #000000;
    stroke-linecap: round;
    animation: cnl-dash 1.5s ease-in-out infinite;
}

@keyframes cnl-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes cnl-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Zone d'animation de succès dans la modale */
.modal-success-anim {
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 20px 0;
}

.modal-success-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cercle et coche animés en SVG */
.success-checkmark {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px auto;
}

.success-checkmark .checkmark-svg {
    width: 72px;
    height: 72px;
    display: block;
}

.success-checkmark .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: rgba(129, 239, 48, 0.15); /* cercle vert translucide en fond */
    fill: none;
}

.success-checkmark .checkmark-circle-active {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: #81EF30; /* cercle vert actif */
    fill: none;
    animation: cnl-draw-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark .checkmark-check {
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #81EF30; /* coche verte */
    fill: none;
    animation: cnl-draw-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes cnl-draw-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}