/*
Theme Name: Hong My PHONG
Theme URI: https://hongmyphong.com/
Author: Hong My PHONG
Description: Thème du site de Hong My PHONG, auteure photographe à Tahiti. Reprise du site Jimdo pour WordPress.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: hongmyphong
*/

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/montserrat-italic.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/montserrat-bold.ttf") format("truetype");
}

:root {
  --bg: #444444;
  --bg-deep: #3c3c3c;
  --nav: rgba(58, 58, 58, 0.97);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.85);
  --frame: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: var(--text); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #222;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus { top: 8px; }

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  position: fixed;
  z-index: 40;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-burger-icon,
.nav-burger-icon::before,
.nav-burger-icon::after {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.25s ease, top 0.25s ease, background 0.25s ease;
}

.nav-burger-icon::before,
.nav-burger-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-burger-icon::before { top: -8px; }
.nav-burger-icon::after { top: 8px; }

.nav-toggle:checked ~ .nav-burger .nav-burger-icon { background: transparent; }
.nav-toggle:checked ~ .nav-burger .nav-burger-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle:checked ~ .nav-burger .nav-burger-icon::after { top: 0; transform: rotate(-45deg); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 20;
}

.nav-toggle:checked ~ .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.site-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  height: 100%;
  width: min(78vw, 340px);
  background: var(--nav);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: auto;
}

.nav-toggle:checked ~ .site-nav { transform: none; }

.site-nav .menu {
  list-style: none;
  margin: 0;
  padding: 78px 0 48px;
}

.site-nav .menu ul { list-style: none; margin: 0; padding: 0; }

.site-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 11px 28px;
  line-height: 1.35;
}

.site-nav .sub-menu a {
  padding-left: 46px;
  font-size: 15px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-shift { transition: margin-left 0.45s cubic-bezier(0.4, 0, 0.2, 1); }

@media (min-width: 900px) {
  .nav-backdrop { display: none; }
  .site-nav { width: 300px; }
  .nav-toggle:checked ~ .site-shift { margin-left: 300px; }
}

body.admin-bar .nav-burger { top: 50px; }
@media (max-width: 782px) {
  body.admin-bar .nav-burger { top: 58px; }
}

.site-header {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 36px 40px 8px;
  text-align: center;
}

.site-logo {
  display: inline-block;
  text-decoration: none;
  border: 0;
}

.site-logo img {
  width: 180px;
  height: auto;
}

.site-tagline {
  margin: 28px auto 10px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

.site-tagline a {
  color: #fff;
  text-decoration: none;
}

.site-content {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 12px 40px 72px;
}

.site-content h1,
.site-content h2,
.site-content h3,
.site-content h4 {
  font-weight: 400;
  line-height: 1.15;
}

.site-content h1 {
  font-size: clamp(32px, 4vw, 48px);
  text-align: left;
  margin: 1.3rem 0 1rem;
}

.site-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  margin: 1.8rem 0 0.8rem;
}

.site-content h3 {
  font-size: 24px;
  text-align: left;
  margin: 1.3rem 0 0.6rem;
}

.site-content p { margin: 0 0 1rem; }

.site-content a { color: #fff; }
.site-content a:hover,
.site-content a:focus { text-decoration: none; }

.site-content ul,
.site-content ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.site-content hr {
  border: 0;
  border-top: 2px solid #fff;
  margin: 2rem 0;
}

.hmp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 32px;
  align-items: flex-start;
  margin: 0.4rem 0 1rem;
}

.hmp-col { min-width: 0; }

.hmp-row:not(.hmp-textimg) > .hmp-col {
  flex: 1 1 0 !important;
  width: auto !important;
}

.hmp-textimg-media { flex: 0 1 38%; width: 38%; }
.hmp-textimg-copy { flex: 1 1 58%; width: 58%; }
.hmp-textimg.is-stacked .hmp-textimg-media,
.hmp-textimg.is-stacked .hmp-textimg-copy { flex: 1 1 100%; width: 100%; }
.hmp-textimg.is-reverse { flex-direction: row-reverse; }

.hmp-figure { margin: 0.6rem 0 1.2rem; }
.hmp-figure.align-center { text-align: center; }
.hmp-figure.align-left { text-align: left; }
.hmp-figure.align-right { text-align: right; }
.hmp-figure img { display: inline-block; }
.hmp-figure.is-wide img,
.hmp-textimg-media img { width: 100%; }

.hmp-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0.6rem 0 1.4rem;
}

.hmp-gallery a { display: block; }
.hmp-gallery img { display: block; width: 100%; height: auto; }

.hmp-cta { text-align: center; margin: 1.1rem 0 1.6rem; }

.hmp-button {
  display: inline-block;
  border: 2px solid #fff;
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 26px;
  line-height: 1.2;
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}

.hmp-button:hover,
.hmp-button:focus {
  background: #fff;
  color: #222 !important;
}

.hmp-download a { font-weight: 700; }

.hmp-video {
  position: relative;
  width: min(100%, 800px);
  margin: 1.4rem auto;
  aspect-ratio: 16 / 9;
}

.hmp-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hmp-form {
  max-width: 640px;
  margin: 0.5rem 0 2rem;
}

.hmp-form label {
  display: block;
  margin: 0 0 1rem;
}

.hmp-form span {
  display: block;
  margin-bottom: 0.35rem;
}

.hmp-form input,
.hmp-form textarea {
  width: 100%;
  max-width: 100%;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 2px;
  padding: 10px 12px;
  font: inherit;
}

.hmp-form input:focus,
.hmp-form textarea:focus { outline: 2px solid rgba(255, 255, 255, 0.35); outline-offset: 2px; }

.hmp-form .hmp-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.hmp-form-ok,
.hmp-form-err {
  border: 2px solid #fff;
  padding: 12px 16px;
}

.hmp-sitemap ul { list-style: disc; }
.hmp-sitemap li { margin: 0.25rem 0; }

.journal-list { list-style: none; margin: 0; padding: 0; }

.journal-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.journal-list h2 { text-align: left; margin: 0 0 0.35rem; font-size: 26px; }
.journal-list h2 a { text-decoration: none; }
.journal-list time { color: var(--muted); font-size: 14px; }
.journal-thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }

.nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 2rem; }
.nav-links a { text-decoration: none; }

.entry-date { color: var(--muted); margin: 0 0 1rem; }

.site-address {
  background: var(--bg-deep);
  padding: 36px 40px 18px;
}

.site-address-inner {
  max-width: var(--frame);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.site-address img { width: 92px; height: auto; }

.site-address p { margin: 0; line-height: 1.45; }

.site-footer {
  background: var(--bg-deep);
  padding: 8px 40px 36px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 0 0 8px;
  padding: 0;
}

.footer-menu li { display: flex; align-items: center; }
.footer-menu li + li::before { content: "|"; margin: 0 8px; color: var(--muted); }
.footer-menu a { color: #fff; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }

.hmp-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.hmp-lightbox-overlay.is-open { display: flex; }

.hmp-lightbox-overlay img {
  max-width: min(1200px, 94vw);
  max-height: 90vh;
  width: auto;
  height: auto;
}

.hmp-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 800px) {
  .site-header,
  .site-content,
  .site-address,
  .site-footer { padding-left: 20px; padding-right: 20px; }
  .hmp-col,
  .hmp-textimg-media,
  .hmp-textimg-copy { width: 100% !important; flex: 1 1 100% !important; }
  .hmp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-list article { grid-template-columns: 1fr; }
  .journal-thumb img { height: 200px; }
  .hmp-row:not(.hmp-textimg) > .hmp-col { flex: 1 1 100% !important; }
}

@media (max-width: 520px) {
  .hmp-gallery { grid-template-columns: 1fr; }
  .site-address-inner { flex-direction: column; text-align: center; }
}
