:root {
    --navy:       #08112a;
    --navy-mid:   #0d1e40;
    --blue:       #1B4FBB;
    --blue-dark:  #0d2d7a;
    --blue-light: #2a62d4;
    --red:        #E8192C;
    --red-dark:   #b50f1e;
    --steel:      #6e8fc2;
    --white:      #ffffff;
    --border:     rgba(255,255,255,0.08);
    --border-blue:rgba(27,79,187,0.3);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Barlow', sans-serif;
    background: var(--navy);
    color: var(--white);
    overflow-x: hidden;
  }

  /* ═══════════════════════════════════
     NAV
  ═══════════════════════════════════ */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3.5rem;
    height: 72px;
    background: rgba(8,17,42,0.96);
    border-bottom: 1px solid var(--border-blue);
    backdrop-filter: blur(12px);
  }

  /* Ligne rouge sous la nav */
  nav::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red) 0%, var(--blue) 60%, transparent 100%);
  }

  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }

  .logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
  }

  nav ul a {
    text-decoration: none;
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
  }

  nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: width 0.25s;
  }

  nav ul a:hover { color: var(--white); }
  nav ul a:hover::after { width: 100%; }

  .nav-cta {
    background: var(--red) !important;
    color: white !important;
    padding: 9px 22px !important;
    font-size: 0.76rem !important;
    letter-spacing: 0.12em !important;
    transition: background 0.2s !important;
  }

  .nav-cta::after { display: none !important; }
  .nav-cta:hover { background: var(--red-dark) !important; }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .lang-switch {
    display: flex;
    gap: 5px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
  }

  .lang-switch span { cursor: pointer; transition: color 0.2s; }
  .lang-switch span:hover { color: rgba(255,255,255,0.8); }
  .lang-switch span.active { color: var(--red); font-weight: 700; }
  .lang-switch .sep { opacity: 0.2; }

  /* ═══════════════════════════════════
     TICKER
  ═══════════════════════════════════ */
  .ticker {
    margin-top: 72px;
    background: var(--red);
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
  }

  .ticker-track {
    display: flex;
    gap: 3.5rem;
    animation: ticker-move 35s linear infinite;
    white-space: nowrap;
  }

  .ticker-item {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
  }

  .ticker-item::before { content: '◆  '; opacity: 0.5; }

  @keyframes ticker-move {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* ═══════════════════════════════════
     HERO
  ═══════════════════════════════════ */
  .hero {
    min-height: calc(100vh - 106px);
    display: grid;
    grid-template-columns: 55% 45%;
    position: relative;
    overflow: hidden;
  }

  /* Fond droit bleu diagonal */
  .hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 60%, var(--navy) 100%);
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
  }

  /* Lignes décoratives */
  .hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
      repeating-linear-gradient(
        90deg,
        rgba(27,79,187,0.04) 0px,
        rgba(27,79,187,0.04) 1px,
        transparent 1px,
        transparent 80px
      );
    z-index: 0;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem 8rem 5rem;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1.5rem;
  }

  .hero-tag::before {
    content: '';
    width: 28px; height: 2px;
    background: var(--red);
  }

  h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.8rem, 4.5vw, 5.2rem);
    font-weight: 900;
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 1.6rem;
  }

  h1 .red  { color: var(--red); }
  h1 .blue { color: var(--blue-light); }

  .hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.72;
    max-width: 400px;
    margin-bottom: 2.5rem;
    font-weight: 300;
    border-left: 3px solid var(--blue);
    padding-left: 1.2rem;
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: var(--red);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .btn-primary:hover { background: var(--red-dark); transform: translateX(3px); }

  .btn-outline {
    border: 1px solid rgba(27,79,187,0.5);
    color: rgba(255,255,255,0.75);
    padding: 14px 30px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
  }

  .btn-outline:hover {
    border-color: var(--blue-light);
    background: rgba(27,79,187,0.1);
    color: white;
  }

  /* Hero visual */
  .hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tech-diagram {
    width: 380px;
    height: 380px;
    position: relative;
  }

  .diagram-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    animation: pulse-ring 3s ease-in-out infinite;
  }

  .diagram-ring:nth-child(1) { inset: 0; animation-delay: 0s; }
  .diagram-ring:nth-child(2) { inset: 38px; animation-delay: 0.6s; border-color: rgba(27,79,187,0.2); }
  .diagram-ring:nth-child(3) { inset: 76px; border-color: rgba(232,25,44,0.25); animation-delay: 1.2s; }

  @keyframes pulse-ring {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.015); }
  }

  .diagram-center {
    position: absolute;
    inset: 118px;
    background: radial-gradient(circle, rgba(232,25,44,0.18) 0%, rgba(27,79,187,0.1) 100%);
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }

  .diagram-icon { font-size: 2.2rem; }

  .diagram-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
  }

  .diagram-nodes {
    position: absolute;
    inset: 0;
    animation: rotate-nodes 22s linear infinite;
  }

  .d-node {
    position: absolute;
    width: 42px; height: 42px;
    background: rgba(13,30,64,0.95);
    border: 1px solid var(--border-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
  }

  .d-node:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
  .d-node:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
  .d-node:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
  .d-node:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }

  @keyframes rotate-nodes { to { transform: rotate(360deg); } }

  /* Stats hero */
  .hero-stats {
    position: absolute;
    bottom: 3rem;
    left: 5rem;
    display: flex;
    gap: 3.5rem;
    z-index: 2;
  }

  .stat { display: flex; flex-direction: column; }

  .stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--white);
  }

  .stat-num sup { color: var(--red); font-size: 1.8rem; vertical-align: super; }

  .stat-sep {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    align-self: flex-end;
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
  }

  /* ═══════════════════════════════════
     SECTIONS COMMUNES
  ═══════════════════════════════════ */
  section { padding: 5.5rem 5rem; }

  .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.8rem;
  }

  .section-tag::before {
    content: '';
    width: 22px; height: 2px;
    background: var(--red);
  }

  h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 1.05;
    margin-bottom: 0.8rem;
  }

  /* ═══════════════════════════════════
     ACTIVITÉS
  ═══════════════════════════════════ */
  .activities {
    background: var(--navy-mid);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .act-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
  }

  .act-intro p {
    color: var(--steel);
    max-width: 460px;
    line-height: 1.72;
    font-weight: 300;
    margin-top: 0.5rem;
    font-size: 0.95rem;
  }

  .act-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(27,79,187,0.12);
  }

  .act-card {
    background: var(--navy);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s;
  }

  /* Trait rouge animé au hover */
  .act-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--red);
    transition: width 0.35s ease;
  }

  /* Numéro fantôme */
  .act-card::after {
    content: attr(data-num);
    position: absolute;
    bottom: -0.5rem; right: 1rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(27,79,187,0.07);
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s;
  }

  .act-card:hover { background: #0a1838; }
  .act-card:hover::before { width: 100%; }
  .act-card:hover::after { color: rgba(232,25,44,0.06); }

  .act-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    display: block;
  }

  .act-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    color: var(--white);
  }

  .act-card p {
    font-size: 0.83rem;
    color: var(--steel);
    line-height: 1.65;
    font-weight: 300;
  }

  .act-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    transition: gap 0.2s;
  }

  .act-link:hover { gap: 12px; }

  /* ═══════════════════════════════════
     EXPERTISE SPLIT
  ═══════════════════════════════════ */
  .expertise {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    min-height: 520px;
  }

  .exp-left {
    background: linear-gradient(140deg, #0c2060 0%, var(--navy) 100%);
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border-blue);
  }

  /* Watermark FOMICO */
  .exp-left::after {
    content: 'FOMICO';
    position: absolute;
    bottom: -1.5rem; right: -1rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9rem;
    font-weight: 900;
    color: rgba(27,79,187,0.05);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -0.02em;
  }

  .exp-left p {
    color: var(--steel);
    line-height: 1.78;
    font-weight: 300;
    margin: 1rem 0 2rem;
    max-width: 400px;
    font-size: 0.95rem;
  }

  .features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.82);
  }

  .features-list li::before {
    content: '';
    width: 18px; height: 18px;
    background: rgba(232,25,44,0.15);
    border: 1.5px solid var(--red);
    flex-shrink: 0;
    clip-path: polygon(0 0,65% 0,100% 35%,100% 100%,35% 100%,0 65%);
  }

  .exp-right {
    background: var(--blue);
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  /* Motif diagonal */
  .exp-right::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    border: 40px solid rgba(255,255,255,0.05);
    border-radius: 50%;
  }

  .exp-right::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 240px; height: 240px;
    border: 50px solid rgba(255,255,255,0.04);
    border-radius: 50%;
  }

  .exp-right h2 { color: white; margin-bottom: 1rem; position: relative; z-index: 1; }

  .exp-right p {
    color: rgba(255,255,255,0.78);
    line-height: 1.72;
    font-weight: 300;
    margin-bottom: 2rem;
    position: relative; z-index: 1;
    font-size: 0.95rem;
  }

  .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--blue-dark);
    padding: 14px 30px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    width: fit-content;
    position: relative; z-index: 1;
  }

  .btn-white:hover { transform: translateX(5px); box-shadow: -4px 4px 0 rgba(0,0,0,0.2); }

  /* ═══════════════════════════════════
     SECTEURS
  ═══════════════════════════════════ */
  .sectors { background: var(--navy); }

  .sectors-header { text-align: center; margin-bottom: 3rem; }

  .sectors-header p {
    color: var(--steel);
    margin-top: 0.5rem;
    font-weight: 300;
    font-size: 0.95rem;
  }

  .sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(27,79,187,0.12);
  }

  .sector-item {
    background: var(--navy-mid);
    padding: 2.5rem 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    border-top: 2px solid transparent;
  }

  .sector-item:hover {
    background: #0d2060;
    border-top-color: var(--red);
    transform: translateY(-3px);
    z-index: 1;
  }

  .sector-emoji {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 1rem;
  }

  .sector-item h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    color: white;
  }

  .sector-item p {
    font-size: 0.77rem;
    color: var(--steel);
    line-height: 1.55;
  }

  /* ═══════════════════════════════════
     RÉFÉRENCES
  ═══════════════════════════════════ */
  .references {
    background: var(--navy-mid);
    border-top: 1px solid var(--border);
    text-align: center;
  }

  .refs-subtitle {
    color: var(--steel);
    margin-top: 0.5rem;
    font-weight: 300;
    font-size: 0.95rem;
  }

  .refs-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
  }

  .ref-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.18);
    transition: color 0.3s;
    cursor: default;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
  }

  .ref-logo:hover {
    color: rgba(255,255,255,0.55);
    border-bottom-color: var(--red);
  }

  /* ═══════════════════════════════════
     BANDEAU CONTACT
  ═══════════════════════════════════ */
  .contact-banner {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--navy) 100%);
    border-top: 1px solid var(--border-blue);
    border-bottom: 1px solid var(--border-blue);
    padding: 4.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
  }

  .contact-banner h2 span { color: var(--red); }

  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-end;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--steel);
  }

  .contact-item strong { color: white; font-weight: 500; }

  /* ═══════════════════════════════════
     FOOTER
  ═══════════════════════════════════ */
  footer {
    background: #050d1e;
    border-top: 1px solid var(--border);
    padding: 3.5rem 5rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand img {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
  }

  .footer-brand p {
    font-size: 0.81rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.72;
    font-weight: 300;
    max-width: 230px;
  }

  .footer-col h5 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 1.2rem;
  }

  .footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-col ul li a {
    text-decoration: none;
    font-size: 0.81rem;
    color: rgba(255,255,255,0.35);
    transition: color 0.2s;
  }

  .footer-col ul li a:hover { color: rgba(255,255,255,0.8); }

  .footer-bottom {
    background: #050d1e;
    border-top: 1px solid var(--border);
    padding: 1.4rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom p {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
  }

  .footer-bottom a {
    color: var(--red);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
  }

  .footer-bottom a:hover { opacity: 1; }

  /* ═══════════════════════════════════
     SCROLL ANIMATIONS
  ═══════════════════════════════════ */
  .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .fade-up:nth-child(2) { transition-delay: 0.1s; }
  .fade-up:nth-child(3) { transition-delay: 0.2s; }
  .fade-up:nth-child(4) { transition-delay: 0.3s; }
  .fade-up:nth-child(5) { transition-delay: 0.4s; }
  .fade-up:nth-child(6) { transition-delay: 0.5s; }