@font-face {
  font-family: "Geogrotesque Regular";
  src: url("/fonts/geogrotesque/Geogrotesque-Book.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Geogrotesque UltraCompressed";
  src: url("/fonts/geogrotesque/Geogrotesque-XComp.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-light: #efefef;
  --color-mid: #cfcfcf;
  --color-text: #111111;
  --font-body: "Geogrotesque Regular", Arial, sans-serif;
  --font-heading: "Geogrotesque UltraCompressed", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-black);
}

.admin-login-page,
.admin-dashboard-page {
  background: var(--color-white);
  color: var(--color-text);
}

.site-front {
  background: var(--color-black);
  color: var(--color-white);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header__inner,
.home-page,
.project-page,
.admin-login-page,
.admin-dashboard-page,
.simple-page {
  max-width: 1200px;
  margin: 0 auto;
}

.project-hero {
  margin-top: 25px;
}

.home-intro,
.skills-section,
.project-gallery,
.admin-login-page,
.admin-dashboard-page,
.simple-page {
  padding: 32px 24px;
}

.project-page {
  width: 100%;
}

.project-hero,
.project-content,
.project-gallery {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #000;
}

/* conteneur centré pour les sections */
.project-hero img,
.project-content-inner,
.project-gallery-inner {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* texte du contenu : reste aligné à gauche */
.project-content-inner {
  padding: 40px 20px;
  text-align: left;
  color: #fff;
}

/* garde le carrousel bien centré */
.project-gallery-inner {
  position: relative;
}

.project-long {
  margin-top: 20px;
  margin-bottom: 20px;
}

.projects-grid {
  display: grid;
  gap: 0;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.project-card.is-reverse .project-card__media {
  order: 2;
}

.project-card.is-reverse .project-card__content {
  order: 1;
}

.site-front .project-card {
  background: var(--color-black);
}

.site-front .project-card__media,
.site-front .project-card__content {
  background: var(--color-black);
}

.site-front .project-card__media {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.site-front .project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-front .project-card__content {
  color: var(--color-white);
}

.site-front .project-placeholder {
  background: var(--color-white);
}

.site-front .projects-grid {
  background: var(--color-black);
}

.site-front .project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
  background: var(--color-black);
}

.site-front .project-card__media,
.site-front .project-card__content {
  min-height: 320px;
  background: var(--color-black);
}

.site-front .project-card__media {
  display: block;
  overflow: hidden;
}

.site-front .project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.site-front .project-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  color: var(--color-white);
  background: var(--color-black);
}

.site-front .project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: #111;
  color: var(--color-white);
  font-size: 2rem;
  padding: 24px;
}

.project-card__media,
.project-card__content {
  background: #f4f4f4;
  min-height: 320px;
}

.project-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: #f4f4f4;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  color: white;
  font-size: 2rem;
  padding: 24px;
}

.site-front .project-card__media,
.site-front .project-card__content,
.site-front .project-card__media img {
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-front .project-card__media {
  overflow: hidden;
}

.site-front .project-card__media img {
  transform: scale(1);
}

.site-front .project-card__content h2 {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.35s ease;
}

.site-front .project-card:hover .project-card__content {
  background: #111;
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.site-front .project-card:hover .project-card__media {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.site-front .project-card:hover .project-card__media img {
  transform: scale(1.04);
}

.site-front .project-card:hover .project-card__content h2 {
  text-decoration-color: currentColor;
}

.skills-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 24px;
}

.stat-card {
  background: #f3f3f3;
  padding: 20px;
}

.admin-form {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.admin-form input,
.admin-form button,
.contact-button {
  font: inherit;
}

.error-message {
  color: #b00020;
}

@media (max-width: 800px) {
  .project-card,
  .skills-section,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .project-card.is-reverse .project-card__media,
  .project-card.is-reverse .project-card__content {
    order: initial;
  }

  .site-front .project-card,
  .site-front .project-card__media,
  .site-front .project-card__content {
    background: var(--color-black);
  }

  .site-front .project-card__media img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: cover;
  }

  .site-front .project-card__content {
    padding: 28px 24px;
  }
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  background: #fff;
}

textarea {
  resize: vertical;
}

button {
  padding: 12px 16px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
}

.admin-dashboard-page a {
  color: #111;
  text-decoration: underline;
}



.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.contact-modal.is-open {
  display: block;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.contact-modal__dialog {
  position: absolute;
  top: var(--header-offset, 140px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;

  width: min(640px, calc(100% - 32px));
  min-height: auto;
  max-height: calc(100dvh - var(--header-offset, 140px) - 24px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: #fff;
  color: #111;
  padding: 24px;
  border: 1px solid #111;
  overflow: auto;
}

.contact-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  color: #111;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 8px;
}

@media (max-width: 800px) {
  .contact-modal__dialog {
    width: calc(100% - 24px);
    padding: 20px;
  }
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-success {
  padding: 12px 14px;
  background: #f2f2f2;
  border: 1px solid #ccc;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__band {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.site-header__band-image {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.site-header--admin .site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-nav a,
.site-nav button {
  color: var(--color-white);
}

.project-card__content {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card__content p a {
  text-decoration: none;
}

.project-card__content h2 a,
.project-card__content p a:hover {
  text-decoration: underline;
}

.project-hero {
  width: 100%;
}

.project-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.project-gallery {
  position: relative;
  width: 100%;
  padding: 0 0 0 0;
  overflow: hidden;
}

.project-gallery__viewport {
  width: 100%;
  overflow: hidden;
}

.project-gallery__track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.project-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}

.project-gallery__slide img {
  display: block;
  width: 100%;
  height: auto;
}

.project-gallery__slide figcaption {
  margin-top: 8px;
  padding: 0 24px;
  font-size: 0.95rem;
}

.project-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 52px;
  height: 52px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid #fff;
  cursor: pointer;

  font-size: 24px;
  line-height: 1;
}

.project-gallery__nav:hover {
  background: #fff;
  color: #000;
}

.project-gallery__nav--prev {
  left: 16px;
}

.project-gallery__nav--next {
  right: 16px;
}

.project-gallery__nav[hidden] {
  display: none;
}

@media (max-width: 800px) {
  .project-gallery__nav {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .project-gallery__nav--prev {
    left: 8px;
  }

  .project-gallery__nav--next {
    right: 8px;
  }

  .project-gallery__slide figcaption {
    padding: 0 12px;
  }
}

.project-external-link a {
  text-decoration: underline;
}


.home-title,
.project-meta h1 {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.title-slash {
  color: #575757;
  transition: color 0.3s ease;
}

.site-brand:hover .title-slash {
  color: #00ffc8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  padding: 20px 24px;
  transition: transform 0.35s ease, opacity 0.35s ease;
  will-change: transform, opacity;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.85);
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.site-header::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-white);
  text-decoration: none;
  line-height: 1;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.site-brand__title {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.9;
  width: 100%;
}

.site-brand__band {
  display: block;
  width: 100%;
  margin: 14px 0;
}

.site-brand__band img {
  display: block;
  width: 100%;
  height: auto;
}

.site-brand__subtitle {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 2.6rem);
  letter-spacing: 0.55em;
  text-transform: lowercase;
  line-height: 1;
  width: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.site-nav a,
.site-nav button {
  color: var(--color-white);
}

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 24px;
  text-align: center;
}

.site-brand__title,
.site-brand__subtitle {
  white-space: nowrap;
}

.site-brand__admin-title {
  display: flex;
  align-items: center;
  text-align: left;
  font-family: var(--font-body);
  /* font-size: clamp(1.5rem, 2.5vw, 2rem); */
  line-height: 1.1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 32px;
  font-weight: 700;
  padding: 0 12px;
  height: 100%;
}

@media (max-width: 1000px) {
  .site-brand__admin-title {
    letter-spacing: 0.12em;
    margin-left: 0;
    padding: 0;
    padding-top: 15px;
  }
}

@media (max-width: 1000px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .site-brand {
    width: 100%;
  }

  .site-brand__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
  }

  .site-brand__subtitle {
    letter-spacing: 0.5em;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-brand__title,
  .site-brand__subtitle {
    white-space: normal;
  }
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;

  width: 52px;
  height: 52px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #000;
  color: #fff;
  border: 1px solid #fff;
  cursor: pointer;

  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);

  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #fff;
  color: #000;
}

.project-details {
  margin-top: 24px;
}

.project-details p {
  margin: 0 0 12px 0;
}