*{
margin:0;
padding:0;
box-sizing:border-box;
}

html, body{
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body{
  background:black;
  color:white;
  font-family:Helvetica, Arial, sans-serif;
}

body.comingsoon-fixed {
  overflow: hidden !important;
  height: 100vh;
}

body.comingsoon-fixed .timeline {
  overflow: hidden;
  height: 100vh;
}

.timeline {
  min-height: calc(100vh + 80px);
}

/* navbar */

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:25px 60px;
border-bottom:1px solid #222;
}

.logo{
font-size:18px;
letter-spacing:4px;
text-transform:uppercase;
}

.navbar ul{
display:flex;
gap:30px;
list-style:none;
}

.photobook-coming-soon{
  opacity:0.7;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  flex-direction:column;
  width:100%;
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: white;
}

.navbar a{
text-decoration:none;
color:white;
opacity:0.7;
font-size:14px;
}

.navbar a:hover{
opacity:1;
}

/* home */

.home{
height:90vh;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
}

.faces{
display:flex;
align-items:center;
gap:60px;
}

.face{
width:160px;
height:160px;
object-fit:cover;
border-radius:50%;
filter:grayscale(100%);
border:2px solid #333;
}

.counter h1{
align-items: center;
font-size:60px;
font-weight:300;
}

.counter span{
font-size:70px;
font-weight:300;
}

.counter p{
letter-spacing:3px;
opacity:0.7;
}

.subtitle{
margin-top:40px;
opacity:0.5;
letter-spacing:3px;
}

:root {
  --bg: #050505;
  --panel: #0f0f0f;
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 24px;
  --radius-small: 18px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

/* =========================
   TIMELINE
========================= */

.timeline {
  position: relative;
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.timeline-title-main {
  text-align: center;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.timeline-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ligne centrale */
.timeline::before {
  content: "";
  position: absolute;
  top: 220px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.16),
    transparent
  );
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 60px;
}

/* alternance gauche/droite */
.timeline-item:nth-child(even) .timeline-content {
  order: 2;
}

.timeline-item:nth-child(even) .timeline-media {
  order: 1;
}

/* point central */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255,255,255,0.05);
  z-index: 2;
}

.timeline-content,
.timeline-media {
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline-date {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.38);
  margin-bottom: 14px;
}

.timeline-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.timeline-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.timeline-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  filter: grayscale(100%);
  display: block;
}

/* =========================
   PASSWORD ENTRY MODAL
========================= */
body.site-locked > *:not(.password-overlay) {
  filter: blur(6px);
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}

.password-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 220ms ease-out;
}

.password-panel {
  width: min(420px, 90vw);
  padding: 24px;
  border-radius: 14px;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.52);
  text-align: center;
}

.password-panel h2,
.password-panel p,
.password-panel input,
.password-panel button {
  margin-left: auto;
  margin-right: auto;
}


.password-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.password-panel p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.96rem;
}

.password-panel input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  margin-bottom: 13px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.password-panel input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.9);
  background: rgba(255, 255, 255, 0.14);
}

.password-panel button,
.password-panel .logout-button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 130ms ease, box-shadow 130ms ease;
}

.password-panel button {
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.3));
  color: #111;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.password-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 255, 255, 0.26);
}

.password-panel .logout-button {
  margin-top: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.password-panel .logout-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.password-panel .error {
  color: #ff8c93;
  margin-top: 8px;
  min-height: 18px;
  font-size: 0.89rem;
  opacity: 0.95;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.password-panel .error {
  color: #ff6f6f;
  margin-top: 8px;
  min-height: 18px;
}

/* =========================
   PHOTOBOOK
========================= */

.photobook {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.photobook-header {
  text-align: center;
  margin-bottom: 50px;
}

.photobook-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.photobook-text {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

.photobook-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.photo-card {
  position: relative;
  grid-column: span 4;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.photo-card.large {
  grid-column: span 8;
}

.photo-card.tall {
  min-height: 420px;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
}

.photo-card:hover img {
  transform: scale(1.03);
  filter: grayscale(85%);
}

.photo-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.14);
  color: white;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
  }

  .timeline-item::before {
    left: 20px;
    transform: none;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(even) .timeline-media {
    order: initial;
  }

  .timeline-content,
  .timeline-media {
    margin-left: 38px;
  }

  .timeline-image {
    height: 260px;
  }

  .photobook-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-card,
  .photo-card.large {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .timeline {
    width: min(100%, calc(100% - 24px));
    padding: 60px 0;
  }

  .timeline-content,
  .timeline-media {
    padding: 18px;
    border-radius: 18px;
  }

  .timeline-image {
    height: 220px;
    border-radius: 12px;
  }

  .photobook {
    width: min(100%, calc(100% - 24px));
    padding: 60px 0 90px;
  }

  .photobook-grid {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card.large {
    min-height: 260px;
  }
}

.nav-arrow{
position:fixed;
top:50%;
transform:translateY(-50%);
width:60px;
height:60px;
border-radius:50%;
border:1px solid rgba(255,255,255,0.2);
background:rgba(0,0,0,0.5);
color:white;
font-size:26px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:0.3s;
}

.nav-arrow:hover{
background:white;
color:black;
}

.left{
left:30px;
}

.right{
right:30px;
}