@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Permanent+Marker&display=swap');

:root {
  --night: #102d3a;
  --turquoise: #1f7880;
  --cream: #fff0d8;
  --paper: #f6e6c9;
  --ink: #28221e;
  --orange: #e87845;
  --red: #d84d3e;
  --shadow: rgba(13, 29, 38, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 2rem;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  background: var(--night);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: '';
  background: rgba(11, 39, 51, 0.18);
  pointer-events: none;
}

.site-background {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-color: #185b68;
  background-image: url('assets/WP H.png');
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

.sun-glow {
  position: fixed;
  z-index: -1;
  top: 8vh;
  right: 5vw;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(255, 190, 100, 0.16);
  filter: blur(34px);
  pointer-events: none;
}

a {
  color: inherit;
}

.is-disabled {
  opacity: 0.72;
}

.site-header,
main,
.site-footer {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding-right: clamp(1.25rem, 4vw, 4.5rem);
  padding-left: clamp(1.25rem, 4vw, 4.5rem);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
}

.brand {
  display: block;
  width: clamp(14rem, 26vw, 25rem);
  transition: transform 180ms ease;
}

.brand:hover,
.brand:focus-visible {
  transform: rotate(-2deg) scale(1.02);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 2rem);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  text-decoration: none;
  text-shadow: 0 2px 4px var(--shadow);
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: '';
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: auto;
  max-width: 82rem;
  margin-right: auto;
  margin-left: auto;
  padding-top: clamp(2rem, 7vw, 6rem);
}

.television-column {
  position: relative;
  z-index: 2;
  width: min(100%, 52rem);
  margin-right: auto;
  margin-left: auto;
}

.television {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
  filter: drop-shadow(1rem 1.5rem 1rem rgba(6, 21, 28, 0.42));
}

.television-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.television-screen {
  position: absolute;
  top: 23.5%;
  right: 21.5%;
  bottom: 18.5%;
  left: 7.3%;
  overflow: hidden;
  border-radius: 18% / 15%;
  background: #10171a;
  box-shadow: inset 0 0 2rem rgba(0, 0, 0, 0.6);
}

.player {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background: #123e4b;
  text-align: center;
}

.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 0;
  background: #10171a;
}

.waiting-screen {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-status {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.4rem 0.65rem;
  color: white;
  background: var(--red);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.player-placeholder {
  max-width: 80%;
  padding: 1rem;
}

.channel-name {
  margin: 0;
  color: #f8bc67;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

.player-placeholder h1 {
  margin: 0.6rem 0;
  color: var(--cream);
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.player-placeholder p:not(.channel-name) {
  margin: 0.5rem 0;
  font-weight: 700;
}

.player-placeholder small {
  opacity: 0.8;
}

.television-caption {
  margin: 1rem 0 0;
  color: var(--cream);
  font-size: 0.86rem;
  font-style: italic;
  text-align: center;
  text-shadow: 0 2px 4px var(--shadow);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--turquoise);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.polaroid-deck {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.75rem, 3vw, 3rem);
  width: min(100%, 62rem);
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.polaroid {
  --polaroid-rotation: 0deg;
  display: block;
  cursor: pointer;
  transition: transform 300ms ease, filter 300ms ease;
}

.polaroid img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0.7rem 0.8rem 0.35rem rgba(22, 27, 25, 0.33));
}

.polaroid-videos {
  --polaroid-rotation: -5deg;
  transform: rotate(var(--polaroid-rotation)) translateY(0.7rem);
}

.polaroid-photos {
  --polaroid-rotation: 3deg;
  transform: rotate(var(--polaroid-rotation));
}

.polaroid-route {
  --polaroid-rotation: -3deg;
  transform: rotate(var(--polaroid-rotation)) translateY(1rem);
}

.polaroid:hover,
.polaroid:focus-visible {
  z-index: 2;
  filter: brightness(1.08);
  transform: rotate(calc(var(--polaroid-rotation) + 2deg)) translateY(-0.7rem) scale(1.035);
}

.polaroid:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 0.35rem;
}

.destination-section {
  scroll-margin-top: 2rem;
  width: min(100%, 56rem);
  margin: 4rem auto 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(69, 41, 22, 0.25);
  box-shadow: 0.8rem 1rem 0 rgba(21, 35, 37, 0.28);
}

.destination-section h2 {
  margin: 0 0 0.75rem;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
}

.destination-section > p:not(.eyebrow) {
  max-width: 42rem;
  line-height: 1.6;
}

.destination-content {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px dashed rgba(40, 34, 30, 0.35);
}

.photo-gallery-shell > p {
  display: none;
}

.photo-gallery {
  min-height: 12rem;
}

.gallery-empty {
  display: grid;
  min-height: 12rem;
  margin: 0;
  place-items: center;
  color: var(--ink);
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

.gallery-viewer {
  position: relative;
  display: grid;
  min-height: clamp(15rem, 44vw, 32rem);
  place-items: center;
  overflow: hidden;
  background: #d9b985;
  border: 0.6rem solid var(--paper);
  box-shadow: inset 0 0 0 1px rgba(40, 34, 30, 0.2);
}

.gallery-photo-button {
  display: block;
  width: min(100%, 52rem);
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 32rem;
  object-fit: contain;
  transition: opacity 220ms ease;
}

.gallery-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 2.8rem;
  height: 2.8rem;
  color: var(--paper);
  border: 1px solid rgba(255, 240, 216, 0.6);
  border-radius: 50%;
  background: rgba(16, 45, 58, 0.82);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--red);
}

.gallery-previous {
  left: 0.8rem;
}

.gallery-next {
  right: 0.8rem;
}

.gallery-counter {
  position: absolute;
  right: 1rem;
  bottom: 0.7rem;
  margin: 0;
  padding: 0.25rem 0.5rem;
  color: var(--paper);
  background: rgba(16, 45, 58, 0.78);
  font-size: 0.75rem;
}

.google-photos-link.is-disabled {
  cursor: not-allowed;
}

.photo-modal {
  width: min(94vw, 70rem);
  max-width: none;
  padding: 3rem 1rem 1rem;
  border: 0;
  background: rgba(16, 45, 58, 0.96);
}

.photo-modal::backdrop {
  background: rgba(10, 24, 29, 0.86);
}

.photo-modal img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.photo-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  color: var(--paper);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
}

.playlist-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: var(--night);
}

.playlist-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--red);
  font-weight: 700;
}

.video-message {
  margin: 0;
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.video-message-detail {
  display: block;
  margin-top: 0.7rem;
}

.destination-content p {
  margin: 0;
}

.itinerary-content {
  text-align: center;
}

.itinerary-map {
  display: block;
  width: min(100%, 30rem);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.itinerary-polarsteps-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 1.1rem;
  color: var(--cream);
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 0.35rem;
  box-shadow: 0.25rem 0.25rem 0 var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.photo-gallery-shell .itinerary-polarsteps-link,
#video-archives .itinerary-polarsteps-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.itinerary-polarsteps-link:hover,
.itinerary-polarsteps-link:focus-visible {
  background: var(--orange);
  box-shadow: 0.15rem 0.15rem 0 var(--ink);
  transform: translate(0.1rem, 0.1rem);
}

.site-footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  font-size: 0.75rem;
  text-align: center;
  text-shadow: 0 2px 4px var(--shadow);
}

/* Mise en page épurée : même identité, hiérarchie plus nette et effets plus discrets. */
.site-header {
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
}

.site-nav {
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 240, 216, 0.22);
  border-radius: 999px;
  background: rgba(16, 45, 58, 0.42);
  backdrop-filter: blur(10px);
}

.hero {
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.television {
  filter: drop-shadow(0.75rem 1rem 0.9rem rgba(6, 21, 28, 0.36));
}

.destination-section h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.polaroid-deck {
  gap: clamp(1rem, 2.5vw, 2rem);
  padding-top: 3rem;
}

.polaroid,
.polaroid-videos,
.polaroid-photos,
.polaroid-route {
  transform: rotate(0deg);
}

.polaroid img {
  filter: drop-shadow(0 0.7rem 0.8rem rgba(22, 27, 25, 0.22));
}

.polaroid:hover,
.polaroid:focus-visible {
  transform: translateY(-0.35rem) scale(1.02);
}

.destination-section {
  margin-top: 3rem;
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(21, 35, 37, 0.18);
}

.destination-content {
  border: 0;
  border-radius: 0.75rem;
  background: rgba(255, 240, 216, 0.38);
}

.itinerary-polarsteps-link {
  border-radius: 0.5rem;
  box-shadow: 0 0.35rem 0 rgba(40, 34, 30, 0.82);
}

.itinerary-polarsteps-link:hover,
.itinerary-polarsteps-link:focus-visible {
  box-shadow: 0 0.15rem 0 rgba(40, 34, 30, 0.82);
}

.site-footer {
  padding-top: 2.5rem;
}

.back-to-top {
  position: fixed;
  z-index: 10;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--paper);
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0.35rem 0.8rem rgba(13, 29, 38, 0.4);
  cursor: pointer;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--red);
  transform: translateY(-0.2rem);
}

.back-to-top:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 0.2rem;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 4rem;
  }

  .television-column {
    width: min(100%, 48rem);
    margin: 0 auto;
  }

}

@media (max-width: 760px) {
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .site-header {
    padding-top: 1rem;
  }

  .brand {
    width: min(17rem, 82vw);
  }

  .site-nav {
    gap: 0.7rem 1rem;
    font-size: 0.68rem;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .television-column {
    width: 100%;
    margin: 0 auto;
  }

  .television-screen {
    top: 23.5%;
    right: 21.5%;
    bottom: 18.5%;
    left: 7.3%;
  }

  .live-status {
    top: 0.45rem;
    left: 0.45rem;
    padding: 0.25rem 0.35rem;
    font-size: 0.48rem;
  }

  .player-placeholder {
    max-width: 90%;
    padding: 0.5rem;
  }

  .player-placeholder h1 {
    margin: 0.25rem 0;
    font-size: 0.75rem;
  }

  .player-placeholder small {
    display: block;
    font-size: 0.52rem;
  }

  .channel-name {
    font-size: clamp(1.3rem, 9vw, 2.5rem);
  }

  .television-caption {
    margin-top: 0.5rem;
    font-size: 0.7rem;
  }

  .polaroid-deck {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.45rem;
    padding: 2rem 0.25rem 0;
  }

  .polaroid-videos {
    grid-column: span 2;
    width: 62%;
    margin: 0 auto;
  }

  .polaroid-photos,
  .polaroid-route {
    transform: rotate(0);
  }

  .polaroid:hover,
  .polaroid:focus-visible {
    transform: translateY(-0.35rem) scale(1.02);
  }

  .destination-section {
    margin-top: 2.5rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .polaroid {
    transition: none;
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .site-background {
    background-attachment: scroll;
  }
}
