/* Nav header socials */
.nav-socials-header{display:flex;align-items:center;gap:.6rem}
.nav-social-link{color:var(--cream);opacity:.6;transition:all .3s}
.nav-social-link:hover{opacity:1;color:var(--orange)}
@media(max-width:768px){.nav-socials-header{gap:.4rem}.nav-social-link svg{width:15px;height:15px}}

/* Lang switcher */
.lang-switcher{display:flex;gap:3px;flex-wrap:wrap;margin-bottom:.8rem}
.lang-btn{background:none;border:1px solid transparent;color:var(--cream-dim);font-family:var(--font-tech);font-size:.65rem;font-weight:600;letter-spacing:.05em;padding:.25rem .45rem;cursor:pointer;transition:all .3s}
.lang-btn:hover{color:var(--cream);border-color:#ffffff26}
.lang-btn.active{color:var(--orange);border-color:rgba(232,84,30,.5);background:rgba(232,84,30,.1)}

/* Race links in calendar */
.race-links{grid-column:1/-1;display:flex;align-items:center;gap:.8rem;padding-top:.5rem;flex-wrap:wrap}
.race-link{font-family:var(--font-tech);letter-spacing:.1em;text-transform:uppercase;border:1px solid rgba(255,255,255,.1);display:inline-flex;align-items:center;gap:.3rem;padding:.25rem .6rem;font-size:.6rem;font-weight:600;text-decoration:none;transition:all .3s;color:var(--cream-dim)}
.race-link.active{color:var(--orange);border-color:rgba(232,84,30,.5)}
.race-link.active:hover{border-color:var(--orange);background:rgba(232,84,30,.12);box-shadow:0 0 12px rgba(232,84,30,.15)}
.link-dot{width:5px;height:5px;border-radius:50%;display:inline-block;background:var(--orange)}

/* Instagram section */
.insta-section{padding:6rem 5vw;border-top:1px solid var(--line)}
.insta-header{text-align:center;margin-bottom:3rem}
.insta-header h2{font-family:var(--font-display);font-size:clamp(2.5rem,5vw,4rem);line-height:.95;margin-bottom:1.5rem}
.insta-header h2 em{font-style:normal;color:var(--orange)}
.insta-follow-btn{display:inline-block;font-family:var(--font-tech);font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;color:var(--orange);border:1px solid rgba(232,84,30,.5);padding:.6rem 1.5rem;transition:all .3s}
.insta-follow-btn:hover{background:rgba(232,84,30,.12);box-shadow:0 0 20px rgba(232,84,30,.2)}
.insta-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem}
.insta-item{position:relative;aspect-ratio:1;overflow:hidden;display:block}
.insta-item img{width:100%;height:100%;object-fit:cover;filter:brightness(.8) contrast(1.1);transition:transform 1s cubic-bezier(.16,1,.3,1),filter .5s}
.insta-item:hover img{transform:scale(1.08);filter:brightness(.95) contrast(1.15)}
.insta-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(232,84,30,.15);opacity:0;transition:opacity .4s}
.insta-item:hover .insta-overlay{opacity:1}
.insta-overlay svg{color:var(--cream)}
@media(max-width:768px){.insta-grid{grid-template-columns:repeat(3,1fr)}}

/* Off-track hero — softer filter to keep sunset visible */
body.page-offtrack .page-header-bg img {
  filter: brightness(0.6) contrast(1.1);
  object-position: center 12%;
}

/* Off-track masonry — CSS columns for natural mixed-ratio layout */
.masonry-cols {
  padding: 4rem 5vw;
  column-count: 4;
  column-gap: 0.8rem;
}
.masonry-cols .masonry-item {
  display: block;
  margin: 0 0 0.8rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.masonry-cols .masonry-item.in-view { opacity: 1; transform: translateY(0); }
.masonry-cols .masonry-item img {
  width: 100%; height: auto; display: block;
  filter: brightness(0.85) contrast(1.05);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s;
}
.masonry-cols .masonry-item:hover img {
  transform: scale(1.04);
  filter: brightness(1) contrast(1.08);
}
.masonry-cols .masonry-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.65) 100%);
  pointer-events: none;
}
.masonry-cols .m-tag {
  position: absolute; bottom: 0.8rem; left: 0.8rem; z-index: 2;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.masonry-cols .masonry-item:hover .m-tag { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) { .masonry-cols { column-count: 3; } }
@media (max-width: 768px)  { .masonry-cols { column-count: 2; column-gap: 0.5rem; } .masonry-cols .masonry-item { margin-bottom: 0.5rem; } }
@media (max-width: 480px)  { .masonry-cols { column-count: 1; } }

/* FIA / FREC official badge band */
.fia-badge {
  padding: 4rem 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, rgba(232,84,30,0.06) 0%, transparent 70%),
    var(--black);
  position: relative;
  overflow: hidden;
}
.fia-badge-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.fia-badge-logo {
  height: 90px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.05));
  transition: transform 0.5s var(--ease-out), filter 0.5s;
}
.fia-badge:hover .fia-badge-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(232,84,30,0.3));
}
.fia-badge-text {
  text-align: center;
  padding: 0 2rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.fia-badge-eyebrow {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.fia-badge-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.fia-badge-title em {
  font-style: normal;
  color: var(--orange);
}
.fia-badge-title small {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--cream-dim);
  margin-top: 0.6rem;
  text-transform: uppercase;
}
.fia-badge-tag {
  text-align: right;
}
.fia-badge-tag-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--orange);
}
.fia-badge-tag-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: 0.3rem;
}

@media (max-width: 900px) {
  .fia-badge-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }
  .fia-badge-logo { height: 70px; margin: 0 auto; }
  .fia-badge-text {
    border-left: none; border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 0;
  }
  .fia-badge-tag { text-align: center; }
}

/* FREC logo in hero corner (bottom right) */
.hero-frec-logo {
  position: absolute;
  bottom: 2rem;
  right: 5vw;
  height: 60px;
  width: auto;
  z-index: 4;
  opacity: 0;
  filter: brightness(1.05);
  animation: frecFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.4s;
  transition: opacity 0.3s, filter 0.3s, transform 0.3s;
}
.hero-frec-logo:hover {
  filter: brightness(1.1) drop-shadow(0 0 12px rgba(232,84,30,0.4));
  transform: scale(1.05);
}
@keyframes frecFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.85; transform: translateY(0); }
}
@media (max-width: 768px) {
  .hero-frec-logo { height: 40px; bottom: 5.5rem; right: 1.2rem; }
}

/* Nav: logo | langs + years (centred) | socials + menu */
.nav-mid {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 0;
  min-width: 0;
}
.nav-logo {
  flex-shrink: 0;
}
.nav-right {
  flex-shrink: 0;
}

/* Nav inline lang + year selectors — même typo / taille partout (priorité sur .lang-btn des pages inline) */
.nav-inline-langs,
.nav-inline-years {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
/* Séparateur | entre chaque code langue */
.nav-inline-langs .nav-lang-inline {
  display: inline-flex;
  align-items: center;
}
.nav-inline-langs .nav-lang-inline:not(:last-child)::after {
  content: '|';
  margin-left: 0.45rem;
  color: var(--cream-faint);
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  pointer-events: none;
}
/* Séparation nette entre le bloc langues et le bloc années */
.nav-inline-years {
  margin-left: 0.75rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.nav-lang-inline,
.nav-year-inline {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--cream-dim);
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.nav-mid .nav-inline-langs button.nav-lang-inline.lang-btn,
.nav-mid .nav-inline-years a.nav-year-inline {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  padding: 0.35rem 0.5rem;
  border-radius: 2px;
}
.nav-year-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-lang-inline:hover,
.nav-year-inline:hover {
  color: var(--cream);
}
.nav-lang-inline.active,
.nav-year-inline.active {
  color: var(--orange);
  border-color: var(--orange);
}
/* Saison Prema 2025 : accent vert (tricolore / page F4), pas l’orange du site */
.nav-year-inline.active[data-year="2025"] {
  color: var(--prema-green);
  border-color: var(--prema-green);
}
.nav-inline-years .year-sep {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--cream-faint);
  padding: 0 0.15rem;
  user-select: none;
}

/* Hide on small screens — keep menu overlay for mobile */
@media (max-width: 1100px) {
  .nav-mid { display: none; }
  .nav-inline-langs, .nav-inline-years { display: none; }
  .nav {
    justify-content: space-between;
  }
}

/* "Push the limits" tagline — display heading style */
.hero-tagline {
  margin-top: 1.5rem;
  z-index: 4;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-transform: uppercase;
  display: block;
  opacity: 0;
  animation: tagFadeIn 1s var(--ease-out) forwards;
  animation-delay: 1.1s;
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.2),
    0 8px 56px rgba(0, 0, 0, 0.14),
    0 16px 80px rgba(0, 0, 0, 0.09);
}
.hero-tagline::before { display: none; }
.hero-tagline strong {
  color: var(--orange);
  font-weight: 400;
  font-family: var(--font-display);
  display: inline-block;
  margin-right: 0.4em;
}
.hero-subtagline {
  margin-top: 1.1rem;
  font-family: var(--font-tech);
  font-size: clamp(0.7rem, 0.95vw, 0.9rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  animation: tagFadeIn 1s var(--ease-out) forwards;
  animation-delay: 1.4s;
  text-shadow:
    0 1px 20px rgba(0, 0, 0, 0.26),
    0 4px 40px rgba(0, 0, 0, 0.15);
}
.hero-subtagline span { color: var(--cream-dim); margin: 0 0.5rem; }
.hero-subtagline em { font-style: normal; color: var(--orange); }
@keyframes tagFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .hero-tagline { font-size: clamp(2rem, 9vw, 3.5rem); margin-top: 1rem; }
  .hero-subtagline { font-size: 0.62rem; letter-spacing: 0.3em; }
}

/* Year homepages (2020–2025): hero type over full-bleed photos */
.hero .hero-bottom-title {
  text-shadow:
    0 2px 28px rgba(0, 0, 0, 0.2),
    0 6px 48px rgba(0, 0, 0, 0.14),
    0 14px 72px rgba(0, 0, 0, 0.09);
}
.hero .hero-bottom-sub {
  text-shadow:
    0 1px 18px rgba(0, 0, 0, 0.24),
    0 4px 36px rgba(0, 0, 0, 0.14);
}
.hero .hero-tag {
  text-shadow:
    0 1px 18px rgba(0, 0, 0, 0.24),
    0 4px 36px rgba(0, 0, 0, 0.14);
}
.hero .hero-tag span {
  text-shadow:
    0 1px 20px rgba(0, 0, 0, 0.22),
    0 4px 40px rgba(0, 0, 0, 0.13);
}
.hero .scroll-indicator {
  text-shadow:
    0 1px 16px rgba(0, 0, 0, 0.22),
    0 3px 32px rgba(0, 0, 0, 0.13);
}

/* Page header without bg image — clean dark variant */
.page-header.page-header-plain {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(232,84,30,0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
  height: auto;
  min-height: 360px;
  padding-top: 8rem;
}
.page-header.page-header-plain::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange), transparent);
}

/* SEO content sections — long-form readable text */
.content-section {
  padding: 6rem 5vw;
  border-top: 1px solid var(--line);
}
.content-section .content-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.content-section .label {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.content-section .label::before {
  content: ''; width: 30px; height: 1px; background: var(--orange);
}
.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 0.95;
  margin-bottom: 2.5rem;
  color: var(--cream);
  max-width: 800px;
}
.content-section h2 em { font-style: normal; color: var(--orange); }
.content-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0.04em;
  margin: 2.5rem 0 1rem;
  color: var(--cream);
}
.content-section p {
  color: var(--cream-dim);
  font-size: 1.02rem;
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1.3rem;
  max-width: 720px;
}
.content-section p strong { color: var(--cream); font-weight: 500; }
.content-section p em { font-style: normal; color: var(--orange); }
.content-section .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .content-section .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .content-section { padding: 4rem 1.5rem; }
}
.timeline {
  position: relative;
  border-left: 2px solid var(--orange);
  padding-left: 2rem;
  margin: 2rem 0;
}
.timeline-item {
  margin-bottom: 1.8rem;
  position: relative;
}
/* Dot centered on border-left: content starts after border (2px) + padding (2px) → center at −2rem − 1px from item edge */
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 1px);
  top: 0.62rem;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,84,30,0.15);
}
.timeline-year-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--orange);
  line-height: 1;
}
.timeline-series-badge {
  font-family: var(--font-tech);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid rgba(232,84,30,0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  line-height: 1;
  background: rgba(232,84,30,0.08);
}
.timeline-title {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.timeline-desc {
  color: var(--cream-dim);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Content section with photo (2-column layout) */
.content-with-photo {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}
.content-with-photo .content-photo {
  position: sticky;
  top: 6rem;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--dark);
}
.content-with-photo .content-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.05);
  transition: transform 1s var(--ease-out);
}
.content-with-photo .content-photo:hover img {
  transform: scale(1.04);
}
.content-with-photo .content-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.55) 100%);
  pointer-events: none;
}
.content-with-photo .content-photo-caption {
  position: absolute; bottom: 1.2rem; left: 1.2rem; z-index: 2;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
}
@media (max-width: 900px) {
  .content-with-photo {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .content-with-photo .content-photo {
    position: relative; top: 0;
    aspect-ratio: 16/10;
    margin-bottom: 1rem;
  }
}

/* Half-width inline photo (for timeline/team intro) */
.content-inline-photo {
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 21/9;
}
.content-inline-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05);
}
.content-inline-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.6) 0%, transparent 40%, transparent 60%, rgba(10,10,10,0.6) 100%);
  pointer-events: none;
}

/* Bruno Besson coach photo — 2026 story block */
.content-inline-photo.content-coach-photo {
  aspect-ratio: 3 / 2;
  margin-top: 3rem;
}
.content-inline-photo.content-coach-photo img {
  object-position: center 38%;
  filter: brightness(0.93) contrast(1.04);
}
.content-inline-photo.content-coach-photo::after {
  background: linear-gradient(90deg, rgba(10,10,10,0.5) 0%, transparent 45%, transparent 100%);
}
.content-coach-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  z-index: 2;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow:
    0 1px 18px rgba(0, 0, 0, 0.24),
    0 4px 36px rgba(0, 0, 0, 0.14);
  max-width: min(36rem, 92%);
  line-height: 1.35;
}

/* Home — Born to compete (about split) */
.split-about-born .split-image img {
  object-position: center 18%;
}

/* Home — From karting to FREC (timeline intro photo) */
.content-inline-photo.content-timeline-frec {
  aspect-ratio: 21 / 9;
}
.content-inline-photo.content-timeline-frec img {
  object-position: center 42%;
  filter: brightness(0.88) contrast(1.06);
}

/* Partners page — cockpit shot with visible sponsor branding */
.page-header--partners-branding .page-header-bg img {
  object-position: center 24%;
  filter: brightness(0.56) contrast(1.1);
}
.page-partners .split-image img {
  object-position: center 28%;
}
.page-partners .content-with-photo .content-photo img {
  object-position: center 30%;
}

/* Off-track teaser photo on home — crop on the face */
.cta-teaser-grid > a:first-child > img {
  object-position: center 18%;
}

/* Contact form styling */
.contact-section {
  padding: 6rem 5vw;
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}
.contact-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: 2rem;
}
.contact-intro h2 em { font-style: normal; color: var(--orange); }
.contact-intro p {
  color: var(--cream-dim);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.contact-direct {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.contact-direct h4 {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}
.contact-direct-list {
  display: flex; flex-direction: column;
  gap: 0.8rem;
}
.contact-direct-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  transition: padding 0.3s;
}
.contact-direct-list a:hover {
  padding-left: 0.8rem; color: var(--orange);
}
.contact-direct-list small {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* Form */
.contact-form {
  background: var(--black-soft);
  border: 1px solid var(--line);
  padding: 2.5rem;
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.2rem;
}
.form-group label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-group label::after {
  content: attr(data-required);
  color: var(--orange);
  margin-left: 0.3rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(232,84,30,0.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240,236,230,0.25);
}
.form-group textarea {
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-body);
}
.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e8541e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-checkbox {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin: 1.2rem 0;
  cursor: pointer;
}
.form-checkbox input {
  width: 16px; height: 16px;
  accent-color: var(--orange);
  margin-top: 2px;
  cursor: pointer;
}
.form-checkbox span {
  font-size: 0.78rem;
  color: var(--cream-dim);
  line-height: 1.5;
}
.form-submit {
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 1.05rem;
  border: none;
  padding: 1rem 2.2rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 0.5rem;
}
.form-submit:hover:not(:disabled) {
  background: var(--orange-glow);
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(232,84,30,0.4);
}
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-submit::after {
  content: '→';
  transition: transform 0.3s;
}
.form-submit:hover:not(:disabled)::after { transform: translateX(4px); }
.form-status {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-left: 3px solid transparent;
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status-ok { color: var(--cream); border-left-color: #4ade80; background: rgba(74,222,128,0.05); }
.form-status-err { color: var(--cream); border-left-color: #ef4444; background: rgba(239,68,68,0.05); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.8rem; }
}

/* Fullscreen gallery / lightbox */
body.site-lightbox-open {
  overflow: hidden;
}
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.site-lightbox[hidden] {
  display: none !important;
}
.site-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-out;
  background: rgba(8, 8, 8, 0.94);
}
.site-lightbox-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.site-lightbox-panel > * {
  pointer-events: auto;
}
.site-lightbox-figure {
  margin: 0;
  text-align: center;
  max-height: 78vh;
}
.site-lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}
.site-lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  max-width: 42rem;
  line-height: 1.5;
}
.site-lightbox-caption:empty {
  display: none;
}
.site-lightbox-counter {
  margin-top: 0.75rem;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
}
.site-lightbox-close,
.site-lightbox-prev,
.site-lightbox-next {
  position: absolute;
  font-family: var(--font-display);
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(232, 84, 30, 0.35);
  color: var(--cream);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.site-lightbox-close:hover,
.site-lightbox-prev:hover,
.site-lightbox-next:hover {
  background: rgba(232, 84, 30, 0.2);
  border-color: var(--orange);
  color: var(--orange);
}
.site-lightbox-close {
  top: -0.25rem;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
  border-radius: 0;
}
.site-lightbox-prev,
.site-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 3.5rem;
  font-size: 1.8rem;
  line-height: 1;
}
.site-lightbox-prev {
  left: 0;
}
.site-lightbox-next {
  right: 0;
}
.site-lightbox-prev[hidden],
.site-lightbox-next[hidden] {
  display: none;
}
.h-card,
.insta-item,
.masonry-item,
.content-inline-photo img,
.content-photo img,
.split-image img {
  cursor: pointer;
}
@media (max-width: 768px) {
  .site-lightbox-prev {
    left: 0.25rem;
  }
  .site-lightbox-next {
    right: 0.25rem;
  }
  .site-lightbox-close {
    top: 0.25rem;
    right: 0.25rem;
  }
}

/* Vidéos YouTube — blocs archive années */
.section.year-youtube {
  border-top: 1px solid var(--line);
  padding-top: clamp(3rem, 6vw, 4.25rem);
  padding-bottom: 2rem;
}
.year-youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
}
.year-youtube-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111;
}
.year-youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@supports not (aspect-ratio: 16 / 9) {
  .year-youtube-embed {
    height: 0;
    padding-bottom: 56.25%;
    aspect-ratio: unset;
  }
}
.year-youtube-cta {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}
.year-youtube-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream, var(--light));
  text-decoration: none;
  max-width: 100%;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}
.year-youtube-channel-btn:hover {
  border-color: color-mix(in srgb, var(--orange) 45%, rgba(255, 255, 255, 0.2));
  background: color-mix(in srgb, var(--orange) 10%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.year-youtube-channel-icon {
  flex-shrink: 0;
  display: flex;
  color: #ff0033;
  opacity: 0.95;
}
.year-youtube-channel-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  text-align: left;
  min-width: 0;
}
.year-youtube-channel-label {
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-dim, rgba(244, 245, 240, 0.55));
  line-height: 1.3;
}
.year-youtube-channel-handle {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream, var(--light));
}
.year-youtube-channel-ext {
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 0.35rem;
  font-size: 1rem;
  opacity: 0.45;
  line-height: 1;
}
@supports not (color: color-mix(in srgb, black, white)) {
  .year-youtube-channel-btn:hover {
    border-color: rgba(232, 84, 30, 0.55);
    background: rgba(232, 84, 30, 0.12);
  }
}
.year-youtube-channel-btn--prema:hover {
  border-color: color-mix(in srgb, var(--prema-red, #dc0a0a) 55%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--prema-red, #dc0a0a) 14%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 8px 36px rgba(220, 10, 10, 0.18);
}
@supports not (color: color-mix(in srgb, black, white)) {
  .year-youtube-channel-btn--prema:hover {
    border-color: rgba(220, 10, 10, 0.6);
    background: rgba(220, 10, 10, 0.14);
  }
}

/* Mise en avant — une vidéo pleine largeur (ex. archive 2023) */
.year-youtube-featured {
  width: 100%;
  margin-top: 1.35rem;
  margin-bottom: 1.75rem;
}
.year-youtube-featured-kicker {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.85rem;
}
.year-youtube-subhead {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--cream-dim, rgba(244, 245, 240, 0.72));
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  max-width: 52rem;
}
.year-youtube-subhead-muted {
  color: var(--cream-dim);
  font-weight: 400;
}
.year-youtube-embed--featured {
  width: 100%;
  max-width: min(960px, 100%);
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;
  border-color: color-mix(in srgb, var(--orange) 40%, rgba(255, 255, 255, 0.12));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--orange) 25%, transparent),
    0 24px 70px rgba(0, 0, 0, 0.55);
}
@supports not (color: color-mix(in srgb, black, white)) {
  .year-youtube-embed--featured {
    border-color: rgba(255, 106, 0, 0.45);
    box-shadow:
      0 0 0 1px rgba(255, 106, 0, 0.2),
      0 24px 70px rgba(0, 0, 0, 0.55);
  }
}
