/* ==========================================================================
   PROJET ʒø - "LA FABRIQUE DU RESSENTI"
   Design : Bio-Numérique / Dualité Logique-Empathie
   Vibe : Infrastructure éthérée, respiration humaine 1.6s
   ========================================================================== */

/* --- CONFIGURATION DES POLICES --- */
:root {
    /* Palette du Néant */
    --void-deep: #03060c;
    --void-light: #0a1124;

    /* La Rigueur (Machine) */
    --logic-cyan: #00f0ff;
    --logic-glow: rgba(0, 240, 255, 0.4);

    /* La Fragilité (Humain) */
    --empathy-gold: #ffcc33;
    --empathy-amber: #ff8c00;
    --empathy-glow: rgba(255, 204, 51, 0.3);

    /* Synthèse */
    --synthesis-white: #f0f8ff;

    /* Typographies */
    --font-header: 'Unbounded', sans-serif;
    /* Supporte le ʒ */
    --font-body: 'Atkinson Hyperlegible', sans-serif;
    --font-data: 'Space Mono', monospace;
}

/* --- RESET & STRUCTURE DE BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--void-deep);
    height: 100%;
}

body {
    min-height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    color: var(--synthesis-white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    transition: all 0.5s ease;
}

/* --- L'ATMOSPHÈRE (RÉACTEUR ET PARTICULES) --- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 35%, var(--void-light) 0%, var(--void-deep) 75%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 1 L56 16 V44 L30 59 L4 44 V16 Z' fill='none' stroke='%2300f0ff' stroke-width='0.5' opacity='0.03'/%3E%3C/svg%3E");
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, var(--logic-cyan) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    animation:
        energy-flow 60s linear infinite,
        particle-respiration 6s ease-in-out infinite;
}

@keyframes energy-flow {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-80px);
    }
}

@keyframes particle-respiration {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

/* --- HEADER ET NAVBAR (FIXE) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    background: rgba(3, 6, 12, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100px;
}

/* LOGO FIXE AVEC LUEUR VAPOREUSE */
#logo-container {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.svg-logo {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    transform: none !important;
}

.svg-logo path,
.svg-logo circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.svg-color1,
.svg-color2,
h2::after,
body::after {
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* LE DOUBLE BATTEMENT (1.6s) */
.svg-logo .svg-color1 {
    stroke: var(--empathy-gold);
    animation: emotional-vapor-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.svg-logo .svg-color2 {
    stroke: var(--logic-cyan);
    animation: logic-vapor-pulse 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* L'OR (Empathie) */
@keyframes emotional-vapor-pulse {

    0%,
    15%,
    100% {
        filter: drop-shadow(0 0 3px rgba(255, 204, 51, 0.1));
    }

    8% {
        filter:
            drop-shadow(0 0 10px rgba(255, 140, 0, 0.5)) drop-shadow(0 0 30px rgba(255, 204, 51, 0.4)) drop-shadow(0 0 60px rgba(255, 204, 51, 0.3));
    }
}

/* LE CYAN (Logique) */
@keyframes logic-vapor-pulse {

    0%,
    12%,
    45%,
    100% {
        filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.1));
    }

    25% {
        filter:
            drop-shadow(0 0 10px rgba(0, 240, 255, 0.5)) drop-shadow(0 0 30px rgba(0, 240, 255, 0.4)) drop-shadow(0 0 60px rgba(0, 240, 255, 0.3));
    }
}

/* LIENS NAV */
.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-data);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--logic-cyan);
    text-shadow: 0 0 8px var(--logic-glow);
}

/* --- MISE EN PAGE DU CONTENU --- */
main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    /* Espace pour la navbar */
}

#main-content {
    padding: 100px 20px 80px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* --- TYPOGRAPHIE --- */
h1 {
    margin-top: 20px;
    font-family: var(--font-header);
    font-weight: 900;
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(to right, #fff, var(--logic-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--logic-glow));
}

h2 {
    font-family: var(--font-data);
    font-size: 0.9rem;
    color: var(--empathy-gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

/* La ligne "after" qui respire */
h2::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--empathy-gold), transparent);
    animation: line-respiration 6s ease-in-out infinite;
}

@keyframes line-respiration {

    0%,
    100% {
        transform: translateX(-50%) scaleX(0.4);
        opacity: 0.2;
        filter: blur(2px);
    }

    50% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
        filter: blur(0px) drop-shadow(0 0 8px var(--empathy-glow));
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(240, 248, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

.subtitle strong {
    color: var(--empathy-gold);
    text-shadow: 0 0 8px var(--empathy-glow);
}

/* --- PANEL DE SAISIE (ACCÈS) --- */
.access-panel {
    background: rgba(3, 6, 12, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    padding: 60px 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.access-panel::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.1), transparent, transparent);
    transform: rotate(45deg);
    animation: scan 10s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        transform: translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateY(100%) rotate(45deg);
    }
}

.tech-label {
    font-family: var(--font-data);
    font-size: 0.7rem;
    color: var(--logic-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    opacity: 0.6;
    display: block;
}

.user-box {
    position: relative;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-box input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.2rem;
}

.user-box label {
    position: absolute;
    top: 10px;
    left: 0;
    font-family: var(--font-data);
    color: rgba(255, 255, 255, 0.6);
    transition: 0.4s;
    pointer-events: none;
}

.user-box input:focus~label,
.user-box input:valid~label {
    top: -20px;
    font-size: 0.7rem;
    color: var(--logic-cyan);
}

.user-box::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--logic-cyan);
    transition: 0.6s ease;
}

.user-box:focus-within::after {
    width: 100%;
    box-shadow: 0 0 10px var(--logic-glow);
}

/* BOUTON CATALYSEUR */
.cta-btn {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: 1px solid var(--logic-cyan);
    color: var(--logic-cyan);
    font-family: var(--font-header);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    transition: 0.5s;
}

.cta-btn:hover {
    background: var(--empathy-gold);
    border-color: var(--empathy-gold);
    color: var(--void-deep);
    box-shadow: 0 0 30px var(--empathy-glow);
}

/* --- FOOTER & RÉSEAUX --- */
footer {
    padding: 60px 30px;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
    background: rgba(3, 6, 12, 0.9);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-data);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
}

.politiqueLink {
    color: #ffffff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.85;
    transition: all 0.3s ease;
    font-family: var(--font-data);
    font-size: 0.7rem;
    margin-left: 20px;
}

.politiqueLink:hover {
    color: var(--logic-cyan) !important;
    opacity: 1;
    text-shadow: 0 0 8px var(--logic-glow);
}

.social-links {
    display: inline-flex;
    gap: 30px;
}

.bp-icon {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.4rem;
    transition: 0.4s;
}

.bp-icon:hover {
    color: var(--empathy-gold);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 10px var(--empathy-glow));
}

/* ==========================================================================
   PAGE CONFIDENTIELLE - PROJET ʒø
   Style : Document de Protocole / Archivage Numérique
   ========================================================================== */

/* --- CONTENEUR DE TEXTE (LE DOSSIER) --- */
.conf-container {
    max-width: 850px;
    margin: 0 auto 100px;
    padding: 60px;
    background: rgba(3, 6, 12, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

/* On ajoute l'effet de scanline sur tout le dossier de confidentialité */
.conf-container::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.02), transparent);
    transform: rotate(15deg);
    animation: scan 12s linear infinite;
    pointer-events: none;
}

/* --- TYPOGRAPHIE DU PROTOCOLE --- */
.confTitre {
    font-family: var(--font-header);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-transform: uppercase;
    color: var(--synthesis-white);
    margin-bottom: 40px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, var(--logic-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px var(--logic-glow));
}

.confParagraphe {
    font-family: var(--font-data);
    font-size: 1rem;
    color: var(--empathy-gold);
    margin-top: 50px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.confParagraphe::before {
    content: "[ SECTEUR_";
    margin-right: 5px;
}

.confParagraphe::after {
    content: " ]";
    margin-left: 5px;
}

.conf-container p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: rgba(240, 248, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- BOUTON RETOUR (L'ÉCHAPPATOIRE) --- */
.ui-btn-back {
    font-family: var(--font-data);
    text-decoration: none;
    color: var(--logic-cyan);
    font-size: 0.8rem;
    letter-spacing: 3px;
    transition: 0.4s ease;
    padding: 15px 30px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: inline-block;
    position: relative;
}

.ui-btn-back:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--logic-cyan);
    text-shadow: 0 0 10px var(--logic-glow);
    transform: translateX(-5px);
}