/* ============================================
   GALATEON RECHERCHE & ANALYSES
   Think Tank Editorial Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy: #1A2744;
  --navy-deep: #0E1729;
  --navy-light: #2A3D5C;
  --bordeaux: #8B2332;
  --bordeaux-light: #A52D3F;
  --bordeaux-pale: #F4E8EA;
  --white: #FFFFFF;
  --cream: #FAFAF8;
  --cream-warm: #F5F4F0;
  --gray-100: #F7F7F5;
  --gray-200: #EDEDEA;
  --gray-300: #D4D4CF;
  --gray-400: #A3A39E;
  --gray-500: #737370;
  --gray-600: #545452;
  --gray-700: #3A3A38;
  --text-primary: #1A1A18;
  --text-secondary: #545452;
  --text-light: #737370;
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'DM Sans', 'Helvetica Neue', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --max-width: 1280px;
  --content-width: 820px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 1px 3px rgba(26, 39, 68, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 39, 68, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 39, 68, 0.12);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.7;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

.surtitre {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordeaux);
  display: inline-block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.header__brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.header__logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.header__logo span {
  color: var(--bordeaux);
}

.header__tagline {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-left: 0.5rem;
  border-left: 1px solid var(--gray-300);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--navy);
}

.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bordeaux);
}

/* Mobile menu */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 2rem;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

/* --- Hero (Featured Article) --- */
.hero {
  background: var(--cream);
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero__content {
  max-width: 800px;
}

.hero__category {
  margin-bottom: 1.2rem;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--navy);
}

.hero__title a:hover {
  color: var(--bordeaux);
}

.hero__subtitle {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.hero__meta .separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-400);
}

.hero__meta .author {
  font-weight: 600;
  color: var(--text-secondary);
}

/* --- Articles Grid --- */
.articles-section {
  padding: 4rem 0 5rem;
}

.articles-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.articles-section__title {
  font-size: 1.5rem;
  color: var(--navy);
}

/* --- Filters --- */
.filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filters__btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.filters__btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.filters__btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* --- Article Cards --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.article-card__image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__image::before {
  content: 'G';
  font-family: var(--serif);
  font-size: 10rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.12);
  line-height: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.article-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__category {
  margin-bottom: 0.7rem;
}

.article-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.article-card__title a:hover {
  color: var(--bordeaux);
}

.article-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.article-card__author {
  font-weight: 600;
  color: var(--text-secondary);
}

.article-card__readtime {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination__btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.pagination__btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.pagination__btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Newsletter Section --- */
.newsletter {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
}

.newsletter__title {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.newsletter__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter__form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  gap: 0.75rem;
}

.newsletter__input {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter__input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.newsletter__btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  background: var(--bordeaux);
  color: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter__btn:hover {
  background: var(--bordeaux-light);
}

.newsletter__legal {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  background: var(--navy-deep);
  padding: 3rem 0 2rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__brand .header__logo {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__brand p {
  font-size: 0.8rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 3rem;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.8rem;
}

.footer__col a {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.footer__bottom a:hover {
  color: var(--white);
}

/* --- Article Page --- */
.article-header {
  padding: 4rem 0 2.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
}

.article-header .surtitre {
  margin-bottom: 1rem;
}

.article-header h1 {
  max-width: 750px;
  margin-bottom: 1rem;
}

.article-header__subtitle {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.article-header__meta .author {
  font-weight: 600;
  color: var(--text-secondary);
}

.article-header__meta .separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray-400);
}

/* Article body */
.article-body {
  padding: 3rem 0 5rem;
}

.article-body__content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.article-body__content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.article-body__content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.article-body__content h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.8rem;
}

.article-body__content blockquote {
  border-left: 3px solid var(--bordeaux);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* PDF Download CTA */
.pdf-cta {
  max-width: var(--content-width);
  margin: 0 auto 0;
  padding: 0 2rem 2.5rem;
}

.pdf-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--navy);
  border-radius: 4px;
  padding: 2rem 2.5rem;
}

.pdf-cta__text {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pdf-cta__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
}

.pdf-cta__label {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.pdf-cta__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.pdf-cta__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bordeaux);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.pdf-cta__btn:hover {
  background: var(--bordeaux-light);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .pdf-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .pdf-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* Share bar */
.article-share {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-share__label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.article-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-300);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.85rem;
}

.article-share__btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* Related articles */
.related {
  background: var(--cream);
  padding: 4rem 0;
  border-top: 1px solid var(--gray-200);
}

.related__title {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- About Page --- */
.about-hero {
  background: var(--cream);
  padding: 5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.about-hero h1 {
  margin-bottom: 1.5rem;
}

.about-hero__intro {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

.about-section {
  padding: 4rem 0;
}

.about-section h2 {
  margin-bottom: 1.5rem;
}

.about-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 700px;
}

.about-section + .about-section {
  border-top: 1px solid var(--gray-200);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 2px;
}

.team-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
}

.team-card__name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.team-card__role {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.15s; }
.fade-up:nth-child(4) { animation-delay: 0.2s; }
.fade-up:nth-child(5) { animation-delay: 0.25s; }
.fade-up:nth-child(6) { animation-delay: 0.3s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .articles-grid,
  .related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__burger { display: flex; }

  .hero { padding: 3rem 0; }
  .hero__title { font-size: 1.8rem; }

  .articles-grid,
  .related__grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .articles-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .article-share {
    flex-wrap: wrap;
  }

  section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .container, .container--narrow {
    padding: 0 1.2rem;
  }

  .header__inner {
    padding: 0 1.2rem;
  }

  .hero__inner {
    padding: 0 1.2rem;
  }

  .filters {
    gap: 0.35rem;
  }

  .filters__btn {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }
}
