/* ===== HelloLink — style.css (v3, noir integral, esprit Starlink) ===== */

:root {
    --accent: #2E6BFF;
    --accent-soft: #7EA2FF;

    --bg: #000000;
    --bg-raised: #0A0A0C;
    --bg-card: #101013;
    --bg-input: #131316;

    --text-main: #FFFFFF;
    --text-secondary: rgba(255,255,255,.62);
    --text-tertiary: rgba(255,255,255,.40);

    --border-color: rgba(255,255,255,.12);
    --border-soft: rgba(255,255,255,.07);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --container-w: 1180px;
    --ease: cubic-bezier(.19,1,.22,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }

/* ===== Animations au scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: .08s; }
.reveal-delay-2.is-visible { transition-delay: .16s; }
.reveal-delay-3.is-visible { transition-delay: .24s; }
.reveal-delay-4.is-visible { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-main);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.icon { width: 1em; height: 1em; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--text-main);
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.015em; }
p { color: var(--text-secondary); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-tertiary); margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 6px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600; font-size: 0.92rem; letter-spacing: -0.005em;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #E4E4E4; }
.btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--text-main); }
.btn-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.14); }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
    background: rgba(0,0,0,.86);
    border-bottom-color: var(--border-soft);
}

/* ── Barre condensee au scroll : ne garde que logo + CTA ── */
.condensed-cta { display: none; }
.site-header.is-scrolled .main-nav,
.site-header.is-scrolled .search-wrap,
.site-header.is-scrolled .lang-dropdown,
.site-header.is-scrolled .header-actions > a.icon-btn {
    display: none;
}
.site-header.is-scrolled .condensed-cta { display: inline-flex; }
.site-header:not(.is-scrolled) .condensed-cta { display: none !important; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.header-left { display: flex; align-items: center; gap: 48px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 26px; width: auto; display: block; }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500; font-size: 0.92rem; color: var(--text-secondary);
    position: relative; padding: 6px 0; transition: color .2s;
}
.main-nav a::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 1px; background: #fff;
    transition: width .25s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: transparent; border: none; color: var(--text-secondary);
    cursor: pointer; transition: background-color .2s, color .2s;
}
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Recherche ── */
.search-wrap { position: relative; display: flex; align-items: center; }
.search-box {
    position: absolute; right: 44px; top: 50%; transform: translateY(-50%) scaleX(0);
    transform-origin: right center; opacity: 0;
    transition: transform .25s var(--ease), opacity .2s ease;
    pointer-events: none;
}
.search-wrap.is-open .search-box { transform: translateY(-50%) scaleX(1); opacity: 1; pointer-events: auto; }
.search-box input {
    width: 220px; padding: 9px 14px; border-radius: 999px;
    border: 1px solid var(--border-color); background: var(--bg-input); color: #fff;
    font-family: inherit; font-size: 0.85rem;
}
.search-box input:focus { outline: none; border-color: rgba(255,255,255,.35); }
.search-box input::placeholder { color: var(--text-tertiary); }

/* ── Langue ── */
.lang-dropdown { position: relative; }
.lang-menu {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 50;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-sm);
    padding: 6px; min-width: 140px;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.lang-dropdown.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { padding: 9px 12px; border-radius: 6px; font-size: 0.88rem; color: var(--text-secondary); }
.lang-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.lang-menu a.active { color: #fff; font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background: #fff; border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
    position: relative; padding: 150px 0 130px; overflow: hidden; isolation: isolate;
    background-image: url('/assets/img/photos/hero-city-night.jpg');
    background-size: cover; background-position: center 65%;
    min-height: 640px; display: flex; align-items: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.72) 42%, rgba(0,0,0,.32) 75%, rgba(0,0,0,.15) 100%),
        linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 35%);
}
.hero-nodes { position: absolute; inset: 0; z-index: -1; }
.hero-nodes span {
    position: absolute; border-radius: 50%; background: #fff;
    box-shadow: 0 0 12px 2px rgba(255,255,255,.55);
    animation: pulse 3.6s ease-in-out infinite;
}
.hero-nodes span:nth-child(1) { top: 16%; left: 68%; width: 4px; height: 4px; animation-delay: 0s; }
.hero-nodes span:nth-child(2) { top: 32%; left: 84%; width: 3px; height: 3px; animation-delay: .7s; background: var(--accent); box-shadow: 0 0 12px 2px rgba(46,107,255,.7); }
.hero-nodes span:nth-child(3) { top: 56%; left: 74%; width: 3px; height: 3px; animation-delay: 1.4s; }
.hero-nodes span:nth-child(4) { top: 70%; left: 90%; width: 3px; height: 3px; animation-delay: 2.1s; background: var(--accent); box-shadow: 0 0 12px 2px rgba(46,107,255,.7); }
.hero-nodes span:nth-child(5) { top: 10%; left: 92%; width: 2px; height: 2px; animation-delay: 2.8s; }
@keyframes pulse { 0%,100% { opacity: .3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.8); } }

.hero-inner { position: relative; max-width: 740px; }
.hero h1 { margin-bottom: 26px; }
.hero p.lead { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 42px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats { display: flex; gap: 56px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--border-soft); }
.hero-stat-num { font-family: 'Inter Tight', sans-serif; font-size: 2.2rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.hero-stat-label { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 4px; max-width: 160px; }

/* ===== Sections (tout en noir, variation de nuance seulement) ===== */
section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.05rem; }
.section-raised { background: var(--bg-raised); }

/* ===== Feature grid ===== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.grid-4 .feature { background: var(--bg); padding: 40px 30px; transition: background .2s; }
.grid-4 .feature:hover { background: var(--bg-card); }
.feature-icon {
    width: 42px; height: 42px; border-radius: 11px;
    background: var(--bg-card); border: 1px solid var(--border-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
}
.feature-icon .icon { width: 19px; height: 19px; }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 0.92rem; margin: 0; }

.card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md);
    padding: 36px 30px; transition: transform .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.28); }
.card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: #fff; color: #000;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.card-icon .icon { width: 20px; height: 20px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.92rem; margin: 0; }

/* ===== Service block ===== */
.service-block { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--border-soft); }
.service-block:first-child { padding-top: 0; }
.service-block:last-child { border-bottom: none; padding-bottom: 0; }
.service-block:nth-child(even) .service-media { order: 2; }
.service-index { font-family: 'Inter Tight', sans-serif; font-size: 0.82rem; font-weight: 600; color: var(--text-tertiary); letter-spacing: .08em; margin-bottom: 16px; display: block; }
.service-media {
    aspect-ratio: 4/3; border-radius: var(--radius-lg);
    background: var(--bg-raised) center/cover no-repeat; border: 1px solid var(--border-color);
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px;
}
.service-media .icon { width: 22%; height: 22%; color: #fff; stroke-width: 1; opacity: .9; margin: auto; }
.service-media.has-photo .icon { display: none; }
.service-media.has-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 45%);
}
.service-media-hotspot { background-image: url('/assets/img/photos/service-hotspot.jpg'); }
.service-media-pppoe   { background-image: url('/assets/img/photos/service-pppoe.jpg'); }
.service-media-vpn     { background-image: url('/assets/img/photos/service-vpn.jpg'); }
.service-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.service-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.96rem; color: var(--text-main); font-weight: 500; }
.service-list li .icon {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; padding: 4px; margin-top: 1px;
}

/* ===== CTA band ===== */
.cta-band {
    background: var(--bg-raised); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 72px 56px; text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }

/* ===== About values ===== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.value-item { padding: 44px 34px; background: var(--bg); }
.value-num {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--bg-card); border: 1px solid var(--border-color); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
}
.value-num .icon { width: 20px; height: 20px; }
.value-item h3 { margin-bottom: 10px; }

.about-lead { font-size: 1.3rem; color: var(--text-main); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 28px; line-height: 1.5; }
.about-body p { font-size: 1.02rem; margin-bottom: 20px; color: var(--text-secondary); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 44px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; font-weight: 500; margin-bottom: 8px; color: var(--text-secondary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color); font-family: inherit; font-size: 0.95rem;
    background: var(--bg-input); color: #fff; transition: border-color .15s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-tertiary); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: rgba(255,255,255,.4); }
.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-card { background: var(--bg-raised); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px; }
.contact-info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--border-soft); }
.contact-info-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.contact-info-icon {
    width: 42px; height: 42px; border-radius: 11px; background: var(--bg-card); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.contact-info-icon .icon { width: 19px; height: 19px; }
.contact-info-row h4 { font-family: 'Inter Tight', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-tertiary); margin-bottom: 5px; font-weight: 600; }
.contact-info-row a, .contact-info-row span { font-weight: 500; font-size: 0.98rem; color: #fff; }
.contact-info-row a:hover { color: var(--accent-soft); }

.form-alert { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; border: 1px solid; }
.form-alert.success { background: rgba(46,222,133,.08); color: #4ADE9A; border-color: rgba(74,222,154,.25); }
.form-alert.error { background: rgba(255,90,90,.08); color: #FF7A7A; border-color: rgba(255,122,122,.25); }

/* ===== Footer (barre fine, style Starlink) ===== */
.site-footer { background: var(--bg); border-top: 1px solid var(--border-soft); }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 20px; padding: 22px 0;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 18px; }
.footer-brand span { font-size: 0.8rem; color: var(--text-tertiary); }
.footer-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--text-secondary); transition: color .15s; display: inline-flex; align-items: center; gap: 7px; }
.footer-links a:hover { color: #fff; }
.footer-links a .icon { width: 15px; height: 15px; color: var(--text-tertiary); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero { padding: 110px 0 80px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: 1fr; }
    .service-block { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
    .service-block:nth-child(even) .service-media { order: 0; }
    .service-media { max-width: 380px; margin: 0 auto; width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
    .hero-stats { gap: 32px; }
}

@media (max-width: 720px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .search-box { right: 0; top: 46px; transform: translateY(-6px) scale(1); }
    .search-wrap.is-open .search-box { transform: translateY(0) scale(1); }
    .search-box input { width: 180px; }

    body.nav-open .main-nav {
        display: flex; flex-direction: column; gap: 0;
        position: fixed; top: 78px; left: 0; right: 0; bottom: 0;
        background: var(--bg); padding: 24px; z-index: 99;
        animation: slideDown .2s ease;
    }
    body.nav-open .main-nav a { padding: 18px 4px; border-bottom: 1px solid var(--border-soft); width: 100%; }
    body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    @keyframes slideDown { from { opacity:0; transform: translateY(-8px);} to {opacity:1; transform:translateY(0);} }

    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
    .hero { padding: 56px 0 64px; }
    .cta-band { padding: 44px 26px; }
    .contact-form, .contact-info-card { padding: 30px 24px; }
}
