/*
Theme Name: Cultur Up
Author: L'équipe Cultur Up
Description: Thème sur-mesure pour la SAÉ 2.02
Version: 1.0
*/

:root {
  --purple-bar: #2A1145;
  --purple-dark: #3a225c;
  --purple-light: #703F6D;
  --orange: #F58A2B;
  --teal-tag: #5DD0D0;
  --bg-light: #EEFAFA;
  --placeholder: #F1F0EA;
  --text-dark: #1E1130;
  --text-muted: rgba(30, 17, 48, 0.8);
  --border-color: #2A1145;
  --font-display: 'Quicksand', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #fdfdfd;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background-color: var(--purple-bar);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
}

.navbar {
  background-color: var(--purple-dark);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--purple-bar);
}

.navbar .logo {
  height: 70px;
  width: auto;
  display: block;
}

.navbar .nav-links {
  display: flex;
  gap: 16px;
}

.navbar .nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-bar);
  background-color: #ffffff;
  padding: 8px 24px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 2px 3px 0px var(--purple-bar);
  border: 1px solid var(--purple-bar);
  transition: all 0.2s ease;
}

.navbar .nav-links a:hover {
  background-color: var(--orange);
  color: #ffffff;
}

.navbar .nav-links a.active {
  background-color: var(--orange);
  color: #ffffff;
  box-shadow: 2px 3px 0px var(--purple-bar);
}

.container {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 40px;
  width: 100%;
}

.tag-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple-bar);
  background-color: #EEFAFA;
  padding: 6px 16px;
  border: 1px solid var(--purple-bar);
  border-radius: 9999px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.title-large {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .title-large {
    font-size: 60px;
  }
}

.title-large span {
  color: var(--orange);
}

.desc-text {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.btn-primary { 
    display: inline-block; 
    background-color: var(--orange); 
    color: #ffffff; 
    font-family: var(--font-display);
    font-size: 16px; 
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none; 
    border: 2px solid var(--purple-dark); 
    box-shadow: 6px 6px 0px var(--purple-dark);
    transition: transform 0.1s ease, box-shadow 0.1s ease; 
}

.btn-primary:hover {
  transform: translateY(1px);
  box-shadow: 2px 3px 0px var(--purple-bar);
}

.image-placeholder {
  background-color: var(--placeholder);
  border: 2px solid var(--purple-bar);
  border-radius: 16px;
  box-shadow: 4px 5px 0px var(--purple-bar);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 80px;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background-color: #ffffff;
  border: 2px solid var(--purple-bar);
  border-radius: 16px;
  box-shadow: 4px 5px 0px var(--purple-bar);
  padding: 32px;
  text-align: center;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
}

.stat-lbl {
  font-size: 14px;
  color: var(--text-muted);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.section-indicator {
  width: 8px;
  height: 32px;
  background-color: var(--teal-tag);
  border: 1px solid var(--purple-bar);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  background-color: #ffffff;
  border: 2px solid var(--purple-bar);
  border-radius: 16px;
  box-shadow: 4px 5px 0px var(--purple-bar);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
}

.card-media {
  width: 100%;
  height: 192px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--purple-bar);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  align-self: flex-start;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
}

.narrow-layout {
  max-width: 768px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.subtitle-meta {
  font-size: 14px;
  color: rgba(30, 17, 48, 0.6);
  margin-bottom: 8px;
}

.article-box {
  background-color: #ffffff;
  border: 2px solid var(--purple-bar);
  border-radius: 16px;
  box-shadow: 4px 5px 0px var(--purple-bar);
  padding: 40px;
}

.article-box p {
  font-size: 15px;
  margin-bottom: 20px;
  color: rgba(30, 17, 48, 0.9);
}

.article-box h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-box blockquote {
  background-color: var(--bg-light);
  border-left: 4px solid var(--purple-dark);
  padding: 20px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  margin: 24px 0;
}

.article-box blockquote footer {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  color: var(--purple-bar);
}

.article-box mark {
  background-color: #5DD0D0;
  color: var(--purple-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

.sources-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: rgba(30, 17, 48, 0.6);
}

.sources-box ul {
  list-style: none;
  margin-top: 6px;
}

.page-nav-links {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 14px;
}

.page-nav-links a {
  color: var(--purple-bar);
  text-decoration: none;
  font-weight: 600;
}

.page-nav-links a:hover {
  color: var(--orange);
}

.promo-banner {
  background-color: var(--orange);
  border: 2px solid var(--purple-bar);
  border-radius: 16px;
  box-shadow: 4px 5px 0px var(--purple-bar);
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.promo-banner p {
  color: var(--purple-bar);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.promo-banner span {
  color: #ffffff;
  display: block;
  font-size: 14px;
  margin-bottom: 24px;
}

.promo-banner .btn-dark {
  display: inline-block;
  background-color: var(--purple-bar);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.promo-banner .btn-dark:hover {
  background-color: var(--purple-dark);
}

/* --- Section des commentaires --- */
.comment-section {
  margin-top: 40px;
  background-color: #ffffff;
  border: 2px solid var(--purple-bar);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 4px 5px 0px var(--purple-bar);
}

/* --- Message de succès --- */
.comment-success-msg {
  background-color: var(--bg-light);
  border: 2px solid var(--teal-tag);
  color: var(--purple-dark);
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: 4px 4px 0px var(--teal-tag);
}

.comments-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--purple-dark);
  margin-top: 48px;
  margin-bottom: 24px;
  padding-top: 32px;
  border-top: 2px dashed var(--purple-bar);
}

#respond {
  margin-top: 16px;
}

#reply-title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

#reply-title a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

#reply-title a:hover {
  color: var(--purple-light);
}

#cancel-comment-reply-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--purple-light);
  margin-left: 12px;
  text-decoration: underline;
}

#cancel-comment-reply-link:hover {
  color: var(--orange);
}

.comment-form-comment label,
.comment-form-author label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--purple-dark);
}

.comment-form-comment textarea,
.comment-form-author input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--purple-bar);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 24px;
  background-color: #ffffff;
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus {
  outline: none;
  border-color: var(--orange);
}

.comment-form-comment textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  margin-top: 32px;
}

.form-submit .submit {
  display: inline-block;
  background-color: var(--orange);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid var(--purple-dark);
  box-shadow: 6px 6px 0px var(--purple-dark);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.form-submit .submit:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0px var(--purple-dark);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list .children {
  list-style: none;
  margin-top: 24px;
  padding-left: 32px;
  border-left: 2px solid var(--placeholder);
}

.comment-list li.comment {
  background-color: #ffffff;
  border: 2px solid var(--purple-bar);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 4px 5px 0px var(--purple-bar);
}

.comment-body {
  display: flex;
  flex-direction: column;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.comment-meta img.avatar {
  border-radius: 50%;
  border: 2px solid var(--purple-bar);
}

.comment-author cite.fn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--purple-dark);
  font-style: normal;
}

.comment-metadata a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
}

.comment-metadata a:hover {
  color: var(--orange);
}

.comment-content p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.6;
}

.reply a {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-dark);
  text-transform: uppercase;
  text-decoration: none;
  background-color: var(--placeholder);
  border: 1px solid var(--purple-bar);
  padding: 6px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.reply a:hover {
  background-color: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
}

.says {
  display: none;
}

.footer {
  background-color: var(--purple-dark);
  color: #ffffff;
  padding: 56px 40px;
  border-top: 1px solid #DCDBD7;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col p, .footer-col ul {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  list-style: none;
  line-height: 1.8;
}

.footer-col ul space-y-2 li {
  margin-bottom: 8px;
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--orange);
}

.image-placeholder video {
  overflow: hidden;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.img-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}