/* RESET */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

/* BASE */

body{
font-family: Georgia, serif;
background:#fafafa;
color:#000000;
overflow-x:hidden;
line-height:1.7;
}

/* INTRO PLEIN ECRAN AVEC IMAGE */

#intro {
  height: 100vh;
  position: relative;
  background: url("images/Grand Canyon.jpeg") center / cover no-repeat;
  color: white;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.intro-content {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  color: white;
}

h1 {
  font-size: 64px;
  font-weight: normal;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.mini {
  letter-spacing: 3px;
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.8;
  text-transform: uppercase;
}

.baseline {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  color: white;
}

.subtitle {
  margin-bottom: 10px;
  font-size: 16px;
}

.scroll {
  display: block;
  font-size: 20px;
  opacity: 0.8;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ==============================
   SIGNATURE
============================== */

.intro-text {
  text-align: center;
  padding: 20px;
  font-size: 15px;
  color: #888;
  font-style: italic;
}

.separateur {
  width: 80px;
  border: none;
  border-top: 1px solid #ccc;
  margin: 15px auto 0 auto;
}

/* ==============================
   SECTIONS STORY (chapitres)
============================== */
.story {
  padding: 5px 5px;
}

.texte {
  max-width: 720px;
  margin: 0 auto 10px auto;
}

.story h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: normal;
  margin-top: 20px;
  margin-bottom: 30px;
  color: #1f2d3d;
}

.story p {
  text-align: justify;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* ==============================
   GALERIE PHOTOS
============================== */

.galerie-pro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

/* Grande photo en haut — pleine largeur */
.galerie-pro .img-top {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  object-position: center bottom;
}

/* Rangée du bas — deux photos côte à côte */
.row-bas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Photo portrait — recadrée proprement */
.row-bas .img-portrait {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
}

/* Photo paysage */
.row-bas .img-paysage {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position:right center;
  border-radius: 10px;
}

/* STORY */

.galerie-pro {
  max-width: 900px;
  margin: 0 auto;
}

.texte p {
  text-align: justify;
  font-size: 1.15rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 1rem;
}


/* IMAGE HAUT */
.img-top {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* LIGNE DES 2 IMAGES */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.row img {
  width: 100%;
  height: 350px; /* même hauteur que celle du haut */
  object-fit: cover;
  border-radius: 10px;
}

/* IMAGE BAS */
.img-bottom {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
}

/* ==============================
   GALERIE 5 PHOTOS PORTRAIT
============================== */
.galerie-5 {
  max-width: 900px;
  margin: 0 auto 10px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ligne-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.ligne-3 img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
}

.ligne-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ligne-2 img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
}

/* Mobile */
@media (max-width: 900px) {
  .ligne-3 {
    grid-template-columns: 1fr;
  }
  .ligne-2 {
    grid-template-columns: 1fr;
  }
}

/*Photo NY*/

.ligne-2-portrait img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  display: block;
}

.ligne-2-portrait {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 750px;
  margin: 0 auto;
  align-items: start;
}

.ligne-8 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

.ligne-8 img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  background: #fafafa;
}

/* ==============================
   GALERIE 16 PHOTOS LA
============================== */
.galerie-16 {
  max-width: 900px;
  margin: 0 auto 10px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Ligne paysage à droite : paysage prend 2/3, portrait 1/3 */
.ligne-paysage-droite {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

/* Ligne paysage à gauche : portrait prend 1/3, paysage 2/3 */
.ligne-paysage-gauche {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

/* Hauteurs */
.galerie-16 .ligne-3 img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
}

.galerie-16 .paysage {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center center;
  border-radius: 10px;
}

.galerie-16 .portrait {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
}

/* Mobile */
@media (max-width: 900px) {
  .ligne-paysage-droite,
  .ligne-paysage-gauche {
    grid-template-columns: 1fr;
  }
}

/* ==============================
  JOSHUA TREE
============================== */

.galerie-8 {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* RESET IMPORTANT */
.galerie-8 img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Paysage plein largeur */
.full {
  aspect-ratio: 16 / 9;
  border-radius: 10px; /* remplace 12px par la même valeur que dans .full */
}

/* Paysage plein largeur, plus haute */
.full-tall {
  aspect-ratio: 4 / 3;
  border-radius: 10px; /* remplace 12px par la même valeur que dans .full */
}

/* Ligne 2 : 2 portraits */
.ligne-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ligne-2 img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 70%;
}

/* Mix paysage / portrait */
.ligne-paysage-droite {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.ligne-paysage-gauche {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.paysage {
  aspect-ratio: 16 / 9;
}

.portrait {
  aspect-ratio: 3 / 4;
}

/* Ligne 5 : 3 portraits */
.ligne-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.ligne-3 img {
  aspect-ratio: 3 / 4;
}

/* Mobile */
@media (max-width: 900px) {
  .ligne-2,
  .ligne-3,
  .ligne-paysage-droite,
  .ligne-paysage-gauche {
    grid-template-columns: 1fr;
  }
}

.ligne-2-alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ligne-2-alt img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

/* ==============================
   STATS VOYAGE
============================== */
.stats-voyage {
  background: #f4f3ef;
  padding: 80px 20px;
  margin-top: 50px;
  text-align: center;
  width: 100%;
  max-width: 900px;          /* ← ajouter */
  margin-left: auto;         /* ← ajouter */
  margin-right: auto;        /* ← ajouter */
}

.stats-intro {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #1f2d3d;
  margin-bottom: 50px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin: 0 auto;
}

.stat-card {
  background: #eae8e0;
  border-radius: 16px;
  padding: 35px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.3s ease;
}

.stat-card:hover {
  background: #d0cabf;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 3rem;
  font-weight: normal;
  color: #1f2d3d;
  line-height: 1;
  font-family: Georgia, serif;
}

.stat-unit {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: #888;
  margin-top: 2px;
}

/* Mobile */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================
   TRANSITION VERS L'ASIE
============================== */

#transition-asie {
  padding: 140px 20px 160px;
  background: #111;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.transition-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.tr-label-top {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 28px;
}

.tr-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 32px;
}

.tr-next-hint {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 48px;
}

/* ── Le bouton ── */
.tr-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 20px 48px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}

.tr-btn:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
}

.tr-btn-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1;
  transition: opacity 0.3s;
}

.tr-btn-plane {
  font-size: 28px;
  display: inline-block;
  transition: transform 0.3s;
  transform-origin: center;
}

.tr-btn:hover .tr-btn-plane {
  transform: translateX(4px) rotate(-5deg);
}

/* ── Animation au clic ── */
@keyframes fly-away {
  0%   { transform: translateX(0)   rotate(0deg)  scale(1);   opacity: 1; }
  30%  { transform: translateX(40px) rotate(-8deg) scale(1.1); opacity: 1; }
  100% { transform: translateX(200vw) rotate(-15deg) scale(0.6); opacity: 0; }
}

@keyframes fade-btn {
  0%   { opacity: 1; }
  40%  { opacity: 0.5; }
  100% { opacity: 0; }
}

@keyframes trail-grow {
  0%   { width: 0; opacity: 0.6; }
  60%  { width: 220px; opacity: 0.3; }
  100% { width: 280px; opacity: 0; }
}

.tr-btn.flying {
  animation: fade-btn 1.4s ease forwards;
  pointer-events: none;
}

.tr-btn.flying .tr-btn-plane {
  animation: fly-away 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.tr-trail {
  position: absolute;
  right: 48px;
  top: 50%;
  height: 1px;
  background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,0.5));
  transform: translateY(-50%);
  animation: trail-grow 1.4s ease forwards;
  pointer-events: none;
}

/* Mobile */
@media (max-width: 768px) {
  #transition-asie { padding: 100px 20px 120px; }
  .tr-btn { padding: 16px 28px; gap: 12px; }
}


/* MOBILE */

@media(max-width:900px){

h1{
font-size:3rem;
}

.story h2{
font-size:2rem;
}

.story p{
font-size:1.05rem;
}

#story-box {
  opacity: 0;
}

.image-full{
background-attachment:scroll;
}

}

/* ============================================================
   Navigation multi-pays Les Chours
   ============================================================ */


/* ── BARRE DE NAVIGATION FIXE EN HAUT ───────────────────── */

.nav-pays {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.97);
  border-bottom: 1px solid #e8e8e8;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

/* La barre apparaît uniquement quand on scrolle dans un pays */
.nav-pays.visible {
  transform: translateY(0);
}

.nav-pays-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
}

.nav-pays-num {
  font-family: 'Poppins', sans-serif;
  font-size: 8px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ccc;
  line-height: 1;
}

.nav-pays-name {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #bbb;
  line-height: 1;
  transition: color 0.25s;
  white-space: nowrap;
}

/* Trait sous le pays actif */
.nav-pays-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: transparent;
  transition: background 0.25s;
}

.nav-pays-item.active .nav-pays-name { color: #1f2d3d; }
.nav-pays-item.active .nav-pays-num  { color: #999; }
.nav-pays-item.active::after         { background: #1f2d3d; }
.nav-pays-item:hover .nav-pays-name  { color: #444; }


/* ══════════════════════════════════════════════
   COULEURS PAR PAYS
══════════════════════════════════════════════ */

/* Variables globales */
:root {
  --c-usa:       #1A3A5C;
  --c-mexique:   #00897B;
  --c-perou:     #D32F2F;
  --c-bolivie:   #F9A825;
  --c-argentine: #4A90D9;
  --c-bresil:    #2E7D4F;
  --c-bilan:     #A0783C;
}

/* ── Teinte de fond des sections pays ── */
#pays-usa       { --c-pays: var(--c-usa); }
#pays-mexique   { --c-pays: var(--c-mexique); }
#pays-perou     { --c-pays: var(--c-perou); }
#pays-bolivie   { --c-pays: var(--c-bolivie); }
#pays-argentine { --c-pays: var(--c-argentine); }
#pays-brésil    { --c-pays: var(--c-bresil); }

/* ── Numéro fantôme teinté ── */
#pays-usa       .country-ghost-num,
#pays-mexique   .country-ghost-num,
#pays-perou     .country-ghost-num,
#pays-bolivie   .country-ghost-num,
#pays-argentine .country-ghost-num,
#pays-brésil    .country-ghost-num {
  color: color-mix(in srgb, var(--c-pays) 18%, transparent);
}

/* ── Trait supérieur de l'en-tête coloré ── */
#pays-usa       .country-header,
#pays-mexique   .country-header,
#pays-perou     .country-header,
#pays-bolivie   .country-header,
#pays-argentine .country-header,
#pays-brésil    .country-header {
  border-top-color: color-mix(in srgb, var(--c-pays) 35%, #d4cfc4);
}

/* ── Petit trait sous le titre d'en-tête coloré ── */
#pays-usa       .country-header::after,
#pays-mexique   .country-header::after,
#pays-perou     .country-header::after,
#pays-bolivie   .country-header::after,
#pays-argentine .country-header::after,
#pays-brésil    .country-header::after {
  background: var(--c-pays);
  opacity: 0.5;
  width: 48px;
  height: 2px;
}

/* ── Numéro de pays (01, 02…) coloré ── */
#pays-usa       .country-num,
#pays-mexique   .country-num,
#pays-perou     .country-num,
#pays-bolivie   .country-num,
#pays-argentine .country-num,
#pays-brésil    .country-num {
  color: var(--c-pays);
  opacity: 0.7;
}

/* ── Grand titre du pays coloré ── */
#pays-usa       .country-title,
#pays-mexique   .country-title,
#pays-perou     .country-title,
#pays-bolivie   .country-title,
#pays-argentine .country-title,
#pays-brésil    .country-title {
  color: var(--c-pays);
}

/* ── Bilans : fond de section ── */
#pays-usa       .stats-voyage,
#pays-mexique   .stats-voyage,
#pays-perou     .stats-voyage,
#pays-bolivie   .stats-voyage,
#pays-argentine .stats-voyage,
#pays-brésil    .stats-voyage {
  background: color-mix(in srgb, var(--c-pays) 6%, #fafafa);
}

/* ── Bilan : titre section ── */
#pays-usa       .stats-intro,
#pays-mexique   .stats-intro,
#pays-perou     .stats-intro,
#pays-bolivie   .stats-intro,
#pays-argentine .stats-intro,
#pays-brésil    .stats-intro {
  color: var(--c-pays);
}

/* ── Bilan : cards ── */
#pays-usa       .stat-card,
#pays-mexique   .stat-card,
#pays-perou     .stat-card,
#pays-bolivie   .stat-card,
#pays-argentine .stat-card,
#pays-brésil    .stat-card {
  background: color-mix(in srgb, var(--c-pays) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--c-pays) 20%, transparent);
}

#pays-usa       .stat-card:hover,
#pays-mexique   .stat-card:hover,
#pays-perou     .stat-card:hover,
#pays-bolivie   .stat-card:hover,
#pays-argentine .stat-card:hover,
#pays-brésil    .stat-card:hover {
  background: color-mix(in srgb, var(--c-pays) 16%, #fff);
}

/* ── Bilan : chiffre clé coloré ── */
#pays-usa       .stat-number,
#pays-mexique   .stat-number,
#pays-perou     .stat-number,
#pays-bolivie   .stat-number,
#pays-argentine .stat-number,
#pays-brésil    .stat-number {
  color: var(--c-pays);
}

/* ── Bilan Amérique : couleur ocre ── */
#Bilan { --c-pays: var(--c-bilan); }

#Bilan .country-ghost-num  { color: color-mix(in srgb, var(--c-bilan) 18%, transparent); }
#Bilan .country-header      { border-top-color: color-mix(in srgb, var(--c-bilan) 35%, #d4cfc4); }
#Bilan .country-header::after { background: var(--c-bilan); opacity: 0.5; width: 48px; height: 2px; }
#Bilan .country-num         { color: var(--c-bilan); opacity: 0.7; }
#Bilan .country-title       { color: var(--c-bilan); }
#Bilan .stats-voyage        { background: color-mix(in srgb, var(--c-bilan) 6%, #fafafa); }
#Bilan .stats-intro         { color: var(--c-bilan); text-align: left; }
#Bilan .stat-card           { background: color-mix(in srgb, var(--c-bilan) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c-bilan) 20%, transparent); }
#Bilan .stat-number         { color: var(--c-bilan); }

/* ── Nav active : trait coloré selon pays ── */
.page-amerique .nav-pays-item[data-pays="0"].active::after  { background: var(--c-usa); }
.page-amerique .nav-pays-item[data-pays="1"].active::after  { background: var(--c-mexique); }
.page-amerique .nav-pays-item[data-pays="2"].active::after  { background: var(--c-perou); }
.page-amerique .nav-pays-item[data-pays="3"].active::after  { background: var(--c-bolivie); }
.page-amerique .nav-pays-item[data-pays="4"].active::after  { background: var(--c-argentine); }
.page-amerique .nav-pays-item[data-pays="5"].active::after  { background: var(--c-bresil); }
.page-amerique .nav-pays-item[data-pays="6"].active::after  { background: var(--c-bilan); }

.page-amerique .nav-pays-item[data-pays="0"].active .nav-pays-name  { color: var(--c-usa); }
.page-amerique .nav-pays-item[data-pays="1"].active .nav-pays-name  { color: var(--c-mexique); }
.page-amerique .nav-pays-item[data-pays="2"].active .nav-pays-name  { color: var(--c-perou); }
.page-amerique .nav-pays-item[data-pays="3"].active .nav-pays-name  { color: var(--c-bolivie); }
.page-amerique .nav-pays-item[data-pays="4"].active .nav-pays-name  { color: var(--c-argentine); }
.page-amerique .nav-pays-item[data-pays="5"].active .nav-pays-name  { color: var(--c-bresil); }
.page-amerique .nav-pays-item[data-pays="6"].active .nav-pays-name  { color: var(--c-bilan); }


/* ── NUMÉRO FANTÔME EN FOND ──────────────────────────────── */

.country-ghost-num {
  display: block;
  position: relative;
  top: 80px;
  text-align: right;
  font-family: Georgia, serif;
  font-size: clamp(120px, 18vw, 180px);
  font-weight: 400;
  color: rgba(31, 45, 61, 0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -4px;
  margin-top: -40px;
  margin-bottom: -120px;
  padding-right: 40px;
  overflow: hidden;
}

/* ── EN-TÊTE DE PAYS ─────────────────────────────────────── */

.country-header {
  text-align: center;
  padding: 100px 20px 50px;
  border-top: 1px solid #d4cfc4;
  margin-top: 60px;
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.country-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.country-num {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 18px;
}

.country-flag {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.10));
}

.country-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 400;
  color: #1f2d3d;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.country-dates {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #aaa;
  letter-spacing: 1px;
}

.country-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: #d0ccc4;
  margin: 40px auto 0;
}

.tr-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tr-from {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 40px;
}

.tr-arrow {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 40px;
}

.tr-next-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.tr-next-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.tr-next-dates {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.tr-cta {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  animation: tr-pulse 2.8s ease-in-out infinite;
}

@keyframes tr-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%       { opacity: 0.6;  transform: translateY(4px); }
}


/* ── COMPENSATION BARRE FIXE ─────────────────────────────── */

body { scroll-padding-top: 52px; }


/* ── MOBILE ──────────────────────────────────────────────── */

@media (max-width: 768px) {

  .nav-pays {
    padding: 0 6px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-pays-item {
    padding: 10px 12px;
    flex-shrink: 0;
  }

  .nav-pays-name { font-size: 11px; }

  .country-header { padding: 80px 20px 40px; }
  .country-transition { min-height: 70vh; }
}

/* ══════════════════════════════════════════════
   BILAN AMÉRIQUE — STATS CHIFFRES CLÉS
══════════════════════════════════════════════ */

.bilan-stats-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 20px;
  text-align: center;
}

.bilan-stats-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
  text-align: left;
}

@media (max-width: 768px) {
  .bilan-stats-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ══════════════════════════════════════════════
   BILAN AMÉRIQUE — BUDGET
══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════
   BILAN AMÉRIQUE — BUDGET
══════════════════════════════════════════════ */

.bilan-budget {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.budget-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .budget-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.budget-bloc-titre {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 24px;
}

.budget-ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.budget-poste {
  font-family: Georgia, serif;
  font-size: 1rem;
  color: #444;
}

.budget-montant {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2d3d;
}

.budget-barre-wrap {
  height: 4px;
  background: #f0eeeb;
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.budget-barre {
  height: 100%;
  border-radius: 2px;
  transition: width 0.8s ease;
}

.budget-note {
  text-align: center;
  margin-top: 40px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.5px;
}

.budget-note strong {
  color: #1f2d3d;
}

/* ══════════════════════════════════════════════
   BILAN AMÉRIQUE — TOPS & GALÈRES
══════════════════════════════════════════════ */

.bilan-tops {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

.tops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .tops-grid {
    grid-template-columns: 1fr;
  }
}

.tops-col {
  padding: 32px;
  border-radius: 16px;
}

.tops-col--top {
  background: #f5f9f5;
  border: 1px solid #d4e8d4;
}

.tops-col--galere {
  background: #fdf8f3;
  border: 1px solid #e8ddd0;
}

.bilan-tops-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #444;
  text-align: center;
  margin: 0 0 24px;
  display: block;
}

.bilan-tops-label--galere {
  margin-top: 0;
}

.tops-cartes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.top-carte {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #f5f9f5;
  border: 1px solid #d8ecd8;
  border-radius: 14px;
  padding: 22px 20px 18px;
  width: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.top-carte:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
}

.top-carte--galere {
  background: #fdf8f3;
  border-color: #eaddd0;
}

.top-carte-emoji {
  font-size: 2rem;
  line-height: 1;
}

.top-carte-nom {
  font-family: Georgia, serif;
  font-size: 0.82rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .top-carte {
    width: 130px;
    padding: 18px 14px 14px;
  }
}


/* ══════════════════════════════════════════════
   TRANSITIONS ENTRE PAGES — FONDU
══════════════════════════════════════════════ */

body {
  opacity: 1;
  transition: opacity 0.45s ease;
}

body.page-fade-in {
  animation: page-arrival 0.45s ease both;
}
@keyframes page-arrival { from { opacity: 0; } to { opacity: 1; } }



/* ── Items nav qui pointent vers d'autres pages ── */
a.nav-pays-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Liens internes : conserver les couleurs du menu, pas le bleu du navigateur. */
a.nav-pays-item { color: #444; }
a.nav-pays-item.nav-pays-link .nav-pays-num,
a.nav-pays-item.nav-pays-link .nav-pays-name { color: inherit; }

.page-amerique .nav-pays-item[data-pays="7"] .nav-pays-name,
.page-amerique .nav-pays-item[data-pays="7"] .nav-pays-num { color: #6B5B4E; }
.page-amerique .nav-pays-item[data-pays="7"]:hover .nav-pays-name { color: #4A3728; }
.page-amerique .nav-pays-item[data-pays="7"]::after { background: #6B5B4E; }

.page-amerique .nav-pays-item[data-pays="8"] .nav-pays-name,
.page-amerique .nav-pays-item[data-pays="8"] .nav-pays-num { color: #A63D2F; }
.page-amerique .nav-pays-item[data-pays="8"]:hover .nav-pays-name { color: #7a2e23; }
.page-amerique .nav-pays-item[data-pays="8"]::after { background: transparent; }

.page-amerique .nav-pays-item[data-pays="8"] .nav-pays-num {
  font-size: 10px;
  color: #A63D2F;
}
/* Navigation robuste et accessible */
html { scroll-padding-top: 64px; }
.nav-pays { overflow-x: auto; justify-content: safe center; }
.nav-pays-item { flex-shrink: 0; }
.nav-pays-item:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.nav-pays:not(.visible):focus-within { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  body, body.page-fade-in, .country-header, .nav-pays, .scroll { animation: none !important; transition: none !important; }
}

/* Sans JavaScript, les liens de navigation restent accessibles. */
.nav-pays:not(.nav-enhanced) { transform: none; }
img.full, img.full-tall { width: 100%; height: auto; object-fit: cover; }
/* V8 - Accueil fixe dans le menu, meme lors du defilement horizontal. */
.nav-pays .nav-home {
  position: sticky;
  left: 0;
  z-index: 2;
  align-self: stretch;
  justify-content: center;
  background: #fafafa;
  border-right: none;
  color: #42534a;
  padding: 7px 16px;
}
.nav-pays .nav-home .nav-pays-name { color: inherit; }
.nav-pays .nav-home:hover { color: #172b22; background: #f1f1ee; }
.nav-home-icon { display: block; flex-shrink: 0; }
@media (max-width: 768px) {
  .nav-pays .nav-home { padding: 7px 12px; }
}

/* V11 — palette originale des chapitres américains. */
.page-amerique .nav-pays-item[href^="#"][data-pays="-1"] { --nav-country: #1f2d3d; }
.page-amerique .nav-pays-item[href^="#"][data-pays="0"] { --nav-country: var(--c-usa); }
.page-amerique .nav-pays-item[href^="#"][data-pays="1"] { --nav-country: var(--c-mexique); }
.page-amerique .nav-pays-item[href^="#"][data-pays="2"] { --nav-country: var(--c-perou); }
.page-amerique .nav-pays-item[href^="#"][data-pays="3"] { --nav-country: var(--c-bolivie); }
.page-amerique .nav-pays-item[href^="#"][data-pays="4"] { --nav-country: var(--c-argentine); }
.page-amerique .nav-pays-item[href^="#"][data-pays="5"] { --nav-country: var(--c-bresil); }
.page-amerique .nav-pays-item[href^="#"][data-pays="6"] { --nav-country: var(--c-bilan); }

/* V11 — comportement original du menu : gris au repos, couleur du chapitre actif.
   Les liens Accueil et entre les voyages conservent leur apparence spécifique. */
.nav-pays .nav-pays-item[href^="#"][data-pays] .nav-pays-name { color: #bbb; }
.nav-pays .nav-pays-item[href^="#"][data-pays] .nav-pays-num { color: #ccc; }
.nav-pays .nav-pays-item[href^="#"][data-pays]:not(.active):hover .nav-pays-name { color: #444; }
.nav-pays .nav-pays-item[href^="#"][data-pays].active .nav-pays-name { color: var(--nav-country, #1f2d3d); }
.nav-pays .nav-pays-item[href^="#"][data-pays].active .nav-pays-num { color: #999; }
.nav-pays .nav-pays-item[href^="#"][data-pays].active::after { background: var(--nav-country, #1f2d3d); }
