/* ============================================================
   V7 DESIGN SYSTEM — TEMPLATES SPECIFIC STYLES
   Le Manuscrit Déroulant
   ============================================================ */

/* ----------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------- */
.v7-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.v7-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.v7-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.v7-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 0.95) 100%
  );
  z-index: 2;
}

.v7-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--v7-space-md);
}

.v7-hero__label {
  font-family: var(--v7-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--v7-gold);
  margin-bottom: var(--v7-space-sm);
  display: block;
}

.v7-hero__title {
  font-family: var(--v7-font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--v7-space-md);
  background: linear-gradient(135deg, var(--v7-text-primary) 0%, var(--v7-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.v7-hero__subtitle {
  font-family: var(--v7-font-body);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--v7-text-secondary);
  margin-bottom: var(--v7-space-lg);
  line-height: 1.6;
}

.v7-hero__scroll {
  position: absolute;
  bottom: var(--v7-space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--v7-space-xs);
  color: var(--v7-text-muted);
  font-family: var(--v7-font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: v7-bounce 2s infinite;
}

@keyframes v7-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.v7-hero__scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--v7-gold);
}

/* ----------------------------------------------------------
   NAVIGATION STICKY
   ---------------------------------------------------------- */
.v7-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--v7-z-nav);
  padding: var(--v7-space-sm) var(--v7-space-md);
  transform: translateY(-100%);
  transition: transform var(--v7-transition-base), background var(--v7-transition-base);
}

.v7-nav.is-visible {
  transform: translateY(0);
}

.v7-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.v7-nav__logo {
  font-family: var(--v7-font-display);
  font-size: 1.2rem;
  color: var(--v7-gold);
  text-decoration: none;
}

.v7-nav__menu {
  display: flex;
  gap: var(--v7-space-md);
  list-style: none;
}

.v7-nav__menu a {
  font-family: var(--v7-font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v7-text-secondary);
  text-decoration: none;
  transition: color var(--v7-transition-fast);
  position: relative;
}

.v7-nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--v7-gold);
  transition: width var(--v7-transition-base);
}

.v7-nav__menu a:hover {
  color: var(--v7-gold);
}

.v7-nav__menu a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.v7-nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v7-gold);
  cursor: pointer;
  padding: var(--v7-space-xs);
}

@media (max-width: 768px) {
  .v7-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    padding: var(--v7-space-md);
    background: var(--v7-bg-glass);
    backdrop-filter: blur(20px);
  }

  .v7-nav__menu.is-open {
    display: flex;
  }

  .v7-nav__toggle {
    display: block;
  }
}

/* ----------------------------------------------------------
   3 PORTES DU BERRY (HUB N1)
   ---------------------------------------------------------- */
.v7-portes {
  background: var(--v7-bg-secondary);
}

.v7-portes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--v7-space-md);
}

@media (max-width: 768px) {
  .v7-portes__grid {
    grid-template-columns: 1fr;
  }
}

.v7-porte {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.v7-porte__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.v7-porte__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--v7-transition-slow);
}

.v7-porte:hover .v7-porte__image img {
  transform: scale(1.1);
}

.v7-porte__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.2) 0%,
    rgba(10, 10, 10, 0.8) 100%
  );
  transition: background var(--v7-transition-base);
}

.v7-porte:hover .v7-porte__overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.v7-porte__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--v7-space-lg) var(--v7-space-md);
  z-index: 2;
}

.v7-porte__title {
  font-family: var(--v7-font-display);
  font-size: 1.5rem;
  color: var(--v7-text-primary);
  margin-bottom: var(--v7-space-xs);
}

.v7-porte__desc {
  font-size: 0.9rem;
  color: var(--v7-text-secondary);
  margin-bottom: var(--v7-space-sm);
}

.v7-porte__cta {
  font-family: var(--v7-font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v7-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--v7-transition-fast);
}

.v7-porte:hover .v7-porte__cta {
  gap: 1rem;
}

/* ----------------------------------------------------------
   7 CHEMINS (HUB N2)
   ---------------------------------------------------------- */
.v7-chemins {
  background: var(--v7-bg-primary);
}

.v7-chemins__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: var(--v7-space-sm);
}

.v7-chemins__grid .v7-chemin:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .v7-chemins__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 250px);
  }

  .v7-chemins__grid .v7-chemin:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .v7-chemins__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(7, 200px);
  }

  .v7-chemins__grid .v7-chemin:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.v7-chemin {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--v7-border);
  transition: all var(--v7-transition-base);
}

.v7-chemin:hover {
  border-color: var(--v7-border-gold);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.v7-chemin__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.v7-chemin__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--v7-transition-slow);
}

.v7-chemin:hover .v7-chemin__image img {
  transform: scale(1.08);
}

.v7-chemin__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.1) 0%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

.v7-chemin__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--v7-space-md);
}

.v7-chemin__title {
  font-family: var(--v7-font-heading);
  font-size: 1.1rem;
  color: var(--v7-text-primary);
  margin-bottom: 0.25rem;
}

.v7-chemin__count {
  font-family: var(--v7-font-ui);
  font-size: 0.75rem;
  color: var(--v7-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   PLACEHOLDER CARDS (Articles à venir)
   ---------------------------------------------------------- */
.v7-placeholder-card {
  position: relative;
}

.v7-placeholder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.v7-placeholder-badge {
  font-family: var(--v7-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--v7-gold);
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--v7-gold);
  background: rgba(10, 10, 10, 0.8);
}

/* ----------------------------------------------------------
   MISE EN AVANT (Featured Article)
   ---------------------------------------------------------- */
.v7-featured {
  background: var(--v7-bg-secondary);
}

.v7-featured__layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--v7-space-lg);
  align-items: center;
}

@media (max-width: 1024px) {
  .v7-featured__layout {
    grid-template-columns: 1fr;
  }
}

.v7-featured__image {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
}

.v7-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--v7-transition-slow);
}

.v7-featured__image:hover img {
  transform: scale(1.03);
}

.v7-featured__content {
  padding: var(--v7-space-md) 0;
}

.v7-featured__label {
  font-family: var(--v7-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--v7-gold);
  margin-bottom: var(--v7-space-sm);
}

.v7-featured__title {
  font-family: var(--v7-font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--v7-space-sm);
}

.v7-featured__excerpt {
  font-size: 1.05rem;
  color: var(--v7-text-secondary);
  margin-bottom: var(--v7-space-md);
}

/* ----------------------------------------------------------
   SUGGESTIONS CONTEXTUELLES
   ---------------------------------------------------------- */
.v7-suggestions {
  background: var(--v7-bg-primary);
}

.v7-suggestion {
  display: flex;
  gap: var(--v7-space-md);
  padding: var(--v7-space-md);
  border-left: 3px solid var(--v7-gold);
  background: var(--v7-bg-card);
  transition: all var(--v7-transition-base);
}

.v7-suggestion:hover {
  background: rgba(212, 175, 55, 0.05);
  transform: translateX(8px);
}

.v7-suggestion__image {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
}

.v7-suggestion__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v7-suggestion__content {
  flex: 1;
}

.v7-suggestion__title {
  font-family: var(--v7-font-heading);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.v7-suggestion__meta {
  font-family: var(--v7-font-ui);
  font-size: 0.75rem;
  color: var(--v7-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------
   NEWSLETTER
   ---------------------------------------------------------- */
.v7-newsletter {
  background: linear-gradient(135deg, var(--v7-bg-secondary) 0%, var(--v7-bg-tertiary) 100%);
  border-top: 1px solid var(--v7-border-gold);
  border-bottom: 1px solid var(--v7-border-gold);
}

.v7-newsletter__form {
  display: flex;
  gap: var(--v7-space-sm);
  max-width: 600px;
  margin: 0 auto;
}

.v7-newsletter__input {
  flex: 1;
  padding: 1rem 1.5rem;
  font-family: var(--v7-font-body);
  font-size: 1rem;
  background: var(--v7-bg-card);
  border: 1px solid var(--v7-border);
  color: var(--v7-text-primary);
  border-radius: 4px;
  transition: border-color var(--v7-transition-fast);
}

.v7-newsletter__input:focus {
  outline: none;
  border-color: var(--v7-gold);
}

.v7-newsletter__input::placeholder {
  color: var(--v7-text-muted);
}

@media (max-width: 768px) {
  .v7-newsletter__form {
    flex-direction: column;
  }
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.v7-footer {
  background: var(--v7-bg-primary);
  border-top: 1px solid var(--v7-border);
  padding: var(--v7-space-xl) 0 var(--v7-space-lg);
}

.v7-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--v7-space-lg);
  margin-bottom: var(--v7-space-lg);
}

@media (max-width: 1024px) {
  .v7-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .v7-footer__grid {
    grid-template-columns: 1fr;
  }
}

.v7-footer__brand {
  font-family: var(--v7-font-display);
  font-size: 1.5rem;
  color: var(--v7-gold);
  margin-bottom: var(--v7-space-sm);
}

.v7-footer__desc {
  font-size: 0.9rem;
  color: var(--v7-text-muted);
  line-height: 1.7;
}

.v7-footer__title {
  font-family: var(--v7-font-heading);
  font-size: 1rem;
  color: var(--v7-text-primary);
  margin-bottom: var(--v7-space-sm);
}

.v7-footer__links {
  list-style: none;
}

.v7-footer__links li {
  margin-bottom: 0.5rem;
}

.v7-footer__links a {
  font-size: 0.9rem;
  color: var(--v7-text-muted);
  transition: color var(--v7-transition-fast);
}

.v7-footer__links a:hover {
  color: var(--v7-gold);
}

.v7-footer__bottom {
  border-top: 1px solid var(--v7-border);
  padding-top: var(--v7-space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--v7-space-sm);
}

.v7-footer__copyright {
  font-size: 0.8rem;
  color: var(--v7-text-muted);
}

/* ----------------------------------------------------------
   SINGLE ARTICLE
   ---------------------------------------------------------- */
.v7-article-header {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.v7-article-header__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.v7-article-header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v7-article-header__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.3) 0%,
    rgba(10, 10, 10, 0.9) 100%
  );
}

.v7-article-header__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--v7-space-md) var(--v7-space-xl);
  width: 100%;
}

.v7-article-header__meta {
  font-family: var(--v7-font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--v7-gold);
  margin-bottom: var(--v7-space-sm);
}

.v7-article-header__title {
  font-family: var(--v7-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: var(--v7-space-sm);
}

.v7-article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--v7-space-xl) var(--v7-space-md);
}

.v7-article-content h2 {
  font-family: var(--v7-font-heading);
  font-size: 1.8rem;
  margin: var(--v7-space-lg) 0 var(--v7-space-sm);
  color: var(--v7-text-primary);
}

.v7-article-content h3 {
  font-family: var(--v7-font-heading);
  font-size: 1.4rem;
  margin: var(--v7-space-md) 0 var(--v7-space-xs);
  color: var(--v7-text-primary);
}

.v7-article-content p {
  margin-bottom: var(--v7-space-md);
  font-size: 1.1rem;
  line-height: 1.9;
}

.v7-article-content blockquote {
  border-left: 3px solid var(--v7-gold);
  padding-left: var(--v7-space-md);
  margin: var(--v7-space-lg) 0;
  font-style: italic;
  color: var(--v7-text-secondary);
}

.v7-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: var(--v7-space-md) 0;
}

/* ----------------------------------------------------------
   ARCHIVE / CATEGORY
   ---------------------------------------------------------- */
.v7-archive-header {
  padding: var(--v7-space-2xl) var(--v7-space-md) var(--v7-space-xl);
  text-align: center;
  background: linear-gradient(180deg, var(--v7-bg-secondary) 0%, var(--v7-bg-primary) 100%);
  border-bottom: 1px solid var(--v7-border);
}

.v7-archive-header__title {
  font-family: var(--v7-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--v7-space-sm);
}

.v7-archive-header__desc {
  font-size: 1.1rem;
  color: var(--v7-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.v7-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--v7-space-md);
  padding: var(--v7-space-xl) 0;
}

@media (max-width: 1024px) {
  .v7-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .v7-archive-grid {
    grid-template-columns: 1fr;
  }
}
