:root {
  --bg: #f3f1ec;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #1f1f1f;
  --muted: #555;
  --line: rgba(0, 0, 0, 0.15);
  --chip: #1a1a1a;
  --chip-alt: #ffffff;
  --accent: #2563eb;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  --radius: 24px;
  --max: 1080px;
  --card-pad: 22px;
  --topbar-h: 74px;
  --hero-vpad: 2.2rem;
  --hero-headroom: 32px;
  --hero-image-height: 774px;
  --hero-image-render-height: clamp(260px, 24.1875vw, var(--hero-image-height));
  --hero-image-url: url("../images/wingchun-banner2-white-xl.png");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: var(--bg);
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Sticky top bar mount */
#site-topbar_menu {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* Reusable offset for hash targets under sticky top bar */
.anchor-target {
  scroll-margin-top: calc(var(--topbar-h) + 44px); /* param a changer (etait 24px... Bruno) */
}

/* Top bar and menu (for partials/topbar_menu.html) */
.topbar {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.btn,
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
}

.btn {
  font-weight: 600;
  padding: 0.55rem 0.95rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
}

.hamburger {
  width: 18px;
  height: 12px;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 3px;
  background: #222;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 5px; }
.hamburger span:nth-child(3) { bottom: 0; }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 220;
}

.menu {
  position: fixed;
  right: 1rem;
  top: 4.5rem;
  width: min(330px, calc(100vw - 2rem));
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: none;
  z-index: 230;
}

.menu header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
}

.menu a {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
}

.menu a:hover {
  background: #f4f4f4;
}

.menu-open .menu,
.menu-open .menu-backdrop {
  display: block;
}

/* Hero */
.hero3 {
  min-height: calc(var(--hero-image-render-height) + var(--hero-headroom) - (var(--hero-vpad) * 2));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--topbar-h) * -1);
  padding: calc(var(--hero-vpad) + var(--topbar-h)) 0 var(--hero-vpad);
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.hero3::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2)) center / 100% 100% no-repeat,
    var(--hero-image-url) center bottom / auto var(--hero-image-render-height) no-repeat;
  pointer-events: none;
}

@media (max-width: 1600px) {
  :root {
    --hero-image-url: url("../images/wingchun-banner2-white-lg.png");
  }
}

@media (max-width: 1280px) {
  :root {
    --hero-image-url: url("../images/wingchun-banner2-white-md.png");
  }
}

@media (max-width: 960px) {
  :root {
    --hero-image-url: url("../images/wingchun-banner2-white-sm.png");
  }
}

@media (max-width: 480px) {
  :root {
    --hero-image-url: url("../images/wingchun-banner2-white-xs.png");
  }
}

.hero3 > .container {
  position: relative;
  z-index: 1;
}

.hero3-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.76);
}

.hero3-badge {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid var(--chip);
  background: var(--chip);
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}

.chip--ghost {
  background: var(--chip-alt);
  color: var(--chip);
}

.chip svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex: 0 0 18px;
}

/* Content */
.content3 {
  padding: 2rem 0 4rem;
}

.content3-stack {
  display: grid;
  gap: 1.3rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
}

.panel p {
  margin: 0.7rem 0 0;
}

.benefits-list {
  margin: 0;
  padding-left: 1.2rem;
}

.benefits-list li {
  margin: 0.45rem 0;
}

/* Schedules (horaires) injected by partials/schedules.html */
#schedules section {
  padding: 42px 0;
}

#schedules .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

#schedules .grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#schedules .grid.grid-2 > .card {
  min-width: 0;
}

@media (max-width: 900px) {
  #schedules .grid.grid-2 {
    grid-template-columns: 1fr;
  }
}

#schedules .card {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

#schedules .muted {
  color: var(--muted);
}

#schedules .schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

#schedules .schedule-table th,
#schedules .schedule-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}

#schedules .schedule-table th {
  border-bottom: 1px solid #e8ecf3;
}

#schedules .anchor-offset {
  scroll-margin-top: 90px;
}

/* A-propos page styles (ported from main2.css) */
.apropos-page main > section:not(.hero3) {
  padding: 42px 0;
}

.apropos-page .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.apropos-page .grid.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.apropos-page .grid.grid-2 > .card {
  min-width: 0;
}

.apropos-page .grid.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.apropos-page .card {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.apropos-page .muted {
  color: var(--muted);
}

.apropos-page .teacher-grid .card h3 {
  margin-top: 0;
}

.apropos-page .anchor-offset {
  scroll-margin-top: 90px;
}

.apropos-page .media-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.apropos-page .media-item {
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.apropos-page .media-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.apropos-page .video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.apropos-page .video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.apropos-page .teacher-bio::after {
  content: "";
  display: block;
  clear: both;
}

.apropos-page .teacher-photo {
  float: left;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #000;
  border-radius: 10px;
  margin: 0 12px 8px 0;
}

.apropos-page .tarifs-card {
  overflow: visible;
}

.apropos-page .section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 16px;
}

.apropos-page .section-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.apropos-page .section-title span {
  color: var(--muted);
  font-size: 0.92rem;
}

.apropos-page .pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.apropos-page .pricing-card {
  min-width: 0;
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid #dccbb8;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.apropos-page .card-head {
  position: relative;
  padding: 18px;
  background: linear-gradient(135deg, rgba(139, 30, 30, 0.1), rgba(200, 145, 43, 0.14));
  border-bottom: 1px solid #dccbb8;
}

.apropos-page .card-head--no-plan {
  background: #fff;
}

.apropos-page .card-head--bronze {
  background: linear-gradient(135deg, #f3d1ad, #b87535);
  border-bottom-color: #a7662f;
}

.apropos-page .card-head--silver {
  background: linear-gradient(135deg, #f6f7f9, #b8c0ca);
  border-bottom-color: #a9b0ba;
}

.apropos-page .card-head--gold {
  background: linear-gradient(135deg, #ffe7a3, #d7a21f);
  border-bottom-color: #c49118;
}

.apropos-page .card-head--bronze,
.apropos-page .card-head--silver,
.apropos-page .card-head--gold {
  padding-right: 76px;
}

.apropos-page .card-head--bronze::before,
.apropos-page .card-head--silver::before,
.apropos-page .card-head--gold::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.5), 0 8px 16px rgba(15, 23, 42, 0.16);
}

.apropos-page .card-head--bronze::before {
  background: radial-gradient(circle at 35% 30%, #fff1df, #c17b39 58%, #8f4f21);
}

.apropos-page .card-head--silver::before {
  background: radial-gradient(circle at 35% 30%, #fff, #c4ccd6 58%, #88919d);
}

.apropos-page .card-head--gold::before {
  background: radial-gradient(circle at 35% 30%, #fff5bf, #e0ac27 58%, #a37209);
}

.apropos-page .card-head--bronze::after,
.apropos-page .card-head--silver::after,
.apropos-page .card-head--gold::after {
  content: "";
  position: absolute;
  top: 49px;
  right: 28px;
  width: 14px;
  height: 20px;
  background: linear-gradient(135deg, #7a1f1f 0 49%, transparent 50%), linear-gradient(225deg, #7a1f1f 0 49%, transparent 50%);
  background-position: left top, right top;
  background-repeat: no-repeat;
  background-size: 50% 100%;
}

.apropos-page .card-head h3 {
  margin: 0;
  font-size: 1.25rem;
}

.apropos-page .badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 111, 78, 0.12);
  color: #2f6f4e;
  font-size: 0.78rem;
  font-weight: 800;
}

.apropos-page .pricing-table,
.apropos-page .comparison {
  width: 100%;
  border-collapse: collapse;
}

.apropos-page .pricing-table th,
.apropos-page .pricing-table td,
.apropos-page .comparison th,
.apropos-page .comparison td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(220, 203, 184, 0.85);
  text-align: left;
  vertical-align: middle;
}

.apropos-page .pricing-table th,
.apropos-page .comparison th {
  background: rgba(255, 255, 255, 0.45);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.apropos-page .pricing-table tr:last-child td,
.apropos-page .comparison tr:last-child td {
  border-bottom: 0;
}

.apropos-page .freq,
.apropos-page .price {
  font-weight: 800;
  white-space: nowrap;
}

.apropos-page .table-wrap {
  overflow-x: auto;
  background: #fffaf0;
  border: 1px solid #dccbb8;
  border-radius: 16px;
}

.apropos-page .comparison {
  min-width: 620px;
}

.apropos-page .comparison th:first-child,
.apropos-page .comparison td:first-child {
  position: sticky;
  left: 0;
  background: #fffaf0;
  z-index: 1;
}

@media (max-width: 1100px) {
  .apropos-page .grid.grid-3 {
    grid-template-columns: 1fr;
  }

  .apropos-page .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .apropos-page .grid.grid-2 {
    grid-template-columns: 1fr;
  }

  .apropos-page .section-title {
    display: block;
  }

  .apropos-page .section-title span {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 800px) {
  .apropos-page .media-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .apropos-page .pricing-table th,
  .apropos-page .pricing-table td {
    padding: 9px 8px;
    font-size: 0.9rem;
  }
}

/* Wing Chun page */
.wingchun-page .wingchun-inline-photo {
  float: right;
  width: min(320px, 40%);
  height: auto;
  border: 1px solid #000;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
  margin: 0 0 12px 18px;
}

@media (max-width: 900px) {
  .wingchun-page .wingchun-inline-photo {
    float: none;
    width: min(420px, 100%);
    margin: 0 auto 14px;
    display: block;
  }
}

/* Sifu page */
.sifu-page main > section:not(.hero3) {
  padding: 42px 0;
}

.sifu-page .card {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.sifu-page .sifu-flow::after {
  content: "";
  display: block;
  clear: both;
}

.sifu-page .sifu-photo {
  width: min(340px, 42%);
  height: auto;
  border: 1px solid #000;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.sifu-page .sifu-photo--right {
  float: right;
  margin: 0 0 10px 16px;
}

.sifu-page .sifu-photo--left {
  float: left;
  margin: 0 26px 18px 0;
}

.sifu-page .sifu-flow p {
  margin-top: 0;
}

.sifu-page .sifu-flow .list {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.sifu-page .sifu-flow .list li {
  margin: 0.45rem 0;
}

.sifu-page .sifu-lineage-list {
  display: grid;
  gap: 16px;
}

.sifu-page .sifu-lineage-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
}

.sifu-page .sifu-lineage-item img {
  width: 150px;
  height: auto;
  border: 1px solid #000;
  border-radius: 8px;
  display: block;
}

.sifu-page .sifu-lineage-item h3 {
  margin: 0 0 6px;
}

.sifu-page .sifu-lineage-item p {
  margin: 0;
}

@media (max-width: 900px) {
  .sifu-page .sifu-photo,
  .sifu-page .sifu-photo--left,
  .sifu-page .sifu-photo--right {
    float: none;
    width: min(460px, 100%);
    margin: 0 auto 14px;
    display: block;
  }

  .sifu-page .sifu-lineage-item {
    grid-template-columns: 1fr;
  }

  .sifu-page .sifu-lineage-item img {
    width: min(260px, 100%);
    margin: 0 auto;
  }
}

/* Contact page styles (ported from main2.css) */
.contact-page .hero {
  background: #f6f7fb;
  color: var(--white);
  padding: 0;
  position: relative;
}

.contact-page .hero-card {
  margin-top: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
  padding: var(--card-pad);
  display: grid;
  gap: 0;
  overflow: hidden;
}

.contact-page .hero-head {
  margin-left: calc(var(--card-pad) * -1);
  margin-right: calc(var(--card-pad) * -1);
  margin-top: calc(var(--card-pad) * -1);
  padding: 18px var(--card-pad) 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-radius: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: start;
  position: relative;
  overflow: hidden;
  opacity: 40%;
}

.contact-page .hero-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  opacity: 0;
  filter: grayscale(1) contrast(1.2);
  pointer-events: none;
  z-index: 0;
}

.contact-page .hero-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 0;
}

.contact-page .hero-head > * {
  position: relative;
  z-index: 1;
}

.contact-page .hero-head-text {
  min-width: 0;
}

.contact-page .hero-logo {
  width: 140px;
  height: auto;
  border-radius: 10px;
  display: block;
}

.contact-page .hero-title {
  margin: 0;
}

.contact-page .hero-title span {
  display: block;
  line-height: 1.05;
  word-break: normal;
}

.contact-page .hero-tagline {
  margin: 10px 0 0;
  color: rgba(15, 23, 42, 0.75);
  font-size: 16px;
}

.contact-page .hero-meta {
  margin-top: 14px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px 14px;
  align-items: center;
}

.contact-page .pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  white-space: nowrap;
  color: var(--white);
}

.contact-page .pill svg {
  width: 18px;
  height: 18px;
}

.contact-page .hero-head .pill {
  background: rgba(11, 18, 32, 0.75);
  border-color: rgba(11, 18, 32, 0.85);
  color: rgba(255, 255, 255, 0.95);
}

.contact-page .hero-head .pill:hover {
  background: rgba(11, 18, 32, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.contact-page .hero-head .pill svg {
  stroke: rgba(255, 255, 255, 0.95);
}

.contact-page .hero-head .pill * {
  color: inherit;
}

.contact-page .hero-bottom {
  margin-left: calc(var(--card-pad) * -1);
  margin-right: calc(var(--card-pad) * -1);
  margin-top: 100px;
  border-top: 0;
  background: #f6f7fb;
  padding: 18px var(--card-pad) 56px;
  color: #0f172a;
}

.contact-page .hero-bottom p {
  color: #334155;
}

.contact-page .hero-bottom .address,
.contact-page .hero-bottom .address span {
  color: #64748b;
}

.contact-page .hero-bottom .btn {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.contact-page .boutons-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.contact-page .boutons-action-row .btn:hover {
  background: rgba(0, 0, 255, 0.95);
  color: #fff;
}

.contact-page section {
  padding: 42px 0;
}

.contact-page .card {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.contact-page .contact-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-page .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 14px;
}

.contact-page .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-page label {
  font-weight: 700;
}

.contact-page input,
.contact-page select,
.contact-page textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #cfd5e4;
  background: #fff;
  font: inherit;
  min-height: 46px;
}

.contact-page textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.contact-page .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.contact-page .help {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

.contact-page .address-block {
  display: grid;
  gap: 8px;
}

.contact-page .address-lines {
  color: var(--muted);
}

.contact-page .map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid #e8ecf3;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.contact-page .map {
  width: 100%;
  height: min(420px, 60vh);
  border: 0;
  display: block;
}

.contact-page small.error {
  color: #dc2626;
  font-size: 0.9rem;
  min-height: 1.1rem;
  display: block;
  margin-top: 6px;
}

.contact-page .invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}

@media (max-width: 900px) {
  .contact-page .contact-split {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .contact-page .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-page .full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .contact-page .hero-head {
    grid-template-columns: 110px 1fr;
  }

  .contact-page .hero-logo {
    width: 110px;
  }
}

@media (max-width: 640px) {
  .contact-page .hero-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .contact-page .hero-meta .pill {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Gallerie photos page styles (ported from main2.css) */
.gallerie-photos-page .gallery-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallerie-photos-page .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallerie-photos-page .gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.gallerie-photos-page .gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 9999;
}

.gallerie-photos-page .gallery-modal.is-open {
  display: flex;
}

.gallerie-photos-page .gallery-modal__dialog {
  position: relative;
  width: min(96vw, 1400px);
  height: min(92vh, 92vh);
  background: #0f0f0f;
  border: 3px solid #ffffff;
  border-radius: 12px;
  padding: 2.5rem 1rem 1rem;
}

.gallerie-photos-page .gallery-modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallerie-photos-page .gallery-modal__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 1024px) {
  .gallerie-photos-page .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gallerie-photos-page .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.7rem;
}

footer {
  padding: 1.5rem 0 2.3rem;
  text-align: center;
  color: #555;
}

.social-link {
  color: #3d3d3d;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile: force stacked one-column layout */
@media (max-width: 768px) {
  :root {
    --topbar-h: 66px;
    --hero-headroom: 18px;
    --hero-image-render-height: clamp(240px, 52vw, 420px);
  }

  .topbar-inner {
    min-height: 66px;
  }

  .brand-text span {
    display: none;
  }

  .hero3-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero3-badge {
    width: 62px;
    height: 62px;
  }

  .chip {
    width: 100%;
    text-align: center;
  }

  .content3-stack {
    grid-template-columns: 1fr;
  }
}
