/* Components and layout for the landing page */
@import url('./components/header.css');
@import url('./components/hero.css');
@import url('./components/cards.css');
@import url('./components/footer.css');
@import url('./components/buttons.css');
/* film card rules moved to components/cards.css */
.chronologie-card,
.chronologie-other-card,
.related-card,
.livre-related-card,
.film-card,
.article-related-card,
.ressource-card {
  --card-bg: #0a0c0e;
  --card-border: var(--contours);
  --card-border-width: 1.5px;
  --card-radius: 12px;
  --card-shadow: 0 3px 10px rgba(0,0,0,.45);
  --card-hover-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  --card-hover-translate: -5px;
  background: var(--card-bg);
  border: var(--card-border-width) solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.card:hover,
.projet-card:hover,
.chronologie-card:hover,
.chronologie-other-card:hover,
.related-card:hover,
.livre-related-card:hover,
.film-card:hover,
.article-related-card:hover,
.ressource-card:hover {
  transform: translateY(var(--card-hover-translate));
  box-shadow: var(--card-hover-shadow);
}

/* card rules moved to components/cards.css */

.subtle {
  color: var(--contours);
}

.spacer { height: 20px; }

/* footer rules moved to components/footer.css */

.footer-legal {
  color: var(--contours);
  font-size: 0.65rem;
  margin: 0;
  line-height: 1.5;
}

/* Projets Page */
.section-projets {
  padding: 80px 0;
  margin-top: 60px;
}

.projets-title {
  font-size: 2.5rem;
  color: var(--contours);
  text-align: center;
  margin-bottom: 60px;
  text-transform: capitalize;
}

.projets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.projet-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  text-decoration: none;
}

.projet-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.projet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.projet-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0a0c0e;
}

.projet-name {
  font-size: 1.3rem;
  color: var(--contours);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.projet-student {
  font-size: 0.9rem;
  color: var(--contours);
  opacity: 0.8;
  margin: 0;
}

/* Larger screens: two column grid */
@media (min-width: 768px) {
  .list { grid-template-columns: 1fr 1fr; }
  .hero { border-radius: 20px; }
  .hero-title { font-size: 2.2rem; }
  
  .projets-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .projet-card {
    grid-template-columns: 1fr;
    max-height: 350px;
  }
  
  .projet-media {
    height: 200px;
  }}

/* À Propos Page */
.section-about {
  padding: 80px 20px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-title {
  font-size: 2.5rem;
  color: var(--contours);
  font-style: italic;
  margin-bottom: 20px;
  margin-top: 0;
}

.about-separator {
  display: flex;
  justify-content: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-section {
  border-radius: 12px;
}

.about-text {
  color: var(--contours);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
}

.about-subtitle {
  font-size: 1.3rem;
  color: var(--contours);
  margin: 0 0 20px 0;
  font-weight: 700;
}

.about-objectives,
.about-skills {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-objective,
.about-skill {
  color: var(--contours);
  font-size: 0.95rem;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.about-objective::before,
.about-skill::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--contours);
  font-weight: 700;
}

.about-credits {
  color: var(--contours);
  font-size: 0.9rem;
  font-style: italic;
  margin: 10px 0 0 0;
}

/* Contact Page */
.section-contact {
  padding: 60px 16px;
  margin-top: 60px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-title {
  font-size: 2rem;
  color: var(--contours);
  font-style: italic;
  margin-bottom: 20px;
  margin-top: 0;
}

.contact-separator {
  display: flex;
  justify-content: center;
}

.contact-form-wrapper {
  background: transparent;
  padding: 0;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-input,
.contact-textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--contours);
  border-radius: 6px;
  background: #e8e8e8;
  color: var(--contours);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--contours);
  opacity: 0.7;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--contours);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-textarea {
  min-height: 150px;
  resize: vertical;
  font-family: 'Merriweather', serif;
}

.contact-button {
  padding: 12px 30px;
  background: transparent;
  border: 1.5px solid var(--contours);
  border-radius: 25px;
  color: var(--contours);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  width: 100%;
}

.contact-button:hover {
  background: var(--contours);
  color: var(--noir-fonds);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.contact-button:active {
  transform: scale(0.98);
}

/* Glossaire Page */
.section-glossaire {
  padding: 60px 16px;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.glossaire-header {
  text-align: center;
  margin-bottom: 50px;
}

.glossaire-title {
  font-size: 2rem;
  color: var(--contours);
  font-style: italic;
  margin-bottom: 20px;
  margin-top: 0;
}

.glossaire-separator {
  display: flex;
  justify-content: center;
}

.glossaire-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.glossaire-item {
  border-left: 4px solid var(--contours);
  padding-left: 20px;
  padding-bottom: 20px;
}

.glossaire-term {
  font-size: 1.2rem;
  color: var(--contours);
  font-weight: 700;
  margin: 0 0 10px 0;
}

.glossaire-definition {
  color: var(--contours);
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* Chronologie Page */
.section-chronologie {
  padding: 60px 16px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.chronologie-title {
  font-size: 2rem;
  color: var(--contours);
  text-align: center;
  margin-bottom: 50px;
  margin-top: 0;
}

.chronologie-wrapper {
  position: relative;
}

.chronologie-timeline {
  display: none;
}

.chronologie-timeline::after {
  display: none;
}

.chronologie-content {
  padding-left: 0;
  position: relative;
  z-index: 1;
}

.chronologie-period {
  margin: 40px 0 30px 0;
  position: relative;
  margin-left: 60px;
}

.chronologie-period::before {
  display: none;
}

.chronologie-period-title {
  font-size: 1.3rem;
  color: var(--contours);
  font-weight: 700;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--contours);
}

.chronologie-item {
  margin-bottom: 30px;
  position: relative;
  margin-left: 60px;
}

.chronologie-item::before {
  display: none;
}

/* chronologie card layout moved to components/cards.css */

/* chronologie card content moved to components/cards.css */

.chronologie-other-articles {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid var(--contours);
}

.chronologie-other-title {
  font-size: 1.3rem;
  color: var(--contours);
  font-weight: 700;
  margin: 0 0 30px 0;
}

/* other chronologie card layout moved to components/cards.css */

/* other chronologie media moved to components/cards.css */

.chronologie-other-text {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chronologie-other-name {
  font-size: 1.1rem;
  color: var(--contours);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.chronologie-other-desc {
  color: var(--contours);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Chronologie timeline arrow positioning */
.section-chronologie .article-arrow {
  position: absolute;
  left: 1rem;
  top: 22rem;
  max-width: 40px;
  height: auto;
  width: auto;
  margin: 0;
}

.chronologie-item .article-arrow {
  position: absolute;
  left: -60px;
  top: 30px;
  max-width: 50px;
  height: auto;
  width: auto;
  margin: 0;
}

/* ============================================
   ARTE PAGE STYLES
   ============================================ */

.arte-page {
  padding-top: 120px;
}

.arte-hero {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.arte-title {
  font-size: 2.5rem;
  color: var(--or-titre);
  margin: 0 0 20px 0;
  font-weight: 700;
  line-height: 1.2;
}

.arte-title-separator {
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--or-titre), transparent);
  margin: 0 auto;
}

.arte-description {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.arte-description p {
  color: var(--contours);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.arte-video-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.arte-video-title {
  color: var(--contours);
  font-size: 1.3rem;
  margin: 0 0 20px 0;
  text-align: center;
}

.arte-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: #000;
  border: 2px solid var(--or-titre);
  border-radius: 8px;
}

.arte-video-container iframe,
.arte-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.arte-related {
  max-width: 1200px;
  margin: 80px auto 60px;
  padding: 0 20px;
}

.arte-related-title {
  color: var(--or-titre);
  font-size: 1.8rem;
  margin: 0 0 30px 0;
  font-weight: 700;
}

.arte-related-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .arte-related-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* related card rules moved to components/cards.css */

@media (max-width: 767px) {
  .arte-title {
    font-size: 2rem;
  }
  
  .arte-description p {
    font-size: 1rem;
  }
  
  .related-card-title {
    font-size: 1.1rem;
  }
}

/* ============================================
   LIVRE PAGE STYLES
   ============================================ */

.livre-page {
  padding-top: 120px;
}

.livre-hero {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.livre-title {
  font-size: 2.5rem;
  color: var(--or-titre);
  margin: 0 0 20px 0;
  font-weight: 700;
  line-height: 1.2;
}

.livre-title-separator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.livre-description {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.livre-description p {
  color: var(--contours);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.livre-cover-section {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.livre-cover {
  margin-bottom: 30px;
}

.livre-cover img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.livre-quotes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.livre-quote {
  color: var(--contours);
  font-size: 0.95rem;
  margin: 0;
  font-style: italic;
}

.livre-quote-source {
  font-weight: 700;
  color: var(--or-titre);
  font-style: normal;
}

.livre-extracts {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.livre-extract-pages {
  margin-bottom: 30px;
}

.livre-extract-pages img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.livre-extract-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.livre-separator-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--or-titre), transparent);
}

.livre-related {
  max-width: 900px;
  margin: 80px auto 60px;
  padding: 0 20px;
}

.livre-related-title {
  color: var(--or-titre);
  font-size: 1.8rem;
  margin: 0 0 30px 0;
  font-weight: 700;
}

.livre-related-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #1a1a1a;
}

.livre-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.livre-related-content {
  padding: 25px;
}

.livre-related-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.livre-related-date,
.livre-related-reading {
  color: var(--contours);
  font-size: 0.85rem;
  opacity: 0.8;
}

.livre-related-title-text {
  color: var(--or-titre);
  font-size: 1.3rem;
  margin: 0 0 15px 0;
  font-weight: 700;
  line-height: 1.3;
}

.livre-related-excerpt {
  color: var(--contours);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .livre-title {
    font-size: 2rem;
  }
  
  .livre-description p {
    font-size: 1rem;
  }
  
  .livre-related-title-text {
    font-size: 1.1rem;
  }
}

/* Films Page */
.section-films {
  padding: 60px 16px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.films-header {
  text-align: center;
  margin-bottom: 50px;
}

.films-title {
  font-size: 2rem;
  color: var(--contours);
  margin-bottom: 0;
  margin-top: 0;
}

.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.film-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.film-poster {
  width: 100%;
  height: auto;
  overflow: visible;
  background: #1a1a1a;
}

.film-poster img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.film-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.film-name {
  font-size: 1.2rem;
  color: var(--contours);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.film-year {
  font-size: 0.85rem;
  color: var(--or-titre, #d4af37);
  margin: 0 0 10px 0;
  font-style: italic;
}

.film-description {
  color: var(--contours);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ARTICLE PAGE STYLES (for text-based articles)
   ============================================ */

.article-page {
  padding-top: 120px;
  min-height: 100vh;
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.article-header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--or-titre);
  padding-bottom: 20px;
}

.article-meta {
  color: var(--contours);
  font-size: 0.75rem;
  opacity: 0.8;
  margin: 0 0 20px 0;
}

.article-title {
  font-size: 2.5rem;
  color: var(--or-titre);
  margin: 0 0 15px 0;
  font-weight: 700;
  line-height: 1.2;
}

.article-arrow {
  height: auto !important;
  width: auto !important;
  max-width: 250px !important;
  display: block !important;
  margin: 20px 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  font-weight: normal !important;
}

/* Uniformize page headers and titles across all pages */
.about-header,
.glossaire-header,
.films-header,
.chronologie-header,
.arte-hero,
.livre-hero,
.ressources-hero {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--or-titre);
  padding-bottom: 20px;
}

.about-title,
.glossaire-title,
.films-title,
.chronologie-title,
.arte-title,
.livre-title,
.ressources-title {
  font-size: 2.5rem;
  color: var(--or-titre);
  margin: 0 0 15px 0;
  font-weight: 700;
  line-height: 1.2;
}

.article-section {
  margin-bottom: 30px;
}

.article-section p {
  color: var(--contours);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

.article-image-block {
  margin: 40px 0;
  text-align: center;
}

.article-image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.article-subtitle {
  color: var(--or-titre);
  font-size: 1.5rem;
  margin: 30px 0 20px 0;
  font-weight: 700;
  line-height: 1.3;
}

.article-list {
  color: var(--contours);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 20px 0;
  padding-left: 30px;
}

.article-list li {
  margin-bottom: 10px;
}

.article-list strong {
  color: var(--or-titre);
}

.article-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--or-titre);
}

.article-related-title {
  color: var(--or-titre);
  font-size: 1.8rem;
  margin: 0 0 30px 0;
  font-weight: 700;
}

.article-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .article-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* article-related card rules moved to components/cards.css */

@media (max-width: 767px) {
  .article-title {
    font-size: 2rem;
  }
  
  .article-section p {
    font-size: 1rem;
  }
  
  .article-subtitle {
    font-size: 1.3rem;
  }
  
  .article-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESSOURCES EXTERNES PAGE STYLES
   ============================================ */

.ressources-page {
  padding-top: 120px;
  min-height: 100vh;
}

.ressources-hero {
  text-align: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ressources-title {
  font-size: 2.5rem;
  color: var(--or-titre);
  margin: 0 0 20px 0;
  font-weight: 700;
  line-height: 1.2;
}

.ressources-title-separator {
  color: var(--or-titre);
  font-size: 2rem;
  font-weight: 300;
}

.ressources-grid {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

@media (min-width: 768px) {
  .ressources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ressources-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.ressource-card {
  --card-radius: 12px;
}

.ressource-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #1a1a1a;
}

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

.ressource-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ressource-title {
  color: var(--or-titre);
  font-size: 1.2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
  line-height: 1.3;
}

.ressource-description {
  color: var(--contours);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 767px) {
  .ressources-title {
    font-size: 2rem;
  }
  
  .ressource-image {
    height: 180px;
  }
}

/* Désactive le défilement horizontal */
html, body {
  overflow-x: hidden;
}
