body{
    background-color: black;
    margin: 0px;
    padding: 0px;
    font-family: "Oldenburg", "Times New Roman", serif;
    font-weight: 300;
    font-size: 14px;
    color: #6B3F1F;
}

html, body {
  overflow: hidden;
  height: 100%;
  -webkit-overflow-scrolling: touch; /* OS Safari */
}



    /* ─── HEADER ─── */
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.5rem;
      height: 64px;
      background: #fff;
      border-bottom: 1px solid #e5e5e5;
      position: relative;
    }

    /* ─── PROFIL ─── */
    .pp {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #f3f3f3;
      border: 1px solid #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .avatar svg {
      width: 22px;
      height: 22px;
      color: #888;
    }

    .logo {
      font-size: 16px;
      font-weight: 600;
      color: #111;
      display: none; /* masqué sur desktop */
    }

    /* ─── NAV DESKTOP ─── */
    .menu {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .menu a {
      font-size: 14px;
      color: #555;
      text-decoration: none;
      padding: 6px 12px;
      border-radius: 8px;
      transition: background 0.15s, color 0.15s;
      white-space: nowrap;
    }

    .menu a:hover { background: #f3f3f3; color: #111; }
    .menu a.active { color: #111; font-weight: 600; }

    /* ─── HAMBURGER ─── */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 36px;
      height: 36px;
      cursor: pointer;
      border-radius: 8px;
      border: 1px solid #ddd;
      background: none;
    }

    .hamburger span {
      display: block;
      width: 16px;
      height: 1.5px;
      background: #111;
      border-radius: 2px;
      transition: transform 0.2s, opacity 0.2s;
    }

    .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

    /* ─── MENU MOBILE ─── */
    .mobile-menu {
      display: none;
      flex-direction: column;
      gap: 2px;
      padding: 8px;
      position: absolute;
      top: 64px;
      left: 0;
      right: 0;
      background: #fff;
      border-bottom: 1px solid #e5e5e5;
      z-index: 10;
    }

    .mobile-menu.open { display: flex; }

    .mobile-menu a {
      font-size: 14px;
      color: #555;
      text-decoration: none;
      padding: 10px 12px;
      border-radius: 8px;
      transition: background 0.15s;
    }

    .mobile-menu a:hover,
    .mobile-menu a.active {
      background: #f3f3f3;
      color: #111;
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      .menu { display: none; }
      .hamburger { display: flex; }
      .logo { display: block; }
    }
 
 
 
 
 
 
 
 
 /*SCROLL SPINNING*/

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

    /* ── Conteneur principal ── */
.scroll-container {
  width: 100%;
  height: calc(100dvh - 64px); /* soustrait le header */
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /*  iOS Safari */
  overscroll-behavior-y: contain;   /* Brave / Chrome */
}

    /* ── Chaque section ── */
 .scroll-section {
  width: 100%;
  height: calc(100dvh - 64px); /* idem */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;             
  flex-direction: column;     
  align-items: center;       
  justify-content: center;    
  position: relative; 
}

    /* ── Couleurs par section ── */
    .section-1 { background-color: #EEEDFE; }
    .section-2 { background-color: #E1F5EE; }
    .section-3 { background-color: #FAECE7; }
    .section-4 { background-color: #E6F1FB; }
    .section-5 { background-color: #FEF9E7; }

    /* ── Numéro décoratif ── */
    .section-number {
      font-size: clamp(72px, 12vw, 120px);
      font-weight: 700;
      opacity: 0.12;
      position: absolute;
      top: 24px;
      left: 32px;
      line-height: 1;
      user-select: none;
    }
    .s1 .section-number { color: #3C3489; }
    .s2 .section-number { color: #085041; }
    .s3 .section-number { color: #712B13; }
    .s4 .section-number { color: #0C447C; }
    .s5 .section-number { color: #3D2B00; }

    /* ── Textes ── */
    .section-label {
      font-size: 11px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      font-weight: 600;
      opacity: 0.5;
    }
    .section-title {
      font-size: clamp(24px, 4vw, 40px);
      font-weight: 600;
      text-align: center;
      padding: 0 2rem;
    }
    .section-sub {
      font-size: 16px;
      text-align: center;
      max-width: 520px;
      padding: 0 2rem;
      line-height: 1.65;
      opacity: 0.65;
    }

    .s1 .section-label,
    .s1 .section-title,
    .s1 .section-sub  { color: #26215C; }

    .s2 .section-label,
    .s2 .section-title,
    .s2 .section-sub  { color: #04342C; }

    .s3 .section-label,
    .s3 .section-title,
    .s3 .section-sub  { color: #4A1B0C; }

    .s4 .section-label,
    .s4 .section-title,
    .s4 .section-sub  { color: #042C53; }
    
    .s5 .section-label,
    .s5 .section-title,
    .s5 .section-sub { color: #3D2B00; }



    /* ── Points de navigation droite ── */
    .dots {
      position: fixed;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 100;
    }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(0,0,0,0.2);
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
    }
    .dot.active {
      background: #534AB7;
      transform: scale(1.5);
    }
     
     
     
.parent{
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
    align-items: center;
    justify-content: center; /* centre le tout */
    width: 100%;
}      
.encadre{
    flex: 0 1 35%;        /* prend 50% sur desktop, 100% sur mobile */
    aspect-ratio: 1 / 1;  /* garde un ratio constant */
    border: 1px solid red;
    background-color: rgba(225, 255, 255, 0.5);
    padding: 2%;
    box-sizing: border-box;
}     
        
.img{
    flex: 0 1 35%;
    aspect-ratio: 1 / 1;
    border: 1px solid blue;
    overflow-y: hidden;
    overflow-x: hidden;
}    

/* desktop : img mobile cachée, img desktop visible */
.mobile-only { display: none; }
.desktop-only { display: flex; }

/* mobile */
@media (max-width: 768px) {
    .mobile-only { display: block; width: 100%;  aspect-ratio: 1 / 1; /* même ratio qu'en desktop */ }
    .desktop-only { display: none; }

    .encadre {
        flex: 1 1 100%;
        width: 100%;
        height: auto;
    }  
        
    .img{
    flex: 0 1 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid blue;
    overflow-y: hidden;
    overflow-x: hidden;
    }
}
        
  
