/* ====== VARIABLES ====== */
  :root {
    --navy: #0B132B;
    --navy-deep: #070D1E;
    --navy-light: #131E42;
    --navy-card: #101B3B;
    --gold: #D4AF37;
    --gold-soft: #E8CE7B;
    --gold-dim: #8A7127;
    --text: #E7E7EA;
    --text-muted: #9CA3AF;
    --radius: 16px;
    --max-w: 1152px;
    --gallery-tilt: 7deg; /* passe à 30deg si tu veux l'effet plus marqué */
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background-color: var(--navy);
    background-image: radial-gradient(rgba(212,175,55,0.10) 1px, transparent 1px);
    background-size: 26px 26px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    overflow-x: hidden;
  }
  h1, h2, h3, .font-display { font-family: 'Poppins', sans-serif; margin: 0; }
  p { margin: 0; }
  ul { margin: 0; padding: 0; list-style: none; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }
  .container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
  .section { padding: 96px 0; }
  .section-deep { background: var(--navy-deep); }
  .section-title { font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; text-align: center; margin-bottom: 14px; }
  .section-lead { color: var(--text-muted); text-align: center; max-width: 560px; margin: 0 auto 56px; }
  .icon { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }

  /* ====== GLASSMORPHISM ====== */
  .glass {
    background: rgba(255,255,255,0.045);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.09);
  }

  /* ====== SCROLL PROGRESS ====== */
  .scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-soft));
    transform: scaleX(0); transform-origin: left; z-index: 70;
  }

  /* ====== NAV ====== */
  header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--max-w); margin: 0 auto; }
  .logo { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1.15rem; color: #fff; }
  .logo span { color: var(--gold); }
  .nav-links { display: none; align-items: center; gap: 32px; font-size: 0.92rem; font-weight: 500; color: #d1d5db; }
  .nav-links a { transition: color 0.2s ease; }
  .nav-links a:hover { color: var(--gold); }
  .btn-nav-cta { display: none; background: var(--gold); color: var(--navy); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.88rem; padding: 9px 20px; border-radius: 999px; transition: filter 0.2s ease; }
  .btn-nav-cta:hover { filter: brightness(1.1); }
  .menu-toggle { background: none; border: none; color: #fff; padding: 8px; cursor: pointer; }
  .mobile-menu { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; border-top: 1px solid rgba(255,255,255,0.05); }
  .mobile-menu.open { max-height: 260px; }
  .mobile-menu-inner { display: flex; flex-direction: column; gap: 16px; padding: 18px 24px; font-size: 0.95rem; font-weight: 500; color: #e5e7eb; }
  .mobile-menu-inner a.active-link { color: var(--gold); }

  @media (min-width: 768px) {
    .nav-links { display: flex; }
    .btn-nav-cta { display: inline-block; }
    .menu-toggle { display: none; }
  }

  /* ====== BUTTONS ====== */
  .btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins', sans-serif; font-weight: 600; padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer; transition: transform 0.25s ease, filter 0.25s ease, background 0.25s ease; }
  .btn-gold { background: var(--gold); color: var(--navy); }
  .btn-gold:hover { filter: brightness(1.08); transform: translateY(-2px); }
  .btn-glass { color: #fff; }
  .btn-glass:hover { background: rgba(255,255,255,0.1); }

  /* ====== HERO ====== */
  #hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 60px; overflow: hidden; }
  .hero-bg { position: absolute; inset: 0; pointer-events: none; }
  .blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
  .blob-1 { top: -90px; right: -90px; width: 440px; height: 440px; background: rgba(212,175,55,0.12); }
  .blob-2 { bottom: 0; left: 30%; width: 280px; height: 280px; background: rgba(212,175,55,0.06); }
  .hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
  .hero-kicker { color: var(--gold); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 16px; }
  .hero-title { font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.75rem); line-height: 1.08; margin-bottom: 24px; }
  .name-gradient { background: linear-gradient(100deg, #ffffff 20%, var(--gold-soft) 55%, var(--gold) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero-sub { color: #d1d5db; font-size: 1.1rem; line-height: 1.6; max-width: 520px; margin-bottom: 14px; }
  .hero-sub-small { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; max-width: 460px; margin-bottom: 36px; }
  .hero-cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
  .hero-badge-wrap { display: none; justify-content: center; }
  @keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

  /* ====== GLOBE FILAIRE, ORBITES & SATELLITES (hero) ====== */
  .solar-system { position: relative; width: 400px; height: 400px; }
  .solar-lines { position: absolute; inset: 0; pointer-events: none; }
  .orbit-path { fill: none; stroke: rgba(212,175,55,0.32); stroke-width: 1; stroke-dasharray: 2 5; }
  .globe-line { fill: none; stroke: rgba(212,175,55,0.65); stroke-width: 1.3; transform-origin: 160px 160px; animation: globe-pulse 3.4s ease-in-out infinite; }
  .globe-line.g2 { animation-delay: 0.2s; }
  .globe-line.g3 { animation-delay: 0.4s; }
  @keyframes globe-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.06); }
  }
  .solar-center-icon {
    position: absolute; top: 50%; left: 50%; width: 43px; height: 43px; margin: -22px 0 0 -22px;
    color: var(--gold); z-index: 11; pointer-events: none;
  }
  .satellite {
    position: absolute; top: 50%; left: 50%; width: 53px; height: 53px; margin: -27px 0 0 -27px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -6px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08) inset;
    transition: box-shadow 0.2s ease; will-change: transform, opacity;
    cursor: default; overflow: hidden;
  }
  .satellite:hover { box-shadow: 0 0 18px rgba(212,175,55,0.8), 0 0 0 1px rgba(255,255,255,0.15) inset; z-index: 999 !important; }
  .satellite svg { width: 22px; height: 22px; }
  .satellite img { width: 100%; height: 100%; object-fit: cover; }
  .satellite span { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.72rem; color: #fff; }

  @media (min-width: 860px) {
    .hero-grid { grid-template-columns: 1.3fr 0.7fr; }
    .hero-badge-wrap { display: flex; }
  }

  /* ====== TOOLS MARQUEE ====== */
  .tools-marquee { border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 18px 0; overflow: hidden; }
  .tools-track { display: flex; gap: 3rem; width: max-content; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; animation: marquee 26s linear infinite; }
  .tools-track span.sep { color: rgba(212,175,55,0.4); }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* ====== ABOUT ====== */
  .about-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }
  .about-text p { color: #d1d5db; font-size: 1.1rem; line-height: 1.75; }
  .about-title { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); color: #fff; margin-bottom: 24px; }
  .gold-underline { position: relative; color: var(--gold); }
  .gold-underline::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
  .about-list { display: flex; flex-direction: column; gap: 18px; }
  .about-item { display: flex; align-items: center; gap: 16px; border-radius: 12px; padding: 16px; }
  .about-item .icon-circle { width: 42px; height: 42px; border-radius: 50%; background: rgba(212,175,55,0.1); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; }
  .about-item span.label { color: #e5e7eb; }
  @media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; } }

  /* ====== PILLARS ====== */
  .pillars-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .pillar-card { border-radius: var(--radius); padding: 34px; border-top: 1px solid rgba(212,175,55,0.35); transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
  .pillar-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,0.6); box-shadow: 0 24px 45px -22px rgba(212,175,55,0.3); }
  .pillar-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(212,175,55,0.1); display: flex; align-items: center; justify-content: center; color: var(--gold); margin-bottom: 24px; }
  .pillar-card h3 { font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
  .pillar-card p { color: var(--text-muted); line-height: 1.65; }
  @media (min-width: 860px) { .pillars-grid { grid-template-columns: repeat(3, 1fr); } }

  .skills-row { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .skill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(212,175,55,0.3); color: #e5e7eb; font-size: 0.88rem; }
  .skill-tag svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

  /* ====== GALERIE (double carrousel incliné) ====== */
  #galerie { padding: 120px 0; overflow: hidden; position: relative; }
  .gallery-rows { display: flex; flex-direction: column; gap: 28px; margin-top: 20px; }
  .gallery-row-wrap { width: 130%; margin-left: -15%; overflow: hidden; }
  .gallery-row-wrap.tilt-a { transform: rotate(calc(-1 * var(--gallery-tilt))); }
  .gallery-row-wrap.tilt-b { transform: rotate(var(--gallery-tilt)); }
  .gallery-track { display: flex; gap: 18px; width: max-content; }
  .gallery-track.dir-left { animation: gallery-left 34s linear infinite; }
  .gallery-track.dir-right { animation: gallery-right 34s linear infinite; }
  .gallery-row-wrap:hover .gallery-track { animation-play-state: paused; }
  @keyframes gallery-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
  @keyframes gallery-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
  .gallery-tile { position: relative; width: 190px; height: 240px; border-radius: 14px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.08); }
  .gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-tile .tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 0.78rem; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent); }
  .gallery-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 44px; }

  /* ====== PORTFOLIO ====== */
  .portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .project-card { border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 30px; display: flex; flex-direction: column; transition: transform 0.3s ease; }
  .project-card:hover { transform: translateX(4px); }
  .project-photo { width: calc(100% + 33px); height: 170px; object-fit: cover; margin: -31px -31px 20px -31px; border-radius: 0 var(--radius) 0 0; }
  .project-icon { width: 44px; height: 44px; border-radius: 50%; background: rgba(212,175,55,0.1); display: flex; align-items: center; justify-content: center; color: var(--gold); margin-bottom: 18px; }
  .project-icon.on-photo { position: relative; margin-top: -40px; background: var(--navy); border: 2px solid var(--navy); }
  .project-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(212,175,55,0.75); margin-bottom: 4px; }
  .project-card h3 { font-weight: 600; font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
  .project-role { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
  .project-card p.desc { color: #d1d5db; font-size: 0.92rem; line-height: 1.6; margin-bottom: 8px; }
  .project-card p.desc span.lbl { color: var(--text-muted); }
  .project-card p.placeholder-note { color: var(--gold-soft); font-size: 0.78rem; font-style: italic; margin-top: 6px; margin-bottom: 18px; }
  .drive-btn { margin-top: auto; background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-dim)); color: var(--navy); font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.9rem; padding: 12px 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter 0.25s ease, transform 0.25s ease; }
  .drive-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
  @media (min-width: 860px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }

  .other-clients { margin-top: 56px; text-align: center; }
  .other-clients p { color: var(--text-muted); margin-bottom: 12px; }
  .badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
  .badge { padding: 7px 18px; border-radius: 999px; border: 1px solid rgba(212,175,55,0.3); color: rgba(212,175,55,0.9); font-size: 0.88rem; }

  /* ====== CONTACT ====== */
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
  .contact-title { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); color: #fff; margin-bottom: 20px; line-height: 1.25; }
  .contact-text { color: #d1d5db; line-height: 1.7; max-width: 420px; margin-bottom: 40px; }
  .contact-items { display: flex; flex-direction: column; gap: 20px; }
  .contact-item { display: flex; align-items: center; gap: 16px; }
  .contact-item .icon-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(212,175,55,0.1); display: flex; align-items: center; justify-content: center; color: var(--gold); flex-shrink: 0; transition: background 0.25s ease, color 0.25s ease; }
  a.contact-item:hover .icon-circle { background: var(--gold); color: var(--navy); }
  .social-row { display: flex; gap: 16px; margin-top: 40px; }
  .social-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #d1d5db; transition: color 0.25s ease; cursor: pointer; }
  .social-btn:hover { color: var(--gold); }

  .contact-form { border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; gap: 20px; }
  .form-group label { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; }
  .form-group input, .form-group textarea { width: 100%; background: rgba(11,19,43,0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 12px 16px; color: #fff; font-family: 'Inter', sans-serif; font-size: 0.95rem; }
  .form-group input::placeholder, .form-group textarea::placeholder { color: #6b7280; }
  .form-group input:focus, .form-group textarea:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
  .form-group textarea { resize: none; }
  .btn-submit { width: 100%; background: var(--gold); color: var(--navy); font-family: 'Poppins', sans-serif; font-weight: 600; padding: 14px; border: none; border-radius: 999px; cursor: pointer; transition: filter 0.25s ease; }
  .btn-submit:hover { filter: brightness(1.08); }
  .form-success { display: none; text-align: center; color: var(--gold); font-size: 0.9rem; }
  .form-success.visible { display: block; }
  @media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

  footer { padding: 32px 0; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; color: #6b7280; font-size: 0.85rem; }

  /* ====== BOUTON RETOUR EN HAUT (icône continue) ====== */
  #back-to-top { position: fixed; bottom: 28px; right: 28px; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); z-index: 55; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; cursor: pointer; }
  #back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  #back-to-top::before { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px dashed rgba(212,175,55,0.5); animation: spin-slow 12s linear infinite; }

  #whatsapp-float {
    position: fixed; bottom: 28px; left: 28px; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 10px 25px -8px rgba(37,211,102,0.7); z-index: 55; cursor: pointer;
    animation: whatsapp-pulse 2.6s ease-in-out infinite;
  }
  #whatsapp-float svg { width: 28px; height: 28px; }
  @keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 10px 25px -8px rgba(37,211,102,0.7), 0 0 0 0 rgba(37,211,102,0.5); }
    50% { box-shadow: 0 10px 25px -8px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0); }
  }
  @media (prefers-reduced-motion: reduce) { #whatsapp-float { animation: none; } }

  a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

  @media (prefers-reduced-motion: reduce) {
    #back-to-top::before, .gallery-track, .tools-track, .globe-line { animation: none !important; }
  }