.page-home {
  background: #fafafa;
  color: #343a35;
  font-family: Georgia,serif;
}

.page-home #intro {
  height: 100svh;
  min-height: 420px;
  background-color: #34453e;
}

.page-home .scroll {
  color: white;
  text-decoration: none;
}

.page-home .intro-content {
  width: 95%;
}

.page-home .baseline {
  width: 95%;
  bottom: 24px;
}

.page-home .intro-text {
  padding: 28px 16px 10px;
}

.atlas,.adventures {
  max-width: 1200px;
  margin: auto;
  padding: 56px 24px 65px;
  text-align: center;
}

.page-home h2 {
  font-family: 'Playfair Display',Georgia,serif;
  font-weight: 400;
  font-size: clamp(2rem,4vw,3.3rem);
  line-height: 1.2;
  margin: 10px 0 18px;
}

.eyebrow {
  font-family: Poppins,Arial,sans-serif;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: #77766e;
}

.lead {
  max-width: 650px;
  margin: 0 auto 30px;
  color: #65665e;
  font-size: 1.1rem;
  line-height: 1.8;
}

.map-frame {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.map-frame svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
  user-select: none;
}

.land {
  fill: #d3d5ce;
  stroke: #fafafa;
  stroke-width: .7;
  stroke-linejoin: round;
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
}

.land.visited {
  fill: var(--trip);
  cursor: pointer;
}

.land.visited:hover,.land.visited:focus,.land.selected {
  filter: brightness(1.25);
  stroke: #26352e;
  stroke-width: 1.5;
  outline: none;
}

.marker {
  cursor: pointer;
  outline: none;
}

.marker circle:first-child {
  fill: var(--trip);
  stroke: white;
  stroke-width: 1.5;
}

.marker circle:nth-child(2) {
  fill: white;
}

.marker.selected circle:first-child,.marker:hover circle:first-child,.marker:focus circle:first-child {
  stroke: #222;
  stroke-width: 2.5;
}



.map-note {
  font-size: .84rem;
  color: #686b63;
}



#destination-card {
  max-width: 800px;
  margin: 25px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e2dfd5;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  min-height: 260px;
}

#destination-card[hidden] {
  display: none;
}

.destination-photo {
  background: #e5e4db;
  min-height: 240px;
}

.destination-photo img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  display: block;
  object-fit: cover;
}

.destination-copy {
  padding: 30px;
  align-self: center;
}

.destination-copy .eyebrow {
  color: var(--trip);
}

.destination-copy h3 {
  font-size: 2rem;
  color: var(--trip);
  font-weight: 400;
  margin: 6px 0;
}

.dates {
  font-size: .85rem;
  color: #666;
}

.destination-copy p {
  margin-bottom: 12px;
}

.read-link {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 15px;
  border: 1px solid var(--trip);
  color: var(--trip);
  text-decoration: none;
  font-size: .95rem;
}

.read-link:hover {
  background: var(--trip);
  color: white;
}

/* Repertoire des destinations : trois colonnes centrees. */

.directory {
  max-width: 900px;
  margin: 25px auto 0;
  text-align: center;
  font-size: .9rem;
  color: #65665e;
}

.directory summary {
  text-align: center;
  cursor: pointer;
}

.directory > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px auto 0;
  align-items: start;
}

.directory section {
  text-align: center;
  min-width: 0;
}

.directory-amerique {
  --trip: var(--map-amerique);
}

.directory-entre-deux {
  --trip: var(--map-entre-deux);
}

.directory-asie {
  --trip: var(--map-asie);
}

.directory h3 {
  color: var(--trip);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.directory a {
  display: block;
  width: fit-content;
  margin: 0 auto;
  color: #454c43;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  padding: 3px 5px;
}

.directory a:hover, .directory a:focus-visible {
  color: var(--trip);
}

.adventures {
  border-top: 1px solid #e1dfd4;
  max-width: 1050px;
}

.adventure-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.adventure {
  display: block;
  background: #fff;
  border: 1px solid #e2dfd5;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--trip);
  transition: transform .2s,box-shadow .2s;
}

.adventure:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px #0001;
}

.adventure img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
  background: #dfdfd4;
}

.adventure div {
  padding: 22px 10px;
}

.adventure small {
  font-family: Poppins,Arial,sans-serif;
  color: #74766e;
  font-size: .72rem;
}

.adventure h3 {
  font-family: 'Playfair Display',Georgia,serif;
  font-weight: 400;
  font-size: 1.8rem;
  margin: 7px 0;
}

.adventure span {
  font-size: .85rem;
}

.page-home footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #e2dfd5;
  color: #77766e;
  font-style: italic;
  font-size: .9rem;
}

.page-home a:focus-visible,.page-home button:focus-visible,.page-home select:focus-visible {
  outline: 2px solid #374b57;
  outline-offset: 3px;
}

@media(max-width:650px) {
  .atlas,.adventures {
    padding: 40px 12px;
  }
  .map-frame svg {
    min-height: 210px;
  }
  #destination-card {
    grid-template-columns: 1fr;
  }
  .destination-photo {
    min-height: 0;
  }
  .destination-photo img {
    height: 210px;
  }
  .destination-copy {
    padding: 22px;
  }
  .adventure-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .adventure img {
    height: 220px;
  }
  .directory>div {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .lead {
    font-size: 1rem;
  }
}

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

/* Photo par defaut du bandeau. Pour la personnaliser : photos-accueil.js. */

.page-home #intro {
  background-image: url("images/Grand Canyon.jpeg");
}

/* Carte et fiche destination */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 20px;
  align-items: start;
}

.map-layout.has-selection {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 30%);
}

.map-layout .map-frame {
  min-width: 0;
}

.map-layout #destination-card {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: 1fr;
  min-height: 0;
}

.map-layout .destination-photo {
  min-height: 0;
}

.map-layout .destination-photo img {
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.map-layout .destination-copy {
  padding: 20px;
}

#close-destination {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  color: #343a35;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

@media(max-width:760px) {
  .map-layout.has-selection {
    grid-template-columns: minmax(0,1fr);
  }
  .map-layout #destination-card {
    max-width: 480px;
    margin: auto;
  }
}

/* V5 — Bandeau : reprise de la disposition des pages de voyage. */

.page-home #intro {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  width: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  color: #fff;
  isolation: isolate;
}

.page-home #intro .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 0;
}

.page-home #intro .intro-content,
.page-home #intro .baseline {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  transform: none;
  padding: 0 20px;
  margin: 0;
  text-align: center;
  color: #fff;
  z-index: 2;
}

.page-home #intro .intro-content {
  top: 50px;
}

.page-home #intro h1 {
  font-family: Georgia,serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.7;
  letter-spacing: 1px;
  margin: 0 0 5px;
  color: #fff;
}

.page-home #intro .mini {
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 20px;
  opacity: .8;
}

.page-home #intro .baseline {
  bottom: 10px;
}

.page-home #intro .subtitle {
  font-size: 16px;
  margin: 0 0 10px;
}

.page-home #intro .scroll {
  display: block;
  color: #fff;
  text-decoration: none;
}

@media(max-width:900px) {
  .page-home #intro h1 {
    font-size: 3rem;
  }
}

@media(max-width:360px) {
  .page-home #intro h1 {
    font-size: 2.5rem;
  }
}

/* V8 - Carte integree au blog : couleurs modifiables ici. */

.page-home {
  --map-ocean: transparent;
  --map-land: #DFE2E4;
  --map-border: #FAFAFA;
  --map-amerique: #2986C9;
  --map-entre-deux: #35A875;
  --map-asie: #EC8050;
}

.page-home .map-frame {
  background: var(--map-ocean);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.page-home .land {
  fill: var(--map-land);
  stroke: var(--map-border);
  stroke-width: .55;
}

.page-home .land.visited {
  fill: var(--trip);
  stroke: var(--map-border);
  stroke-width: .6;
}

.page-home .land.visited:hover,
.page-home .land.visited:focus,
.page-home .land.selected {
  filter: brightness(1.10);
  stroke: #34434A;
  stroke-width: 1.6;
}

.page-home .marker circle:first-child {
  fill: var(--trip);
  stroke: var(--map-border);
  stroke-width: 1.5;
}

.page-home .marker circle:nth-child(2) {
  fill: var(--map-border);
}

.page-home .marker.selected circle:first-child,
.page-home .marker:hover circle:first-child,
.page-home .marker:focus circle:first-child {
  stroke: #34434A;
  stroke-width: 2.5;
}


/* V9 — une image absente ne doit pas afficher une icône cassée. */

.page-home img.photo-indisponible {
  visibility: hidden;
}

/* V13 : carte moins large, centree, proportions conservees au redimensionnement. */
.page-home .map-layout { max-width: 1050px; margin-inline: auto; }
.page-home .map-layout:not(.has-selection) .map-frame { width: 100%; max-width: 950px; margin-inline: auto; }
.page-home .map-frame svg { min-height: 0; height: auto; }
.page-home .directory { margin-top: 24px; }

/* V15 : respiration verticale de la page d'accueil. */
.page-home .intro-text {
  padding-bottom: 0;
}
.page-home .atlas {
  padding-top: 22px;
  padding-bottom: 28px;
}
@media (max-width: 650px) {
  .page-home .atlas {
    padding-top: 18px;
    padding-bottom: 22px;
  }
}

/* Signature de fin de page */
.page-home footer.home-signoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 20px 44px;
  background: transparent;
}
.home-signoff .signoff-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #343a35;
  font-style: italic;
}
.home-signoff .signoff-route {
  display: block;
  width: 190px;
  max-width: 80%;
  height: auto;
  color: #8b9789;
}
.home-signoff .signoff-names {
  margin: 0;
  color: #65665e;
  font-size: 1rem;
  font-style: italic;
}

/* V18 - Typographie de reference : style.css (page Amerique).
   Titres des chapitres : Georgia, 3rem, #1f2d3d.
   Texte courant : Georgia, 1.15rem, #444, interligne 1.9.
   Petits textes : reprendre les styles des dates et statistiques. */
.page-home { color: #444; font-family: Georgia, serif; }
.page-home .intro-text { color: #888; font-size: 15px; }
.page-home .atlas h2, .page-home .adventures h2 {
  font-family: Georgia, serif; font-size: 3rem; font-weight: normal;
  color: #1f2d3d; line-height: 1.7; margin: 20px 0 30px;
}
.page-home .lead, .page-home #destination-description {
  font-family: Georgia, serif; font-size: 1.15rem; color: #444; line-height: 1.9;
}
.page-home .eyebrow {
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 400;
  letter-spacing: 5px; color: #888;
}
.page-home .map-note, .page-home .directory summary, .page-home .adventure span,
.page-home .read-link { font-family: Georgia, serif; font-size: .9rem; color: #444; }
.page-home .directory a { font-family: Georgia, serif; font-size: 1.15rem; color: #444; }
.page-home .dates, .page-home .adventure small {
  font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 300;
  color: #aaa; letter-spacing: 1px;
}
/* Les titres de destination gardent leur code couleur cartographique. */
.page-home .directory h3, .page-home .adventure h3, .page-home .destination-copy h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 400;
  font-size: 2rem; line-height: 1.2; color: var(--trip);
}
.page-home .destination-copy .eyebrow { color: #888; }
.page-home .read-link:hover { color: #fff; }
/* Pied de page discret, comme la signature des recits. */
.page-home footer.home-signoff { gap: 6px; padding: 20px 16px; color: #888; }
.page-home .home-signoff .signoff-title { font: italic 400 15px/1.7 Georgia, serif; color: #444; }
.page-home .home-signoff .signoff-route { width: 100px; color: #888; }
.page-home .home-signoff .signoff-names { font: italic 400 13px/1.7 Georgia, serif; color: #888; }
@media (max-width: 900px) {
  .page-home .atlas h2, .page-home .adventures h2 { font-size: 2rem; }
  .page-home .lead, .page-home #destination-description, .page-home .directory a { font-size: 1.05rem; }
}
