/* Accueil — layout inspiré MCC · palette NSASA marron/noir/blanc */

.ns-mcc-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--ns-white);
}

.ns-mcc-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ns-mcc-hero__media video,
.ns-mcc-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ns-mcc-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(var(--ns-bg-rgb), 0.35) 0%,
    rgba(var(--ns-bg-rgb), 0.55) 45%,
    rgba(var(--ns-bg-rgb), 0.92) 100%
  );
}

.ns-mcc-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(6rem, 12vh, 8rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.ns-mcc-hero__eyebrow {
  display: block;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ns-accent-bright);
}

.ns-mcc-hero__title {
  font-family: "Brumder Rough", Georgia, serif;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ns-white);
}

.ns-mcc-hero__title span {
  display: block;
}

.ns-mcc-hero__title em {
  font-style: normal;
  color: var(--ns-accent-bright);
}

.ns-mcc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--ns-accent), var(--ns-marron-light));
  color: var(--ns-on-accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 36px var(--ns-glow);
  transition: transform var(--ns-duration), box-shadow var(--ns-duration);
}

.ns-mcc-hero__cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px var(--ns-glow);
}

/* About + stats */
.ns-mcc-about {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--ns-border);
}

.ns-mcc-about__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .ns-mcc-about__grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.ns-mcc-about__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ns-accent);
  margin-bottom: 1.25rem;
}

.ns-mcc-about__text {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.8;
  color: var(--ns-text-muted);
  margin: 0;
  max-width: 38rem;
}

.ns-mcc-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .ns-mcc-stats { grid-template-columns: repeat(4, 1fr); }
}

.ns-mcc-stat__num {
  display: block;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ns-white);
  margin-bottom: 0.65rem;
}

.ns-mcc-stat__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ns-accent);
}

/* Projets sélectionnés */
.ns-mcc-projects {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

.ns-mcc-section-head {
  max-width: 1400px;
  margin: 0 auto 3rem;
}

.ns-mcc-section-head h2 {
  font-family: "Brumder Rough", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ns-white);
  margin: 0;
  line-height: 1.05;
}

.ns-mcc-projects__list {
  display: grid;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ns-mcc-projects__list { grid-template-columns: repeat(3, 1fr); }
}

.ns-mcc-project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: rgba(var(--ns-white-rgb), 0.025);
  border: 1px solid var(--ns-border);
  border-radius: 0.25rem;
  overflow: hidden;
  transition: transform var(--ns-duration), border-color var(--ns-duration), box-shadow var(--ns-duration);
}

button.ns-mcc-project-card {
  width: 100%;
  padding: 0;
  border: 1px solid var(--ns-border);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ns-mcc-project-card:hover {
  transform: translateY(-6px);
  border-color: var(--ns-border-strong);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
}

.ns-mcc-project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ns-surface);
}

.ns-mcc-project-card__media img,
.ns-mcc-project-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s var(--ns-ease);
}

.ns-mcc-project-card:hover .ns-mcc-project-card__media img,
.ns-mcc-project-card:hover .ns-mcc-project-card__media video {
  transform: scale(1.04);
}

.ns-mcc-project-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(var(--ns-bg-rgb), 0.82);
  color: var(--ns-accent-bright);
  border: 1px solid var(--ns-border);
  backdrop-filter: blur(8px);
}

.ns-mcc-project-card__body {
  padding: 1.35rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ns-mcc-project-card__type {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ns-accent);
  margin-bottom: 0.5rem;
}

.ns-mcc-project-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ns-white);
  margin: 0 0 0.65rem;
  line-height: 1.25;
}

.ns-mcc-project-card__desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ns-text-muted);
  margin: 0 0 auto;
  flex: 1;
}

.ns-mcc-project-card__meta {
  display: block;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ns-border);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ns-accent);
}

.ns-mcc-link-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  color: var(--ns-accent-bright);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: gap var(--ns-duration);
}

.ns-mcc-link-all:hover { gap: 0.75rem; }

/* Projet vedette */
.ns-mcc-featured {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--ns-surface) 0%, var(--ns-bg) 100%);
  border-block: 1px solid var(--ns-border);
}

.ns-mcc-featured__inner {
  display: grid;
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 992px) {
  .ns-mcc-featured__inner { grid-template-columns: 0.9fr 1.1fr; }
}

.ns-mcc-featured__intro h2 {
  font-family: "Brumder Rough", Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ns-white);
  margin: 0 0 1rem;
}

.ns-mcc-featured__intro p {
  color: var(--ns-text-muted);
  line-height: 1.75;
  margin: 0;
}

.ns-mcc-featured__card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--ns-border);
  aspect-ratio: 16 / 9;
}

.ns-mcc-featured__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s var(--ns-ease);
}

.ns-mcc-featured__card:hover img { transform: scale(1.03); }

.ns-mcc-featured__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--ns-bg-rgb), 0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.ns-mcc-featured__badge {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ns-accent);
  color: var(--ns-on-accent);
  margin-bottom: 0.75rem;
}

.ns-mcc-featured__card-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ns-white);
  margin: 0;
}

/* Manifesto */
.ns-mcc-manifesto {
  padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.ns-mcc-manifesto blockquote {
  max-width: 52rem;
  margin: 0 auto;
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ns-white);
  border: none;
  padding: 0;
}

.ns-mcc-manifesto blockquote strong {
  color: var(--ns-accent-bright);
  font-weight: 500;
}

/* Expertise */
.ns-mcc-expertise {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--ns-border);
}

.ns-mcc-expertise__grid {
  display: grid;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 992px) {
  .ns-mcc-expertise__grid { grid-template-columns: 1fr 1fr; }
}

.ns-mcc-expertise h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ns-white);
  margin: 0 0 1.25rem;
}

.ns-mcc-expertise p {
  color: var(--ns-text-muted);
  line-height: 1.8;
  margin: 0 0 2rem;
}

/* Grille coulisses — même ratio que les autres sections */
.ns-portfolio-sections [data-section-block="coulisses"] .ns-portfolio-grid {
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2.5vw, 1.25rem);
}

@media (min-width: 640px) {
  .ns-portfolio-sections [data-section-block="coulisses"] .ns-portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ns-portfolio-sections [data-section-block="coulisses"] .ns-portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ns-mcc-expertise__media {
  border-radius: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--ns-border);
}

.ns-mcc-expertise__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
}

/* Formations compact */
.ns-mcc-trainings {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  background: var(--ns-surface);
  border-top: 1px solid var(--ns-border);
}

.ns-mcc-trainings__grid {
  display: grid;
  gap: 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ns-mcc-trainings__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Contact CTA */
.ns-mcc-cta {
  padding: clamp(5rem, 12vw, 9rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background: linear-gradient(180deg, var(--ns-bg) 0%, var(--ns-surface-2) 100%);
  border-top: 1px solid var(--ns-border);
}

.ns-mcc-cta h2 {
  font-family: "Brumder Rough", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ns-white);
  margin: 0 0 1.25rem;
  max-width: 20ch;
  margin-inline: auto;
}

.ns-mcc-cta p {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  color: var(--ns-text-muted);
  line-height: 1.75;
}

.ns-mcc-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── Responsive accueil ── */

.ns-mcc-about__grid,
.ns-mcc-projects__list,
.ns-mcc-featured__inner,
.ns-mcc-expertise__grid,
.ns-mcc-trainings__grid {
  min-width: 0;
}

@media (max-width: 1023px) {
  .ns-masthead__inner {
    padding-block: 0.75rem;
  }

  .ns-cart-btn {
    padding: 0.45rem 0.75rem;
  }
}

@media (max-width: 767px) {
  .ns-mcc-hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .ns-mcc-hero__content {
    padding: clamp(5rem, 16vw, 6.5rem) 1.25rem clamp(2.5rem, 7vh, 4rem);
  }

  .ns-mcc-hero__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.09em;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .ns-mcc-hero__title {
    font-size: clamp(2rem, 10.5vw, 3rem);
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .ns-mcc-hero__cta {
    margin-top: 2rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
    max-width: 100%;
    justify-content: center;
  }

  .ns-mcc-about,
  .ns-mcc-projects,
  .ns-mcc-featured,
  .ns-mcc-manifesto,
  .ns-mcc-expertise,
  .ns-mcc-trainings,
  .ns-mcc-cta {
    padding-inline: 1.25rem;
    padding-block: clamp(3.25rem, 9vw, 5rem);
  }

  .ns-mcc-section-head {
    margin-bottom: 2rem;
  }

  .ns-mcc-section-head h2 {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  }

  .ns-mcc-about__text {
    max-width: 100%;
    font-size: 1rem;
  }

  .ns-mcc-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .ns-mcc-stat__num {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }

  .ns-mcc-stat__label {
    font-size: 0.625rem;
    line-height: 1.4;
  }

  .ns-mcc-projects__list {
    gap: 1.25rem;
  }

  .ns-mcc-project-card__body {
    padding: 1rem 1rem 1.25rem;
  }

  .ns-mcc-project-card__title {
    font-size: 1rem;
  }

  .ns-mcc-project-card__desc {
    font-size: 0.75rem;
  }

  .ns-mcc-link-all {
    margin-top: 2rem;
    font-size: 0.8125rem;
  }

  .ns-mcc-featured__intro h2 {
    font-size: clamp(1.35rem, 5.5vw, 2rem);
  }

  .ns-mcc-featured__card-overlay {
    padding: 1.25rem;
  }

  .ns-mcc-featured__card-title {
    font-size: 1.125rem;
  }

  .ns-mcc-manifesto {
    text-align: left;
  }

  .ns-mcc-manifesto blockquote {
    font-size: clamp(1.1rem, 4.8vw, 1.5rem);
    line-height: 1.5;
  }

  .ns-mcc-expertise__grid {
    gap: 2rem;
  }

  .ns-mcc-expertise h2 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .ns-mcc-expertise p {
    margin-bottom: 1.5rem;
  }

  .ns-mcc-cta h2 {
    max-width: none;
    font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  }

  .ns-mcc-cta p {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }

  #home-contact-form {
    margin-top: 2rem !important;
    width: 100%;
    max-width: 100% !important;
  }

  .ns-mobile-nav {
    padding: 4.5rem 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  .ns-footer__grid {
    text-align: center;
  }

  .ns-footer__links {
    justify-content: center;
  }

  .ns-footer__grid > div:last-child {
    align-items: center;
  }

  .ns-footer__grid .ns-btn-accent {
    align-self: center !important;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .ns-mcc-projects__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .ns-mcc-trainings__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .ns-mcc-hero__cta {
    width: 100%;
  }

  .ns-mcc-trainings__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .ns-mcc-about__grid {
    grid-template-columns: 1fr;
  }

  .ns-mcc-featured__inner {
    gap: 2.5rem;
  }
}
