/* ============================================================
     DESIGN TOKENS
  ============================================================ */
  :root{
    --blue:#5aa9d9;
    --blue-soft:#bfe1f3;
    --blue-deep:#2f6ea0;
    --blue-ink:#1d3f5c;
    --purple:#7a2c6c;
    --ink:#1a2330;
    --ink-2:#5b6878;
    --paper:#ffffff;
    --paper-2:#f5f8fb;
    --rule:#e3e8ee;

    /* Durées d'animation réutilisables */
    --ease-out-quart: cubic-bezier(.25,.46,.45,.94);
    --ease-carousel:  cubic-bezier(.65,.05,.25,1);
    --t-fast:  .15s;
    --t-base:  .25s;
    --t-slow:  .6s;
  }

  /* ============================================================
     RESET & BASE
  ============================================================ */
  *, *::before, *::after { box-sizing: border-box; }
  html {
    margin: 0; padding: 0;
    scroll-behavior: smooth; /* smooth scroll natif sur tous les ancres */
  }
  body {
    margin: 0; padding: 0;
    font-family: "Roboto Condensed", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
  }
  img { max-width: 100%; display: block; }
  a   { color: inherit; text-decoration: none; }

  /* ============================================================
     REVEAL AU SCROLL — état initial
     L'IntersectionObserver ajoute la classe .visible
  ============================================================ */
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t-slow) var(--ease-out-quart),
                transform var(--t-slow) var(--ease-out-quart);
  }
  [data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Délais en cascade pour les grilles */
  [data-reveal][data-delay="1"] { transition-delay: .1s; }
  [data-reveal][data-delay="2"] { transition-delay: .2s; }
  [data-reveal][data-delay="3"] { transition-delay: .3s; }
  [data-reveal][data-delay="4"] { transition-delay: .4s; }
  [data-reveal][data-delay="5"] { transition-delay: .5s; }

  /* ============================================================
     HEADER (fixe avec fond verre au scroll)
  ============================================================ */
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; gap: 24px;
    padding: 18px clamp(20px, 4vw, 56px);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow var(--t-base) ease, background var(--t-base) ease;
  }
  .site-header.scrolled {
    box-shadow: 0 4px 24px rgba(31,79,123,.10);
    background: rgba(255,255,255,.98);
  }

  /* ---- Logo + shimmer ---- */
  .brand { display: flex; align-items: center; gap: 14px; }

  /* Conteneur du logo pour l'effet shimmer */
  .logo-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    flex: none;
  }
  .logo-wrap img {
    width: 80px; height: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
  }
  /* Pseudo-élément reflet brillant */
  .logo-wrap::after {
    content: "";
    position: absolute;
    inset: -50%;
    width: 40%;
    background: linear-gradient(
      105deg,
      transparent 0%,
      rgba(255,255,255,.0) 30%,
      rgba(255,255,255,.65) 50%,
      rgba(255,255,255,.0) 70%,
      transparent 100%
    );
    transform: translateX(-200%) skewX(-15deg);
    pointer-events: none;
  }
  /* Classe ajoutée par JS toutes les 10 s */
  .logo-wrap.shimmer::after {
    animation: shimmer-sweep .85s var(--ease-out-quart) forwards;
  }
  @keyframes shimmer-sweep {
    from { transform: translateX(-200%) skewX(-15deg); }
    to   { transform: translateX(400%)  skewX(-15deg); }
  }

  .brand .word { display: flex; flex-direction: column; line-height: 1; }
  .brand .word strong {
    font-size: 30px; font-weight: 700;
    letter-spacing: .04em; color: var(--purple);
  }
  .brand .word span {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 17px; font-weight: 400;
    color: var(--blue-deep); letter-spacing: .02em;
    margin-top: 4px;
  }

  /* ---- Navigation ---- */
  .nav { margin-left: auto; display: flex; align-items: center; gap: 40px; }
  .nav a {
    font-size: 18px; font-weight: 500; color: var(--blue-deep);
    position: relative; padding: 6px 0;
    transition: color var(--t-base);
  }
  .nav a:hover { color: var(--purple); }
  .nav a.is-active::after {
    content: ""; position: absolute;
    left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--purple);
  }

  /* ============================================================
     BOUTONS — micro-interaction scale + couleur
  ============================================================ */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 18px; font-weight: 500;
    padding: 12px 26px; border-radius: 8px;
    border: 1.5px solid transparent; cursor: pointer;
    /* transform + opacity : GPU-composited → pas de jank */
    transition: transform var(--t-fast) ease,
                background var(--t-base),
                color var(--t-base),
                border-color var(--t-base),
                box-shadow var(--t-base);
  }
  .btn:hover { transform: scale(1.05); }
  .btn:active { transform: scale(.98); }

  .btn-primary {
    background: var(--blue-deep); color: #fff; border-color: var(--blue-deep);
  }
  .btn-primary:hover {
    background: var(--purple); border-color: var(--purple);
    box-shadow: 0 8px 24px rgba(122,44,108,.35);
  }
  .btn-ghost {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
  }
  .btn-ghost:hover { background: #fff; color: var(--blue-deep); }
  .btn-light {
    background: #fff; color: var(--blue-deep); border-color: #fff;
  }
  .btn-light:hover {
    background: var(--blue-soft); color: var(--blue-deep);
    box-shadow: 0 8px 24px rgba(90,169,217,.35);
  }
  .btn-send {
    background: var(--purple); color: #fff; border-color: var(--purple);
    padding: 14px 32px; font-size: 17px;
  }
  .btn-send:hover {
    background: #fff; color: var(--purple); border-color: #fff;
    box-shadow: 0 8px 24px rgba(122,44,108,.4);
  }

  /* ============================================================
     HERO
  ============================================================ */
  .hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-align: center;
    overflow: hidden;
    padding: 120px 24px 80px;
  }
  /* La vidéo est translateY par le parallaxe JS */
  .hero video, .hero .video-fallback {
    position: absolute; inset: 0;
    width: 100%; height: 110%; /* surplus vertical pour l'effet parallaxe */
    object-fit: cover; z-index: 0;
    will-change: transform;
  }
  .video-fallback {
    background: linear-gradient(180deg, #2a4a6a 0%, #1d3550 60%, #0e1d30 100%);
  }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
      180deg,
      rgba(13,30,50,.55) 0%,
      rgba(13,30,50,.45) 50%,
      rgba(13,30,50,.65) 100%
    );
  }
  .hero-inner { position: relative; z-index: 2; max-width: 900px; }

  .kicker {
    font-size: clamp(13px, 1.2vw, 16px); font-weight: 500;
    letter-spacing: .32em; text-transform: uppercase;
    color: #fff; opacity: .92; margin: 0 0 36px;
  }
  .kicker em { font-style: normal; color: var(--blue-soft); }
  .hero h1 {
    font-size: clamp(64px, 9vw, 132px); font-weight: 700;
    margin: 0; line-height: .95; letter-spacing: -.02em;
  }
  .hero .lead {
    font-size: clamp(18px, 1.6vw, 22px); font-weight: 300;
    margin: 24px auto 40px; max-width: 62ch;
    color: rgba(255,255,255,.92);
  }
  .hero-cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

  .scroll-cue {
    position: absolute; left: 50%; bottom: 28px;
    transform: translateX(-50%); z-index: 2;
    color: rgba(255,255,255,.85); font-size: 12px;
    letter-spacing: .3em; text-transform: uppercase;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .scroll-cue::after {
    content: ""; width: 1px; height: 38px;
    background: rgba(255,255,255,.6);
    animation: cue 1.8s ease-in-out infinite;
    transform-origin: top;
  }
  @keyframes cue {
    0%   { transform: scaleY(.2); opacity: .4; }
    50%  { transform: scaleY(1);  opacity: 1;  }
    100% { transform: scaleY(.2); opacity: .4; }
  }

  /* ============================================================
     SECTIONS COMMUNES
  ============================================================ */
  section { padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 80px); }
  .container { max-width: 1180px; margin: 0 auto; }

  .eyebrow {
    display: inline-block; font-size: 13px; font-weight: 500;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--purple); margin-bottom: 14px;
  }
  .eyebrow::before { content: "— "; color: var(--blue); }

  h1.section-title,
  h2.section-title {
    font-size: clamp(36px, 4.5vw, 56px); font-weight: 700;
    margin: 0 0 18px; letter-spacing: -.01em; line-height: 1.05;
    color: var(--blue-ink);
  }
  h1.section-title em,
  h2.section-title em { font-style: normal; color: var(--blue-deep); }
  .section-lead {
    font-size: 18px; color: var(--ink-2);
    max-width: 62ch; margin: 0 0 48px; font-weight: 300;
  }

  /* ============================================================
     À PROPOS
  ============================================================ */
  .about { background: var(--paper); }
  .about-grid {
    display: grid; grid-template-columns: 1.2fr .9fr;
    gap: 60px; align-items: center;
  }
  .about p {
    font-size: 19px; line-height: 1.6;
    color: var(--ink); font-weight: 300; margin: 0 0 18px;
  }
  .about p b { font-weight: 700; color: var(--blue-deep); }

  .stack-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .chip {
    border: 1px solid var(--rule); background: #fff;
    padding: 6px 14px; border-radius: 30px;
    font-size: 14px; color: var(--ink-2); letter-spacing: .02em;
    transition: border-color var(--t-base), color var(--t-base);
  }
  .chip:hover { border-color: var(--blue); color: var(--blue-deep); }
  .chip b { color: var(--blue-deep); font-weight: 700; }

  .about-card {
    border: 1px solid var(--rule); border-radius: 16px;
    padding: 32px;
    background: linear-gradient(180deg, #fff, var(--paper-2));
    box-shadow: 0 30px 60px -40px rgba(31,79,123,.4);
  }
  .about-card .label {
    font-size: 12px; letter-spacing: .3em;
    color: var(--purple); text-transform: uppercase; margin-bottom: 8px;
  }
  .about-card h3 {
    font-size: 24px; margin: 0 0 8px;
    color: var(--blue-ink); font-weight: 700;
  }
  .about-card .stat {
    display: flex; justify-content: space-between;
    padding: 14px 0; border-top: 1px solid var(--rule);
    font-size: 16px; color: var(--ink-2);
  }
  .about-card .stat:first-of-type { border-top: none; }
  .about-card .stat b {
    color: var(--blue-deep); font-weight: 700; font-size: 18px;
  }

  /* ============================================================
     SERVICES
  ============================================================ */
  .services { background: var(--paper-2); }
  .service-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 24px; margin-top: 36px;
  }
  .service {
    background: #fff; border: 1px solid var(--rule);
    border-radius: 16px; padding: 32px 28px;
    transition: transform var(--t-base) ease,
                box-shadow var(--t-base) ease,
                border-color var(--t-base) ease;
    position: relative; overflow: hidden;
  }
  .service:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 30px 60px -30px rgba(47,110,160,.35);
    border-color: var(--blue);
  }
  /* Barre couleur en bas au hover */
  .service::after {
    content: ""; position: absolute;
    left: 0; bottom: 0; width: 0; height: 3px;
    background: var(--purple);
    transition: width .35s ease;
  }
  .service:hover::after { width: 100%; }

  .service .num {
    font-size: 13px; letter-spacing: .3em;
    color: var(--blue); font-weight: 700;
  }
  .service .ic {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px; font-weight: 700;
    margin: 14px 0 18px;
    transition: transform var(--t-base) ease;
  }
  .service:hover .ic { transform: rotate(-4deg) scale(1.08); }
  .service h3 {
    font-size: 24px; font-weight: 700;
    color: var(--blue-ink); margin: 0 0 10px; line-height: 1.15;
  }
  .service p {
    font-size: 16px; color: var(--ink-2);
    margin: 0; font-weight: 300; line-height: 1.55;
  }

  /* ============================================================
     RÉALISATIONS — carrousel
  ============================================================ */
  .projects { background: #fff; }
  .projects .head {
    display: flex; align-items: end;
    justify-content: space-between; gap: 24px; flex-wrap: wrap;
  }
  .projects .pager { font-size: 14px; color: var(--ink-2); letter-spacing: .05em; }
  .projects .pager b { color: var(--blue-deep); font-weight: 700; font-size: 18px; }

  .carousel { position: relative; margin-top: 36px; }
  .viewport  { overflow: hidden; border-radius: 16px; }
  .slides {
    display: flex; gap: 24px;
    transition: transform .9s var(--ease-carousel);
    will-change: transform;
  }
  .slide {
    position: relative;
    flex: 0 0 calc((100% - 24px) / 2);
    aspect-ratio: 16/10;
    border-radius: 16px; overflow: hidden;
    background: linear-gradient(135deg, var(--blue-deep), var(--blue-ink));
    cursor: pointer;
    box-shadow: 0 20px 50px -25px rgba(31,79,123,.45);
  }
  /* Parallaxe sur l'image de slide au hover */
  .slide .project-link {
    position: absolute; inset: 0;
    display: block;
    z-index: 1;
  }
  .slide .ph {
    position: absolute; inset: 0;
    width: 100%; height: 110%;
    object-fit: cover; object-position: top center;
    transition: transform .6s ease;
    will-change: transform;
  }
  .slide:hover .ph { transform: scale(1.06) translateY(-2%); }
  .slide .overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 2;
    pointer-events: none;
    padding: 42px 22px 20px;
    background:
      linear-gradient(180deg, rgba(13,30,50,0) 0%, rgba(13,30,50,.72) 38%, rgba(8,21,36,.96) 100%);
    color: #fff;
    transform: translateY(0); transition: transform .35s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
  }
  .slide .overlay .meta {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--blue-deep);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    font-size: 12px; letter-spacing: .25em;
    text-transform: uppercase; color: white; margin-bottom: 8px;
    text-shadow: none;
  }
  .slide .overlay h4 { font-size: 22px; font-weight: 700; margin: 0 0 5px; }
  .slide .overlay p  { font-size: 14px; margin: 0; color: rgba(255,255,255,.94); font-weight: 400; }

  .car-controls {
    display: flex; align-items: center;
    justify-content: center; gap: 18px; margin-top: 32px;
  }
  .arrow-btn {
    width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--rule); background: #fff;
    cursor: pointer; font-size: 20px; color: var(--blue-deep);
    transition: background var(--t-base), color var(--t-base),
                border-color var(--t-base), transform var(--t-fast);
  }
  .arrow-btn:hover {
    background: var(--blue-deep); color: #fff;
    border-color: var(--blue-deep); transform: scale(1.1);
  }
  .dots { display: flex; gap: 8px; align-items: center; }
  .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--rule); cursor: pointer;
    transition: all var(--t-base);
  }
  .dot.on { background: var(--blue-deep); width: 28px; border-radius: 4px; }

  /* ============================================================
     CONTACT
  ============================================================ */
  .contact {
    background: linear-gradient(135deg, var(--blue-ink) 0%, var(--blue-deep) 100%);
    color: #fff; position: relative; overflow: hidden;
  }
  /* Halos décoratifs */
  .contact::before {
    content: ""; position: absolute;
    right: -100px; top: -100px;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(122,44,108,.4), transparent 70%);
    pointer-events: none;
  }
  .contact::after {
    content: ""; position: absolute;
    left: -150px; bottom: -150px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(90,169,217,.3), transparent 70%);
    pointer-events: none;
  }
  .contact .container { position: relative; z-index: 2; }
  .contact .eyebrow         { color: var(--blue-soft); }
  .contact .eyebrow::before { color: var(--blue); }
  .contact h2.section-title { color: #fff; }
  .contact h2.section-title em { color: var(--blue-soft); }
  .contact .section-lead    { color: rgba(255,255,255,.85); }

  .contact-grid {
    display: grid; grid-template-columns: .9fr 1.1fr;
    gap: 60px; margin-top: 24px;
  }
  .contact-info .info-row {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 0; border-top: 1px solid rgba(255,255,255,.15);
    font-size: 17px;
  }
  .contact-info .info-row:first-child { border-top: none; }
  .contact-info .info-row .ic {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center; flex: none;
  }
  .contact-info .info-row b {
    display: block; font-size: 13px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--blue-soft);
    font-weight: 500; margin-bottom: 2px;
  }

  form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  form.contact-form .full { grid-column: 1 / -1; }
  form.contact-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  form.contact-form .form-status {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 400;
  }
  form.contact-form .form-status.is-success {
    background: rgba(191,225,243,.16);
    border: 1px solid rgba(191,225,243,.45);
    color: #fff;
  }
  form.contact-form .form-status.is-error {
    background: rgba(122,44,108,.22);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff;
  }
  form.contact-form label {
    display: block; font-size: 13px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--blue-soft);
    margin-bottom: 6px; font-weight: 500;
  }
  form.contact-form input,
  form.contact-form select,
  form.contact-form textarea {
    width: 100%; font-family: inherit; font-size: 16px;
    font-weight: 300; color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px; padding: 12px 14px; outline: none;
    transition: border-color var(--t-base), background var(--t-base);
  }
  form.contact-form textarea {
    min-height: 130px; resize: vertical; font-family: inherit;
  }
  form.contact-form input:focus,
  form.contact-form select:focus,
  form.contact-form textarea:focus {
    border-color: var(--blue); background: rgba(255,255,255,.12);
  }
  form.contact-form ::placeholder { color: rgba(255,255,255,.4); }
  form.contact-form .submit-row {
    display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  }

  /* ============================================================
     FOOTER
  ============================================================ */
  footer {
    background: #0d1c2e; color: rgba(255,255,255,.7);
    padding: 32px clamp(20px, 5vw, 80px);
    display: flex; justify-content: space-between;
    align-items: center; gap: 20px; flex-wrap: wrap;
    font-size: 14px; letter-spacing: .04em;
  }
  footer .legal { display: flex; gap: 18px; }
  footer a:hover { color: var(--blue); }

  /* ============================================================
     RESPONSIVE
  ============================================================ */
  @media (max-width: 900px) {
    .nav { gap: 18px; }
    .nav a:not(.is-active) { display: none; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .service-grid { grid-template-columns: 1fr; }
    .slide { flex: 0 0 100%; }
    form.contact-form { grid-template-columns: 1fr; }
    .brand .word span { display: none; }
  }

  @media (max-width: 520px) {
    .site-header { gap: 16px; }
    .nav { display: none; }
    .site-header .btn-primary { padding-inline: 20px; }
  }
.legal-page {
  background: var(--paper-2);
}

.legal-main {
  padding: 150px clamp(20px, 5vw, 80px) clamp(64px, 9vw, 120px);
}

.legal-content {
  max-width: 920px;
  margin: 0 auto;
}

.legal-content .section-lead {
  margin-bottom: 36px;
}

.legal-block {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  margin-top: 18px;
  box-shadow: 0 20px 50px -35px rgba(31,79,123,.35);
}

.legal-block h2 {
  margin: 0 0 12px;
  color: var(--blue-ink);
  font-size: 26px;
  line-height: 1.15;
}

.legal-block p,
.legal-block li {
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 300;
}

.legal-block p {
  margin: 0 0 10px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--blue-deep);
  font-weight: 500;
}

.legal-block a:hover {
  color: var(--purple);
}
