/* ── RESET & VARIABLES ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #1b5e3b;
  --green:       #2d7a52;
  --green-light: #52b788;
  --green-pale:  #d8f3dc;
  --orange:      #e07b39;
  --orange-light:#f4a261;
  --cream:       #fdf6ec;
  --brown:       #6b3f2a;
  --text:        #2c2c2c;
  --white:       #ffffff;
  --shadow:      0 8px 32px rgba(0,0,0,.12);
  --radius:      18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* Portrait circulaire dans le hero */
.hero-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,.5);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  margin: 1.2rem auto 0;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* Photo de dos dans la section rêve */
.dream-photo {
  width: 260px;
  aspect-ratio: 2/3;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.45);
  border: 3px solid rgba(255,255,255,.25);
}
.dream-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 6rem;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 55%, var(--green-light) 100%);
  overflow: hidden;
}

.paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.paw {
  position: absolute;
  font-size: 1.6rem;
  opacity: .18;
  animation: floatPaw linear infinite;
}
@keyframes floatPaw {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: .18; }
  90%  { opacity: .18; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hero-badge {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.4rem;
  display: inline-block;
}

.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(3.5rem, 12vw, 8rem);
  color: #fff;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
  margin-bottom: .5rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(255,255,255,.9);
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-emoji-row {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.3;
  animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.wave svg { display: block; width: 100%; }

/* ── SECTION BASE ─────────────────────────────── */
section {
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--green-dark);
  text-align: center;
  margin-bottom: .5rem;
}
.section-sub {
  text-align: center;
  color: #666;
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ── PASSION GRID ─────────────────────────────── */
.passion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.4rem;
}
.passion-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  cursor: default;
}
.passion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.15);
}
.passion-card .icon {
  font-size: 3rem;
  margin-bottom: .8rem;
  display: block;
}
.passion-card h3 {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: .4rem;
}
.passion-card p {
  font-size: .9rem;
  color: #666;
  line-height: 1.5;
}

/* ── TIMELINE ─────────────────────────────────── */
.adventures-bg {
  background: linear-gradient(180deg, var(--cream) 0%, var(--green-pale) 100%);
}
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 4px;
  background: var(--green-light);
  transform: translateX(-50%);
  border-radius: 4px;
}
.tl-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}
.tl-item:nth-child(odd)  { flex-direction: row; }
.tl-item:nth-child(even) { flex-direction: row-reverse; }

.tl-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow);
  flex: 1;
  transition: transform .3s;
}
.tl-card:hover { transform: translateY(-4px); }

.tl-dot {
  width: 52px; height: 52px;
  min-width: 52px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(224,123,57,.4);
  z-index: 1;
  align-self: center;
}

.tl-date {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 50px;
  margin-bottom: .7rem;
}
.tl-card h3 {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: .4rem;
}
.tl-card .place {
  font-weight: 700;
  color: var(--orange);
  font-size: .95rem;
  margin-bottom: .5rem;
}
.tl-card p {
  font-size: .92rem;
  color: #555;
  line-height: 1.55;
}

/* ── TAHURA ───────────────────────────────────── */
.tahura-section { text-align: center; }
.tahura-card {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border: 3px solid var(--orange-light);
  border-radius: 28px;
  padding: 3rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tahura-card::before {
  content: '🦧';
  position: absolute;
  font-size: 9rem;
  opacity: .06;
  right: -1.5rem;
  bottom: -1.5rem;
  line-height: 1;
}
.tahura-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
  animation: swing 3s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes swing {
  0%,100% { transform: rotate(-6deg); }
  50%      { transform: rotate(6deg); }
}
.tahura-card h2 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--brown);
  margin-bottom: .6rem;
}
.tahura-card .species {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.tahura-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}
.tahura-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(224,123,57,.4);
}

/* ── CAROUSEL ─────────────────────────────────── */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  background: #e8ddd0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15), inset 0 0 0 2px rgba(255,255,255,.6);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform .4s;
}
.carousel-slide img:hover { transform: scale(1.04); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
  padding: 0;
}
.carousel-btn:hover { background: rgba(0,0,0,.7); }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }

.carousel-counter {
  position: absolute;
  bottom: 2rem;
  right: .6rem;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: .15rem .5rem;
  border-radius: 50px;
  z-index: 10;
}

.carousel-dots {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .35rem;
  z-index: 10;
}
.carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ── PHOTO BOOK ───────────────────────────────── */
.photobook-bg {
  background: linear-gradient(160deg, #2c1a0e 0%, #4a2c14 100%);
  padding: 5rem 0;
}
.photobook-bg .section-title { color: #fff8f0; }
.photobook-bg .section-sub   { color: rgba(255,248,240,.65); }

.book-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.book-pages {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 1rem;
}

/* Individual page */
.book-page {
  background: #fffdf6;
  border-radius: 4px 16px 16px 4px;
  box-shadow:
    -6px 0 0 #e8d9c0,
    -10px 0 0 #d4c4a8,
    0 12px 40px rgba(0,0,0,.5);
  padding: 2rem 1.8rem 2.5rem;
  width: 290px;
  position: relative;
  transition: transform .4s cubic-bezier(.25,.8,.25,1);
  border-left: 6px solid #c9b490;
}
.book-page::before {
  /* binding holes */
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: #2c1a0e;
  border-radius: 50%;
  box-shadow: 0 -60px 0 #2c1a0e, 0 60px 0 #2c1a0e;
}
.book-page:hover {
  transform: translateY(-8px) rotate(1deg);
}

/* Tape decoration */
.book-page::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 22px;
  background: rgba(255,220,130,.55);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(200,160,60,.3);
}

/* Photo slot inside a page */
.photo-slot {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
  background: #e8ddd0;
  box-shadow: 0 2px 10px rgba(0,0,0,.15), inset 0 0 0 2px rgba(255,255,255,.6);
  cursor: pointer;
}
.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.photo-slot:hover img { transform: scale(1.04); }

/* Placeholder shown when no photo */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8ddd0 0%, #d4c4a8 100%);
  gap: .5rem;
  color: #8a7560;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}
.photo-placeholder span { font-size: 2.5rem; }

/* Stamp-style badge */
.page-stamp {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--orange);
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 4px;
  transform: rotate(3deg);
  box-shadow: 0 2px 6px rgba(224,123,57,.5);
  z-index: 2;
}

.page-date {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .35rem;
}
.page-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.15rem;
  color: var(--brown);
  margin-bottom: .2rem;
}
.page-place {
  font-weight: 700;
  font-size: .85rem;
  color: var(--green-dark);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.page-desc {
  font-size: .83rem;
  color: #666;
  line-height: 1.55;
  border-top: 1px dashed #d4c4a8;
  padding-top: .6rem;
  font-style: italic;
}

/* Stars rating */
.page-stars {
  display: flex;
  gap: .2rem;
  margin-bottom: .6rem;
}
.page-stars span { font-size: 1rem; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 60px rgba(0,0,0,.8);
  object-fit: contain;
  animation: zoomIn .25s ease;
}
@keyframes zoomIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  max-width: 400px;
}

/* ── DREAM ────────────────────────────────────── */
.dream-section { text-align: center; }
.dream-box {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: 28px;
  padding: 4rem 2rem;
  color: #fff;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(29,94,59,.35);
  position: relative;
  overflow: hidden;
}
.dream-box::after {
  content: '🌿';
  position: absolute;
  font-size: 10rem;
  opacity: .08;
  left: -2rem;
  top: -2rem;
}
.dream-box .big-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.dream-box h2 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 1rem;
}
.dream-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: .9;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.dream-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  min-width: 110px;
}
.stat .num {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  display: block;
}
.stat .lbl { font-size: .82rem; opacity: .85; font-weight: 700; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: .9rem;
}
footer strong { color: #fff; }
footer .heart  { color: var(--orange-light); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 600px) {
  .timeline::before { left: 24px; }
  .tl-item,
  .tl-item:nth-child(even) { flex-direction: row !important; }
  .tl-dot { width: 42px; height: 42px; min-width: 42px; font-size: 1.3rem; }
  .tl-card { padding: 1.2rem; }

  .book-page { width: 260px; }
}
