/* ==========================================================================
   CSS - CONTACT & DEVIS (APPLE x IMMERSIF BLEU - MASTER)
   ========================================================================== */

:root {
    --bg-dark: #030406;
    --bg-black-deep: #000000;
    --primary-blue: #0066cc;
    --secondary-cyan: #00b4d8;
    --text-main: #ffffff;
    --text-muted: #9ca3af; /* <-- Contraste amélioré (A11y) */
    
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(0, 180, 216, 0.15);
    --input-bg: rgba(255, 255, 255, 0.03);
    --input-border: rgba(255, 255, 255, 0.1);
    
    --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.edge-immersive-wrapper, .edge-immersive-wrapper * { box-sizing: border-box; }

.edge-immersive-wrapper {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    width: 100vw;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   LIGNE DE SCROLL DIGITALE
   ========================================== */
.tech-thread-wrapper { position: fixed; top: 0; left: 2vw; width: 2px; height: 100vh; z-index: 9999; pointer-events: none; }
.tech-thread-track { width: 100%; height: 100%; background: rgba(255, 255, 255, 0.05); position: relative; }
.tech-thread-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(to bottom, var(--secondary-cyan), var(--primary-blue)); box-shadow: 0 0 15px var(--secondary-cyan); will-change: height; }
.tech-thread-glow { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); width: 12px; height: 12px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 20px 8px var(--secondary-cyan); }

/* Halos */
.ambient-glow { position: absolute; border-radius: 50%; filter: blur(150px); opacity: 0.15; pointer-events: none; mix-blend-mode: screen; z-index: 0; }
.glow-top-left { width: 60vw; height: 60vw; top: -10%; left: -20%; background: var(--primary-blue); }
.glow-center-right { width: 50vw; height: 50vw; top: 30%; right: -10%; background: var(--secondary-cyan); }

/* Layout Edge-to-Edge */
.bg-black-deep { background-color: var(--bg-black-deep); }
.fullscreen-edge { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 6rem 0; position: relative; width: 100vw; }
.edge-container { width: 100%; padding: 0 8vw; position: relative; z-index: 2; }

/* Utilitaires */
.relative { position: relative; } .z-10 { z-index: 10; } .overflow-hidden { overflow: hidden; }
.text-center { text-align: center; } .text-left { text-align: left; } .text-muted { color: var(--text-muted); } 
.font-normal { font-weight: 400; }
.text-sm { font-size: 0.85rem; } .text-md { font-size: 1.05rem; } .text-lg { font-size: 1.3rem; font-weight: 700; }
.m-0 { margin: 0; } .mx-auto { margin-left: auto; margin-right: auto; }
.justify-start { justify-content: flex-start; } .justify-center { justify-content: center; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 3.5rem; } .mt-6 { margin-top: 5rem; } 
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1.2rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 3.5rem; } .mb-6 { margin-bottom: 5rem; }

/* Typographie */
.edge-title-massive { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0; color: var(--text-main); }
.edge-title-large { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.text-gradient-cyan { background: linear-gradient(90deg, #fff, var(--secondary-cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-main { color: var(--text-main); }

.edge-desc { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-muted); font-weight: 400; line-height: 1.6; }
.cyber-eyebrow { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--secondary-cyan); display: inline-block; padding: 6px 18px; border: 1px solid var(--glass-border); border-radius: 30px; background: rgba(0, 180, 216, 0.05); }

/* Boutons */
.edge-btn-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn-blue-solid { background: linear-gradient(135deg, var(--primary-blue), #004d99); color: #fff !important; padding: 1.2rem 2.8rem; border-radius: 40px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border:none; box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3); transition: all 0.3s ease; cursor:pointer; }
.btn-blue-solid:hover { transform: scale(1.03); box-shadow: 0 15px 40px rgba(0, 180, 216, 0.5); }
.btn-blue-outline { background-color: transparent; color: var(--text-main) !important; border: 2px solid var(--glass-border); padding: 1.2rem 2.8rem; border-radius: 40px; font-weight: 700; font-size: 1.05rem; text-decoration: none; backdrop-filter: blur(10px); transition: all 0.3s ease; cursor:pointer; }
.btn-blue-outline:hover { border-color: var(--secondary-cyan); background: rgba(0, 180, 216, 0.1); }
.massive-btn { padding: 1.4rem 4rem; font-size: 1.2rem; display: inline-flex; justify-content: center; align-items: center; }

/* Grilles */
.split-edge { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.contact-split { grid-template-columns: 0.8fr 1.2fr; align-items: start; } 

/* Panels */
.edge-glass-panel { background: var(--glass-bg); padding: 3.5vw; border-radius: 30px; backdrop-filter: blur(25px); border: 1px solid rgba(255,255,255,0.05); }
.border-cyan { border-color: var(--glass-border) !important; box-shadow: inset 0 0 40px rgba(0, 180, 216, 0.05), 0 30px 60px rgba(0,0,0,0.5); }
.glow-corner { position: absolute; background: var(--secondary-cyan); filter: blur(90px); opacity: 0.15; border-radius: 50%; pointer-events: none; }

.edge-list-pro { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.edge-list-pro li { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; position: relative; padding-left: 2rem; text-align: left; }
.edge-list-pro li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary-cyan); font-weight: bold; }

/* ==========================================
   PARTIE GAUCHE (Sticky Contact Info)
   ========================================== */
.contact-info-sticky { position: sticky; top: 120px; }
.contact-info-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: 1.2rem; }
.ci-icon { width: 50px; height: 50px; background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border); border-radius: 14px; display: flex; justify-content: center; align-items: center; color: var(--secondary-cyan); flex-shrink: 0; }
.ci-text { display: flex; flex-direction: column; gap: 6px; }
.ci-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.ci-value { font-size: 1.15rem; font-weight: 600; line-height: 1.4; text-decoration:none; }
.link-hover { transition: color 0.3s ease; }
.link-hover:hover { color: var(--secondary-cyan); }

/* ==========================================
   PARTIE DROITE : LE SMART FORM
   ========================================== */
.form-bento { min-height: 600px; display: flex; flex-direction: column; }

/* Barre de progression */
.form-progress-bar { width: 100%; }
.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; width: 33.33%; background: linear-gradient(90deg, var(--secondary-cyan), var(--primary-blue)); border-radius: 10px; transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.progress-steps { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.step-indicator { transition: color 0.3s; }
.step-indicator.active { color: var(--secondary-cyan); }

/* Étapes */
.form-step { display: none; opacity: 0; animation: fadeStepIn 0.5s forwards; flex-grow: 1; flex-direction: column; }
.form-step.active { display: flex; }
@keyframes fadeStepIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Actions */
.form-actions { display: flex; align-items: center; margin-top: auto; }
.form-actions.right { justify-content: flex-end; }
.form-actions.between { justify-content: space-between; gap: 1rem;}
.border-top { border-top: 1px solid rgba(255,255,255,0.08); }
.pt-4 { padding-top: 1.5rem; }

/* Radio Cards (Type de projet) */
.radio-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.radio-card-item input[type="radio"] { display: none; }
.radio-card-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 2rem 1.2rem; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 16px; cursor: pointer; transition: all 0.3s ease; color: var(--text-muted); text-align: center; font-size: 1rem; font-weight: 600; }
.radio-card-label svg { stroke: var(--text-muted); transition: all 0.3s; }
.radio-card-label:hover { border-color: rgba(0, 180, 216, 0.3); background: rgba(255,255,255,0.05); color: var(--text-main); }
.radio-card-label:hover svg { stroke: var(--text-main); }

.radio-card-item input[type="radio"]:checked + .radio-card-label { border-color: var(--secondary-cyan); background: rgba(0, 180, 216, 0.08); color: var(--text-main); box-shadow: 0 4px 20px rgba(0, 180, 216, 0.15); }
.radio-card-item input[type="radio"]:checked + .radio-card-label svg { stroke: url(#gradient-cyan-blue); }

/* Tags Fonctionnalités */
.tag-checkbox-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-checkbox input[type="checkbox"] { display: none; }
.tag-label { display: inline-block; padding: 0.6rem 1.2rem; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 100px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s ease; }
.tag-label:hover { border-color: rgba(255,255,255,0.3); color: var(--text-main); }
.tag-checkbox input[type="checkbox"]:checked + .tag-label { background: var(--text-main); border-color: var(--text-main); color: #000; box-shadow: 0 0 15px rgba(255,255,255,0.2); }

/* Champs de texte & Select */
.form-row { display: flex; gap: 1.5rem; width: 100%; }
.form-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.w-100 { width: 100%; }

.edge-label { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }
.label-opt { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; margin-left: 4px; }

.edge-input { width: 100%; padding: 1rem 1.2rem; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 12px; font-family: inherit; font-size: 1rem; color: var(--text-main); transition: all 0.3s ease; outline: none; }
.edge-input::placeholder { color: rgba(255,255,255,0.3); }
.edge-input:focus { background: rgba(0,0,0,0.5); border-color: var(--secondary-cyan); box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.15); }

/* Select Stylisé */
.select-wrapper { position: relative; }
.edge-select { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 2.5rem; }
.select-wrapper::after { content: "▼"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 0.8rem; }
.edge-select option { background: #111; color: #fff; }

.edge-textarea { resize: vertical; min-height: 140px; }

/* Checkbox RGPD */
.edge-checkbox-wrapper { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.edge-checkbox-wrapper input[type="checkbox"] { display: none; }
.custom-checkbox { width: 22px; height: 22px; border: 1px solid var(--input-border); border-radius: 6px; background: var(--input-bg); display: flex; justify-content: center; align-items: center; flex-shrink: 0; margin-top: 2px; transition: all 0.2s ease; }
.edge-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox { background: var(--secondary-cyan); border-color: var(--secondary-cyan); box-shadow: 0 0 10px rgba(0,180,216,0.3); }
.edge-checkbox-wrapper input[type="checkbox"]:checked + .custom-checkbox::after { content: "✓"; color: #000; font-size: 1rem; font-weight: 900; }
.checkbox-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; text-align: left; }

/* ==========================================
   WIDGET B2B SIMULATOR
   ========================================== */
.b2b-widget-container { padding: 4vw; border-radius: 30px; }
.b2b-simulator-mockup {
    width: 100%; max-width: 280px; aspect-ratio: 9/19.5;
    border: 12px solid #111; border-radius: 40px; overflow: hidden; background: #000;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), -15px 0 40px rgba(0,102,204,0.3);
    position: relative; margin: 0 auto;
}
.iphone-notch-b2b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40%; height: 25px; background: #111; border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; z-index: 10; }
.b2b-simulator-mockup iframe { width: 100%; height: 100%; border: none; display: block; background: #fff; }

/* Animations Reveal & Float */
.reveal { opacity: 0; transition: opacity var(--transition), transform var(--transition); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: translate(0); }

.float-animation { animation: floatEdge 6s ease-in-out infinite; }
@keyframes floatEdge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .tech-thread-wrapper { display: none; }
    .edge-container { padding: 0 6vw; }

    .split-edge.contact-split { grid-template-columns: 1fr; gap: 3rem; align-items: center; }
    .text-left { text-align: center; }
    .contact-info-sticky { position: static; }
    
    .contact-info-grid { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 2rem; }
    .contact-info-item { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
    
    .edge-glass-panel { padding: 4vw; }
    .b2b-widget-container { padding: 6vw; }
}

@media (max-width: 768px) {
    .edge-container { padding: 0 8vw; }
    .edge-title-massive { font-size: clamp(2.5rem, 12vw, 3.5rem) !important; }
    
    .form-row { flex-direction: column; gap: 1rem; }
    .radio-card-grid { grid-template-columns: 1fr; }
    
    .form-actions.between { flex-direction: column-reverse; gap: 1rem; }
    
    .form-actions button, .massive-btn { width: 100%; justify-content: center; padding: 1.2rem; }
    
    .contact-info-grid { flex-direction: column; gap: 1.5rem; }
    
    .b2b-simulator-mockup { max-width: 280px; }
}