@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&display=swap');

.pays__row {
    display: flex;
    flex-direction: row;
    background-color: #EFEDE6;
    color: #181A18;
    box-sizing: border-box;
    width: 100%;
    min-height: 480px;
    font-family: 'Hanken Grotesk', sans-serif;
    border: 1px solid rgba(24, 26, 24, 0.08);
    overflow: hidden;
}

.pays__media {
    flex: 1 1 50%;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Conserve le ratio 4:3 parfait */
    overflow: hidden;
    border-radius: 4px;
}

.pays__num {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 10;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #181A18;
    background: #EFEDE6;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.pays__carousel-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pays__carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit tout le cadre sans déformer l'image */
    object-position: center; /* Centre le sujet de la photo */
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s ease;
    z-index: 1;
}

.pays__carousel-img.active {
    opacity: 1;
    z-index: 2;
}

/* Effet zoom fluide au survol */
.pays__media:hover .pays__carousel-img.active {
    transform: scale(1.05);
}

.pyb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 250, 246, 0.85);
  border: none;
  border-radius: 50%;
  color: #181A18;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transition: opacity 250ms ease, background 250ms ease, transform 250ms ease;
}
.pyb-arrow svg { width: 16px; height: 16px; }
.pays__media:hover .pyb-arrow { opacity: 1; }
.pyb-arrow:hover { background: #FBFAF6; }
.pyb-arrow--prev { left: 0.85rem; }
.pyb-arrow--next { right: 0.85rem; }

.pays__carousel-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.pays__carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(239, 237, 230, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pays__carousel-dot.active {
    background-color: #EFEDE6;
    transform: scale(1.2);
}

.pays__content {
    flex: 1 1 50%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.pays__eyebrow {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7F8278;
    margin-bottom: 12px;
    font-weight: 600;
}

.pays__h3 {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #1F3D2E;
    font-weight: 500;
}

.pays__h3 span {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
    color: #A98B5D;
}

.pays__text {
    font-size: 16px;
    line-height: 1.6;
    color: #181A18;
    margin: 0 0 32px 0;
    opacity: 0.85;
}

.pays__scores {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    border-top: 1px solid rgba(127, 130, 120, 0.2);
    border-bottom: 1px solid rgba(127, 130, 120, 0.2);
    padding: 16px 0;
}

.pays__score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pays__score-label {
    font-size: 14px;
    color: #7F8278;
    font-weight: 500;
}

.pays__stars {
    color: #A98B5D;
    font-size: 16px;
    letter-spacing: 2px;
    user-select: none;
}

.pays__saison {
    font-size: 14px;
    color: #181A18;
    margin-bottom: 32px;
    display: block;
}

.pays__saison strong {
    font-weight: 600;
    color: #1F3D2E;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-right: 8px;
}

.pays__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1F3D2E;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.pays__link span {
    transition: transform 0.3s ease;
}

.pays__link:hover {
    color: #A98B5D;
}

.pays__link:hover span {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .pays__row {
        flex-direction: column;
        min-height: auto;
    }
    .pays__media {
        min-height: auto;
    }
    .pays__content {
        padding: 32px 24px;
    }
    .pays__h3 {
        font-size: 28px;
    }
}
