/* NEO-FAB Design System */

:root {
    --bg: #030303;
    --accent: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.3);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f0f0;
    --text-dim: #888;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--sans);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Vitreous Mesh Background --- */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

.refraction-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.2s ease-out;
}

/* --- Header --- */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* --- Mobile Menu --- */
#mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    display: none;
}

#mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#mobile-menu a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

#mobile-menu a:hover {
    color: var(--accent);
}

.hidden {
    display: none !important;
}

/* --- Responsive Utilities --- */
.md\:flex {
    display: flex !important;
}

.md\:hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .md\:flex {
        display: none !important;
    }

    .md\:hidden {
        display: block !important;
    }
}

/* --- Typography --- */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

h1 span {
    -webkit-text-stroke: 1px var(--text-main);
    color: transparent;
}

h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-label {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}


/* --- Buttons --- */
.btn {
    /* 1. Structure & Typographie */
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    
    /* 2. Style par défaut : OUTLINE (Transparent + Bordure Cyan) */
    background: transparent;
    color: var(--accent);       /* Texte Cyan */
    border: 1px solid var(--accent);
    
    /* 3. Transition fluide */
    transition: all 0.3s ease;
}

/* On s'assure que le btn-secondary suit la même logique */
.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* 4. Au survol (HOVER) : Le bouton se remplit */
.btn:hover, 
.btn-secondary:hover {
    background: var(--accent);  /* Le fond devient Cyan */
    color: var(--bg);           /* Le texte devient Noir (couleur du fond de page) pour le contraste */
    box-shadow: 0 0 15px var(--accent-glow); /* Effet Néon */
    transform: translateY(-2px); /* Petit mouvement vers le haut */
}

/* --- Glass Cards --- */
.glass-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    transform: translateY(-10px);
}

.glass-card:hover::before {
    transform: translateX(100%);
}

/* --- Layout --- */
section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 1.5rem;
    margin-top:0;
}

/* --- Features Grid (Qu'est-ce que le FDM) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* --- Icons (SVG Styles) --- */
.icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(0, 242, 255, 0.05); /* Fond subtil */
    border: 1px solid rgba(0, 242, 255, 0.2); /* Bordure fine */
    border-radius: 8px;
    display: inline-flex; /* Centrage */
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-svg {
    width: 28px;
    height: 28px;
    color: var(--accent); /* Couleur Cyan */
}

/* Ancienne classe icon-box (gardée pour compatibilité si oubli de MAJ HTML) */
.icon-box {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 12px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
}

.tech-icon {
    color: var(--accent);
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

/* --- Tables & Technical Data --- */
.table-container {
    overflow-x: auto; /* Permet le scroll sur mobile */
    margin: 2rem 0;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Force la largeur pour éviter l'écrasement */
}

.tech-table th {
    background: rgba(0, 242, 255, 0.05); /* Fond Cyan très léger */
    color: var(--accent);
    font-family: var(--mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.tech-table td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
    vertical-align: top;
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table ul {
    list-style: none;
    padding: 0;
}

.tech-table li {
    margin-bottom: 0.25rem;
}

.tech-table li::before {
    content: "// ";
    color: var(--accent);
    font-size: 0.8rem; 
    margin-right: 5px;
}

/* --- Material Cards --- */
.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mat-card {
    background: var(--glass);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.mat-card:hover {
    border-color: rgba(255,255,255,0.2);
}

/* --- Footer --- */
footer {
    padding: 6rem 5% 2rem;
    background: linear-gradient(to top, rgba(0, 242, 255, 0.03), transparent);
    border-top: 1px solid var(--glass-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-brand p {
    max-width: 280px;
    line-height: 1.6;
}

.footer-column h4 {
    font-family: var(--mono);
    color: var(--text-main);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
    font-family: var(--mono);
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* --- Animations --- */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: slideIn 0.8s ease-out forwards;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2rem; }
    nav { display: none; }
    section { padding: 4rem 5%; }
    footer { flex-direction: column; text-align: center; }
}

/* --- Content Utilities --- */
.text-dim {
    color: var(--text-dim);
}

.text-accent {
    color: var(--accent);
}

.mono {
    font-family: var(--mono);
}
/* --- Technical Lists --- */
.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

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

.tech-list li span {
    color: var(--text-dim);
    font-family: var(--mono);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

/* Petit effet au survol des lignes de la liste */
.tech-list li:hover {
    color: var(--accent);
    transition: color 0.2s;
}

/* --- Bloc Analyse Technique (Horizontal) --- */
.banner-analysis {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-left: 4px solid var(--accent) !important;
    margin-bottom: 4rem;
}

.banner-analysis .icon-wrapper { margin-bottom: 0; }

/* --- Section Final CTA (Structure 1200px) --- */
.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 8rem;
}

.cta-main-title {
    margin-bottom: 3rem;
}

.cta-main-title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    margin-top: 1rem;
}

/* Grille des deux options */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.option-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.option-card:hover {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.02);
}

.option-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.option-card .btn {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}
/* --- Form Styles --- */
.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    color: var(--text-main);
    font-family: var(--sans);
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Service Selector (Radio Cards) */
.service-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-content {
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
    height: 100%;
}

.radio-content span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.radio-content p {
    font-size: 0.9rem;
    font-weight: 600;
}

.radio-card input:checked + .radio-content {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.dynamic-section {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- File Upload Custom Style --- */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

/* Cache l'input original moche */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.file-custom-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.file-custom-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.file-custom-btn .icon {
    font-size: 1.5rem;
}

.file-custom-btn .file-name {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: var(--mono);
}

/* Style quand un fichier est sélectionné (via JS) */
.file-upload-wrapper.has-file .file-custom-btn {
    border-style: solid;
    border-color: var(--accent);
    color: var(--accent);
}

/* Responsive pour la bannière */
@media (max-width: 768px) {
    .banner-analysis {
        flex-direction: column;
        text-align: center;
    }
}
#form-status.success {
    display: block !important;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.9rem;
}

#form-status.error {
    display: block !important;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
    font-family: var(--mono);
    font-size: 0.9rem;
}
/* --- Gallery Console Filters --- */
.filter-console {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.filter-tab {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.filter-tab:hover {
    color: var(--text-main);
}

.filter-tab.active {
    color: var(--accent);
}

.filter-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

/* --- Project Card Pro Style --- */
.mat-card .img-container {
    aspect-ratio: 4/3;
    background: #111;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
}

.mat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5); /* Look pro, on enlève le gris au hover */
    transition: all 0.5s ease;
}

.mat-card:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}
/* --- Blog Index Restyling (Vérifié) --- */

/* On définit le conteneur pour l'alignement 1200px */
.blog-list-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 5%; /* Sécurité pour mobile */
}

/* La carte d'article */
.blog-entry {
    display: flex;
    gap: 3rem;
    padding: 2.5rem !important; /* On surcharge le padding par défaut des glass-cards */
    text-decoration: none !important; /* Suppression forcée du soulignement */
    border: 1px solid var(--glass-border) !important;
    border-left: 4px solid var(--glass-border) !important; /* Bordure gauche plus épaisse style "Log" */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.02);
    align-items: center;
}

/* --- LE FIX POUR LA COULEUR BLEUE/VIOLETTE --- */
.blog-entry h2, 
.blog-entry p, 
.blog-entry span {
    color: var(--text-main); /* On force la couleur de ton thème */
    text-decoration: none !important;
}

.blog-entry .text-dim {
    color: var(--text-dim) !important;
}

/* Effet au survol */
.blog-entry:hover {
    border-left-color: var(--accent) !important;
    background: rgba(0, 242, 255, 0.04) !important;
    transform: translateX(10px);
    box-shadow: -10px 0 30px -15px var(--accent-glow);
}

.blog-entry:hover h2 {
    color: var(--accent);
}

/* Style du texte en contour (span) au survol */
.blog-entry:hover h2 span {
    -webkit-text-stroke: 1px var(--accent);
    color: transparent;
}

/* Meta data (Date et ID) */
.blog-entry .meta {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-right: 1px solid var(--glass-border);
}

/* Badge de catégorie */
.tag-tech {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(0, 242, 255, 0.1);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Flèche qui apparaît à droite */
.blog-arrow {
    margin-left: auto;
    color: var(--accent);
    font-size: 1.5rem;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.blog-entry:hover .blog-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Adaptabilité Mobile --- */
@media (max-width: 768px) {
    .blog-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem !important;
    }
    
    .blog-entry .meta {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        width: 100%;
        padding-bottom: 1rem;
    }
    
    .blog-arrow {
        display: none; /* On cache la flèche sur mobile pour gagner de la place */
    }
}