/* ==========================================================================
   DESIGN SYSTEM - SILENCE AUDIO LABS (UNIFIÉ V2.1)
   ========================================================================== */
:root {
    --bg-dark: #070709;
    --card-bg: #111115;
    --border-color: #222227;
    --text-pure: #ffffff;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-gold: #d4af37;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   EN-TÊTE DE MARQUE & NAVIGATION COMMUNE
   ========================================================================== */
header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--text-pure);
    margin-bottom: 10px;
}

header h1 a {
    color: var(--text-pure);
    text-decoration: none;
    transition: color 0.2s ease;
}

header h1 a:hover {
    color: var(--accent-gold);
}

header .brand-tagline {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-gold);
    font-weight: 500;
    margin-bottom: 25px;
}

.seo-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.seo-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.seo-nav a:hover, .seo-nav a:focus {
    color: var(--accent-gold);
    font-weight: 700;
    outline: none;
}

.seo-nav .active-page {
    color: var(--text-pure);
    font-weight: 600;
}

/* ==========================================================================
   PAGE D'ACCUEIL (`index.html`)
   ========================================================================== */
.manifesto {
    text-align: center;
    max-width: 700px;
    margin: 50px auto;
}

.manifesto p {
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--text-main);
}

.manifesto-slogan {
    color: var(--accent-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-pure);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: justify;
}

/* ==========================================================================
   PAGES PRODUITS INTERNES
   ========================================================================== */
.product-hero {
    text-align: center;
    margin: 40px auto 50px auto;
    max-width: 800px;
}

.product-badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-main-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-pure);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

.tech-block {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
}

.tech-block h2 {
    font-size: 1.05rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tech-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    font-size: 0.95rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list .spec-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.specs-list .spec-value {
    color: var(--text-pure);
    font-weight: 600;
}

/* ==========================================================================
   ZONE D'ACTION (CTA) & PIED DE PAGE COMMUNS
   ========================================================================== */
.action-zone {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    background-color: transparent;
    color: var(--text-pure);
    border: 1px solid var(--text-pure);
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--text-pure);
    color: var(--bg-dark);
    outline: none;
}

footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 40px;
    text-align: center;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

footer p {
    margin-bottom: 10px;
}

/* ==========================================================================
   MISE EN PAGE ET INTEGRATION DU LABORATOIRE : CONTACT SOMBRE PREMIUM
   ========================================================================== */
.contact-title {
    text-align: center;
    color: var(--text-pure) !important;
    font-size: 1.5rem; /* Réduit de 2rem à 1.5rem pour plus de sobriété */
    font-weight: 700;
    letter-spacing: 2px; /* Léger espacement pour le côté premium */
    margin: 40px auto 25px auto;
    width: 100%;
    max-width: 1000px; /* Aligné sur la largeur du wrapper global */
}

.contact-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px auto;
    padding: 30px;
    line-height: 1.8;
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
}

.contact-intro p {
    font-size: 1.05rem;
    color: var(--text-main) !important;
    margin-bottom: 15px;
    text-align: center;
}
.contact-intro p:last-child {
    margin-bottom: 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 50px auto;
    padding: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: bold;           /* Met le texte en gras */
    margin-bottom: 8px;
    color: var(--accent-gold);   /* Applique la couleur or */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: block;
    width: 100%;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    color: var(--text-pure);
    font-family: var(--font-stack);
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
    outline: none;
}

.contact-form .cta-button {
    width: 100%;
    padding: 16px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .products-grid,
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    body { padding: 30px 20px; }
    header h1 { font-size: 1.8rem; letter-spacing: 5px; }
    .seo-nav { flex-direction: column; gap: 12px; padding: 15px; }
    .product-main-title { font-size: 1.5rem; }
    .contact-form { padding: 25px; }
}

/* ==========================================================================
   LOGO
   ========================================================================== */

header {
    text-align: center; /* Centre tout le contenu de ton en-tête */
    padding: 20px 0;
}

.brand-logo {
    display: block;
    margin: 0 auto 15px auto; /* Centre le logo et ajoute une marge en bas */
    max-width: 120px; /* Ajuste la taille maximale du logo */
    width: 100%;     /* Permet au logo d'être fluide sur mobile */
    height: auto;    /* Maintient le ratio carré parfait */
}

header h1 {
    margin-top: 0;
    margin-bottom: 5px; /* Réduit l'espace entre le titre et la tagline */
    font-size: 2em;    /* Ajuste la taille selon ton design */
}

.brand-tagline {
    font-size: 1.1em;
    color: #888; /* Couleur plus douce pour la tagline */
}

/* Taille par défaut pour ordinateur */
.brand-logo {
    display: block;
    margin: 0 auto 15px auto;
    max-width: 120px; 
    height: auto;
}

/* Réduction automatique pour les écrans de smartphone (largeur < 600px) */
@media (max-width: 600px) {
    .brand-logo {
        max-width: 70px; /* Le logo devient plus petit sur mobile */
        margin-bottom: 10px;
    }
    
    header h1 {
        font-size: 1.5em; /* Optionnel : réduit un peu le titre pour mieux équilibrer */
    }
}

/* Navigation : Blanc pur au repos, Or et gras au survol */
header nav a {
    color: #FFFFFF !important;    /* Blanc pur au repos (pour Lighthouse) */
    font-weight: 400;             /* Poids normal */
    text-decoration: none;
    transition: all 0.3s ease;    /* Transition douce pour les deux effets */
}

header nav a:hover {
    color: #D4AF37 !important;    /* Couleur Or (code hexadécimal classique) au survol */
    font-weight: 800 !important;  /* Gras forcé au survol */
}

/* centrage des blocs */
.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Ajouté pour centrer horizontalement */
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center; /* Changé de 'justify' à 'center' */
}

.tech-block {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    text-align: center; /* Centre tout le texte et les éléments enfants */
}

.tech-block h2 {
    font-size: 1.05rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 25px;
    display: inline-block; /* Permet à la bordure de s'ajuster à la longueur du titre */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tech-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: center; /* Changé de 'justify' à 'center' */
}

/* Centrage complet des éléments dans les blocs */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement tous les éléments enfants */
    text-align: center;  /* Assure que le texte à l'intérieur est centré */
}

/* Style spécifique pour la "DIVISION" au-dessus du titre */
/* Si tu n'as pas de classe dédiée, utilise '.product-badge' ou assure-toi 
   que ce texte est bien dans un élément dédié comme un <span> ou une <div> */
.product-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 10px; /* Espace entre la division et le titre */
    display: block;      /* Force le passage à la ligne */
}

/* Titre du produit */
.product-title {
    margin-bottom: 15px; /* Garde l'espace avec le texte en dessous */
}

.specs-list li {
    font-size: 0.95rem;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center; /* Centrage du contenu à l'intérieur des lignes */
}

/* ==========================================================================
   FIX ACCESSIBILITÉ : CONTRASTE DES LIENS UTILITAIRES (LIGHTHOUSE)
   ========================================================================== */

/* Force une couleur claire sur le lien d'évitement et le lien Laboratoire France */
a[href="#contenu-principal"], 
#france {
    color: var(--text-muted) !important; /* Utilise le gris clair du design system */
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Effet au survol pour rester cohérent avec le reste du site */
a[href="#contenu-principal"]:hover, 
#france:hover {
    color: var(--accent-gold) !important; /* Passe en Or au survol */
}

/* ==========================================================================
   FIX : HARMONISATION DES LIENS DU PIED DE PAGE
   ========================================================================== */
footer a {
    color: var(--text-muted) !important; /* Force le joli gris clair du thème */
    text-decoration: none;               /* Supprime le soulignement vilain */
    transition: color 0.2s ease;
}

/* Comportement propre au survol */
footer a:hover, 
footer a:focus {
    color: var(--accent-gold) !important; /* Alerte dorée premium au survol */
    outline: none;
}