:root{
    --white: #ffffff;
    --paper: #fdfbfb;
    --red: #d7263d;
    --red-soft: rgba(215, 38, 61, 0.08);
    --red-mid: rgba(215, 38, 61, 0.18);
    --text: #2b2a2e;
    --text-dim: #8f8b90;
    --line: rgba(43, 42, 46, 0.10);
  }

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

  html, body{
    height: 100%;
    background: var(--paper);
    color: var(--text);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
  }

  .display{ font-family: 'Quicksand', sans-serif; font-weight: 700; }

  .page{
    margin-top: 100px;
    position: relative;
    padding-top: 5px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: visible;
  }

  /* taches rouges */
  .blob{
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(215,38,61,0.12) 100%,
        rgba(215,38,61,0) 100%
    );
    pointer-events: none;
  }
  .blob.b1{ width: 380px; height: 380px; top: -120px; left: -100px; animation-duration: 18s; }
  .blob.b2{ width: 320px; height: 320px; bottom: -100px; right: -80px; animation-duration: 20s; animation-delay: 2s; }
  .blob.b3{ width: 220px; height: 220px; top: 45%; left: 60%; opacity: 0.6; animation-duration: 14s; animation-delay: 4s; }
  .blob.b5{ width: 200; height: 200px; top: 45%; left: -100px; animation-duration: 18s; background:radial-gradient(
        circle,
        rgba(221, 155, 11, 0.12) 0%,
        rgba(215, 209, 38, 0) 70%,
    );}
  
  @keyframes float{
    0%, 100%{ transform: translate(0, 0) scale(1); }
    50%{ transform: translate(24px, -18px) scale(1.06); }
  }

  .page > *{ position: relative; z-index: 1; }

  /* ===================== LOGOS (4 espaces) ===================== */

  .logo-slot{
    position: fixed;
    z-index: 2;
    width: 84px;
    height: 84px;
    border-radius: 20px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    padding: 6px;
  }
  .logo-slot .mark{
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--red-mid);
  }
  .logo-slot span{
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 9.5px;
    letter-spacing: 0.02em;
    color: var(--text-dim);
    line-height: 1.2;
  }

  .logo-slot img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  .logo-slot.tl{ top: 24px; left: 24px; }
  .logo-slot.tr{ top: 24px; right: 24px; }
  .logo-slot.bl{ bottom: 24px; left: 24px; }
  .logo-slot.br{ bottom: 24px; right: 24px; }

  /* ===================== GRAND LOGO AU-DESSUS DU TITRE ===================== */

  .logo-main{
    margin-top: 100px;
    margin-bottom:0px;
    transform:translateY(-18px);
    width: 23%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 22px;
    border-radius: 26px;
    background: transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    animation: reveal 0.9s ease forwards;

  }

  .logo-main img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
  }

  /* ===================== TITRE ===================== */

  header{
    text-align: center;
    margin-bottom: 44px;
    opacity: 0;
    animation: reveal 0.9s ease forwards 0.15s;
  }

  h1{
    font-size: clamp(28px, 4.5vw, 46px);
    color: var(--text);
  }
  h1 .accent{ color: var(--red); }

  header p{
    margin-top: 10px;
    font-size: 15px;
    color: var(--text-dim);
  }

  @keyframes reveal{
    from{ opacity: 0; transform: translateY(-8px); }
    to{ opacity: 1; transform: translateY(0); }
  }

  /* ===================== CHOIX ===================== */

  .choices{
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 780px;
    width: 100%;
  }

  .tile{
    flex: 1 1 300px;
    min-height: 220px;
    border-radius: 28px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: 0 8px 30px rgba(43,42,46,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 36px 26px;
    opacity: 0;
    animation: reveal 0.9s ease forwards;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  }
  .tile:nth-child(1){ animation-delay: 0.35s; }
  .tile:nth-child(2){ animation-delay: 0.5s; }

  .tile:hover{
    transform: translateY(-6px) scale(1.02);
    border-color: var(--red-mid);
    background: rgba(255,255,255,0.8);
    box-shadow: 0 16px 40px rgba(215, 38, 61, 0.14);
  }

  .tile:focus-visible{
    outline: 2px solid var(--red);
    outline-offset: 4px;
  }

  .icon-badge{
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--red-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: background 0.35s ease, transform 0.35s ease;
  }
  .tile:hover .icon-badge{
    background: var(--red);
    transform: rotate(-6deg) scale(1.06);
  }

  .icon-badge svg{ width: 28px; height: 28px; stroke: var(--red); transition: stroke 0.35s ease; }
  .tile:hover .icon-badge svg{ stroke: #ffffff; }

  .tile .tag{
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 6px;
    font-weight: 500;
  }

  .tile h2{
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
  }

  .tile p.desc{
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-dim);
    max-width: 30ch;
  }

  footer{
    margin-top: 40px;
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0;
    animation: reveal 0.8s ease forwards 0.9s;
  }

  @media (prefers-reduced-motion: reduce){
    header, .tile, footer, .blob{ animation: none !important; opacity: 1 !important; }
    .tile{ transition: none; }
  }

  @media (max-width: 640px){
    .page{ padding: 24px 6vw 40px; }
    .logo-slot{
      position: static;
      width: 100%;
      height: 64px;
      flex-direction: row;
      border-radius: 14px;
    }
    .logo-row{
      display: block;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      width: 100%;
      max-width: 480px;
      margin-bottom: 28px;
    }
  }
  @media (min-width: 641px){
    .logo-row{ display: contents; }
  }









  ss
.mobile-warning{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(253,251,251,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mobile-warning.visible{ display: flex; }

.mobile-warning-box{
  background: var(--white);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(43,42,46,0.25);
}
.mobile-warning-box h2{ font-size: 20px; margin-bottom: 10px; color: var(--text); }
.mobile-warning-box p{ font-size: 13.5px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.5; }
.mobile-warning-box button{
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 641px){
  .mobile-warning{ display: none !important; }
}



@media (max-width: 640px){
  .logo-row{ display: none; }
}





/* ===================== CRÉDITS / MODALE ===================== */

.credits-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease;
}

.credits-btn:hover {
  color: var(--red);
}

.newroman {
  font-family: 'Times New Roman', Times, serif;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.credits-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  position: relative;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.credits-card h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
  color: var(--text);
}

.credits-card p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-dim);
}

.lightbox-close:hover {
  color: var(--text);
}

/* ===================== POP-UP INTRODUCTIF ===================== */

.intro-popup {
  z-index: 200;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(43, 42, 46, 0.28);
}

.intro-card {
  max-width: 380px;
  padding: 34px 28px 28px;
}

.intro-card h2 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--red);
}

.intro-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce){
  .intro-popup{ transition: none; }
}