:root {
    --primary-color: #1c4b5d;
    --white-color: #ffffff;
    --parallax-offset: 30vh;
    --content-offset: 40vh;
  }
  
  /* GLOBAL */
  * {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* parallax géré en JS */
    font-family: "Changa", sans-serif;
    background: var(--primary-color);
    color: var(--white-color);
  }
  
  /* ===== LOADER ===== */
  .loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    inset: 0;
    background: var(--primary-color);
    z-index: 9999;
  }
  
  .loader-logo {
    width: 140px;
    margin-bottom: 20px;
    border-radius: 20px;  /* carré arrondi */
  }
  
  
  .progression {
    width: 50px;
    height: 50px;
    border: 5px solid #ffffff66;
    border-top: 5px solid var(--white-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
  }
  
  /* ===== PARALLAX CONTAINER ===== */
  .container {
    position: relative;
    width: 100%;
    height: 100vh;
  }
  
  /* ===== SLIDES ===== */
  .background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: calc(100vh + var(--parallax-offset));
    background-size: cover;
    background-position: center center;
    transform: translateY(var(--parallax-offset));
    will-change: transform;
    backface-visibility: hidden;
    transition: transform 1.2s cubic-bezier(0.22, 0.44, 0, 1);
  }
  
  .background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
  }
  
  /* Première slide légèrement remontée */
  .background:first-child {
    transform: translateY(calc(var(--parallax-offset) * -0.5));
  }
  
  /* Z-index (6 slides + 1 footer) */
  .background:nth-child(1) { z-index: 8; }
  .background:nth-child(2) { z-index: 7; }
  .background:nth-child(3) { z-index: 6; }
  .background:nth-child(4) { z-index: 5; }
  .background:nth-child(5) { z-index: 4; }
  .background:nth-child(6) { z-index: 3; }
  .background:nth-child(7) { z-index: 2; }
  
  /* CONTENU SLIDES */
  .content-wrapper {
    height: 100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:0 20px;
    transform: translateY(var(--content-offset));
    will-change: transform;
    backface-visibility: hidden;
    transition: transform 1.4s cubic-bezier(0.22, 0.44, 0, 1);
  }
  
  .content-title {
    font-size: 8vh;
    margin: 0;
  }
  
  .content-subtitle {
    font-size: 2.4vh;
    max-width: 900px;
    margin-top: 15px;
    line-height: 1.4;
  }
  
  /* ÉTATS PARALLAX (logique du SCSS d’origine) */
  .background.up-scroll {
    transform: translate3d(0, calc(var(--parallax-offset) * -0.5), 0);
  }
  .background.up-scroll .content-wrapper {
    transform: translateY(calc(var(--parallax-offset) * 0.5));
  }
  .background.up-scroll + .background {
    transform: translate3d(0, var(--parallax-offset), 0);
  }
  .background.up-scroll + .background .content-wrapper {
    transform: translateY(var(--parallax-offset));
  }
  
  .background.down-scroll {
    transform: translate3d(0, calc(-100vh - var(--parallax-offset)), 0);
  }
  .background.down-scroll .content-wrapper {
    transform: translateY(var(--content-offset));
  }
  .background.down-scroll + .background:not(.down-scroll) {
    transform: translate3d(0, calc(var(--parallax-offset) * -0.5), 0);
  }
  .background.down-scroll + .background:not(.down-scroll) .content-wrapper {
    transform: translateY(calc(var(--parallax-offset) * 0.5));
  }
  
  /* ===== FOOTER SLIDE ===== */
  .footer-slide {
    background: #ffffff;
    color: #1c4b5d;
  }
  .footer-slide::before {
    background: none;
  }
  
  .footer-slide-inner {
    height: 100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
    overflow:hidden;
  }
  
  /* BEAM SVG (repris de CodePen, adapté) */
  .footer-beam {
    position:absolute;
    top:50%;
    right:0;            /* commence depuis la limite droite de l’écran */
    transform:translateY(-50%);
    pointer-events:none;
    z-index:1;
  }
  
  .beam-svg {
    max-width: 532px;
    height: auto;
  }
  
  /* Animation du #flash tirée du CodePen */
  #flash {
    opacity: .66;
    fill: rgba(28, 75, 93, 0.66); /* couleur charte */
    animation-duration: 2s;
    animation-timing-function: ease-in;
    animation-iteration-count: infinite;
    animation-name: strobe;
  }
  
  @keyframes strobe {
    0% {
      transform: translateX(0);
    }
    20% {
      transform: translateX(-900px);
    }
    100% {
      transform: translateX(-900px);
    }
  }
  
  /* FOOTER CONTENU */
  .footer {
    width: 100%;
    max-width: 650px;
    text-align: center;
    z-index: 2;
  }
  
  .footer-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
  }
  
  .footer-brand {
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  
  .footer-brand-name {
    font-size: 28px;
    font-weight: 700;
    color:#1c4b5d;
    margin-bottom: 10px;
  }
  
  .footer-brand-logo img {
    width: 75px;
    height: 75px;
    border-radius: 20px; /* carré arrondi */
    object-fit: cover;   /* garde un rendu propre */
  }
  
  
  .footer-links {
    display:flex;
    justify-content:center;
    gap: 25px;
    margin: 25px 0;
    font-size: 16px;
    font-weight: 600;
    color:#1c4b5d;
  }
  
  .footer-link {
    cursor:pointer;
  }
  .footer-link:hover {
    color:#2E80A5;
  }
  
  .footer-copy {
    font-size: 14px;
    opacity: 0.75;
  }
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .content-title {
      font-size: 6vh;
    }
  
    .content-subtitle {
      font-size: 2.2vh;
      max-width: 90%;
    }
  
    .footer-links {
      flex-direction: column;
      gap: 10px;
    }
  }
  

