/* Police Work Sans en local - pas d'import externe */
/* =============================================
   N2H4 — CSS v5
   ============================================= */

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

body {
  background-color: rgb(55, 65, 150);
  color: #000;
  font-family: "Work Sans", Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }
a:active { opacity: 0.7; }
i, em { font-style: italic; }
b, strong { font-weight: bolder; }

/* ========== HEADER ========== */

.header {
  border-bottom: solid 2px #fff;
  margin-bottom: 0px;
  background-color: rgb(55, 65, 150);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* === LOGO — copie exacte CSS Cargo === */
#n2h4-logo {
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition: 1s;
  padding: 28px 0 20px;
  text-decoration: none;
}
#n2h4-logo:hover { transform: scale(1.1); }
#n2h4-logo:hover #n2h4-n { transform: translateX(0px); }
#n2h4-logo:hover #n2h4-2 { transform: translateY(0px); }
#n2h4-logo:hover #n2h4-h { transform: translate(0px, 0px); }
#n2h4-logo:hover #n2h4-4 { transform: translate(0px, 0px); }

#n2h4-circle {
  height: 65px;
  width: 65px;
  border-radius: 100px;
  border: solid 1.3px white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 1s;
  overflow: visible;
}

/* Lettres dans le flex — alignées côte à côte par défaut */
#n2h4-circle p {
  color: white;
  font-size: 20px;
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: lighter;
  transition: 1s;
  opacity: 1;
  /* Pas de width:0 — les lettres occupent leur place naturelle */
}

/* État normal : lettres dispersées autour du cercle */
#n2h4-n { transform: translateX(-25px); }
#n2h4-2 { transform: translateY(-32px); }
#n2h4-h { transform: translate(34px, -25px); }
#n2h4-4 { transform: translate(9px, 33px); }

/* Survol : lettres reviennent à leur position naturelle → N2H4 aligné */
#n2h4-logo:hover #n2h4-n { transform: translateX(0px); }
#n2h4-logo:hover #n2h4-2 { transform: translateY(0px); }
#n2h4-logo:hover #n2h4-h { transform: translate(0px, 0px); }
#n2h4-logo:hover #n2h4-4 { transform: translate(0px, 0px); }

/* === NAV === */
.header-nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
.header-nav a {
  font-size: 1.5rem;
  font-weight: 400;
  color: white;
  padding: 14px 20px;
  flex: 1;
  text-align: center;
  display: block;
  transition: opacity 0.2s;
}
.header-nav a:hover, .header-nav a.active { opacity: 0.6; }

/* ========== THUMBNAILS ========== */

.thumbnails { background-color: rgb(55, 65, 150); padding-top: 1.5rem; }

.thumbnails_width {
  width: 76%;
  margin: 0 auto;
}

[thumbnails-gutter] {
  display: flex;
  flex-wrap: wrap;
  margin: -1.1rem;
}

.thumbnail {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  position: relative;
}

.thumbnail > a {
  position: relative;
  display: block;
}

[thumbnails-pad] {
  padding: 1.1rem;
  position: relative;
}

/* Spacer pour ratio carré */
.spacer {
  display: block;
  width: 100%;
  padding-bottom: 100%;
}

/* L'image en absolu sur le spacer */
.thumb_image {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  overflow: hidden;
  opacity: 0.9;
  transition: all 0.4s ease-in-out;
}

.thumb_image:hover {
  transform: translate(0px, -5px);
  opacity: 1;
  box-shadow: 0 6px 8px -2px #292929;
}

.thumb_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========== FOOTER ========== */
.footer {
  background-color: rgb(55, 65, 150);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: white;
}
.footer p:first-child { margin-bottom: 0.3rem; }
.footer p:last-child { font-style: italic; opacity: 0.7; }

/* ========== PAGE VILLE ========== */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Map plein écran en fond */
.backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Layout — 3 colonnes de même hauteur, même fond */
.city-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  min-height: 440px;
}

/* Fond commun aux 3 colonnes */
.city-cover,
.city-meta,
.city-buy {
  background: rgba(255, 255, 255, 0.55);
}

/* 3 tiers égaux */
.city-cover,
.city-meta,
.city-buy {
  flex: 1 1 0;
  background: rgba(255, 255, 255, 0.55);
}

.city-cover {
  position: relative;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.city-cover img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 3rem);
  max-height: calc(100% - 3rem);
  width: auto;
  height: auto;
  display: block;
}

/* Meta — infos centrées */
.city-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.meta-row {
  width: 100%;
  max-width: 260px;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.meta-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(0, 0, 0, 0.35);
  font-family: "Work Sans", Arial, sans-serif;
  margin-bottom: 0.08rem;
}
.meta-value {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.8);
  font-family: "Work Sans", Arial, sans-serif;
}
.meta-row + .meta-row {
  padding-top: 0.45rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

/* Bouton achat — centré dans sa colonne */
.city-buy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 0.8rem;
}
.city-buy .lang-note {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.4);
  font-style: italic;
  font-family: "Work Sans", Arial, sans-serif;
}
.city-buy iframe { border: none; }
.soon-msg {
  color: rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  font-style: italic;
}
.city-divider { display: none; }

/* Section sample — même fond, tout centré */
.sample-section {
  position: relative;
  z-index: 1;
  padding: 3rem 8%;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.sample-section h3 {
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 2rem;
  font-family: "Work Sans", Arial, sans-serif;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}
.sample-pages {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.sample-page-img {
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ========== PAGES TEXTE ========== */
.text-page {
  max-width: 70rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: justify;
  text-justify: inter-word;
  letter-spacing: 0.01em;
  color: white;
  font-family: "Work Sans", Arial, sans-serif;
}
.text-page p { margin-bottom: 1.2rem; }
.text-page .sep { text-align: center; }

.contact-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 4rem 10%;
  font-size: 1.2rem;
  line-height: 1.5;
}
.contact-email {
  font-weight: 700;
  font-style: italic;
  color: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .thumbnail { flex: 0 0 50%; max-width: 50%; }
  .city-layout { flex-direction: column; min-height: auto; }
  .city-cover { flex: none; width: 100%; min-height: 280px; }
  .city-meta { flex: none; width: 100%; }
  .city-buy { flex: none; width: 100%; }
}
@media (max-width: 500px) {
  .thumbnail { flex: 0 0 100%; max-width: 100%; }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {

  /* Header — logo plus petit */
  #n2h4-logo { padding: 14px 0 10px; }
  #n2h4-circle { height: 48px; width: 48px; }
  #n2h4-circle p { font-size: 14px; }
  #n2h4-n  { transform: translateX(-18px); }
  #n2h4-2  { transform: translateY(-24px); }
  #n2h4-h  { transform: translate(25px, -18px); }
  #n2h4-4  { transform: translate(7px, 25px); }

  /* Nav — taille réduite pour tenir sur une ligne */
  .header-nav a {
    font-size: 0.85rem;
    padding: 8px 6px;
    letter-spacing: -0.01em;
  }

  /* Grille — 1 colonne, pas d'overflow */
  .thumbnails { padding-top: 0.8rem; overflow: hidden; }
  .thumbnails_width { width: 92%; }
  [thumbnails-gutter] { margin: -0.6rem; }
  .thumbnail { flex: 0 0 100%; max-width: 100%; }
  [thumbnails-pad] { padding: 0.6rem; }
  .thumb_image { top: 0.6rem; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }

  /* Page ville — colonne unique */
  .city-layout {
    flex-direction: column;
    min-height: auto;
    height: auto;
  }
  .city-cover,
  .city-meta,
  .city-buy {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .city-cover { min-height: 240px; }
  .city-meta { padding: 1.5rem 1.5rem; }
  .city-buy { padding: 1.5rem; }

  /* Pages texte */
  .text-page { font-size: 1.1rem; padding: 2rem 1.2rem; }

  /* Footer */
  .footer { padding: 1.5rem 1rem; }
}

@media (max-width: 400px) {
  .header-nav a { font-size: 0.78rem; padding: 8px 4px; }
}
