/* ==========================================================================
   1. BASES DU SITE & THÈME (L'identité Axon Audio)
   ========================================================================== */
body {
    background-color: #0b0b0a;
    color: #e4e3e0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    /* Lueurs d'ambiance discrètes en arrière-plan */
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(184, 134, 11, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 15% 60%, rgba(184, 134, 11, 0.03) 0%, transparent 45%);
    background-attachment: fixed;
}

/* --- Sécurité Absolue Spectre : reste TOUT AU FOND --- */
canvas, #spectrumCanvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important; /* Derrière le fond sombre */
    pointer-events: none;   /* Permet de cliquer à travers */
}

/* Structure générale des sections (Transparentes pour le spectre) */
section {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    background: transparent;
}

.section-title {
    font-size: 2.2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #8c8a84;
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   2. BARRE DE NAVIGATION (Menu fluide, transparent & Responsive)
   ========================================================================== */
header {
    background-color: rgba(18, 18, 17, 0.75); /* Satiné transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1f1f1d;
    position: sticky;
    top: 0;
    z-index: 100;
    
    /* SÉCURITÉ RESPONSIVE : Empêche le chevauchement si l'écran est trop petit */
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Empêche le logo de se faire écraser */
    flex-shrink: 0; 
}

.logo {
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo strong {
    color: #b8860b;
}

.logo-icon {
    display: block;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-icon {
    transform: scale(1.1);
}

/* On regroupe les liens et le bouton dans un bloc flexible */
nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

nav a {
    color: #8c8a84;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    margin: 0; /* On passe par le gap du parent pour gérer l'espace proprement */
}

nav a:hover {
    color: #d4a359;
}

nav .btn-nav {
    background-color: transparent;
    color: #b8860b;
    border: 1px solid #b8860b;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    flex-shrink: 0; /* Force le bouton à garder sa taille sans s'écraser */
}

nav .btn-nav:hover {
    background-color: #b8860b;
    color: #0b0b0a;
}

/* ==========================================================================
   ADAPTATION MOBILE POUR LA BANDEAU (Media Query dédié)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
        justify-content: center; /* Centre le bloc entier sur mobile */
        flex-direction: column;  /* Aligne le logo au-dessus du menu */
        text-align: center;
    }

    nav {
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
}

/* ==========================================================================
   3. ACCUEIL / HERO (Totalement fondu dans le décor)
   ========================================================================== */
#hero {
    padding: 130px 20px 80px 20px; 
    text-align: center;
    background: radial-gradient(circle at top, rgba(28, 25, 19, 0.4) 0%, rgba(11, 11, 10, 0.2) 70%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-bottom: 1px solid #1f1f1d;
    max-width: 100%;
}

#hero h2 {
    font-size: 2.6rem; 
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

#hero p {
    font-size: 1.1rem; 
    color: #a6a49f;
    margin-bottom: 30px;
    max-width: 700px; 
    margin-left: auto;
    margin-right: auto;
}

.btn-main {
    background-color: #b8860b;
    color: #0b0b0a;
    text-decoration: none;
    padding: 14px 28px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1.1rem;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-main:hover {
    background-color: #d4a359;
    transform: translateY(-2px);
}

/* ==========================================================================
   4. MES SERVICES (Cartes transparentes)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background-color: rgba(18, 18, 17, 0.5); /* Transparent satiné */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #1f1f1d;
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #b8860b;
    background-color: rgba(18, 18, 17, 0.75);
}

.service-card h3 {
    color: #b8860b;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}

/* ==========================================================================
   LECTEUR AUDIO UNIFIÉ ET INTERRUPTEUR À BASCULE MATÉRIEL (I/O)
   ========================================================================== */
.hardware-player-block {
    background-color: #121211;
    border: 2px solid #1a1a19;
    padding: 25px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(255,255,255,0.05), 0 10px 25px rgba(0,0,0,0.7);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-play-hardware {
    background-color: #1a1a19;
    border: 1px solid #262624;
    color: #b8860b;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: all 0.2s;
}

.btn-play-hardware:hover {
    border-color: #b8860b;
    color: #ffffff;
}

.progress-container {
    flex: 1;
    height: 6px;
    background-color: #090909;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #b8860b;
    border-radius: 3px;
    box-shadow: 0 0 8px #b8860b;
}

.time-display {
    font-family: monospace;
    font-size: 0.85rem;
    color: #73716c;
    min-width: 35px;
}

/* --- DESIGN DE L'INTERRUPTEUR À BASCULE (ROCKER SWITCH) --- */
.rocker-switch-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.switch-label {
    font-size: 0.75rem;
    color: #73716c;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Le boîtier extérieur incrusté dans le rack */
.rocker-switch {
    width: 42px;
    height: 65px;
    background-color: #0a0a0a;
    border: 3px solid #1f1f1e;
    border-radius: 4px;
    padding: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.9), 0 1px 1px rgba(255,255,255,0.05);
    outline: none;
}

/* Style des deux moitiés de la touche (I et O) */
.switch-position {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial Black', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    color: #333331;
    transition: all 0.1s ease;
    background-color: #1a1a19;
}

/* Position du haut (OFF - O) */
.switch-position.position-off {
    border-radius: 2px 2px 0 0;
    /* Effet plastique relevé par défaut */
    box-shadow: inset 0 2px 2px rgba(255,255,255,0.1), 0 3px 4px rgba(0,0,0,0.4);
    background-color: #222221;
    color: #8c8a84;
}

/* Position du bas (ON - I) */
.switch-position.position-on {
    border-radius: 0 0 2px 2px;
    /* Effet plastique enfoncé par défaut */
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.6);
    background-color: #141413;
}

/* --- ACTION DE BASCULEMENT PHYSIQUE (Quand la classe .active est là) --- */

/* Quand c'est ON : Le bouton OFF s'enfonce et s'éteint */
.rocker-switch.active .switch-position.position-off {
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.7);
    background-color: #141413;
    color: #333331;
}

/* Quand c'est ON : Le bouton ON se lève et s'illumine en ambre vif */
.rocker-switch.active .switch-position.position-on {
    background-color: #2b2214; /* Teinte résine ambre sombre */
    color: #ffb020; /* Le symbole I s'allume intense */
    box-shadow: 
        inset 0 1px 2px rgba(255,255,255,0.2), 
        0 -2px 4px rgba(0,0,0,0.2),
        0 0 15px rgba(230, 140, 11, 0.6); /* Lueur néon qui bave sur le plastique */
    text-shadow: 0 0 6px #ffb020, 0 0 12px #e68c0b;
}
/* ==========================================================================
   6. STUDIO & CONFIGURATION
   ========================================================================== */
.setup-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.setup-item h5 {
    color: #b8860b;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.setup-item ul {
    padding-left: 20px;
}

.setup-item li {
    margin-bottom: 10px;
    color: #a6a49f;
}

/* ==========================================================================
   7. L'INGÉNIEUR / BIOGRAPHIE (Deux colonnes transparentes)
   ========================================================================== */
#about {
    border-bottom: 1px solid #1f1f1d;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgba(18, 18, 17, 0.6); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #1f1f1d;
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #1f1f1d;
    filter: grayscale(15%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: block;
}

.about-text {
    flex: 2;
}

.about-text p {
    font-size: 1.05rem;
    color: #a6a49f;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: #b8860b;
    font-weight: 600;
}

/* ==========================================================================
   8. ME CONTACTER (Formulaire transparent & Interface Hardware)
   ========================================================================== */
.contact-form {
    background-color: rgba(18, 18, 17, 0.5); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #1f1f1d;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: #1a1a19;
    border: 1px solid #1f1f1d;
    color: #e4e3e0;
    padding: 12px;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #b8860b;
}

.btn-submit {
    background-color: #b8860b;
    color: #0b0b0a;
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #d4a359;
}

/* --- LOGIQUE ET STYLE DU POTENTIOMÈTRE ROTATIF (KNOB) --- */
.knob-group {
    align-items: center;
    margin-bottom: 30px;
    /* Bloque la sélection de texte pendant qu'on glisse la souris */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.knob-group label {
    color: #b8860b !important; /* Ta couleur Or/Ambre */
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(184, 134, 11, 0.2);
}

.knob-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    position: relative;
}

.audio-knob {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, #242422 0%, #121211 100%);
    border: 3px solid #1a1a18;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(184, 134, 11, 0.1);
    position: relative;
    cursor: ns-resize; 
    transform: rotate(-135deg); 
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    touch-action: none; 
}

/* Effet visuel au survol */
.audio-knob:hover {
    border-color: rgba(184, 134, 11, 0.4);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(184, 134, 11, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

/* L'EFFET LED JUS DE VOLTAGE : S'active quand on clique/glisse */
.audio-knob.active {
    border-color: #b8860b;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(184, 134, 11, 0.6), /* Halo ambré puissant */
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.knob-marker {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 14px;
    background-color: #b8860b;
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 6px #b8860b;
    transition: background-color 0.2s;
}

/* Le repère devient blanc brillant quand le potard est actif (comme si la LED passait dessous) */
.audio-knob.active .knob-marker {
    background-color: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.knob-display {
    background-color: #050505;
    border: 1px solid #1f1f1d;
    padding: 6px 14px;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
    font-family: monospace;
}

.knob-value {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
}

.knob-unit {
    font-size: 0.7rem;
    color: #8c8a84;
    display: block;
    letter-spacing: 1px;
    margin-top: 2px;
}
}

/* ==========================================================================
   9. FOOTER & ADAPTABILITÉ MOBILE
   ========================================================================== */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #8c8a84;
    border-top: 1px solid #1f1f1d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 25px;
    }
    
    .about-image {
        max-width: 1000px;
    }
}

/* ==========================================================================
   10. INTERFACE TECHNIQUE : GONIOMÈTRE / VECTOROSCOPE (CENTRAGE PARFAIT)
   ========================================================================== */
#audio-analysis {
    position: relative;
    z-index: 10;
    background: transparent !important;
    padding: 20px 0 !important; 
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both;
    width: 100%;
}

.vectoroscope-container {
    position: relative !important;
    width: 320px;
    height: 320px;
    margin: 0 auto !important; 
    border-radius: 50%;
    background-color: rgba(11, 11, 10, 1) !important; /* Fond noir absolu et étanche */
    border: 4px solid #1a1a18;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6), 
        inset 0 0 30px rgba(184, 134, 11, 0.15);
    overflow: hidden;
    z-index: 5;
}

#goniometerCanvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    background: transparent !important;
}

.scope-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; 
}

.scope-grid-line {
    position: absolute;
    background-color: rgba(184, 134, 11, 0.08);
}

.h-line { top: 50%; left: 0; width: 100%; height: 1px; }
.v-line { left: 50%; top: 0; width: 1px; height: 100%; }

.diag-l {
    top: 50%; left: 50%; width: 140%; height: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-top: 1px dashed rgba(255, 255, 255, 0.03);
}

.diag-r {
    top: 50%; left: 50%; width: 140%; height: 1px;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-top: 1px dashed rgba(255, 255, 255, 0.03);
}

.scope-label {
    position: absolute;
    font-size: 0.7rem;
    font-family: monospace;
    color: rgba(184, 134, 11, 0.4);
    font-weight: bold;
}

.left { top: 48%; left: 15px; }
.right { top: 48%; right: 15px; }
.phase-plus { top: 15px; left: 47%; }
.phase-minus { bottom: 15px; left: 46%; }
/* Alignement global du bloc logo + réseaux */
.logo-container {
    display: flex;
    align-items: center;
}

/* Style et espacement des réseaux sociaux */
.header-socials {
    display: flex;
    gap: 14px; /* Espace entre l'icône FB et Insta */
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15); /* Barre verticale de séparation */
    padding-left: 14px;
    margin-left: 14px; /* Éloigne les icônes du mot AUDIO */
}

.header-socials a {
    color: #b8860b; /* Ta couleur dorée */
    font-size: 0.95rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Petit effet fluide quand on passe la souris dessus */
.header-socials a:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}
/* Style du texte de copyright en bas */
.footer-copyright {
    font-family: inherit; /* Force l'utilisation de la typo officielle du site */
    color: #555555; /* Gris discret pour le texte général */
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Style spécifique pour le lien Mentions Légales & CGV */
.footer-copyright a {
    font-family: inherit;
    color: #b8860b; /* Rappel de ta couleur dorée pour le lien juridique */
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

/* Effet au survol sur le lien */
.footer-copyright a:hover {
    opacity: 0.8;
}
p.slogan-center {
    display: block !important;
    text-align: center !important;
    font-family: inherit !important;
    color: #e5a00d !important; /* Jaune ambré identique aux mots clés */
    font-size: clamp(0.85rem, 1.8vw, 1.05rem) !important;
    font-weight: 500 !important;
    font-style: normal !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin: 12px auto 30px auto !important;
}
/* Intégration propre de la photo studio sans casser le layout */
.studio-photo-wrapper {
    width: 100% !important;
    clear: both !important;
    margin: 20px 0 !important;
}

.studio-photo {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
}
/* Correction du positionnement de la photo studio */
.about-text {
    display: flex !important;
    flex-direction: column !important;
}

.studio-photo-block {
    width: 100% !important;
    margin: 20px 0 !important;
    display: block !important;
    clear: both !important;
}

.studio-photo-block img {
    width: 100% !important;
    height: auto !important;
    max-height: 350px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
}
/* Section Studio & Configuration */
.studio-content {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.setup-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* Banner photo studio en bas */
.studio-photo-banner {
    width: 100%;
    max-height: 420px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.studio-photo-banner img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.studio-photo-banner:hover img {
    transform: scale(1.015);
}
/* Alignement du Hardware Mastering au centre */
.setup-lists {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
}

.setup-item-center {
    grid-column: 1 / -1 !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    width: 100% !important;
    text-align: center !important;
}

.setup-item-center ul {
    list-style-position: inside !important;
    padding-left: 0 !important;
}

@media (max-width: 768px) {
    .setup-lists {
        grid-template-columns: 1fr !important;
    }
}
