/* =======================================================
   TRAM-E — PAGE « RECHERCHE & CRÉATION »
   Hero + onglets (Évènements / Résidences / Création & médiation).
   Les cartes, la grille et la lightbox vidéo viennent de
   recherchesetcrea.css (classes .res-*).
======================================================= */

body.page-rc {
  font-family: "Mohave", sans-serif;
  overflow-x: hidden;
  background: white;

  --rc-bg: #f7f5f0;
  --rc-dark: #1a1a1a;
  --rc-text: #2e2e2e;
  --rc-accent: #f2b705;
}

.rc-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Couleurs des onglets (celles du menu de gauche) */
.rc-tab[data-tab="evenements"],
#tab-evenements {
  --tab-color: #e67e22;
}
.rc-tab[data-tab="residences"],
#tab-residences {
  --tab-color: #29bad4;
}
.rc-tab[data-tab="creation"],
#tab-creation {
  --tab-color: #8e44ad;
}

/* =======================================================
   HERO
======================================================= */

.rc-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #2b3341;
}
.rc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.rc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.3) 50%,
    rgba(10, 10, 10, 0.05) 100%
  );
}
.rc-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 4rem 5rem;
  max-width: 960px;
}
.rc-hero__title {
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(3.5rem, 9vw, 10rem);
  line-height: 0.9;
  color: #fff;
  margin-bottom: 1.5rem;
}
.rc-hero__title em {
  font-style: normal;
  color: var(--rc-accent);
  display: block;
}
.rc-hero__kicker {
  font-family: "Mohave", sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rc-accent);
  margin-bottom: 1.5rem;
}
.rc-hero__intro {
  font-family: "Mohave", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  border-left: 4px solid var(--rc-accent);
  padding-left: 1.5rem;
}
.rc-hero__intro a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rc-hero__intro a:hover {
  color: var(--rc-accent);
}

/* =======================================================
   ONGLETS — barre collante
======================================================= */

.rc-tabs {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  background: transparent;
}
.rc-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.4rem 2.5rem;
  border: none;
  border-radius: 0 0 30px 30px;
  cursor: pointer;
  background: var(--tab-color);
  filter: brightness(0.9) saturate(0.9);
  transition: filter 0.3s ease;
}
.rc-tab__label {
  font-family: "MatrimoineFeutre", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s;
}
.rc-tab:hover {
  filter: brightness(0.55) saturate(0.95);
}
.rc-tab:hover .rc-tab__label {
  color: #fff;
}
.rc-tab.active {
  filter: brightness(1) saturate(1);
}
.rc-tab.active .rc-tab__label {
  color: #fff;
}

/* =======================================================
   PANNEAUX
======================================================= */

.rc-panel {
  display: none;
  background: var(--rc-bg);
}
.rc-panel.active {
  display: block;
  animation: rcFade 0.4s ease forwards;
}
@keyframes rcFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Texte d'introduction de l'onglet */
.rc-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem 4rem;
  align-items: start;
  padding: 5rem 4rem 4rem;
  background: var(--rc-bg);
}
.rc-intro__title {
  position: relative;
  padding-top: 1.6rem;
  font-family: "Matrimoine", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1;
  color: var(--rc-dark);
}
.rc-intro__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 4px;
  background: var(--tab-color);
}
.rc-intro__title em {
  font-style: normal;
  color: var(--tab-color);
}
.rc-intro__text p {
  max-width: 62ch;
  margin: 0 0 1em;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.75;
  color: var(--rc-text);
}

/* Carte dont la page n'existe pas encore */
.res-card--soon {
  cursor: default;
}
.res-card--soon .res-card__cta {
  opacity: 1;
  transform: none;
  background: rgba(0, 0, 0, 0.45);
}

/* Bloc « Page en cours » */
.rc-soon {
  padding: 0 4rem 6rem;
  background: var(--rc-bg);
}
.rc-soon__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--tab-color);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.rc-soon__text {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  color: var(--rc-text);
}
.rc-soon__list {
  max-width: 62ch;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: #777;
}

/* =======================================================
   RESPONSIVE
======================================================= */

@media (max-width: 1024px) {
  .rc-hero__content {
    padding: 0 3rem 4rem;
  }
  .rc-intro {
    grid-template-columns: 1fr;
    padding: 3.5rem 2rem 2.5rem;
  }
  .rc-soon {
    padding: 0 2rem 4rem;
  }
  .rc-tab {
    padding: 1.2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .rc-hero {
    min-height: 70svh;
  }
  .rc-hero__content {
    padding: 0 1.5rem 3rem;
  }
  .rc-hero__title {
    font-size: clamp(2.8rem, 13vw, 5rem);
  }
  /* Onglets en bulles : 3 onglets = une bulle par ligne (compactes, la barre reste collée) */
  .rc-tabs {
    display: grid;
    grid-template-columns: 1fr;
     gap: 0.5rem;
    padding: 0.5rem;
  }
  .rc-tab {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 30px;
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .rc-tab:last-child {
    border-bottom: none;
  }
  .rc-tab__label {
    font-size: 0.95rem;
    line-height: 1.1;
  }
  .rc-intro {
    padding: 2.5rem 1.5rem 2rem;
  }
  .rc-soon {
    padding: 0 1.5rem 3rem;
  }
}
