/*
Theme Name: Portfolio
Author: Romain Testaert
Description: Mon premier portfolio créé
Version: 1.1
*/

:root {
  --color-primary: #7b3fbf;
  --color-secondary: #414b5a;
  --color-light: #fff9f2;
  --color-dark: #121212;
  --color-white: #ffffff;
  --fs-xl: 7.2rem;
  --fs-lg: 5.2rem;
  --fs-md: 2.8rem;
  --fs-base: 1.6rem;
  --fs-sm: 1.2rem;
  --spacing-xs: 1rem;
  --spacing-sm: 2rem;
  --spacing-md: 4rem;
  --spacing-lg: 8rem;
  --spacing-xl: 12rem;
  --border-radius-sm: 0.8rem;
  --border-radius-md: 1rem;
  --shadow-project: 5px 5px 15px rgba(123, 63, 191, 100%);
  --shadow-title: 2px 2px 5px rgba(0, 0, 0, 0.2);
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes flip3d { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Logo accueil */
.wp-image-166 {
  animation: fadeIn 2s ease-out, flip3d 6s linear infinite;
  animation-delay: 0s; 
  transform-style: preserve-3d; 
  width: 35rem;
  filter: drop-shadow(0 15px 30px rgba(123, 63, 191, 0.5));
  height: auto;
  display: block;
  border-radius: 1rem;
  perspective: 500px;
}

/* =========================================
   BOUTON : HYBRIDE 3D & SHIMMER ÉLITE
   ========================================= */

@keyframes shimmerEffect {
    0% { transform: translateX(-150%) skewX(-20deg); }
    100% { transform: translateX(250%) skewX(-20deg); }
}

.wp-block-button__link,
.wp-block-read-more {
    display: inline-block !important;
    padding: 20px 50px !important; /* Gros bouton sans être imposant */
    background: var(--color-primary) !important; /* Ton violet */
    color: var(--color-white) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
    z-index: 1 !important;
    
    /* EFFET 3D (La base) */
    box-shadow: 0 6px 0px #5a2a91 !important; /* Ombre solide pour l'épaisseur */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* EFFET SHIMMER (Le rayon de lumière) */
.wp-block-button__link::before,
.wp-block-read-more::before {
    content: "" !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.25), 
        transparent
    ) !important;
    animation: shimmerEffect 3s infinite ease-in-out !important;
    z-index: 2 !important;
}

/* EFFET GLASS (Le reflet vitré sur le dessus) */
.wp-block-button__link::after,
.wp-block-read-more::after {
    content: "" !important;
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px 12px 0 0 !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

/* ÉTAT : SURVOL (Élévation) */
.wp-block-button__link:hover,
.wp-block-read-more:hover {
    transform: translateY(-4px) !important; /* Le bouton monte */
    box-shadow: 0 10px 0px #5a2a91, 0 15px 30px rgba(123, 63, 191, 0.4) !important;
    filter: brightness(1.1) !important;
}

/* ÉTAT : CLIC (Enfoncement physique) */
.wp-block-button__link:active,
.wp-block-read-more:active {
    transform: translateY(4px) !important; /* Le bouton s'enfonce au clic */
    box-shadow: 0 2px 0px #5a2a91 !important;
}
/* Fin bouton */

/* --- ALIGNEMENT DU BOUTON LIRE LA SUITE --- */
.wp-block-read-more {
    display: table !important; /* Permet d'utiliser les marges auto sur un élément qui n'est pas 100% large */
    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================
   RÉSEAUX SOCIAUX : GITHUB & LINKEDIN
   ========================================= */

/* 1. La Rangée (Container) */
.github {
  border-radius: 100%;
  transition: background-color 0.3s ease !important;
}

.github:hover {
  background-color: white !important;
}

/* 2. L'Image GitHub (L'état initial est CRUCIAL) */
.github img {
  /* On définit l'état de base pour que le navigateur sache d'où partir */
  transform: scale(1);
  filter: brightness(1); /* Ou tout autre filtre par défaut */
  opacity: 1;
  
  /* On applique la transition sur l'élément de base */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              filter 0.3s ease, 
              opacity 0.3s ease !important;
}

/* 3. L'Image au Survol */
.github:hover img {
  transform: scale(1.1) !important;
  filter: brightness(1.1) !important; /* Exemple d'effet fluide */
}

/* 4. Cas particulier LinkedIn */
a[href*="linkedin"] img {
  border-radius: 0 !important;
  filter: invert(0%); /* État initial pour l'inversion */
  transition: filter 0.4s ease !important;
}

a[href*="linkedin"]:hover img {
  filter: invert(100%) !important;
}
/* Navigation & Header */
header .wp-block-navigation a, footer .wp-block-navigation a {
  transition: color 0.3s ease !important;
}

header .wp-block-navigation a:hover, footer .wp-block-navigation a:hover,
.wp-block-navigation__container .wp-block-navigation-item__label:hover {
  color: #cb80ff !important;
}

p.has-medium-font-size:nth-child(3) > a:nth-child(1):hover, 
p.has-medium-font-size:nth-child(4) > a:nth-child(1):hover {
  color: #cb80ff !important;
  text-decoration: none !important;
}


.wp-block-site-title > a:nth-child(1) {
  transition: transform 0.3s ease;
}

.wp-block-site-title > a:nth-child(1):hover {
  transform: scale(1.03) translateY(-1px);
}



/* Animation Pulse CD41 */
html body.wp-singular.mes_projets-template-default.single.single-mes_projets.postid-135.logged-in.admin-bar.no-customize-support.wp-custom-logo.wp-embed-responsive.wp-theme-portfolio div.wp-site-blocks div.wp-block-group.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-6f9e75f3.wp-block-group-is-layout-constrained div.entry-content.wp-block-post-content.is-layout-flow.wp-block-post-content-is-layout-flow div.wp-block-group.has-custom-blanc-creme-color.has-custom-color-1-gradient-background.has-text-color.has-background.has-link-color.wp-elements-74b435de02b78354f5de9166930e4956.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-baa7489f.wp-block-group-is-layout-constrained h2.wp-block-heading.has-text-align-center.has-custom-blanc-creme-color.has-text-color.has-link-color.wp-elements-580a14753b7dafb5f3d3aede83216ff5 {
  animation: pulse 3s ease-in-out infinite;
}





h4 { text-shadow: var(--shadow-title); }
/* Accolade finale supprimée car elle était en trop */


/* =========================================
   COMPOSANT : ELITE INTERACTIVE CARD
   ========================================= */

.card-container {
    background: rgba(255, 255, 255, 0.05) !important; /* Ajoute cette ligne */
    backdrop-filter: blur(15px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(150%) !important;
   
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Bordure lumineuse au survol (Glow Border) */
.card-container::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    padding: 2px !important; 
    border-radius: 24px !important;
    background: linear-gradient(135deg, var(--color-primary), #cb80ff, transparent) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
}

.card-container:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(123, 63, 191, 0.25) !important;
    border-color: rgba(123, 63, 191, 0.6) !important;
}

.card-container:hover::before {
    opacity: 1 !important;
}

/* Animation de l'image interne */
.card-container img {
    width: 100% !important;
    height: auto !important;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease !important;
    filter: brightness(0.9) grayscale(10%) !important;
}

.card-container:hover img {
    transform: scale(1.12) !important;
    filter: brightness(1.1) grayscale(0%) !important;
}

/* Badge "VOIR LE PROJET" qui apparaît en glissant */
.card-container::after {
    content: "DÉCOUVRIR →" !important;
    position: absolute !important;
    bottom: 25px !important;
    right: 25px !important;
    background: var(--color-primary) !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    opacity: 0 !important;
    transform: translateX(20px) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card-container:hover::after {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* =========================================
   SCROLL ÉLITE : 3D HORIZONTAL SHOWCASE
   ========================================= */

/* On crée un conteneur qui va "fixer" la vue pendant le défilement horizontal */
.horizontal-scroll-wrapper {
    position: relative !important;
    height: 300vh; /* Longueur du scroll vertical pour faire défiler l'horizontal */
    background: transparent !important;
}

.horizontal-sticky-content {
    position: sticky !important;
    top: 0;
    height: 100vh;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    perspective: 1200px !important; /* Ajoute de la profondeur 3D */
}

.projects-container-horizontal {
    display: flex !important;
    gap: 100px !important;
    padding: 0 10vw !important;
    will-change: transform !important;
}

/* On réutilise ton style Elite Card, mais avec une touche de 3D */
.card-container {
    flex: 0 0 500px !important; /* Largeur fixe de tes cartes */
    transform-style: preserve-3d !important;
    transition: transform 0.1s ease-out !important; /* Très réactif au scroll */
}

/* Effet de profondeur : les cartes s'inclinent selon le mouvement */
.is-moving .card-container {
    transform: rotateY(-5deg) scale(0.98) !important;
}

/* 1. On s'assure que le conteneur est la référence pour le positionnement */
.card-container {
    position: relative !important;
    /* ... (garde tes autres styles de card-container) ... */
}

/* 2. Le Secret : On étire le lien présent dans la carte */
/* Cela cible le lien du titre ou n'importe quel <a> dans ta carte */
.card-container a::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 5 !important; /* Passe au-dessus du contenu mais sous le badge */
}

/* 3. On ajuste le badge "Découvrir" pour qu'il ne bloque pas le clic */
.card-container::after {
    /* ... (tes styles actuels) ... */
    pointer-events: none !important; /* Très important : laisse le clic traverser vers le lien */
    z-index: 10 !important; /* Reste visible au-dessus du lien étiré */
}

/* =========================================
   CURSEUR : VERSION LUMINESCENTE & ÉQUILIBRÉE
   ========================================= */

/* 1. Le point central : on lui ajoute un petit bord blanc pour le fond sombre */
.custom-cursor {
    position: fixed;
    width: 6px !important;
    height: 6px !important;
    background-color: var(--color-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important; /* Liseré pour visibilité sur violet */
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--color-primary) !important;
}

/* 2. L'aura : on augmente la taille à 120px et on change le mode de fusion */
.cursor-follower {
    position: fixed;
    width: 120px !important; /* Taille intermédiaire idéale */
    height: 120px !important;
    
    /* On utilise une couleur plus claire pour qu'elle "pop" sur le violet */
    background: radial-gradient(circle, rgba(203, 128, 255, 0.4) 0%, transparent 75%) !important;
    
    /* LE SECRET : mix-blend-mode screen */
    /* Cela ajoute de la lumière au fond au lieu de juste poser de la couleur */
    mix-blend-mode: screen !important; 
    
    filter: blur(5px) !important; /* Flou plus léger pour garder de la présence */
    border: none !important;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    
    transition: transform 0.12s ease-out, width 0.3s ease, height 0.3s ease !important;
}

/* 3. État au survol (Cartes et Boutons) */
body.cursor-hover .cursor-follower {
    width: 180px !important; 
    background: radial-gradient(circle, rgba(203, 128, 255, 0.6) 0%, transparent 75%) !important;
}

/* =========================================
   STYLISATION ÉLITE : IMAGES & CARTES
   ========================================= */

/* 1. Style pour les Cartes (Colonnes WordPress) */
.about-card {
    background: #7b3fbf !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(123, 63, 191, 0.2) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    height: 100% !important;
}

.about-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 20px 40px rgba(123, 63, 191, 0.15) !important;
}

/* 2. Style pour les Images (Effet cadre flottant) */
.styled-image img {
    border-radius: 20px !important;
    border: 1px solid rgba(123, 63, 191, 0.3) !important;
    box-shadow: 15px 15px 0px rgba(123, 63, 191, 0.1) !important; /* Décalage graphique */
    transition: all 0.5s ease !important;
}

.styled-image:hover img {
    box-shadow: 8px 8px 0px rgba(123, 63, 191, 0.2) !important;
    transform: scale(1.02) !important;
}

/* EFFETS */

/* =========================================
   FIX HOLOGRAPHIQUE : TAILLE & POSITION
   ========================================= */

/* 1. On centre et on limite la largeur pour éviter le "problème de taille" */
.cv-hologram-container {
    perspective: 2000px !important;
    max-width: 550px !important; /* Limite la taille du CV pour qu'il ne soit pas énorme */
    margin: 60px auto !important; /* Centre horizontalement et crée de l'espace vertical */
    padding: 20px !important;
    position: relative !important;
}

.cv-hologram-card {
    position: relative !important;
    width: 100% !important;
    transform-style: preserve-3d !important;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* 2. On force l'image à rester dans son cadre */
.cv-hologram-card img {
    width: 100% !important;
    height: auto !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(123, 63, 191, 0.2) !important; /* Rappel de ton violet */
}

/* 3. L'effet de brillance (Shine) amélioré */
.cv-hologram-card::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.4) 50%, transparent 70%) !important;
    border-radius: 15px !important;
    transform: translateZ(50px) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    pointer-events: none !important;
}



/* --- INTERACTIONS --- */
.cv-hologram-container:hover .cv-hologram-card {
    transform: rotateX(12deg) rotateY(-18deg) !important;
}

.cv-hologram-container:hover .cv-hologram-card::after {
    opacity: 1 !important;
}

.cv-hologram-container:hover .cv-badge-floating {
    transform: translate(-50%, -50%) translateZ(120px) scale(1) !important;
}

/* --- CONFIGURATION GLOBALE DES ÉTIQUETTES --- */

/* 1. Aligner et centrer le groupe d'étiquettes */
.wp-block-post-terms {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 15px 0 10px 0 !important;
}

/* 2. Cacher la virgule de séparation par défaut */
.wp-block-post-terms .wp-block-post-terms__separator {
    display: none !important;
}

/* 3. Style visuel des badges (maintenant des spans) */
.badge-item {
    display: inline-block !important;
    background-color: #f3e8ff !important; /* Violet clair */
    color: #7e22ce !important; /* Texte violet foncé */
    border: 1px solid #d8b4fe !important;
    padding: 5px 14px !important;
    border-radius: 25px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: default !important; /* Reste une flèche */
    transition: all 0.3s ease-in-out !important;
}

/* 4. Effet de survol (Hover) */
.badge-item:hover {
    background-color: #7e22ce !important; /* Fond violet foncé */
    color: #ffffff !important; /* Texte blanc */
    border-color: #7e22ce !important;
    transform: translateY(-3px) !important; /* Petit saut */
    box-shadow: 0 4px 12px rgba(126, 34, 206, 0.3) !important;
}

/* Container "Glassmorphism" */
.neon-badge-container {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.85) !important; /* Noir transparent */
    backdrop-filter: blur(10px); /* Effet verre dépoli */
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordure subtile */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
    
}

/* Le point Vert Néon (clignotant) */
.neon-dot {
    width: 10px;
    height: 10px;
    background-color: #39FF14;
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 12px #39FF14;
    animation: blink-green 1.5s infinite ease-in-out; /* Animation de clignotement */
    flex-shrink: 0;
}

/* Texte affiné */
.neon-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1;
    white-space: nowrap;
}

/* Animation de pulsation */
@keyframes blink-green {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px #39FF14;
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 5px #39FF14;
    }
}

.about-card li {
    list-style-type: none !important;
    position: relative;
    padding-left: 25px;
}

.about-card li::before {
    content: "•";
    color: #cb80ff; /* Un violet plus clair pour la puce */
    position: absolute;
    left: 0;
    font-weight: bold;
}
/* =========================================
   FIX MOBILE FINAL : NETTOYAGE COMPLET
   ========================================= */

@media (max-width: 768px) {
    /* 1. RESET TITRES & COMPETENCES */
    .rt-title { font-size: 26px !important; }
    .rt-skills { flex-direction: column !important; }

    /* 2. FIX DES BOUTONS (Image 1) : On supprime les textes fantômes et les reflets */
    .card-container::after, 
    .card-container::before,
    .wp-block-button__link::after,
    .wp-block-button__link::before,
    .wp-block-read-more::after,
    .wp-block-read-more::before {
        display: none !important;
        content: none !important; /* Supprime le "DÉCOUVRIR" qui crée le chevauchement */
    }

    .wp-block-button__link,
    .wp-block-read-more {
        padding: 12px 20px !important; 
        line-height: 1.2 !important;
        white-space: normal !important;
        text-align: center !important;
        font-size: 14px !important;
        box-shadow: none !important; /* On simplifie le bouton sur mobile */
    }

    /* 3. FIX TEXTE ACCUEIL "Bonjour..." (Image 2) : On libère la largeur */
    .reveal, 
    .wp-block-columns { 
        flex-direction: column !important;
        display: block !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
    }

    .reveal .wp-block-column,
    .reveal p {
        width: 100% !important;
        margin: 15px 0 !important;
        text-align: left !important;
        font-size: 1.1rem !important;
    }

    /* 4. SUPPRESSION TOTALE DES DÉMARCATIONS (Image 4 & Edited) */
.card-container, 
.styled-image img, 
.badge-item,
.cv-hologram-card img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* On réajuste spécifiquement la carte de compétences pour le mobile */
.about-card {
    background: #7b3fbf !important;
    margin: 0 0 2rem 0 !important; /* Marge en bas pour séparer les cartes */
    padding: 2rem 1.5rem !important; /* Un peu plus d'air en haut/bas */
    width: 100% !important; /* Force la carte à prendre toute la largeur disponible */
    height: auto !important; /* Libère la hauteur pour que le texte ne soit pas comprimé */
    display: flex !important;
    flex-direction: column !important;
}

/* Optimisation des listes à puces pour éviter les retours à la ligne inutiles */
.about-card ul {
    padding-left: 20px !important;
    margin: 0 !important;
}

.about-card li {
    font-size: 1.4rem !important; /* Taille de police plus lisible sur smartphone */
    line-height: 1.6 !important;
    margin-bottom: 10px !important;
}

    /* 5. SUPPRESSION DU CURSEUR VIOLET SUR MOBILE (Image 7) */
    .custom-cursor, 
    .cursor-follower {
        display: none !important;
    }
    .neon-badge-container {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin: 0 auto 20px auto !important; /* Centré avec espace sous le badge */
        width: fit-content !important;
        display: flex !important;
    }
    
    .wp-block-navigation__responsive-container.is-menu-open {
        background-color: var(--color-light) !important; /* Ton fond crème */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .wp-block-navigation__responsive-container-content {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 0 !important;
    }
    
    .wp-block-navigation__responsive-container.is-menu-open a {
        font-size: 1.8rem !important;
        font-weight: 700 !important;
        color: var(--color-primary) !important; /* Liens en violet */
        text-transform: uppercase !important;
        text-decoration: none !important;
        padding-right:20px;
    }

    /* Bouton de fermeture (X) */
    .wp-block-navigation__responsive-container-close {
        color: var(--color-primary) !important;
        padding-left: 20px;
        right: 30px !important;
    }
}
