/* Styles des pages Guides de voyage. */

.page-guides {
  background: #fff;
}

/* Les introductions des guides utilisent toute la largeur disponible. */
@media (min-width:1051px) {
  .guide-section-heading,
  .guide-section-heading > p {
    width:100%!important;
    max-width:none!important
  }
  .guide-section-heading h1,
  .guide-section-heading h2 {
    max-width:1180px
  }
}

.guide-artwork {
  border-bottom: 1px solid var(--line);
}

.guide-hero-button,
.guide-routes-button {
  justify-content: center;
  margin-top: 28px;
  border: 0;
  background: #3ea6f8;
  color: #fff;
  box-shadow: 0 12px 28px rgba(62, 166, 248, .24);
}

.guide-hero-button:hover,
.guide-routes-button:hover {
  background: #218bdc;
  color: #fff;
  transform: none;
}

.guide-directory {
  background: #fff;
}

.guide-section-heading {
  max-width: 1180px;
  margin-bottom: 18px;
}

.guide-country-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid #cfe3f3;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4fbff 0%, #fff 58%, #fff7f3 100%);
  box-shadow: 0 10px 28px rgba(16, 37, 63, .07);
}

.guide-country-selector {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 22px 24px 26px;
  list-style: none;
}

.guide-country-control {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(280px, 1.2fr);
  gap: 20px;
  align-items: center;
  padding: 0;
}

.guide-country-control label {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 900;
  line-height: 1.2;
}

.guide-country-control small {
  display: block;
  max-width: 560px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.guide-country-control select {
  width: 100%;
  min-height: 52px;
  padding: 0 50px 0 20px;
  border: 2px solid #a9d9ef;
  border-radius: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23087aa8'/%3E%3Cpath d='m10 13 6 6 6-6' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 30px 30px;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(8, 122, 168, .11);
  cursor: pointer;
}

.guide-country-control select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 122, 168, .12), 0 10px 24px rgba(8, 122, 168, .11);
}

.guide-country-selector a,
.guide-country-selector span {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid #d7e3ec;
  border-radius: 999px;
  background: #fff;
  color: #7b8b99;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.guide-country-selector a {
  border-color: #b9dff2;
  background: linear-gradient(135deg, #ffffff 0%, #eef9ff 100%);
  color: var(--blue-dark);
  box-shadow: 0 5px 14px rgba(8, 122, 168, .08);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.guide-country-selector .is-eu::after {
  position: absolute;
  top: 5px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd34e;
  box-shadow: 0 0 0 2px #123f78;
  content: "";
}

.guide-country-selector a:hover,
.guide-country-selector a:focus-visible {
  border-color: #1689bd;
  background: #087aa8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 122, 168, .2);
}

.guide-country-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

/* Quatre guides disponibles sur la page Amérique : grille équilibrée 2 × 2. */
@media (min-width: 1051px) {
  .page-amerique .guide-country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Deux destinations en Océanie : les cartes occupent toute la largeur. */
  .page-oceanie .guide-country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.guide-data-note {
  margin: 0 0 26px;
  padding: 18px 20px;
  border: 1px solid #cfe4f2;
  border-left: 4px solid var(--coral);
  border-radius: 16px;
  background: #f5faff;
  color: var(--muted);
}

.guide-data-note strong {
  color: var(--ink);
}

.guide-data-note p {
  margin: 5px 0 0;
  font-size: .91rem;
  line-height: 1.55;
}

.guide-data-sources a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-country-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  scroll-margin-top: 110px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 37, 63, .08);
}

.guide-country-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: #f7f1e8;
}

.guide-country-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transition: none;
}

.guide-country-card:hover .guide-country-image img {
  transform: none;
}

.guide-country-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
}

.guide-country-body h3 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 1.1rem + .35vw, 1.52rem);
  line-height: 1.2;
}

@media (min-width: 901px) {
  .guide-country-body h3 {
    min-height: 3.65rem;
  }

  .guide-cost {
    display: flex;
    min-height: 3.15rem;
    align-items: center;
  }

  .guide-country-body > p:not(.guide-cost) {
    min-height: 6.6rem;
  }

  .guide-facts {
    flex: 1;
  }
}

.guide-country-body h3 a {
  color: var(--blue);
  text-decoration: none;
}

.guide-cost {
  align-self: flex-start;
  margin: 0 0 14px !important;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #16733c !important;
  font-size: .82rem !important;
  font-weight: 850;
  line-height: 1.35 !important;
  white-space: nowrap;
}

.guide-country-body > p:not(.guide-cost) {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.62;
}

.guide-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 15px;
  background: #f5f9fd;
  list-style: none;
}

.guide-facts li {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.48;
}

.guide-country-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease;
}

.guide-country-button:hover,
.guide-country-button:focus-visible {
  background: #065f95;
  color: #fff;
}

.guide-continents {
  background: #f4f9fd;
}

.guide-continent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.guide-continent-grid a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d8e7f2;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(16, 37, 63, .06);
}

.guide-continent-grid a > img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1800 / 945;
  object-fit: contain;
  background: #f5f8fb;
}

.guide-continent-grid a > span {
  display: grid;
  gap: 5px;
  padding: 18px 8px 18px 20px;
}

.guide-continent-grid strong {
  color: var(--blue);
  font-size: 1.16rem;
}

.guide-continent-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.guide-continent-grid b {
  display: grid;
  place-items: center;
  padding: 18px 20px 18px 8px;
  color: #3ea6f8;
  font-size: 1.5rem;
}

.guide-routes-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid #cfe1f1;
  border-radius: 26px;
  background: linear-gradient(135deg, #f4faff 0%, #eaf5ff 100%);
}

.guide-routes-button {
  margin-top: 0;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .guide-country-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .guide-country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-continent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .guide-country-nav {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-country-control {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .guide-country-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-routes-panel {
    grid-template-columns: 1fr;
  }

  .guide-routes-button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  html.ve-phone-page .page-guides .guide-directory {
    padding-top: 18px;
  }

  html.ve-phone-page .page-guides .guide-section-heading {
    display: none;
  }

  .guide-hero-button {
    width: 100%;
    white-space: nowrap;
    font-size: clamp(.78rem, 3.45vw, 1rem);
  }

  .guide-country-button {
    gap: 8px;
    font-size: clamp(.76rem, 3.4vw, .96rem);
  }

  .guide-country-control {
    gap: 12px;
    padding: 0;
  }

  .guide-country-nav {
    margin-bottom: 24px;
    padding: 16px;
  }

  .guide-country-grid,
  .guide-continent-grid {
    grid-template-columns: 1fr;
  }

  .guide-country-body {
    padding: 20px 18px 22px;
  }

  .guide-routes-panel {
    width: min(calc(100% - 28px), var(--max));
    padding: 24px 20px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-country-image img {
    transition: none;
  }
}
