/* ======================================================
   ActuEasy – Vitrine CSS
   ====================================================== */

/* ── Variables ── */
:root {
    --ae-dark:        #0d1117;
    --ae-dark-2:      #161b22;
    --ae-dark-3:      #21262d;
    --ae-border:      #30363d;
    --ae-accent:      #7c3aed;
    --ae-accent-2:    #a855f7;
    --ae-accent-light:#ede9fe;
    --ae-text:        #e6edf3;
    --ae-text-muted:  #8b949e;
    --ae-green:       #3fb950;
    --ae-blue:        #58a6ff;
}

/* ── Reset body pour vitrine ── */
.vitrine-body {
    background: var(--ae-dark);
    color: var(--ae-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 0 !important;
}

/* ── Navbar ── */
.vitrine-nav {
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ae-border);
    padding: 0.75rem 0;
}

.vitrine-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ae-text) !important;
    letter-spacing: -0.02em;
}

.vitrine-brand i {
    color: var(--ae-accent-2);
}

.vitrine-nav .nav-link {
    color: var(--ae-text-muted) !important;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.vitrine-nav .nav-link:hover {
    color: var(--ae-text) !important;
}

.vitrine-nav-admin {
    color: var(--ae-text-muted) !important;
    font-size: 0.85rem;
    border: 1px solid var(--ae-border);
    border-radius: 6px;
    padding: 0.35rem 0.75rem !important;
    transition: all 0.2s;
}

.vitrine-nav-admin:hover {
    color: var(--ae-text) !important;
    border-color: var(--ae-accent);
    background: rgba(124, 58, 237, 0.1);
}

/* ── Hero ── */
.vitrine-hero {
    background: linear-gradient(135deg, var(--ae-dark) 0%, #0d0f1a 50%, #110d1a 100%);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.vitrine-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.vitrine-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.min-vh-hero {
    min-height: calc(100vh - 8rem);
}

.vitrine-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--ae-accent-2);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.vitrine-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ae-text);
}

.vitrine-hero-accent {
    background: linear-gradient(135deg, var(--ae-accent-2), var(--ae-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vitrine-hero-subtitle {
    font-size: 1.15rem;
    color: var(--ae-text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin-top: 1.5rem;
}

/* ── Boutons ── */
.vitrine-btn-primary {
    background: var(--ae-accent);
    border-color: var(--ae-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.vitrine-btn-primary:hover {
    background: var(--ae-accent-2);
    border-color: var(--ae-accent-2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.vitrine-btn-secondary {
    background: transparent;
    border: 1px solid var(--ae-border);
    color: var(--ae-text);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.vitrine-btn-secondary:hover {
    border-color: var(--ae-text-muted);
    color: var(--ae-text);
    background: var(--ae-dark-3);
    transform: translateY(-1px);
}

.vitrine-btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    border-radius: 6px;
    transition: all 0.2s;
}

.vitrine-btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

/* ── Code card hero visual ── */
.vitrine-hero-visual {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.vitrine-code-card {
    background: var(--ae-dark-2);
    border: 1px solid var(--ae-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.vitrine-code-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--ae-dark-3);
    border-bottom: 1px solid var(--ae-border);
}

.vitrine-code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ae-border);
}

.vitrine-code-dots span:nth-child(1) { background: #ff5f57; }
.vitrine-code-dots span:nth-child(2) { background: #febc2e; }
.vitrine-code-dots span:nth-child(3) { background: #28c840; }

.vitrine-code-content {
    padding: 1.25rem 1.5rem;
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.9;
    color: var(--ae-text);
}

.vitrine-code-line { white-space: nowrap; }
.vc-comment  { color: #6e7681; font-style: italic; }
.vc-keyword  { color: #ff7b72; }
.vc-var      { color: var(--ae-text); }
.vc-method   { color: var(--ae-blue); }
.vc-string   { color: #a5d6ff; }
.vc-num      { color: #f2cc60; }

.vitrine-stat-cards {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.vitrine-stat-card {
    flex: 1;
    background: var(--ae-dark-2);
    border: 1px solid var(--ae-border);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.vitrine-stat-card i {
    font-size: 1.25rem;
    color: var(--ae-accent-2);
}

.vitrine-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ae-text);
}

.vitrine-stat-label {
    font-size: 0.7rem;
    color: var(--ae-text-muted);
}

/* ── Band (titre intermédiaire) ── */
.vitrine-band {
    background: var(--ae-dark-2);
    border-top: 1px solid var(--ae-border);
    border-bottom: 1px solid var(--ae-border);
    padding: 4rem 0;
}

/* ── Sections communes ── */
.vitrine-section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ae-text);
}

.vitrine-section-sub {
    font-size: 1.05rem;
    color: var(--ae-text-muted);
    line-height: 1.7;
    max-width: 560px;
}

/* ── Features ── */
.vitrine-features {
    padding: 5rem 0;
    background: var(--ae-dark);
}

.vitrine-feature-row {
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.vitrine-feature-row:hover {
    background: var(--ae-dark-2);
}

.vitrine-feature-icon-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--ae-accent-2);
}

.vitrine-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ae-text);
    margin-bottom: 0.5rem;
}

.vitrine-feature-text {
    font-size: 0.92rem;
    color: var(--ae-text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.vitrine-feature-link {
    font-size: 0.88rem;
    color: var(--ae-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.vitrine-feature-link:hover {
    color: var(--ae-accent-2);
}

/* ── Editions ── */
.vitrine-editions {
    padding: 5rem 0;
    background: var(--ae-dark-2);
}

.vitrine-edition-card {
    background: var(--ae-dark);
    border: 1px solid var(--ae-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.vitrine-edition-card:hover {
    border-color: var(--ae-accent);
    transform: translateY(-4px);
}

.vitrine-edition-card--featured {
    border-color: var(--ae-accent);
    background: linear-gradient(160deg, #130e1f 0%, var(--ae-dark) 100%);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
}

.vitrine-edition-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ae-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vitrine-edition-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ae-accent-2);
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.vitrine-edition-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ae-text);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.vitrine-edition-desc {
    font-size: 0.9rem;
    color: var(--ae-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.vitrine-edition-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.vitrine-edition-features li {
    font-size: 0.9rem;
    color: var(--ae-text-muted);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid var(--ae-border);
}

.vitrine-edition-features li:last-child {
    border-bottom: none;
}

.vitrine-edition-features li i {
    color: var(--ae-green);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.vitrine-btn-edition {
    background: var(--ae-dark-3);
    border: 1px solid var(--ae-border);
    color: var(--ae-text);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.vitrine-btn-edition:hover {
    background: var(--ae-dark-2);
    border-color: var(--ae-accent);
    color: var(--ae-text);
}

.vitrine-btn-edition-featured {
    background: var(--ae-accent);
    border-color: var(--ae-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}

.vitrine-btn-edition-featured:hover {
    background: var(--ae-accent-2);
    border-color: var(--ae-accent-2);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* ── CTA final ── */
.vitrine-cta {
    background: linear-gradient(135deg, #0d0f1a 0%, #110d1a 100%);
    border-top: 1px solid var(--ae-border);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.vitrine-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.vitrine-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ae-text);
}

.vitrine-cta-sub {
    font-size: 1.05rem;
    color: var(--ae-text-muted);
    max-width: 500px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* ── Footer ── */
.vitrine-footer {
    background: var(--ae-dark-2);
    border-top: 1px solid var(--ae-border);
}

.vitrine-footer-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ae-text);
}

.vitrine-footer-brand i {
    color: var(--ae-accent-2);
}

.vitrine-footer-text {
    font-size: 0.88rem;
    color: var(--ae-text-muted);
    line-height: 1.6;
}

.vitrine-footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ae-text);
    margin-bottom: 1rem;
}

.vitrine-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vitrine-footer-links a {
    font-size: 0.88rem;
    color: var(--ae-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.vitrine-footer-links a:hover {
    color: var(--ae-text);
}

.vitrine-footer-divider {
    border-color: var(--ae-border);
    opacity: 1;
}

.vitrine-footer-copy {
    font-size: 0.82rem;
    color: var(--ae-text-muted);
    text-decoration: none;
}

.vitrine-footer-copy:hover {
    color: var(--ae-text);
}

/* ── Smooth scroll ── */
html {
    scroll-behavior: smooth;
}

/* ===== CONTACT PAGE =====*/
.contact-form  { display:flex; flex-direction:column; gap:1.25rem; margin-top:2rem; }
.contact-field { display:flex; flex-direction:column; gap:.4rem; }
.contact-field label { font-size:.88rem; color:#94a3b8; font-weight:500; }
.contact-field .req  { color:#f87171; }
.contact-input { background:#1e293b; border:1px solid #334155; border-radius:7px; padding:.65rem 1rem; color:#e2e8f0; font-size:.95rem; transition:border-color .2s; resize:vertical; }
.contact-input:focus { outline:none; border-color:var(--ae-accent, #7c3aed); }
.contact-alert { display:flex; align-items:center; gap:.6rem; padding:.85rem 1.25rem; border-radius:8px; font-size:.9rem; margin-bottom:1rem; }
.contact-alert--ok  { background:rgba(34,197,94,.12); border:1px solid #16a34a; color:#4ade80; }
.contact-alert--err { background:rgba(248,113,113,.1); border:1px solid #ef4444; color:#fca5a5; }
