/* ============================================================================
   COMPOSANTS RÉUTILISABLES
   
   Tous les éléments UI partagés entre les pages :
   - Curseur personnalisé
   - Effets d'arrière-plan (grille + cercles)
   - Header & navigation
   - Navigation latérale (dots)
   - Utilitaires typographiques
   
   Ces composants garantissent la cohérence visuelle sur tout le site.
   ============================================================================ */

/* ========================================
   CURSEUR PERSONNALISÉ
   
   Cercle doré qui suit la souris
   Élément signature de l'identité visuelle
======================================== */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    pointer-events: none;  /* Transparent aux clics */
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
    mix-blend-mode: difference;  /* S'adapte aux fonds */
    will-change: transform;      /* Optimisation GPU */
}

.custom-cursor--hover {
    width: 40px;
    height: 40px;
}

/* ========================================
   GRILLE D'ARRIÈRE-PLAN
   
   Grille subtile qui structure visuellement l'espace
======================================== */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(var(--overlay-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--overlay-light) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: var(--z-background);
    opacity: 0.3;
    pointer-events: none;
}

/* ========================================
   CERCLES ANIMÉS
   
   Éléments décoratifs en rotation constante
   Ajoutent du mouvement subtil à l'arrière-plan
======================================== */
.nexus-rings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 1000px);
    height: min(80vw, 1000px);
    pointer-events: none;
    z-index: var(--z-background);
    opacity: 0.15;
}

.nexus-ring {
    position: absolute;
    inset: 0;
    border: 1px dashed var(--color-text);
    border-radius: 50%;
}

/* Cercle extérieur - rotation horaire lente */
.nexus-ring--outer {
    animation: rotate-clockwise 25s linear infinite;
}

/* Cercle intérieur - rotation anti-horaire */
.nexus-ring--inner {
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-style: solid;
    opacity: 0.5;
    animation: rotate-counter-clockwise 20s linear infinite;
}

/* Point lumineux bleu sur le cercle extérieur */
.nexus-ring--outer::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--color-accent);
}

@keyframes rotate-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-counter-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* ========================================
   HEADER & NAVIGATION PRINCIPALE
======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: var(--color-secondary);
    padding: var(--spacing-sm) 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--overlay-light);
    backdrop-filter: blur(10px);  /* Flou sur scroll */
}

.site-logo {
    font-family: var(--font-display);
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo__image {
    height: auto;
    width: 150px;
}

.site-nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.site-nav__link {
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.site-nav__link:hover,
.site-nav__link--active {
    color: var(--color-accent);
}

/* ========================================
   NAVIGATION LATÉRALE (DOTS)
   
   Points de navigation fixés sur le côté
   S'activent automatiquement au scroll
======================================== */
.side-nav {
    position: fixed;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: var(--z-nav-dots);
}

.side-nav__dot {
    width: 8px;
    height: 8px;
    background: var(--overlay-light);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.side-nav__dot--active {
    background: var(--color-accent);
    transform: scale(1.5);
    box-shadow: 0 0 10px var(--color-accent);
}

/* ========================================
   UTILITAIRES TYPOGRAPHIQUES
======================================== */

/* Titres en Bebas Neue */
.heading {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 0.9;
}

/* Labels techniques avec trait doré */
.tech-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.tech-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--color-gold);
}

/* ========================================
   LAYOUT DE SECTION STANDARD
======================================== */
.section {
    position: relative;
    min-height: 100vh;
    padding: var(--spacing-xl) 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   FOOTER GLOBAL
   
   Footer unifié sur toutes les pages
   (sauf page contact)
======================================== */
.footer {
    background: var(--color-secondary);
    border-top: 1px solid var(--overlay-light);
    text-align: center;
    padding: var(--spacing-lg) 5vw;
    min-height: auto !important; /* Override .section min-height */
}

/* Enlève la bordure si même fond que section précédente */
.footer--no-border {
    border-top: none;
    background: transparent;
}

.footer__title {
    font-size: clamp(40px, 6vw, 80px);
    margin-bottom: var(--spacing-md);
}

.footer__email {
    font-family: var(--font-mono);
    color: var(--color-gold);
    text-decoration: none;
    border: 2px solid var(--color-gold);
    padding: 15px 35px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.footer__email:hover {
    background: var(--color-gold);
    color: var(--color-secondary);
}

.footer__copyright {
    margin-top: 50px;
    color: var(--color-text);
    font-size: 11px;
    font-family: var(--font-mono);
    opacity: 0.6;
}