/* ==========================================================
   POLICE
   ========================================================== */
@font-face {
  font-family: 'Oracle';
  src: url('../assets/fonts/ABCOraclePlusVariable-Regular.woff2') format('woff2');
  font-weight: 100 350;
  font-stretch: 75% 125%;
  font-style: normal;
}

/* ==========================================================
   RESET / BASE
   ========================================================== */
   
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #000000;
  font-family: 'Oracle', sans-serif;
  line-height: 1.5;
}

img, video { max-width: 100%; display: block; }

a {
  color: #000000;
  text-decoration: none;
}
a:hover { color:#ff6a00;
 }

h1, h2, h3 { margin: 0 0 0.5rem 0; font-weight: 500; }

button {
  font-family: 'Oracle', sans-serif;
  font-size: 1rem;
  background: none;
  border: none;
  color: #000000;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto !important; }
}

/* ==========================================================
   HEADER
   ========================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #111111;
}

header .brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 500;
}

header .brand .tagline {
  color: #ff6a00;
  font-weight: 400;
}
header .brand .tagline em { font-style: italic; }

header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================
   ACCUEIL — carrousel plein écran (9 projets, images verticales)
   ========================================================== */
body.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.home main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 80vh;
  overflow: hidden;
}

.home-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  z-index: 0;
}
.home-slide.active {
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}
.home-slide.leaving {
  transform: translateX(-100%);
  z-index: 1;
}
.home-slide.no-transition {
  transition: none;
}
.home-slide img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  display: block;
}
.home-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-transform: lowercase;
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-slide {
    transition: none;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  body.home main {
    display: block;
    flex: none;
  }
  .home-carousel {
    width: 100%;
    max-width: none;
    height: 100dvh;
  }
}
/* ==========================================================
   FILTRES (page projets)
   ========================================================== */
.filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
padding: 0.5rem 0.5rem 0.5rem 0.5rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.filters-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}
.filters-actions button {
  cursor: pointer;
  color:#ff6a00;
}

.filter-toggle {
  display: none;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 768px) {
  .filter-toggle { display: inline-block; }
  .filters-bar { flex-direction: column; align-items: flex-start; }
  .filters {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #000000;
    width: 100%;
  }
  .filters.open { display: flex; }
}

.chip {
  cursor: pointer;
}
.chip.active {
  text-decoration: underline;
}
.chip-x {
  margin-left: 0.3rem;
  text-decoration: none;
}

/* ==========================================================
   GRILLE DE PROJETS (page projets)
   ========================================================== */
.projects-grid {
  columns: 3;
  column-gap: 0;
  column-rule: 1px solid #000000;
  border-top: 1px solid #000000;
}
.project-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 0;
  overflow: hidden;
}
.project-card:hover {
  opacity: 1;
}
.project-card-image {
  width: 100%;
}
.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.project-card:hover img {
  opacity: 0;
}
.project-card-caption {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  text-transform: lowercase;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.project-card:hover .project-card-caption {
  opacity: 1;
}

.projects-grid.cursor-follow .project-card-caption {
  position: fixed;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease;
}

@media (max-width: 1024px) {
  .projects-grid { columns: 2; }
}
@media (max-width: 560px) {
  .projects-grid { columns: 1; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.75rem;
  height: 1.5rem;
  cursor: pointer;
  order: 1;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #000000;
}
header nav { order: 2; }
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  header nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
    padding-top: 1rem;
    order: 3;
  }
  header nav.open { display: flex; }
}

/* ==========================================================
   PAGE About
   ========================================================== */

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 1rem;
}

@media (max-width: 900px) {
  .about-columns {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  color: #000000;
}
.btn:hover {
  color: #ff6a00;
}

/* ==========================================================
   PAGE PROJET
   ========================================================== */
.project-page {
  padding: 0 1rem;
}

.project-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 2rem;
}

/* --- Colonne de gauche, flux normal --- */
.project-sidebar {
  width: 28%;
  min-width: 320px;
  max-width: 320px;
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 1rem 0;
}

/* --- Titre en bannière défilante --- */
.project-title-marquee {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}

.marquee-track span {
  font-size: 8rem;
  font-weight: 600;
  text-transform:uppercase;
  line-height: 1;
  white-space: nowrap;
  padding-right: 3rem;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

}

.project-title-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.project-baseline {
  color: #000000;
  margin: 0 0 1rem 0;
}

/* --- Bloc infos : lignes simples, pas de bordures --- */
.project-identity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  font-size: 1rem;
  margin: 0 0 1.5rem 0;
}

.identity-line {
  display: flex;
  flex-direction: column;
}

.identity-line dt {
  color:#ff6a00;
}

.identity-line dd {
  margin: 0;
}

.project-description p {
  margin: 0 0 1rem 0;
}

/* --- Colonne de droite, médias empilés --- */
.project-media {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-block {
  margin: 0;
}

.media-block img,
.media-block video {
  width: 100%;
  height: auto;
}


.media-block iframe {
  width: 100%;
  aspect-ratio: 1920 / 1200;
  border: 0;
}

.media-block figcaption {
  font-size: 1rem;
  color: #000000;
  margin-top: 0.5rem;
}

/* --- Bouton retour en haut --- */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top[hidden] {
  display: flex;
}

.project-footer-marquee {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  margin-top: 2rem;
  border-top: 1px solid #000000;
}
.project-footer-marquee .marquee-track span {
  font-size: 8rem;
  font-weight: 600;
  text-transform: uppercase;
  padding-right: 2.5rem;
}
.project-footer-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.mobile-cover {
  display: none;
}

/* ==========================================================
   RESPONSIVE — PAGE PROJET
   ========================================================== */
@media (max-width: 900px) {
  .project-layout {
    flex-direction: column;
  }

  .project-sidebar {
    width: 100%;
    max-width: none;
  }
  .mobile-cover {
    display: block;
  }
}

@media (max-width: 600px) {
  .project-sidebar,
  .project-media {
    padding: 0.5rem;
  }

  .scroll-top {
    bottom: 1rem;
    left: 1rem;
  }

  .project-title-marquee .marquee-track span {
    font-size: 2rem;
    padding-right: 1rem;
  }

  .project-footer-marquee .marquee-track span {
  font-size: 2rem;
  padding-right: 1rem;
}
.scroll-top {
  border: 1px solid #000000;
  border-radius: 50%;
  background-color: #ffffff;
  font-size: 2rem;


}
}