/* * PROJET : e-META LABS — Moteur IA Stratégique
 * FICHIER : style.css (Version MASTER 2026 - FINAL GOLD)
 */

/* --- 1. VARIABLES & RESET --- */
:root {
    --navy-deep: #0a192f;
    --navy-light: #112240;
    --gold: #d4af37;
    --gold-bright: #f2d06b;
    --white: #e6f1ff;
    --slate: #8892b0;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--navy-deep);
    color: var(--slate);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- 2. HEADER --- */
.header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 5%; background: rgba(10, 25, 47, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    position: sticky; top: 0; z-index: 500; gap: 15px;
}
.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-container svg { height: 45px; width: auto; filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3)); }
.brand-text h1 { color: var(--white); font-family: var(--font-heading); font-size: 1.2rem; letter-spacing: 1.5px; }
.header-slogan {
    color: var(--gold); font-family: var(--font-heading); font-size: 0.8rem;
    text-transform: uppercase; font-weight: 700; text-align: center; flex: 1;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.header-actions { display: flex; align-items: center; }
.action-group {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.05); padding: 5px 10px;
    border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 4px;
}
.btn-reset { background: none; border: none; border-right: 1px solid rgba(136, 146, 176, 0.3); color: var(--slate); padding-right: 10px; font-size: 0.7rem; cursor: pointer; text-transform: uppercase; }
.lang-switch { display: flex; gap: 5px; }
.lang-btn { background: none; border: 1px solid transparent; color: var(--slate); padding: 2px 5px; font-size: 0.7rem; cursor: pointer; }
.lang-btn.active { color: var(--gold); border-color: var(--gold); background: rgba(212, 175, 55, 0.1); }

/* --- 3. GLASS CARD & LAYOUT --- */
.main-container { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 3rem 1.5rem; }
.glass-card {
    background: rgba(17, 34, 64, 0.7); width: 100%; max-width: 800px;
    padding: 2.5rem; border-radius: 12px; border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); backdrop-filter: blur(15px);
    position: relative; overflow: hidden;
}

/* --- 4. NAVIGATION ÉTAPES --- */
.form-step { display: none !important; }
.form-step.active { display: block !important; animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- 5. CHAMPS & TYPOGRAPHIE --- */
h3 {
    color: var(--white); margin-bottom: 1.5rem; border-bottom: 1px solid var(--slate);
    padding-bottom: 0.5rem; font-family: var(--font-heading);
}
.input-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; color: var(--white); font-size: 0.9rem; font-weight: 500; }
input, textarea, select {
    width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(136, 146, 176, 0.3); color: var(--white); border-radius: 6px;
    font-family: var(--font-body); transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
    border-color: var(--gold); outline: none; background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.25); /* HALO EFFET FOCUS */
}

/* Select Pro */
select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; padding-right: 2.5rem !important; cursor: pointer;
}
option { background-color: var(--navy-deep); color: var(--white); padding: 10px; }
.section-label { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.8rem; display: block; font-weight: bold; letter-spacing: 1px; }

/* --- 6. TUILES TACTILES --- */
.grid-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.checkbox-btn { cursor: pointer; display: block; height: 100%; }
.checkbox-btn input { display: none; }
.checkbox-btn span {
    display: flex; align-items: center; justify-content: center; padding: 12px; height: 100%;
    background: rgba(17, 34, 64, 0.6); border: 1px solid rgba(136, 146, 176, 0.2);
    border-radius: 8px; text-align: center; font-size: 0.8rem; color: var(--slate); transition: var(--transition);
}
.checkbox-btn input:checked + span {
    background: rgba(212, 175, 55, 0.15); border-color: var(--gold); color: var(--white);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); /* GLOW TUILE ACTIVE */
}

/* --- 7. BOUTONS & MODAL RESULT --- */
.btn-container { margin-top: 2rem; display: flex; gap: 1rem; }
.btn-container.right { justify-content: flex-end; }
.btn-container.split { justify-content: space-between; }

button.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f2d06b 100%);
    color: var(--navy-deep); border: none; padding: 14px 30px;
    font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 6px; cursor: pointer; transition: var(--transition); flex: 1;
}
button.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 5px 25px rgba(212, 175, 55, 0.5); }

/* Bouton Secondaire (Nouvelle Analyse / Retour) */
button.btn-outline {
    background: transparent; border: 1px solid var(--gold); /* Bordure Dorée Harmonisée */
    color: var(--gold); padding: 14px 30px; border-radius: 6px; cursor: pointer;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px; flex: 1;
}
button.btn-outline:hover { background: rgba(212, 175, 55, 0.1); }

/* --- 8. POLITIQUE DE CONFIDENTIALITÉ (POINTS ORANGE) --- */
.privacy-block h4 {
    color: var(--gold); /* COULEUR ORANGE/OR DEMANDÉE */
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 5px;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3); /* Soulignement discret */
    padding-bottom: 5px;
}
.privacy-block p { font-size: 0.9rem; color: var(--slate); margin-bottom: 10px; }

/* --- 9. MODALS --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 25, 47, 0.98); z-index: 2000; justify-content: center; align-items: center;
}
.modal-content {
    background: var(--navy-light); border: 1px solid var(--gold); padding: 2.5rem;
    max-width: 650px; width: 92%; border-radius: 12px; max-height: 85vh; overflow-y: auto;
    position: relative; box-shadow: 0 0 50px rgba(0,0,0,0.7);
}
.close-modal, .close-result { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: var(--slate); cursor: pointer; }

/* --- 10. WIDGET STATS FIXE --- */
.stats-card {
    background: rgba(17, 34, 64, 0.95); border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px; border-radius: 4px; width: 220px;
    position: fixed; bottom: 20px; right: 20px; z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(5px);
}
.stats-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--gold); font-weight: bold; font-size: 0.8rem; text-transform: uppercase; }
.pulse-icon { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 rgba(212, 175, 55, 0.4); animation: pulse 2s infinite; }
@keyframes pulse { 0% {box-shadow:0 0 0 0 rgba(212,175,55,0.7)} 70% {box-shadow:0 0 0 10px rgba(212,175,55,0)} 100% {box-shadow:0 0 0 0 rgba(212,175,55,0)} }
.stat-item { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 5px; }
.stat-value { font-weight: bold; color: var(--white); }

/* --- LOADER --- */
#loadingOverlay { display: none; position: absolute; top:0; left:0; width:100%; height:100%; background:rgba(10,25,47,0.96); z-index:100; flex-direction:column; justify-content:center; align-items:center; border-radius:12px; }
.ai-loader { width:60px; height:60px; border:3px solid rgba(212,175,55,0.2); border-top-color:var(--gold); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to{transform:rotate(360deg)} }
.loading-text { margin-top:20px; color:var(--gold); font-family:var(--font-heading); font-size:0.9rem; letter-spacing:1px; animation:pulse-text 1.5s infinite; }
@keyframes pulse-text { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* --- FOOTER & RESPONSIVE --- */
.footer { text-align: center; padding: 2rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; color: var(--slate); margin-top: auto; }
@media (max-width: 768px) {
    .header { flex-direction: column; gap: 10px; }
    .grid-options { grid-template-columns: 1fr 1fr; }
    .btn-container { flex-direction: column; gap: 10px; }
    button { width: 100%; }
    .stats-card { position: static; width: 100%; max-width: 700px; margin-top: 2rem; }
}
/* --- FOOTER CONTACTS OPTIMISÉ --- */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 25, 47, 0.95);
    margin-top: auto;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 0.85rem;
    color: var(--slate);
}

.contact-item span {
    display: inline-block;
    margin-right: 5px;
    opacity: 0.8;
}

.gold-link {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.gold-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.unit-loc {
    margin-top: 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.6;
    color: var(--slate);
    text-transform: uppercase;
}

/* Ajustement Mobile */
@media (max-width: 768px) {
    .footer-contacts {
        flex-direction: column;
        gap: 10px;
    }
}
.loader-spinner {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* --- Vision Sublime e-META LABS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;800&display=swap');

:root {
    --deep-black: #050505;
    --gold-excellence: #d4af37;
    --electric-blue: #aeefff;
    --white-pure: #ffffff;
}

.hero-sublime {
    background: radial-gradient(circle at center, #0a1118 0%, var(--deep-black) 100%);
    color: var(--white-pure);
    padding: 80px 20px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.label-gold {
    color: var(--gold-excellence);
    letter-spacing: 5px;
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slogan-ia {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.precision-text {
    background: linear-gradient(90deg, #fff, var(--electric-blue), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(174, 239, 255, 0.3));
}

.gauge-glow {
    border: 2px solid var(--gold-excellence);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.count {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white-pure);
}

.description {
    font-weight: 300;
    opacity: 0.8;
    line-height: 1.6;
    letter-spacing: 1px;
}
