/* Page-specific styles for notre-histoire */

/* Hero */
.nh-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-chocolate);
}

.nh-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.nh-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nh-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(43, 37, 32, 0.55), rgba(43, 37, 32, 0.75));
}

.nh-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.nh-hero__panel {
  width: 60%;
  max-width: 720px;
  background-color: rgba(43, 37, 32, 0.7);
  border: var(--border-thin);
  border-radius: var(--radius-panel);
  padding: var(--space-6);
  color: var(--color-chocolate-light);
  text-align: left;
}

.nh-hero__panel h1 {
  color: var(--color-chocolate-light);
  margin-block-end: var(--space-4);
}

.nh-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-block-end: var(--space-5);
}

.nh-hero__button {
  display: inline-flex;
}

/* Sections general */
.nh-section {
  padding-block: var(--space-8);
}

.nh-section__title {
  text-align: center;
  margin-block-end: var(--space-6);
}

/* History section */
.nh-history__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--space-6);
  align-items: start;
}

.nh-history__text {
  min-width: 0;
}

.nh-history__text h2 {
  margin-block-end: var(--space-4);
}

.nh-history__text h3 {
  margin-block-start: var(--space-4);
  margin-block-end: var(--space-3);
}

.nh-history__text p {
  margin-block-end: var(--space-3);
}

.nh-history__text blockquote {
  margin-block: var(--space-4);
  padding-inline-start: var(--space-4);
  border-inline-start: 2px solid var(--color-antique-gold);
  font-style: italic;
}

.nh-history__list {
  list-style: disc;
  padding-inline-start: var(--space-4);
  margin-block-start: var(--space-3);
}

.nh-history__list li {
  margin-block-end: var(--space-2);
}

.nh-history__media {
  min-width: 0;
}

.nh-history__image-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border: var(--border-thin);
  border-radius: 50%;
  overflow: hidden;
  will-change: transform;
}

.nh-history__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Philosophy section */
.nh-philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.nh-philosophy__card {
  background-color: var(--color-papyrus);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: var(--surface-card-padding);
  min-width: 0;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.nh-philosophy__card:hover {
  box-shadow: var(--shadow-subtle);
  border-color: var(--color-antique-gold);
}

.nh-philosophy__card h3 {
  margin-block-end: var(--space-3);
}

.nh-philosophy__card p {
  margin-block-end: 0;
}

/* Spaces section */
.nh-spaces__text {
  width: 80%;
  margin-inline: auto;
  text-align: center;
  margin-block-end: var(--space-6);
}

.nh-spaces__text p {
  margin-block-end: 0;
}

.nh-spaces__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-block-end: var(--space-6);
}

.nh-spaces__item {
  min-width: 0;
}

.nh-spaces__image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: var(--border-thin);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-block-end: var(--space-4);
  will-change: transform;
}

.nh-spaces__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nh-spaces__item h3 {
  margin-block-end: var(--space-2);
}

.nh-spaces__item p {
  margin-block-end: 0;
}

.nh-spaces__poker {
  width: 80%;
  margin-inline: auto;
  text-align: center;
}

.nh-spaces__poker h3 {
  margin-block-end: var(--space-2);
}

.nh-spaces__poker p {
  margin-block-end: 0;
}

/* Cuisine section */
.nh-cuisine__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-6);
  align-items: start;
}

.nh-cuisine__text {
  min-width: 0;
}

.nh-cuisine__text h2 {
  margin-block-end: var(--space-4);
}

.nh-cuisine__text h3 {
  margin-block-start: var(--space-4);
  margin-block-end: var(--space-3);
}

.nh-cuisine__text p {
  margin-block-end: var(--space-3);
}

.nh-cuisine__list {
  list-style: disc;
  padding-inline-start: var(--space-4);
  margin-block-start: var(--space-3);
}

.nh-cuisine__list li {
  margin-block-end: var(--space-2);
}

.nh-cuisine__media {
  min-width: 0;
}

.nh-cuisine__image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: var(--border-thin);
  border-radius: var(--radius-card);
  overflow: hidden;
  will-change: transform;
}

.nh-cuisine__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Poker section */
.nh-poker__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: var(--space-6);
  align-items: start;
}

.nh-poker__text {
  min-width: 0;
}

.nh-poker__text h2 {
  margin-block-end: var(--space-4);
}

.nh-poker__text h3 {
  margin-block-start: var(--space-4);
  margin-block-end: var(--space-3);
}

.nh-poker__text p {
  margin-block-end: var(--space-3);
}

.nh-poker__highlight {
  background-color: var(--color-papyrus);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: var(--surface-card-padding);
  margin-block: var(--space-4);
}

.nh-poker__highlight p {
  margin-block-end: 0;
}

.nh-poker__list {
  list-style: disc;
  padding-inline-start: var(--space-4);
  margin-block-start: var(--space-3);
}

.nh-poker__list li {
  margin-block-end: var(--space-2);
}

.nh-poker__media {
  min-width: 0;
}

.nh-poker__image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: var(--border-thin);
  border-radius: var(--radius-card);
  overflow: hidden;
  will-change: transform;
}

.nh-poker__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Team section */
.nh-team__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.nh-team__card {
  background-color: var(--color-papyrus);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: var(--surface-card-padding);
  min-width: 0;
  transition: box-shadow var(--transition-base);
}

.nh-team__card:hover {
  box-shadow: var(--shadow-subtle);
}

.nh-team__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-marble-dark);
  color: var(--color-chocolate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-block-end: var(--space-3);
}

.nh-team__card h3 {
  margin-block-end: var(--space-2);
}

.nh-team__card p {
  margin-block-end: 0;
}

/* Testimonials section */
.nh-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.nh-testimonials__quote {
  background-color: var(--color-papyrus);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: var(--surface-card-padding);
  margin-block-end: 0;
  border-inline-start: 2px solid var(--color-antique-gold);
}

.nh-testimonials__quote p {
  font-style: italic;
  margin-block-end: var(--space-2);
}

.nh-testimonials__quote footer {
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caption);
  color: var(--color-chocolate);
}

/* Timeline section */
.nh-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  position: relative;
}

.nh-timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-antique-gold);
  z-index: 0;
}

.nh-timeline__item {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nh-timeline__marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-antique-gold);
  border: 2px solid var(--color-marble);
  margin-block-end: var(--space-3);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.nh-timeline__marker:hover,
.nh-timeline__marker:focus-visible {
  transform: scale(1.2);
  outline: var(--focus-outline);
  outline-offset: var(--focus-offset);
}

.nh-timeline__content h3 {
  margin-block-end: var(--space-2);
}

.nh-timeline__content p {
  margin-block-end: 0;
}

/* CTA section */
.nh-cta__panel {
  background-color: var(--color-chocolate);
  color: var(--color-chocolate-light);
  border-radius: var(--radius-panel);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.nh-cta__panel h2 {
  color: var(--color-chocolate-light);
  margin-block-end: 0;
}

.nh-cta__panel p {
  width: 60%;
  max-width: 600px;
  margin-block-end: 0;
}

.nh-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.nh-cta__actions .btn {
  min-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .nh-hero__panel {
    width: 70%;
  }

  .nh-history__grid,
  .nh-cuisine__grid,
  .nh-poker__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .nh-history__media,
  .nh-cuisine__media,
  .nh-poker__media {
    order: 2;
  }

  .nh-history__text,
  .nh-cuisine__text,
  .nh-poker__text {
    order: 1;
  }

  .nh-philosophy__grid,
  .nh-team__grid,
  .nh-testimonials__grid,
  .nh-timeline {
    grid-template-columns: 1fr;
  }

  .nh-timeline::before {
    display: none;
  }

  .nh-timeline__item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-3);
  }

  .nh-timeline__marker {
    margin-block-end: 0;
    flex-shrink: 0;
  }

  .nh-spaces__gallery {
    grid-template-columns: 1fr;
  }

  .nh-spaces__text,
  .nh-spaces__poker,
  .nh-cta__panel p {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nh-hero {
    min-height: 60vh;
  }

  .nh-hero__panel {
    width: 90%;
    margin-inline: auto;
    padding: var(--space-4);
    text-align: center;
  }

  .nh-hero__button {
    width: 100%;
  }

  .nh-section {
    padding-block: var(--space-7);
  }

  .nh-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .nh-cta__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .nh-hero__panel h1 {
    font-size: var(--text-h2);
  }

  .nh-hero__subtitle {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nh-hero__media,
  .nh-history__image-wrapper,
  .nh-spaces__image-wrapper,
  .nh-cuisine__image-wrapper,
  .nh-poker__image-wrapper {
    will-change: auto;
    transform: none !important;
  }
}
