/* ============================================
   BOUTONS
   ============================================ */

/* On déclare une propriété CSS animable — l'angle de rotation */
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.btn {
    position: absolute;
    bottom: 16rem;
    right: 9.6rem;
    background-color: var(--color-accent);
    color: var(--color-text-accent);
    font-family: var(--font-inter);
    font-weight: var(--fw-semibold);
    font-size: 1.8rem;
    padding: 1.6rem 3.2rem;
    border-radius: 10rem;

    /* La bordure animée via border-image */
    border: 2px solid transparent;
    background-clip: padding-box;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10rem;
    z-index: -1;

    /* Dégradé conique qui utilise --angle comme point de départ
       @property permet d'animer cet angle directement en CSS */

    background: conic-gradient(
        from var(--angle),
        transparent 0%,
        transparent 40%,
        white 50%,
        #b3e412 55%,
        transparent 65%,
        transparent 100%
    );

    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Fond intérieur pour cacher le centre */
.btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background-color: var(--color-accent);
    border-radius: 10rem;
    z-index: -1;
}

.btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(179, 228, 18, 0.5);
}

/* Au hover — on active l'animation */
.btn:hover::before {
    opacity: 1;
    animation: rotationAngle 1.5s linear infinite;
}

.btn-secondary {
    font-family: var(--font-inter);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--color-accent);
    transition: opacity 0.2s ease;
}

.btn-secondary:hover {
    opacity: 0.7;
}

@keyframes rotationAngle {
    from { --angle: 0deg;   }
    to   { --angle: 360deg; }
}

/* ============================================
   TAGS & BADGES
   ============================================ */

.tags {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.tags li {
    background-color: #1a1a1a;
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    padding: 0.8rem 1.6rem;
    border-radius: 10rem;
}

/* ============================================
   CARDS — SERVICES
   ============================================ */

.service-card {
    /* Ton layout existant */
    flex: 1;
    border: 1px solid #1a1a1a;
    padding: 3.2rem;
    border-radius: 0.8rem;
    cursor: pointer;

    /* Nécessaire pour le spotlight (pseudo-élément) */
    position: relative;
    overflow: hidden;

    /* On retire background-color de la transition
       car le spotlight gère maintenant l'effet de fond */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;

    transform-style: preserve-3d;
    will-change: transform;
}

/* SPOTLIGHT — pseudo-élément ::before
   Couche de dégradé qui suit la souris */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;

    /* Dégradé radial centré sur --souris-x et --souris-y
       mis à jour en temps réel par JS */
    background: radial-gradient(
        circle at var(--souris-x, 50%) var(--souris-y, 50%),
        rgba(179, 228, 18, 0.18) 0%,
        rgba(179, 228, 18, 0.06) 40%,
        transparent 70%
    );

    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

/* JS ajoute .card-active → spotlight visible */
.service-card.card-active::before {
    opacity: 1;
}

/* Ton ::after existant — la flèche ↗ — on le garde intact */
.service-card::after {
    content: '↗';
    position: absolute;
    top: 3.2rem;
    right: 3.2rem;
    font-size: 2rem;
    color: var(--color-accent);
    opacity: 0;
    transform: translate(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    /* Au dessus du spotlight */
    z-index: 2;
}

.service-card:hover::after {
    opacity: 1;
    transform: translate(0);
}

/* Ombre + légère bordure accent au hover */
.service-card:hover {
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(179, 228, 18, 0.2);
}

/* Tout le contenu de la card passe au dessus du spotlight */
.service-card > * {
    position: relative;
    z-index: 1;
}

/* Tes styles existants — inchangés */
.service-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    margin-bottom: 1.6rem;
}

.service-card h3 {
    font-size: var(--fs-title2);
    font-weight: var(--fw-semibold);
    margin-bottom: 1.2rem;
}

.service-card p {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   CARDS — PROJETS
   ============================================ */

.projet-card {
    flex: none;
    width: 40rem;
    border: 1px solid #252525;
    border-radius: 0.8rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.projet-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(179, 228, 18, 0.15);
}

.projet-card img {
    width: 100%;
    height: 22.5rem;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.projet-card:hover img {
    transform: scale(1.05);
}
.projet-info {
    padding: 2.4rem;
}

.projet-info h3 {
    font-size: var(--fs-title2);
    font-weight: var(--fw-semibold);
    margin-bottom: 1.2rem;
}

.projet-info p {
    font-size: var(--fs-body);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.projet-numero {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 1.2rem;
}

.projet-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.projet-tags li {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    background-color: #1a1a1a;
    padding: 0.4rem 1.2rem;
    border-radius: 10rem;
}

/* Coming soon card */
.projet-coming-soon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    border-color: #252525;
    min-height: 40rem;
}

.projet-coming-soon p {
    font-family: var(--font-mono);
    font-size: var(--fs-body-hl);
    color: var(--color-text-secondary);
}


/* ============================================
   CARDS — CV
   ============================================ */

/* Cards — on remplace cv-grid > div par cv-card */
.cv-card {
    min-width: 45rem;
    max-width: 45rem;
    min-height: 80rem;
    padding: 3.2rem 1.6rem;
    border: 1px solid #252525;
    background-color: #111111;
    border-radius: 0.8rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cv-card:hover {
    border-color: var(--color-accent);
    box-shadow:
        0 0 15px rgba(179, 228, 18, 0.4),
        0 0 40px rgba(179, 228, 18, 0.2),
        0 0 80px rgba(179, 228, 18, 0.1);
}

/* Tout le reste de ton CSS cards reste identique
   Juste remplacer .cv-grid > div par .cv-card
   et .cv-grid ul par .cv-card ul */

.cv-card ul li {
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    line-height: 1.8;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px dashed #252525;
}

.cv-card ul li:first-child { padding-top: 0; }
.cv-card ul li:last-child { border-bottom: none; padding-bottom: 0; }

/* Titres et labels */
.cv-card h3 {
    font-size: var(--fs-title2);
    font-weight: var(--fw-bold);
    margin-bottom: 0.8rem;
}

/* Compétences — barre suffit */
.cv-competence ul li {
    border-bottom: none;
    padding-top: 0;
    padding-bottom: 0;
}

.cv-label {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    display: block;
    margin-bottom: 1.6rem;
}

.cv-sublabel {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    display: block;
    margin-top: 2rem;
    margin-bottom: 0.4rem;
}

/* Dates */
.cv-date {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.4rem;
}

/* Header card */
.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #252525;
}

.cv-numero {
    font-family: var(--font-raleway);
    font-weight: var(--fw-bold);
    font-size: 8rem;
    color: var(--color-accent);
}

.cv-header .cv-miniature {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Texte outils et pro */
.cv-tools-main {
    font-size: var(--fs-body);
    color: var(--color-text-primary);
    margin-bottom: 0.4rem;
}

.cv-tools-desc {
    font-size: var(--fs-mono);
    color: var(--color-text-secondary);
    padding-bottom: 1.6rem;
    margin-bottom: 0.4rem;
}

/* Séparateur uniquement dans outils */
.cv-outils .cv-tools-desc {
    border-bottom: 1px dashed #252525;
}

.cv-outils .cv-tools-desc:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* Barres de progression */
.barre-progress {
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 10rem;
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
}

.barre-fill {
    height: 100%;
    background-color: var(--color-accent);
    border-radius: 10rem;
}

/* ============================================
   TERMINAL / JSON / VIEWER
   ============================================ */

.json-viewer {
    flex: 1;
    background-color: var(--color-bg);
    border-radius: 0.8rem;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    max-width: 120rem;
    max-height: 30rem;
}

.json-viewer pre {
    padding: 2.4rem;
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    line-height: 1rem;
}

.json-viewer::before {
    content: '~/Anas/profile.Json';
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #555555;
    background-color: var(--color-bg);
    border: 1px solid #1a1a1a;
    padding: 1.2rem 8rem;

    background-image:
        radial-gradient(circle, #ff5f57 6px, transparent 6px),
        radial-gradient(circle, #febc2e 6px, transparent 6px),
        radial-gradient(circle, #28c840 6px, transparent 6px);

    background-repeat: no-repeat;
    background-position: 16px center, 36px center, 56px center;
    background-size: 12px 12px;
    height: 3.6rem;
}

.cmd {
    color: var(--color-text-secondary);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--color-accent);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}


.prompt {
    color: var(--color-accent);
}

.key {
    color: #c792ea;
}

.val {
    color: var(--color-accent);
}

.val-bool {
    color: #4fc1ff
}