/* ============================================================================
   VALYO.FR — Site vitrine
   Palette hybride : noir landing app + or commun + crème Frame V6
   ============================================================================ */

:root {
    --bg-page:        #0A0A0A;
    --bg-section:     #F5F5F0;
    --bg-card-dark:   rgba(255, 255, 255, 0.03);
    --text-light:     #F5F5F0;
    --text-light-soft:#94a3b8;
    --text-dark:      #0F172A;
    --text-dark-soft: #475569;
    --gold:           #C2A54F;
    --gold-soft:      rgba(194, 165, 79, 0.45);
    --gold-glow:      rgba(194, 165, 79, 0.18);
    --module-yellow:  #FFEB81;
    --module-deep:    #D4B832;
    --line-dark:      rgba(255, 255, 255, 0.1);
    --line-light:     #E4E1D8;
    --pgl-metropole-c:#1e3a8a;
    --pgl-excourly-c: #2563eb;
    --map-bg:         #F2F2F2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { scroll-behavior: smooth; }
body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ============ STRUCTURE GLOBALE ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ NAVBAR TRANSPARENTE ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 10, 0.7);
    border-bottom: 1px solid var(--line-dark);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo {
    width: 36px;
    height: 36px;
    background: #0F0F0F;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-soft);
}
.nav-logo svg { width: 22px; height: 22px; }
.nav-wordmark {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--text-light);
}
.nav-wordmark .accent { color: var(--gold); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}
.nav-links a {
    color: var(--text-light-soft);
    text-decoration: none;
    transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-light); }
.nav-cta {
    background: var(--gold);
    color: var(--text-dark) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--gold-glow);
}

/* ============ HERO ============ */
.hero {
    min-height: 100vh;
    padding: 100px 0 60px;
    display: flex;
    align-items: center;
    position: relative;
    background:
      radial-gradient(ellipse at top right, rgba(194, 165, 79, 0.08) 0%, transparent 60%),
      radial-gradient(ellipse at bottom left, rgba(30, 58, 138, 0.06) 0%, transparent 50%),
      var(--bg-page);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 20% 30%, var(--gold-soft) 0%, transparent 0.2%),
      radial-gradient(circle at 80% 70%, var(--gold-soft) 0%, transparent 0.2%),
      radial-gradient(circle at 50% 50%, var(--gold-soft) 0%, transparent 0.15%),
      radial-gradient(circle at 30% 80%, var(--gold-soft) 0%, transparent 0.15%),
      radial-gradient(circle at 70% 20%, var(--gold-soft) 0%, transparent 0.15%);
    background-size: 100% 100%;
    opacity: 0.4;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero LEFT */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 0.2s forwards;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}
.hero-title .line {
    display: block;
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) { animation-delay: 0.6s; }
.hero-title .hl {
    background: var(--module-yellow);
    color: var(--text-dark);
    padding: 0 0.2em 0.04em;
    display: inline-block;
    transform: skewX(-6deg);
}
.hero-title .hl > span { display: inline-block; transform: skewX(6deg); }

.hero-lede {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--text-light-soft);
    margin-bottom: 36px;
    max-width: 520px;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 0.9s forwards;
}
.hero-lede strong {
    font-family: 'Space Grotesk', sans-serif;
    font-style: normal;
    font-weight: 600;
    color: var(--text-light);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.7s ease-out 1.1s forwards;
}
.btn-primary {
    background: var(--gold);
    color: var(--text-dark);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--gold-glow);
}
.btn-primary .arrow { transition: transform 0.2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--line-dark);
    padding: 14px 24px;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--gold); }

/* Hero RIGHT : visuel device 1:1 statique */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--map-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px var(--gold-soft);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}
.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, transparent 60%, rgba(194, 165, 79, 0.08) 100%);
    pointer-events: none;
}
.visual-topbar {
    position: absolute; top: 0; left: 0; right: 0;
    height: 9%;
    background: #3C3C3C;
    padding: 1.2% 1.5%;
    padding-right: 10%;
    display: flex; align-items: stretch; gap: 1%;
    border-bottom: 1px solid #E6E6E6;
}
.pill-adresse {
    background: #222; color: #f1f5f9;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 11px;
    padding: 0 10px; border-radius: 12px;
    border: 1.5px solid #E6E6E6;
    display: flex; align-items: center;
    flex-shrink: 0;
}
.search-input {
    flex: 1; background: #E6E6E6;
    border: 1.5px solid #3C3C3C; border-radius: 3px;
    display: flex; align-items: center;
    padding: 0 8px 0 22px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px; color: #151616;
    position: relative;
}
.search-input .loupe {
    position: absolute; left: 7px; top: 50%;
    transform: translateY(-50%); color: #6B6969; font-size: 11px;
}
.burger {
    position: absolute; top: 2.2%; right: 2.2%;
    width: 6.5%; aspect-ratio: 1/1;
    background: var(--module-yellow);
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.burger span {
    display: block; width: 55%; height: 2px;
    background: #0F172A; border-radius: 1px;
}
.map-container {
    position: absolute; top: 9%; left: 0; right: 0; bottom: 0;
}
.map-container svg { width: 100%; height: 100%; display: block; }
.pin-pulse {
    transform-origin: center;
    animation: pinPulse 2.5s ease-out infinite;
}
@keyframes pinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.map-legend-static {
    position: absolute; bottom: 3%; right: 3%;
    background: rgba(255,255,255,0.96);
    border-radius: 6px;
    padding: 7px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--line-light);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
}
.map-legend-static .lg-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 7px; color: var(--text-dark-soft);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 5px; font-weight: 700;
}
.map-legend-static .lg-row {
    display: flex; align-items: center; gap: 5px;
    margin-bottom: 2px; color: var(--text-dark);
}
.map-legend-static .lg-dot {
    width: 7px; height: 7px; border-radius: 50%;
    border: 1.2px solid #FFF;
    box-shadow: 0 0 1px rgba(0,0,0,0.2);
}
.map-legend-static .lg-dot.pgl-metropole { background: var(--pgl-metropole-c); }
.map-legend-static .lg-dot.pgl-excourly  { background: var(--pgl-excourly-c); }

/* ============ SECTIONS GÉNÉRIQUES ============ */
.section {
    padding: 100px 0;
    position: relative;
}
.section-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gold);
}
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-lede {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--text-light-soft);
    margin-bottom: 48px;
    max-width: 640px;
}

/* ============ POUR QUI ============ */
.pour-qui-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.target-chip {
    background: var(--bg-card-dark);
    border: 1px solid var(--line-dark);
    border-radius: 12px;
    padding: 24px 20px;
    transition: border-color 0.2s, transform 0.2s;
}
.target-chip:hover {
    border-color: var(--gold-soft);
    transform: translateY(-2px);
}
.target-chip .icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
    margin-bottom: 12px;
}
.target-chip .label {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-light);
}
.target-chip .desc {
    font-size: 13px;
    color: var(--text-light-soft);
}

/* ============ MODULES ============ */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.module-card {
    background: var(--bg-card-dark);
    border: 2px solid var(--gold-soft);
    border-radius: 16px;
    padding: 40px 36px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    display: block;
}
.module-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--gold-glow);
}
.module-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.module-icon {
    width: 56px;
    height: 56px;
    color: var(--text-light);
    transition: color 0.2s;
}
.module-card:hover .module-icon { color: var(--gold); }
.module-icon svg { width: 100%; height: 100%; }
.module-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.04em;
    color: var(--text-light);
}
.module-desc {
    color: var(--text-light-soft);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 20px;
}
.module-features {
    list-style: none;
    margin-bottom: 28px;
}
.module-features li {
    padding: 6px 0;
    border-bottom: 1px solid var(--line-dark);
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.module-features li::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}
.module-link {
    color: var(--gold);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.module-link .arrow { transition: transform 0.2s; }
.module-card:hover .module-link .arrow { transform: translateX(4px); }

/* ============ SOURCES ============ */
.sources-section {
    background: var(--bg-section);
    color: var(--text-dark);
}
.sources-section .section-title { color: var(--text-dark); }
.sources-section .section-lede { color: var(--text-dark-soft); }

.sources-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--line-light);
}
.sources-stats-top {
    margin-top: 32px;
    padding-top: 0;
    border-top: none;
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}
.stat-value .unit {
    font-size: 22px;
    color: var(--gold);
    margin-left: 4px;
}
.stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dark-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

/* ============ SIGNATURE ============ */
.signature-section {
    padding: 100px 0 80px;
    text-align: center;
    background:
      radial-gradient(ellipse at center, rgba(194, 165, 79, 0.08) 0%, transparent 60%),
      var(--bg-page);
}
.signature-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 16px;
}
.signature-quote {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 28px;
    line-height: 1.35;
    max-width: 720px;
    margin: 0 auto 32px;
    color: var(--text-light);
}
.signature-quote strong {
    font-family: 'Space Grotesk', sans-serif;
    font-style: normal;
    font-weight: 600;
    background: linear-gradient(120deg, var(--gold), var(--module-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.signature-author {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border: 1px solid var(--line-dark);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-light-soft);
}
.signature-author strong {
    color: var(--text-light);
    font-weight: 700;
}
.signature-author a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

/* ============ FOOTER ============ */
.footer {
    background: #050505;
    border-top: 1px solid var(--line-dark);
    padding: 60px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand .nav-brand { margin-bottom: 16px; }
.footer-tagline {
    color: var(--text-light-soft);
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
}
.footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: var(--text-light-soft);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-light); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--line-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light-soft);
    font-size: 13px;
}
.footer-social {
    display: flex;
    gap: 14px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.15s, background 0.15s;
}
.footer-social a:hover {
    background: rgba(255, 255, 255, 0.06);
}
.footer-social a[aria-label*="LinkedIn"]:hover { color: #0A66C2; }
.footer-social a[aria-label*="YouTube"]:hover  { color: #FF0000; }

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

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 40px; }
    /* width:100% explicite : sans ça, aspect-ratio:1/1 dans une grid 1fr
       résolvait à 0×0 sur Chrome mobile. */
    .hero-visual { width: 100%; max-width: 420px; margin: 0 auto; }
    .pour-qui-grid { grid-template-columns: repeat(2, 1fr); }
    .modules-grid { grid-template-columns: 1fr; }
    .sources-stats { gap: 32px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 540px) {
    .hero-title { font-size: 32px; }
    .section-title { font-size: 28px; }
    .pour-qui-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
