:root {
  --rock-bg: #fff;
  --rock-text: #111;
  --rock-accent: #b2292e;
  --content-max: 1000px;
  --content-margin: max(12rem, calc(50vw - var(--content-max) / 2));
  --logo-left: max(2rem, calc(var(--content-margin) - 10rem));
}

/* Fonts */
@font-face {
  font-family: "Bradford";
  src: url("../fonts/BradfordLL-Book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bradford";
  src: url("../fonts/BradfordLL-BookItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manuka";
  src: url("../fonts/Manuka-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

h1, h2, h3,
.site-header__logo a,
.site-nav a,
.hero__subtitle {
  font-family: "Manuka", "Bradford", system-ui, sans-serif;
  font-weight: 500;   /* on matche le Medium */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--rock-accent);
  color: var(--rock-text);
  font-family: "Bradford", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* Inner pages (project, equipe) — white background */
body.page-inner {
  background: var(--rock-bg);
}



/* Sections */
.section {
  max-width: var(--content-max);
  margin-left: var(--content-margin);
  margin-right: var(--content-margin);
  padding: 2.5rem 0;
}

@media (max-width: 1200px) {
  :root {
    --content-margin: 3rem;
    --logo-left: 2rem;
  }
  .section { padding: 2rem 0; }
}

@media (max-width: 1000px) {
  :root {
    --content-margin: 1.5rem;
    --logo-left: 1rem;
  }
  .section { padding: 1.5rem 0; }
}

/* RED ZONE — pinned behind the white content */
.hero-red {
  position: sticky;
  top: 0;
  z-index: 0;
  background: var(--rock-accent);
  color: #fff;
  /* Fill viewport minus the services section below */
  height: calc(100vh - 19.7rem);
  display: flex;
  flex-direction: column;
}

.red-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--content-margin) 1.5rem var(--logo-left);
}

.red-band__logo {
  display: block;
  height: 7rem;
  width: auto;
}

/* Navigation in both bands */
.band-nav {
  display: flex;
  gap: 2rem;
}

.band-nav a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--rock-text);
}

.band-nav a:hover {
  text-decoration: underline;
}

.band-nav--white a {
  color: #fff;
}

/* Dropdown sub-link on hover */
.band-nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.band-nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  z-index: 20;
}

.band-nav__dropdown:hover .band-nav__sub {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile drawer hidden on desktop by default */
.band-nav-mobile {
  display: none;
}

/* INTRO TEXT — fills remaining red zone, vertically centered */
.section--rock {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero__quote {
  font-family: "Bradford", system-ui, sans-serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  max-width: 66%;
}

/* Short viewports (landscape phones, low windows): the red zone height is
   capped at calc(100vh - 19.7rem), so on small heights the quote overflows
   and gets clipped. Scale it by viewport HEIGHT and tighten padding so the
   full sentence fits. Normal-height screens never match these queries. */
@media (max-height: 800px) {
  .section--rock {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .hero__quote {
    font-size: clamp(2rem, 5vh, 2.5rem);
    max-width: 80%;
  }
}

@media (max-height: 680px) {
  .section--rock {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .hero__quote {
    font-size: clamp(1.4rem, 4.5vh, 2rem);
    max-width: 90%;
  }
}

/* Too short to fit the sentence without clipping — hide it entirely. */
@media (max-height: 540px) {
  .hero__quote {
    display: none;
  }
}

/* WHITE ZONE — scrolls up over everything including red band */
.content-white {
  position: relative;
  z-index: 1;
  background: var(--rock-bg);
}

/* Fixed white logo header — clipped initially, revealed by JS as white covers red band */
.white-band {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--rock-bg);
  padding: 1.5rem var(--content-margin) 1.5rem var(--logo-left);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}

.white-band.is-visible {
  pointer-events: auto;
}

/* Sized to match the letter artwork in the inverted logo (which has viewBox padding) */
.white-band__logo {
  display: block;
  height: 5.75rem;
  width: auto;
  margin-left: 0.9rem;
  margin-top: 0.625rem;
}


/* Inner pages — static white header (must come after .white-band base) */
.white-band--static {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--rock-bg);
  padding: 1.5rem var(--content-margin) 1.5rem var(--logo-left);
  clip-path: none;
  pointer-events: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.white-band--static > a {
  display: block;
  line-height: 0;
}

.white-band--static .white-band__logo {
  margin-left: 0.9rem;
  margin-top: 0;
}

/* Titres de section */

h2 {
  font-size: 1.5rem;
}

.section-title {
  font-family: "Bradford", system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #000;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0;
  margin-bottom: 1.5rem;
  scroll-margin-top: 10rem;
}

.no-italic {
  font-style: normal;
}








/* SERVICES — 5rem above title (matching inter-section gap), normal padding below */
.section--services {
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

/* SERVICES — flowing text, titles and descriptions inline */

.services-flow {
  font-size: 1.15rem;
  line-height: 1.6;
}

.services-flow__title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.services-flow__desc {
  font-family: "Bradford", system-ui, sans-serif;
  font-weight: 400;
}

.services-flow__title::before {
  content: " ";
}

.services-flow__title:first-child::before {
  content: none;
}

/* ACTIVITÉS : grille irrégulière */

/* Activities filter */
.activities-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.activities-filter__btn {
  background: none;
  border: 1px solid #ccc;
  padding: 0.4rem 1rem;
  font-family: "Bradford", system-ui, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.activities-filter__btn:hover {
  border-color: #000;
}

.activities-filter__btn.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.activities-grid__item.is-hidden {
  display: none;
}


/* Masonry-style layout for activities */
/* =========================
   ACTIVITIES GRID
   ========================= */

/* Masonry-style layout */
.activities-grid {
  column-count: 3;
  column-gap: 1.8rem;
}

@media (max-width: 900px) {
  .activities-grid { column-count: 2; }
}

@media (max-width: 600px) {
  .activities-grid { column-count: 1; }
}

/* Each card flows inside a column */
.activities-grid__item {
  break-inside: avoid;
  margin-bottom: 1.8rem;
}


/* =========================
   IMAGE + OVERLAY
   ========================= */

.activities-grid__image {
  position: relative;
  display: block;
}

.activities-grid__image--clickable {
  cursor: pointer;
}

.activities-grid__image img {
  display: block;
  width: 100%;
  aspect-ratio: var(--activity-aspect, 1);
  object-fit: cover;
}

/* Hover colour overlay (no text) */
.activities-grid__overlay {
  position: absolute;
  inset: 0;

  background: rgba(192, 32, 48, 0.75);

  opacity: 0;
  transition: opacity 0.35s ease;

  z-index: 2;
  pointer-events: none;
}

.activities-grid__item:hover .activities-grid__overlay {
  opacity: 1;
}

/* =========================
   META (tags + date)
   ========================= */

.activities-grid__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;

  margin-top: 0.35rem;
  margin-bottom: 0.25rem;

  font-size: 0.7rem;
  font-family: system-ui, Arial, sans-serif;
  color: #000;
  opacity: 0.8;
}

.activities-grid__tags {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  /* Tags can wrap to the next line, but each tag stays together */
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.8rem;
  line-height: 1.1;
}

.activities-grid__tag {
  white-space: nowrap;
}

.activities-grid__date {
  flex-shrink: 0;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =========================
   TITLE
   ========================= */

.activities-grid__content h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #000;
}

.activities-grid__client {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}



/* ÉQUIPE */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

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

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

.team-grid__photo img {
  width: 100%;
  
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-grid__info h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 700;
  margin: 0.75rem 0 0.2rem;
}

.team-grid__info p {
  margin: 0;
  font-size: 0.9rem;
}

/* Team layout: names 1/3 left, photo 2/3 right */
.team-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.team-layout__names {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-layout__photo {
  position: relative;
}

.team-layout__photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.team-photo__overlay {
  position: absolute;
  inset: 0;
  background: rgba(192, 32, 48, 0.75);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.team-layout:hover .team-photo__overlay {
  opacity: 1;
}

.team-names__item {
  display: flex;
  flex-direction: column;
}

.team-names__item strong {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
}

.team-names__item span {
  font-size: 1.2rem;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .team-layout {
    grid-template-columns: 1fr;
  }
  .team-layout__photo {
    order: -1;
  }
}


/* CLIENTS — infinite scrolling marquee */
.section--clients {
  overflow: hidden;
}

.clients-marquee {
  overflow: visible;
}

.clients-marquee__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  will-change: transform;
  animation: marquee-scroll 30s linear infinite;
}

.clients-marquee__logo {
  height: 3rem;
  width: auto;
  flex-shrink: 0;
}

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

/* ABOUT TEXT */
.about-text {
  font-size: 1.15rem;
  line-height: 1.6;
}

.about-text strong {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.about-text p {
  margin: 0 0 0.5rem;
}

.about-text a {
  color: var(--rock-accent);
  text-decoration: none;
}

.about-text a:hover {
  text-decoration: underline;
}

/* À PROPOS + CONTACT — side by side */
.about-contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-contact__right p {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 0;
}

.about-contact__right a {
  text-decoration: none;
  color: var(--rock-accent);
}

.about-contact__right a:hover {
  text-decoration: underline;
}

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

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--rock-bg);
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 1.5rem var(--content-margin);
  font-size: 0.85rem;
}


/* ===== PROJECT LAYOUT ===== */

.section--project {
  padding-top: 2rem;
  max-width: var(--content-max);
}

.project-title {
  font-family: "Bradford", system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #000;
  margin: 0 0 1.5rem;
}

/* Two-column structure */
.project-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

/* Meta column (left) */
.project-meta {
  font-size: 1.2rem;
  margin-top: 0;
}

.project-meta__item {
  margin-bottom: 1.2rem;
}

.project-meta__item h3 {
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.2rem;
}

.project-meta__label {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
}

/* Text column (right) */
.project-body {
  max-width: 900px;
  line-height: 1.7;
  font-size: 1.2rem;
}

/* Images at bottom */
.project-images {
  margin-top: 3rem;
  display: grid;
  gap: 1.2rem;
}

.project-images__item img {
  width: 100%;
  display: block;
}

.section--project .project-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr) !important;
  gap: 3.5rem !important;
  align-items: start;
}

.project-body p:first-child {
  margin-top: 0;
}


/* ===== EQUIPE PAGE ===== */

.section--equipe {
  padding-top: 3rem;
}

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

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

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

.equipe-card {
  display: flex;
  flex-direction: column;
}

.equipe-card__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.equipe-card__name {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin: 0.75rem 0 0.2rem;
}

.equipe-card__role {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.equipe-card__bio {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.equipe-card__bio p {
  margin: 0 0 0.5rem;
}

.equipe-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.equipe-card__linkedin,
.equipe-card__cv-link {
  display: inline-block;
  color: var(--rock-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.equipe-card__linkedin:hover,
.equipe-card__cv-link:hover {
  text-decoration: underline;
}

.equipe-card__section {
  margin-top: 1.2rem;
}

.equipe-card__section h4 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.17rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.equipe-card__section ul {
  margin: 0;
  padding-left: 1.2em;
}

.equipe-card__section li,
.equipe-card__section p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.25rem;
}

/* ===== PROJECT CAROUSEL ===== */
.project-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 2.5rem;
}

/* V2 — wider carousel above content */
.section--project-v2 .project-carousel {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.section--project-v2 .project-grid {
  margin-top: 2.5rem;
}

.project-carousel--21x9 {
  aspect-ratio: 21 / 9;
}

/* V3 — sidebar + carousel side by side */
.section--project-v3 .project-grid {
  margin-bottom: 0;
}

.project-carousel--16x9 {
  aspect-ratio: 16 / 9;
  margin-top: 0;
}

.project-carousel__dots--v3 {
  margin-left: calc((100% / 4) + 3rem);
}

.project-body--full {
  max-width: none;
  margin-top: 2.5rem;
}

.project-carousel__track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.project-carousel__slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
  /* White letterbox/pillarbox behind images that don't match the
     carousel ratio (object-fit: contain leaves bars). */
  background: #fff;
}

.project-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Arrows hidden */
.project-carousel__prev,
.project-carousel__next {
  display: none;
}

/* Dots below the carousel */
.project-carousel__dots {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.project-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.project-carousel__dot.is-active {
  background: var(--rock-accent);
}

/* Hide dots when only 1 image */
.project-carousel--single .project-carousel__dots {
  display: none;
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */

/* Button hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  height: 2rem;
  flex-direction: column;
  justify-content: space-between;
  z-index: 100;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle--white span {
  background: #fff;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile: show hamburger and turn nav into a drawer */
@media (max-width: 1000px) {

  /* ===== Inner pages — static white band ===== */
  .white-band--static {
    position: relative;
  }

  .white-band--static .nav-toggle {
    display: flex;
  }

  .white-band--static .band-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem var(--content-margin);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 50;
  }

  .white-band--static .band-nav.is-open {
    display: flex;
  }

  .white-band--static .band-nav__dropdown {
    flex-direction: column;
    align-items: flex-start;
    align-self: auto;
    width: 100%;
  }

  .white-band--static .band-nav__sub {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding-top: 0.5rem !important;
    margin-left: 1rem;
  }

  /* ===== Home page — red band — uses the same external white drawer ===== */
  .red-band .nav-toggle {
    display: flex;
  }

  /* Hide the inline desktop nav inside the red band on mobile */
  .red-band .band-nav {
    display: none;
  }

  /* ===== Home page — fixed white band (revealed on scroll) =====
     The clip-path wipe still works on mobile (same as desktop).
     The mobile drawer is a SIBLING of the white-band (not a child),
     so it escapes the band's clip-path. */

  .white-band:not(.white-band--static) .nav-toggle {
    display: flex;
    pointer-events: auto;
  }

  /* Hide the inline desktop nav inside the white-band on mobile */
  .white-band:not(.white-band--static) .band-nav {
    display: none;
  }

  /* Mobile drawer for the white band — sibling element, never clipped */
  .band-nav-mobile {
    display: none;
    position: fixed;
    top: 10rem; /* approximate band height */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem var(--content-margin);
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 60;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
  }

  .band-nav-mobile.is-open {
    display: flex;
  }

  .band-nav-mobile a {
    color: var(--rock-text);
    text-decoration: none;
  }

  /* L'équipe sub-item — smaller, indented, lighter weight */
  .band-nav-mobile__sub {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    margin-left: 1rem;
    margin-top: -0.5rem;
  }

  /* Project pages v1 & v2 — stack meta and text vertically on mobile */
  .section--project-v1 .project-grid,
  .section--project-v2 .project-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Add breathing room above the services section title on mobile */
  .section--services {
    padding-top: 3rem;
    min-height: auto;
  }
}

