/* ===================================================================
   MAHU — Styles globaux centralisés
   Thème : sombre professionnel, accent bleu #4da6ff
   =================================================================== */

:root {
    --blue:             #4da6ff;   /* Bleu accent principal */
    --blue-dark:        #007bff;   /* Bleu foncé (usage interne) */
    --blue-glow:        rgba(77, 166, 255, 0.18);
    --purple:           #8b5cf6;

    --background-color: #0a0a0a;
    --card-background:  #111111;
    --card-border:      #1e1e1e;
    --border-color:     #222222;

    --text-primary:     #f0f0f0;
    --text-secondary:   #888888;
    --text-muted:       #555555;

    --primary-color:    #ffffff;
    --secondary-color:  #0a0a0a;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --shadow-blue: 0 8px 32px rgba(77, 166, 255, 0.18);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Halo lumineux en haut de page */
body::before {
    content: '';
    position: fixed;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(77,166,255,0.06) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 80px 0; }

h1, h2, h3 { line-height: 1.2; }

/* ===== HEADER & NAV ===== */
header {
    background-color: rgba(10,10,10,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    height: 42px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.logo:hover img { transform: scale(1.05); }

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: color 0.25s ease;
    position: relative;
    padding-bottom: 4px;
}

nav ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--blue);
    transition: all 0.3s ease;
}

nav ul a:hover::after { width: 100%; left: 0; }
nav a:hover { color: var(--text-primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Bouton connexion dans la nav */
.nav-actions a.primary {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-actions a.primary:hover { color: var(--blue); }

/* ===== MENU BURGER MOBILE ===== */
.menu-burger {
    display: none;
    font-size: 1.6em;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 1001;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease;
}

.menu-burger:hover { color: var(--blue); }

.nav-links-mobile {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(10,10,10,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    font-size: 1.4em;
    z-index: 999;
}

.nav-links-mobile.active { display: flex; }
.nav-links-mobile a { color: var(--text-primary); text-decoration: none; }
.nav-links-mobile a:hover { color: var(--blue); }

body.no-scroll { overflow: hidden; }

@media (max-width: 992px) {
    .desktop-links { display: none; }
    .menu-burger { display: block; }
    #lang-selector { display: none; }
}

/* ===== TITRES DE SECTION ===== */
.section-title {
    text-align: center;
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 800;
    margin-bottom: 12px;
    /* Dégradé blanc → bleu */
    background: linear-gradient(90deg, #ffffff 30%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 55px auto;
    line-height: 1.7;
}

/* ===== HERO GÉNÉRIQUE (applicable à toutes les pages) ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 20px 80px;
    text-align: center;
    background: linear-gradient(135deg, #0d0d1a 0%, #0a1628 50%, #0d0d1a 100%);
}

/* Grille animée en fond */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77,166,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77,166,255,0.07) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    to { background-position: 60px 60px; }
}

.page-hero .hero-content { position: relative; z-index: 2; }

.page-hero h1 {
    font-size: clamp(2em, 5vw, 3.8em);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff 30%, var(--blue) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* Badge section (petit label au-dessus des titres) */
.section-badge {
    display: inline-block;
    background: rgba(77,166,255,0.12);
    border: 1px solid rgba(77,166,255,0.3);
    color: var(--blue);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.75em;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* ===== GRILLES ===== */
.grid-2, .grid-3 { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ===== CARTES ===== */
.card {
    background-color: var(--card-background);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-blue);
    border-color: rgba(77,166,255,0.25);
}

.card h3 { color: var(--text-primary); margin-top: 0; }

/* Icône dans les feature cards */
.feature-card-icon {
    margin-bottom: 18px;
}

/* ===== BOUTONS ===== */

/* Bouton principal — bleu */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--blue);
    color: #000;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95em;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background: #78beff;
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(77,166,255,0.35);
}

/* Bouton outline (secondaire) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95em;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* Bouton pleine largeur */
.btn-block { width: 100%; }

/* Groupe de boutons alignés */
.btn-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-group.centered { justify-content: center; }

/* ===== FORMULAIRES ===== */
input, textarea, select {
    background: #181818;
    border: 1px solid #2a2a2a;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.95em;
    transition: border-color 0.2s ease;
    outline: none;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(77,166,255,0.12);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

/* ===== FOOTER ===== */
.main-footer {
    background-color: #080808;
    color: var(--text-primary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 1em;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-secondary); text-decoration: none; transition: color 0.25s ease; font-size: 0.9em; }
.footer-col ul li a:hover { color: var(--blue); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85em;
}

.footer-logo-section img { height: 38px; margin-bottom: 14px; }
.footer-logo-section p { color: var(--text-secondary); line-height: 1.6; font-size: 0.9em; }

/* Newsletter dans le footer */
.footer-newsletter input { margin-bottom: 10px; }

/* BOUTON : Inscription newsletter (footer) */
.footer-newsletter button {
    width: 100%;
    padding: 11px;
    background: var(--blue);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease;
}

.footer-newsletter button:hover { background: #78beff; }

.social-icons-footer { display: flex; gap: 14px; margin-top: 18px; }
.social-icons-footer a { color: var(--text-secondary); transition: color 0.25s ease; }
.social-icons-footer a:hover { color: var(--blue); }
.social-icons-footer svg { width: 20px; height: 20px; }

/* ===== BLOG / GUIDE ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.blog-card { background: var(--card-background); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--card-border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-blue); }
.blog-image { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 22px; }
.blog-meta { font-size: 0.82em; color: var(--text-secondary); margin-bottom: 10px; display: flex; justify-content: space-between; }
.blog-card h3 { margin: 0 0 10px 0; font-size: 1.3em; color: var(--text-primary); }
.blog-card p { color: #bbb; font-size: 0.92em; line-height: 1.6; margin-bottom: 18px; }
.read-more { color: var(--blue); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; font-size: 0.9em; }
.read-more:hover { text-decoration: underline; }

/* ===== SECTION DÉMO INTERACTIVE ===== */
.demo-section { background: #050505; overflow: hidden; }

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* BOUTONS : Onglets de démo */
.demo-tab-btn {
    background: #181818;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 11px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.9em;
}

.demo-tab-btn:hover {
    border-color: var(--blue);
    color: var(--text-primary);
}

.demo-tab-btn.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #000;
}

.demo-display { position: relative; min-height: 600px; display: flex; justify-content: center; align-items: center; }
.demo-view { display: none; width: 100%; max-width: 900px; animation: fadeInUp 0.4s ease; }
.demo-view.active { display: block; }

/* Mockup Laptop */
.laptop-frame {
    background: #1a1a1a;
    border-radius: 14px;
    padding: 10px;
    border: 3px solid #2a2a2a;
    box-shadow: 0 30px 60px rgba(0,0,0,0.7);
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.laptop-screen {
    background: #0d0d0d;
    border-radius: 6px;
    height: 500px;
    overflow: hidden;
    display: flex;
}

.laptop-sidebar {
    width: 60px;
    background: #141414;
    height: 100%;
    border-right: 1px solid #1e1e1e;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.laptop-sidebar div {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.laptop-sidebar div:hover { background: #222; }
.laptop-sidebar div.active { background: rgba(77,166,255,0.15); }
.laptop-sidebar div.active svg { color: var(--blue) !important; stroke: var(--blue); }
.laptop-sidebar svg { color: #444; stroke: #444; width: 20px; height: 20px; display: block; }

.laptop-content { flex-grow: 1; padding: 20px; overflow-y: auto; }

/* Mockup Phone */
.phone-frame {
    width: 290px;
    height: 590px;
    background: #101010;
    border: 8px solid #1e1e1e;
    border-radius: 38px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px #111;
}

.phone-notch {
    width: 110px;
    height: 22px;
    background: #1e1e1e;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
}

.phone-screen-inner { height: 100%; overflow-y: auto; }

/* ===== MODALE ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
}

.modal-content {
    background-color: #141414;
    margin: 8% auto;
    padding: 32px;
    border: 1px solid #2a2a2a;
    width: 92%;
    max-width: 520px;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.close-btn {
    color: var(--text-muted);
    float: right;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover { color: var(--text-primary); }

.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; margin-bottom: 7px; color: #bbb; font-size: 0.9em; }
.form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid #2a2a2a;
    background-color: #181818;
    color: var(--text-primary);
    box-sizing: border-box;
    font-size: 0.95em;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(77,166,255,0.12);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp   { from { opacity: 0.5; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== UTILITAIRES ===== */
.text-blue    { color: var(--blue); }
.text-muted   { color: var(--text-secondary); }
.text-center  { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.stat-item { text-align: center; }
.stat-item .number { font-size: 2em; font-weight: 800; color: var(--blue); }
.stat-item .label { font-size: 0.8em; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

/* ===== RESPONSIVE GÉNÉRAL ===== */
@media (max-width: 992px) {
    .section-title { font-size: 2em; }
    section { padding: 60px 0; }
}

@media (max-width: 600px) {
    .section-title { font-size: 1.7em; }
    .section-subtitle { font-size: 0.95em; }
    .btn { padding: 12px 20px; font-size: 0.9em; }
    .page-hero { padding: 70px 16px 60px; }
}
