/*
Theme Name: Coline et Yves - Une histoire de mariage
Theme URI: https://www.colineandyves.fr
Author: Yves
Description: YvesAndCo, thème WordPress du mariage de Coline et Yves.
Version: 4.4.1
Text Domain: wa-konkai
*/

:root {
  --color-sage: #8A9A86;
  --color-sakura: #D8A4B1;
  --color-plum: #582C37;
  --color-washi: #FAF8F5;
  --color-washi-card: #FFFFFF;
  --color-ink: #2C2C2C;
  --color-gold: #C5A059;
  
  --font-title: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--color-washi);
  color: var(--color-ink);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

.posts-index-main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.posts-index-card {
  margin-bottom: 30px;
  padding: 30px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-page-main {
  max-width: 1100px;
  min-height: 55vh;
  margin: 48px auto;
  padding: 0 20px;
}

.content-page-card {
  padding: clamp(24px, 5vw, 52px);
  background: #fff;
  border: 1px solid rgba(88, 44, 55, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(88, 44, 55, 0.07);
}

.wedding-photos-page {
  max-width: 1680px;
  padding-inline: clamp(12px, 2.5vw, 40px);
}

.wedding-playlist-page {
  max-width: 1680px;
  padding-inline: clamp(12px, 2.5vw, 40px);
}

.wedding-photos-page__card {
  overflow: hidden;
  padding: clamp(24px, 3vw, 52px);
}

.wedding-photos-page__header {
  max-width: 760px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
}

.wedding-playlist-page__card {
  overflow: hidden;
  padding: clamp(24px, 3vw, 52px);
}

.wedding-playlist-page__header {
  max-width: 820px;
  margin: 0 auto clamp(28px, 5vw, 52px);
  text-align: center;
}

.wedding-playlist-page__header h1 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
}

.wedding-playlist-page__header > p:last-child {
  margin: 0;
}

.wedding-playlist-page__unavailable {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(138, 154, 134, 0.3);
  background: rgba(250, 248, 245, 0.82);
  text-align: center;
}

.wedding-photos-page__header h1 {
  margin: 10px 0 16px;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.12;
}

.wedding-photos-page__header > p:last-child {
  margin: 0;
}

.wedding-photos-page__unavailable {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(138, 154, 134, 0.3);
  border-radius: 8px;
  background: rgba(250, 248, 245, 0.82);
  text-align: center;
}

.wedding-photos-page__unavailable h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.wedding-photos-page__admin-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(88, 44, 55, 0.12);
  color: var(--color-plum);
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .wedding-photos-page {
    margin-top: 28px;
    padding-inline: 12px;
  }

  .wedding-playlist-page {
    margin-top: 28px;
    padding-inline: 12px;
  }

  .wedding-photos-page__card {
    padding: 24px 16px;
  }

  .wedding-playlist-page__card {
    padding: 24px 16px;
  }
}

.archive-header {
  margin-bottom: 34px;
}

.error-404 {
  text-align: center;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--color-plum);
  letter-spacing: 2px;
  margin-top: 0;
}

.section-kicker {
  margin: 0;
}

.section-display-title {
  margin: 10px 0 20px;
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
}

a {
  color: var(--color-plum);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-sakura);
}

p {
  text-align: left;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(88, 44, 55, 0.3);
  outline-offset: 3px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-sage);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

/* HEADER */
.site-header {
  padding: 25px 40px;
  background: var(--color-washi);
  border-bottom: 1px solid rgba(138, 154, 134, 0.2);
  position: relative;
  z-index: 10;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--color-plum);
  font-weight: 700;
  letter-spacing: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.site-logo span {
  color: var(--color-sakura);
  font-family: var(--font-body);
  font-weight: 300;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(16px, 2.2vw, 35px);
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-plum);
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

/* HERO SECTION */
.hero-section {
  padding: 80px 20px 60px 20px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* TROIS GRUES EN ORIGAMI (3 COULEURS CLEFS) */
.crane-trio-hero {
  position: absolute;
  top: 15px;
  right: -10px;
  width: 240px;
  height: 135px;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;    /* Coupe tout ce qui dépasse du conteneur (exit l'artefact !) */
}

.crane-trio-hero .crane {
  position: absolute;
  transition: transform 0.5s ease;
}

.crane-trio-hero .crane-plum {
  top: 0;
  right: 0;
  width: 130px;
  opacity: 0.45;
}

.crane-trio-hero .crane-sage {
  top: 65px;
  right: 90px;
  width: 95px;
  opacity: 0.75;
  transform: rotate(-12deg);
 
}

.crane-trio-hero .crane-sakura {
  top: 110px;
  right: 25px;
  width: 80px;
  opacity: 0.8;
  transform: rotate(15deg);
}

/* BOARDING PASS */
.boarding-pass {
  background: #FFFFFF;
  border: 1px solid rgba(88, 44, 55, 0.15);
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  position: relative;
  box-shadow: 0 15px 35px rgba(88, 44, 55, 0.08);
  overflow: hidden;
}

.boarding-pass-main {
  flex: 1;
  padding: 45px 50px;
  border-right: 2px dashed rgba(138, 154, 134, 0.5);
  position: relative;
}

.boarding-pass-stub {
  width: 280px;
  padding: 40px 30px;
  background: #FDFBF7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.boarding-pass h1 {
  font-size: 2.8rem;
  margin: 15px 0;
  color: var(--color-plum);
  font-weight: 400;
  line-height: 1.2;
}

.boarding-pass h1 span {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-sakura);
}

.crane-clipped,
.site-logo-crane {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 88%);
}

.site-logo-crane {
  vertical-align: middle;
}

.svg-symbol-library {
  display: none;
}

.departure-label {
  margin-top: 15px;
  color: var(--color-plum);
}

.departure-date {
  margin-top: 5px;
  color: var(--color-plum);
  font-family: var(--font-title);
  font-size: 1.2rem;
}

.story-crane-watermark,
.programme-crane-watermark {
  position: absolute;
  pointer-events: none;
}

.story-crane-watermark {
  top: -30px;
  left: -40px;
  opacity: 0.12;
  transform: rotate(-25deg);
}

.programme-crane-watermark {
  right: -30px;
  bottom: -40px;
  opacity: 0.45;
  transform: rotate(20deg);
}

.architect-location-label {
  color: #fff;
}

.architect-location-route {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1rem;
}

.story-copy {
  color: #4a4a4a;
  font-size: 1.05rem;
  font-weight: 300;
}

.story-copy-first {
  margin-bottom: 15px;
}

.stamp-title-centered {
  text-align: center;
}

.boarding-pass-desc {
  color: #555;
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 35px;
  max-width: 580px;
}

.stub-location-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-sage);
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  padding: 6px 10px;
  border: 1px dashed rgba(138, 154, 134, 0.4);
  border-radius: 3px;
  background: rgba(138, 154, 134, 0.05);
}

.stub-location-link:hover {
  color: var(--color-plum);
  background: rgba(88, 44, 55, 0.08);
  border-color: var(--color-plum);
  transform: translateY(-1px);
}

/* BUTTONS */
.btn-modern {
  display: inline-block;
  background: var(--color-plum);
  color: #FFFFFF !important;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  padding: 16px 36px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(88, 44, 55, 0.2);
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

.btn-modern:hover {
  background: var(--color-sakura);
  color: var(--color-plum) !important;
  transform: translateY(-2px);
}

/* SECTION HISTOIRE */
.section-histoire {
  padding: 90px 20px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.image-architect-wrapper {
  position: relative;
}

.image-architect {
  width: 100%;
  height: 420px;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 4%, 96% 100%, 4% 96%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: block;
}

.architect-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--color-sage);
  color: white;
  padding: 20px 25px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* SECTION PROGRAMME */
.section-programme {
  padding: 100px 20px;
  background: #F4EFEA;
  position: relative;
  overflow: hidden;
}

.programme-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-title-center {
  text-align: center;
  margin-bottom: 60px;
}

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

.origami-card {
  background: #FFFFFF;
  padding: 40px 30px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
  border-left: 4px solid var(--color-sakura);
  box-shadow: 0 10px 25px rgba(88, 44, 55, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origami-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(88, 44, 55, 0.12);
}

.origami-card-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 45px;
  height: 45px;
  opacity: 0.35;
  pointer-events: none;
}

.origami-card.card-sage {
  border-left-color: var(--color-sage);
}

.origami-card.card-plum {
  border-left-color: var(--color-plum);
}

.origami-card h3 {
  font-size: 1.35rem;
  margin: 15px 0 12px 0;
  font-weight: 600;
  color: var(--color-plum);
}

.origami-card p {
  color: #555;
  font-weight: 300;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* RSVP FORM */
.section-rsvp {
  padding: 100px 20px;
  margin: 0 auto;
  position: relative;
  background:#F4EFEA;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-plum);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid rgba(88, 44, 55, 0.25);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-plum);
  box-shadow: 0 0 0 2px rgba(88, 44, 55, 0.1);
}

/* FOOTER */
.site-footer {
  background: var(--color-plum);
  color: var(--color-washi);
  text-align: center;
 
  position: relative;
}

.footer-love {
  text-align: center;
}

.site-footer h3 {
  color: var(--color-sakura);
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Layout du Footer en 2 colonnes */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-names{
	color:#FAF8F5;
  text-transform: uppercase;
}

.footer-col {
  flex: 1;
}

.footer-col-right {
  text-align: left; /* Aligné proprement en face de la carte */
}

.footer-col-left .jap-word-card {
  margin: 0; /* Annule le centrage vertical forcé */
}

/* Adaptation Mobile : Empilage propre */
@media screen and (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-col-right {
    text-align: center;
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .grid-2col, .grid-3col {
    grid-template-columns: 1fr;
  }
  
  .boarding-pass {
    flex-direction: column;
  }
  
  .boarding-pass-main {
    border-right: none;
    border-bottom: 2px dashed rgba(138, 154, 134, 0.5);
    padding: 35px 25px;
  }
  
  .boarding-pass-stub {
    width: 100%;
    padding: 35px 25px;
  }


}

/* Remonter les origamis ou ajuster leur position */
.origami-header {
  position: absolute;
  top: -40px; /* Remontez-les pour qu'ils dépassent au-dessus de la carte */
  right: 20px;
  z-index: 10 !important; /* Derrière ou devant selon le rendu souhaité */
}

/* =========================================================
   FORMULAIRE RSVP — CARTE D'EMBARQUEMENT
   ========================================================= */

form.rsvp-form {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 34px 32px;
  overflow: hidden;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(216, 164, 177, 0.08), transparent 38%),
    #fdfbf7;
  border: 1px solid rgba(88, 44, 55, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(88, 44, 55, 0.12);
}

form.rsvp-form::before,
form.rsvp-form::after {
  content: "";
  position: absolute;
  top: 126px;
  width: 30px;
  height: 30px;
  z-index: 2;
  border-radius: 50%;
  background: #f4efea;
  border: 1px solid rgba(88, 44, 55, 0.18);
}

form.rsvp-form::before {
  left: -16px;
}

form.rsvp-form::after {
  right: -16px;
}

.rsvp-ticket-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -34px 30px;
  padding: 16px 34px;
  color: #fff;
  background: #582c37;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rsvp-form .form-group {
  margin-bottom: 24px;
}

.rsvp-form label,
.rsvp-fieldset legend {
  display: block;
  margin-bottom: 7px;
  color: #582c37;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rsvp-optional {
  color: #8c6d75;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  color: #3d1e26;
  background: #fff;
  border: 1px solid #d1c2c5;
  border-radius: 8px;
  font-family: var(--font-body, sans-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.rsvp-form textarea {
  min-height: 86px;
  resize: vertical;
}

.rsvp-form input:focus-visible,
.rsvp-form select:focus-visible,
.rsvp-form textarea:focus-visible,
.rsvp-form button:focus-visible {
  outline: 3px solid rgba(140, 109, 117, 0.25);
  outline-offset: 2px;
  border-color: #8c6d75;
  box-shadow: 0 0 0 3px rgba(140, 109, 117, 0.12);
}

.rsvp-attendees {
  margin: 30px 0 24px;
}

.rsvp-fieldset {
  margin: 0;
  padding: 24px;
  border: 1px dashed #bba8ad;
  border-radius: 12px;
  background: rgba(244, 239, 234, 0.55);
}

.rsvp-fieldset legend {
  padding: 0 10px;
  color: #8a9a86;
  background: #fdfbf7;
}

.rsvp-count-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.rsvp-count-card {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(88, 44, 55, 0.16);
  border-radius: 10px;
  text-align: center;
}

.rsvp-count-card label {
  text-align: center;
}

.rsvp-count-card input[type="number"] {
  max-width: 110px;
  margin: 2px auto 8px;
  padding: 10px;
  color: #582c37;
  font-family: var(--font-title, serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-align: center;
}

.rsvp-count-card > span,
.rsvp-field-help,
.rsvp-privacy {
  color: #75686a;
  font-size: 0.78rem;
  line-height: 1.5;
}

.rsvp-field-help {
  margin: 7px 0 0;
  text-align: left;
}

.rsvp-summary {
  margin: 28px 0 18px;
  padding: 16px 18px;
  color: #3d1e26;
  background: #f1ebe2;
  border-left: 4px solid #8a9a86;
  border-radius: 4px 8px 8px 4px;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
}

.rsvp-form button[type="submit"] {
  width: 100%;
  margin-top: 2px;
  padding: 16px;
  color: #fff;
  background: #582c37;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(88, 44, 55, 0.2);
  cursor: pointer;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
}

.rsvp-form button[type="submit"]:hover:not(:disabled) {
  background: #6e3745;
  transform: translateY(-1px);
}

.rsvp-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.65;
}

.rsvp-privacy {
  max-width: 580px;
  margin: 13px auto 0;
  text-align: center;
}

.rsvp-feedback {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.rsvp-feedback.is-success {
  color: #215c3f;
  background: #e8f4ed;
  border: 1px solid #9fc8ad;
}

.rsvp-feedback.is-error {
  color: #8b2929;
  background: #fbeaea;
  border: 1px solid #dfaaaa;
}

.rsvp-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.rsvp-form [hidden] {
  display: none !important;
}

@media screen and (max-width: 600px) {
  form.rsvp-form {
    padding: 0 18px 24px;
    border-radius: 13px;
  }

  .rsvp-ticket-header {
    margin: 0 -18px 24px;
    padding: 14px 18px;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .rsvp-count-grid {
    grid-template-columns: 1fr;
  }

  .rsvp-fieldset {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-form *,
  .rsvp-form *::before,
  .rsvp-form *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   RESPONSIVE HEADER FOR SMARTPHONES (Écrans < 768px)
   ========================================================= */

@media screen and (max-width: 767px) {

  /* 1. Ajustement du conteneur du header */
  .site-header, .site-header .header-container {
    padding: 20px 15px !important;
    flex-direction: column !important; /* Passe les éléments en colonne si flexbox */
    align-items: center !important;
    text-align: center !important;
  }

  /* 2. Réduction des grands titres */
  .site-header h1, .site-header .site-title {
    font-size: 26px !important; /* Taille adaptée aux écrans mobiles */
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
    word-break: break-word; /* Évite que les longs mots/noms ne dépassent */
  }

  /* 3. Ajustement des sous-titres / petites annotations (ex: "03 / REPONSE") */
  .site-header .subtitle, .site-header .top-label {
    font-size: 10px !important;
    letter-spacing: 2px !important;
    margin-bottom: 5px !important;
  }

  /* 4. Menu de navigation (si présent) */
  .site-header nav ul {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  /* 5. Sécuriser les images/logos du header */
  .site-header img, .site-header svg {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media screen and (max-width: 767px) {
  .site-header {
    padding: 16px 14px !important;
  }

  .site-header .header-container {
    gap: 14px;
    padding: 0 !important;
  }

  .site-header nav {
    width: 100%;
  }

  .site-header .nav-links {
    flex-direction: row !important;
    gap: 8px 16px !important;
    justify-content: center;
  }

  .site-header .nav-links a {
    display: block;
    font-size: .68rem;
    letter-spacing: 1.4px;
    padding: 5px 2px;
  }
}

/* =========================================================
   CORRECTIF SECTION ACTUALITÉS / BLOG (Centrage & Carte)
   ========================================================= */

/* 1. Conteneur principal centré */
.section-actualites {
  max-width: 800px !important;
  margin: 60px auto !important;
  padding: 0 20px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* 2. Titre et sous-titre de la section */
.section-actualites .top-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #a39992;
  text-transform: uppercase;
  margin-bottom: 8px;
}



/* 3. Carte du dernier article (Fond blanc + bordure comme l'itinéraire) */
.latest-article-card {
  display: flex !important;
  flex-direction: row;
  background: #ffffff !important;
  border: 1px solid #e8e2dd !important;
  border-left: 4px solid #542834 !important; /* Petit rappel bordeaux */
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  text-align: left !important;
  margin: 0 auto 30px auto !important;
}

/* Zone image (si présente) */
.latest-article-card .article-image {
  flex: 0 0 35%;
  max-width: 35%;
  background-color: #f7f4f1;
}

.latest-article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Zone texte */
.latest-article-card .article-content {
  padding: 30px !important;
  flex: 1;
}

.latest-article-card .article-date {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #a39992;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.latest-article-card .article-title {
  margin: 0 0 12px 0 !important;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px !important;
}

.latest-article-card .article-title a {
  color: #542834 !important;
  text-decoration: none !important;
}

.latest-article-card .article-excerpt {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-read-more {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #542834 !important;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 4. Bouton "Voir tous les articles" centré */
.all-posts-link-wrapper {
  text-align: center !important;
  margin-top: 25px;
}

.btn-all-articles {
  display: inline-block !important;
  padding: 12px 28px !important;
  border: 1px solid #542834 !important;
  color: #542834 !important;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none !important;
  background: transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn-all-articles:hover {
  background-color: #542834 !important;
  color: #ffffff !important;
}

/* Responsive Mobile */
@media screen and (max-width: 767px) {
  .latest-article-card {
    flex-direction: column !important;
  }
  .latest-article-card .article-image {
    max-width: 100% !important;
    height: 180px;
  }
}


/* =========================================================
   STYLE CARNET DE VOYAGE / CARTE POSTALE VINTAGE CHIC
   ========================================================= */

/* Conteneurs principaux */
.carnet-section-container,
.carnet-archive-wrapper {
  max-width: 850px;
  margin: 90px auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}

.carnet-archive-wrapper {
  max-width: 1050px;
}

/* Titres de section */
.carnet-section-title,
.carnet-archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: #542834;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.carnet-archive-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #666;
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
  font-style: italic;
}

.archive-divider {
  width: 50px;
  height: 2px;
  background-color: #542834;
  margin: 20px auto 50px auto;
  opacity: 0.3;
}

/* ---------------------------------------------------------
   LA CARTE POSTALE (Dernier article - Page d'accueil)
   --------------------------------------------------------- */
.travel-postcard-single {
  position: relative;
  background: #fdfbf7; /* Papier fait main / Kraft très clair */
  border: 1px solid #e2dacd;
  box-shadow: 0 12px 35px rgba(84, 40, 52, 0.06), 0 2px 6px rgba(0,0,0,0.02);
  border-radius: 4px;
  padding: 35px;
  text-align: left;
  margin: 0 auto 40px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.travel-postcard-single:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 0 18px 40px rgba(84, 40, 52, 0.1);
}

/* Washi Tape (Ruban adhésif décoratif en haut) */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background-color: rgba(84, 40, 52, 0.15);
  border-left: 2px dashed rgba(84, 40, 52, 0.3);
  border-right: 2px dashed rgba(84, 40, 52, 0.3);
  backdrop-filter: blur(2px);
  z-index: 5;
}

/* Faux Tampon Postal bordeaux */
.stamp-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 80px;
  height: 80px;
  border: 2px dashed #8c4356;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  opacity: 0.45;
  pointer-events: none;
  font-family: 'Space Mono', monospace;
  color: #8c4356;
}

.stamp-city {
  font-size: 7px;
  letter-spacing: 1px;
  font-weight: bold;
}

.stamp-date {
  font-size: 9px;
  margin-top: 2px;
}

/* Intérieur de la carte */
.postcard-inner {
  display: flex;
  gap: 30px;
  align-items: center;
}

.postcard-image {
  flex: 0 0 35%;
  max-width: 35%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: rotate(-1.5deg);
}

.postcard-image img {
  width: 100%;
  height: auto;
  display: block;
}

.postcard-content {
  flex: 1;
}

.postcard-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #a39992;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-bottom: 1px dashed #e2dacd;
  padding-bottom: 6px;
}

.postcard-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  margin: 0 0 12px 0;
}

.postcard-title a {
  color: #542834;
  text-decoration: none;
}

.postcard-excerpt {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.postcard-btn {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: #542834;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-decoration: none;
  text-transform: uppercase;
}

.postcard-btn .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.postcard-btn:hover .arrow {
  transform: translateX(4px);
}

/* Bouton principal "Voir le carnet" */
.btn-voir-carnet {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid #542834;
  color: #542834;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  margin-top: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

.btn-voir-carnet:hover {
  background-color: #542834;
  color: #ffffff;
}

.carnet-section-title {
  text-align: center;
}

.carnet-latest-heading {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 400;
}

.carnet-archive-header {
  margin-bottom: 40px;
  text-align: center;
}

.carnet-archive-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.carnet-archive-tag {
  color: #8c6d75;
  font-family: var(--font-mono);
  letter-spacing: 2px;
}

.carnet-archive-heading {
  margin: 10px 0;
  color: var(--color-plum);
  font-family: var(--font-title);
  font-size: 2rem;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   GRILLE POUR LA PAGE DU CARNET COMPLET (Tous les articles)
   --------------------------------------------------------- */
.carnet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 35px;
  margin-bottom: 50px;
}

.travel-postcard-card {
  position: relative;
  background: #fdfbf7;
  border: 1px solid #e2dacd;
  border-radius: 4px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.travel-postcard-card:hover {
  transform: translateY(-5px);
}

.postcard-card-image {
  margin: -10px -10px 15px -10px;
  border-radius: 2px;
  overflow: hidden;
  height: 180px;
}

.postcard-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.postcard-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.postcard-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  margin: 8px 0 12px 0;
}

.postcard-card-title a {
  color: #542834;
  text-decoration: none;
}

.postcard-card-excerpt {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsive Smartphone */
@media screen and (max-width: 767px) {
  .postcard-inner {
    flex-direction: column;
  }
  .postcard-image {
    max-width: 100%;
    width: 100%;
  }

	.stamp-badge {
    width: 65px !important;
    height: 65px !important;
    top: 12px !important;
    right: 12px !important;
    padding: 4px !important;
    box-sizing: border-box !important;
  }

  .stamp-city {
    font-size: 6px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.5px !important;
    text-align: center;
  }

  .stamp-date {
    font-size: 7.5px !important;
    margin-top: 1px !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  /* Ajustement de la marge haute de la carte pour éviter les chevauchements */
  .travel-postcard-single {
    padding-top: 45px !important;
  }
}

/* Styling des pétales de sakura */
.sakura-petal {
  position: absolute;
  top: -20px;
  background: linear-gradient(135deg, #f7d6e0 0%, #f2b5c4 100%);
  border-radius: 15px 0px 15px 12px;
  opacity: 0.8;
  pointer-events: none;
  animation: sakuraFall linear infinite;
  transform-origin: center;
}

.sakura-container {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .sakura-container {
    display: none;
  }
}

@keyframes sakuraFall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) translateX(50px);
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(-30px);
    opacity: 0.2;
  }
}

/* ===================================================
   CARTE MOT DU JOUR JAPONAIS
=================================================== */
.jap-word-card {
  max-width: 480px;
  margin: 30px auto;
  background: #fdfbf7;
  border: 1px solid #e2d9cc;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 8px 20px rgba(88, 44, 55, 0.05);
  text-align: center;
  position: relative;
}

.jap-word-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #d1c2c5;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.jap-word-tag {
  font-family: monospace, sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8c6d75;
  text-transform: uppercase;
  font-weight: bold;
}

.jap-word-date {
  font-family: monospace, sans-serif;
  font-size: 10px;
  color: #a08c90;
}

.jap-kanji {
  font-size: 42px;
  font-weight: 700;
  color: #582C37;
  line-height: 1.2;
  margin-bottom: 5px;
}

.jap-reading {
  margin-bottom: 8px;
}

.jap-romaji {
  font-size: 18px;
  font-weight: 700;
  color: #8c6d75;
  letter-spacing: 1px;
}

.jap-kana {
  font-size: 13px;
  color: #a08c90;
  margin-left: 6px;
}

.jap-translation {
  font-size: 15px;
  font-weight: 600;
  color: #e6c594;
  margin-bottom: 15px;
  text-transform: capitalize;
}

.jap-word-anecdote {
  background-color: #f7f3ed;
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 3px solid #8c6d75;
}

.jap-word-anecdote p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #582C37;
  font-style: italic;
  text-align: left;
}

/* Style du bloc Dress Code dans le coupon */
.stub-dresscode {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stub-dresscode .mono-tag {
  font-size: 9px !important;
  color: #8c6d75 !important;
  letter-spacing: 1.5px !important;
}

.dresscode-text {
  font-family: var(--font-body, sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  color: #582C37;
  text-align: center;
}

/* Léger ajustement pour aérer les blocs dans le coupon */
.boarding-pass-stub .stub-location-link {
  margin-top: 10px !important;
}

/* Alignement du titre avec le tampon */
.stamp-title {
  display: flex;
  align-items: center;
  justify-content: center; /* Centre le tampon et son sous-titre */
  gap: 12px;
  margin: 0 auto 15px auto;
  text-align: center;
}

/* Le Sceau / Tampon Japonais */
.hanko-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid #b83b33; /* Rouge vermillon traditionnel */
  border-radius: 8px; /* Bords légèrement arrondis */
  color: #b83b33;
  padding: 4px;
  position: relative;
  transform: rotate(-4deg); /* Légère rotation pour l'effet fait main */
  box-sizing: border-box;
  opacity: 0.9;
  /* Effet d'encre un peu usée */
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 70%, rgba(0,0,0,0.6) 100%);
}

.stamp-kanji {
  font-family: "Noto Serif JP", serif, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.stamp-sub {
  font-family: monospace, sans-serif;
  font-size: 7px;
  letter-spacing: 0.5px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Titre principal à côté */
.section-heading {
	font-family: var(--font-mono);
	font-size: 1rem;
 	color: var(--color-sage);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.carnet-complet-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.carnet-complet-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.carnet-complet-section .stamp-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.carnet-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(88, 44, 55, 0.05);
  border: 1px solid rgba(88, 44, 55, 0.08);
}

.carnet-card-title {
  font-family: var(--font-title);
  color: #582C37;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* ========================================================================== 
   CARNET, CARTE ET ARTICLE — VERSION CONSOLIDÉE
   ========================================================================== */

.traveler-notebook-container {
  width: min(92%, 1300px);
  margin: 0 auto;
  padding: 20px 0;
}

.traveler-notebook-container .section-header {
  margin: 0 auto 50px;
  text-align: center;
}

.traveler-notebook-container .stamp-title {
  justify-content: center;
}

.travel-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px;
  width: 100%;
}

.travel-note {
  position: relative;
  width: 100%;
  padding: 30px 25px;
  background: #fdfbf7;
  border: 1px solid #f0eada;
  border-radius: 3px;
  box-shadow: 2px 6px 15px rgba(88, 44, 55, 0.08);
  transform: rotate(-0.5deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.travel-note:nth-child(even) {
  transform: rotate(0.5deg);
}

.travel-note:hover {
  transform: translateY(-3px);
  box-shadow: 4px 10px 20px rgba(88, 44, 55, 0.12);
}

.travel-note > .washi-tape {
  top: -12px;
  left: 50%;
  width: 110px;
  height: 26px;
  transform: translateX(-50%) rotate(-1deg);
  background-color: rgba(242, 181, 196, 0.55);
}

.travel-note img {
  width: 100%;
  max-height: 250px;
  margin-top: 15px;
  object-fit: cover;
  border-radius: 6px;
}

.note-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2d9cc;
}

.date-stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 3px 10px;
  color: #8c6d75;
  border: 1.5px solid #8c6d75;
  outline: 1.5px dashed #8c6d75;
  outline-offset: -4px;
  font-family: var(--font-mono, monospace);
  opacity: 0.9;
  transform: rotate(-3deg);
}

.stamp-label {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

.stamp-date {
  font-size: 0.82rem;
  font-weight: 700;
}

.author-hanko {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #b83b33;
  border: 2px solid #b83b33;
  border-radius: 50%;
  opacity: 0.9;
  transform: rotate(5deg);
}

.hanko-letter {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.note-title {
  margin: 0 0 15px;
  color: #582c37;
  font-family: var(--font-title, serif);
  font-size: 1.6rem;
  text-transform: uppercase;
}

.note-content {
  color: #4a3e3d;
  font-size: 1.05rem;
  line-height: 1.7;
}

.carnet-pagination {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.carnet-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carnet-pagination a,
.carnet-pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #8c6d75;
  border-radius: 4px;
}

.carnet-pagination .current {
  color: #fff;
  background: #582c37;
  border-color: #582c37;
}

.section-carnet-articles,
.section-carnet-map {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
}

.section-carnet-articles {
  padding: 10px 15px 50px;
}

.section-carnet-map {
  padding: 70px 15px;
  background: #f2ece6;
  border-top: 1px solid rgba(140, 109, 117, 0.15);
  border-bottom: 1px solid rgba(140, 109, 117, 0.15);
}

.page-slug-carnet .content-page-main,
.page-slug-carnet .content-page-card,
.page-slug-carnet .entry-content {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.japan-map-section {
  max-width: 1200px;
  margin: 0 auto;
}

.map-header {
  margin-bottom: 20px;
  text-align: center;
}

.map-header h3 {
  margin-top: 5px;
}

.japan-osm-map {
  width: 100%;
  height: 480px;
  border: 1px solid #e2d9cc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.map-consent {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 32px;
  border: 1px dashed rgba(88, 44, 55, 0.3);
  background: rgba(253, 251, 247, 0.9);
  text-align: center;
}

.map-consent p {
  max-width: 620px;
  margin: 0 0 18px;
}

.map-load-button {
  padding: 12px 22px;
  border: 1px solid var(--color-plum);
  background: var(--color-plum);
  color: #fff;
  font: 700 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.custom-osm-pin .osm-pin-inner {
  width: 14px;
  height: 14px;
  background: #b83b33;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(184, 59, 51, 0.6);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.custom-osm-pin:hover .osm-pin-inner,
.custom-osm-pin:focus .osm-pin-inner {
  background: #582c37;
  transform: scale(1.35);
}

.osm-city-tooltip {
  padding: 2px 6px !important;
  color: #582c37 !important;
  background: rgba(253, 251, 247, 0.95) !important;
  border: 1px solid #e2d9cc !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.7rem !important;
  font-weight: 700;
}

.osm-city-tooltip::before {
  display: none !important;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 30, 38, 0.72);
}

.gallery-modal[hidden] {
  display: none;
}

body.is-modal-open {
  overflow: hidden;
}

.modal-content {
  position: relative;
  width: min(90%, 750px);
  max-height: 82vh;
  padding: 30px;
  overflow-y: auto;
  background: #fdfbf7;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 44px;
  height: 44px;
  color: #582c37;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e2d9cc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.single-post-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 60px 20px 90px;
}

.single-post-main .post-navigation {
  width: 100%;
  max-width: 900px;
  margin-top: 24px;
}

.single-travel-note {
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 50px 45px 40px;
  background: #fdfbf7;
  border: 1px solid #f0eada;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(88, 44, 55, 0.08);
}

.single-note-title {
  margin: 25px 0 30px;
  color: #582c37;
  font-family: var(--font-title, serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.single-note-content {
  color: #4a3e3d;
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-note-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 25px auto;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.single-note-footer {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px dashed #e2d9cc;
  text-align: center;
}

.btn-retour-carnet {
  display: inline-block;
  padding: 12px 24px;
  color: #582c37;
  border: 1px solid #582c37;
  border-radius: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.btn-retour-carnet:hover {
  color: #fff;
  background: #582c37;
}

@media (max-width: 992px) {
  .travel-notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
  }
}

@media (max-width: 640px) {
  .travel-notes-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .japan-osm-map {
    height: 350px;
  }

  .modal-content {
    width: 95%;
    max-height: 85vh;
    padding: 22px 15px;
  }

  .single-travel-note {
    padding: 35px 20px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .travel-note,
  .custom-osm-pin .osm-pin-inner {
    transition: none;
  }

  .travel-note,
  .travel-note:nth-child(even),
  .travel-note:hover {
    transform: none;
  }
}
