:root {
  --bleu: #2e5dff;
  --black: #000;
  --white: #fff;
  --dark-grey: #999;
  --mid-grey: #666;
  --gainsboro: #e6e6e6;
  --footer-bg: #141414;
  --footer-line: #4d4d4d;

  --font-title: "Tenor Sans", sans-serif;
  --font-text: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --font-ui: "Libre Franklin", Arial, sans-serif;

  --nav-h: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  font-feature-settings: "liga" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

/* ---------- Layout ---------- */

.section {
  display: flex;
  justify-content: center;
  padding-left: 30px;
  padding-right: 30px;
}

.container {
  width: 100%;
  max-width: 1200px;
}

.text-container {
  width: 75%;
}

/* ---------- Navigation ---------- */

.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
  background: var(--white);
  border-bottom: 1px solid var(--gainsboro);
}

.navigation-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  position: relative;
  z-index: 2;
}

.logo img {
  height: 35px;
  width: auto;
}

.nav-menu {
  display: flex;
}

.navigation-link {
  position: relative;
  display: block;
  height: var(--nav-h);
  padding: 34px 20px;
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.2s;
}

.navigation-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--bleu);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navigation-link:hover {
  color: var(--bleu);
}

.navigation-link:hover::after,
.navigation-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  margin-left: -12px;
  background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}

.menu-button span {
  top: 50%;
  margin-top: -1px;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.menu-button span::before {
  top: -7px;
}

.menu-button span::after {
  top: 7px;
}

.nav-open .menu-button span {
  background: transparent;
}

.nav-open .menu-button span::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-button span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Typography ---------- */

.section-title-text {
  display: block;
  margin-bottom: 30px;
  color: var(--dark-grey);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.h1 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-title);
  font-size: 54px;
  font-weight: 400;
  line-height: 60px;
  text-transform: uppercase;
}

.h1 strong {
  font-weight: 400;
}

.h2 {
  margin: 0 0 40px;
  color: var(--black);
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 400;
  line-height: 42px;
  text-transform: uppercase;
}

.paragraph {
  margin: 20px 0;
  color: var(--black);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 30px;
}

.quote {
  font-family: var(--font-title);
  font-style: normal;
  font-size: 22px;
  line-height: 32px;
  text-transform: uppercase;
  color: var(--bleu);
  border-left: 3px solid var(--bleu);
  padding-left: 20px;
  margin: 40px 0;
}

/* ---------- Buttons / links ---------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 60px;
  padding: 20px 25px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--black);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.button:hover {
  color: var(--white);
  background: var(--black);
}

.link-block {
  display: inline-block;
  margin-top: 20px;
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.link-block:hover {
  color: var(--bleu);
}

/* ---------- Home ---------- */

.hero {
  padding-top: 150px;
  padding-bottom: 60px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-image {
  width: 60%;
  perspective: 2000px;
}

.hero-image {
  display: block;
}

.hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1) rotateX(-20deg) rotateY(10deg);
  transition: opacity 1s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.is-loaded .hero-image img {
  opacity: 1;
  transform: none;
}

.hero-text {
  width: 40%;
}

.hero-text .h2 {
  margin: 15px 0 25px;
}

.lead {
  color: var(--mid-grey);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
}

.separator {
  display: flex;
  justify-content: center;
  padding: 0 30px;
}

.separator .line {
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: var(--gainsboro);
}

.latest-posts {
  padding-top: 55px;
  padding-bottom: 90px;
}

.posts-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.posts-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px 20px;
}

.posts-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.posts-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.post-card a {
  text-decoration: none;
}

.posts-image {
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f2f2f2;
}

.posts-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.posts-image:hover img {
  transform: scale(1.04);
}

.post-title {
  display: block;
  margin: 15px 0;
  color: var(--black);
}

.post-title h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.post-title:hover h3,
.hero-title:hover .h2 {
  color: var(--bleu);
}

.category-link {
  color: var(--dark-grey);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.category-link:hover,
.section-title-text:is(a):hover {
  text-decoration: underline;
}

.post-author-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-author {
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

a.post-author:hover {
  text-decoration: underline;
}

.hero-title {
  display: block;
  text-decoration: none;
}

.hero-text .post-author-text {
  margin-top: 30px;
}

.empty-state {
  width: 100%;
  padding: 40px;
  text-align: center;
  color: var(--dark-grey);
  background: #fafafa;
  border: 1px solid var(--gainsboro);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 24px;
}

/* ---------- À propos ---------- */

.about-top {
  padding-top: 210px;
  padding-bottom: 120px;
}

.banner {
  display: block;
  width: 100%;
  height: 35vw;
  object-fit: cover;
  object-position: center;
}

.about-blog {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* ---------- Nouveautés ---------- */

.title-section {
  padding-top: 180px;
  padding-bottom: 90px;
}

/* ---------- Article ---------- */

.post-byline {
  margin-top: 30px;
  gap: 15px;
}

.author-image {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.author-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.author-header .h2 {
  margin: 0;
}

.author-image-lg {
  width: 60px;
  height: 60px;
}

.post-image {
  display: flex;
  justify-content: center;
}

.post-image img {
  display: block;
  width: 100%;
  max-width: 1400px;
}

.post-content {
  padding-top: 60px;
  padding-bottom: 60px;
}

.rich-text {
  width: 100%;
  max-width: 800px;
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 30px;
}

.rich-text p {
  margin: 15px 0;
}

.rich-text figure {
  margin: 30px 0;
}

.rich-text figure img {
  display: block;
  width: 100%;
}

.rich-text figure a {
  display: block;
  cursor: zoom-in;
}

.rich-text blockquote {
  margin: 30px 0 20px;
  padding-top: 20px;
  border-top: 2px solid var(--black);
  font-family: var(--font-ui);
  font-size: 22px;
  line-height: 32px;
}

.rich-text blockquote + blockquote {
  margin-top: 0;
}

.rich-text code {
  font-family: var(--font-title);
  font-size: 0.95em;
  color: var(--bleu);
}

.rich-text a {
  color: var(--bleu);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: center;
  padding: 90px 30px;
  background: var(--footer-bg);
  color: var(--white);
}

.footer .container {
  max-width: 1200px;
}

.footer .logo img {
  height: 35px;
}

.footer-line {
  height: 1px;
  margin: 60px 0;
  background: var(--footer-line);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  flex: 1;
}

.footer-col-wide {
  flex: 2;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
}

.footer-text + .footer-text {
  margin-top: 15px;
}

.footer-title-text {
  margin-bottom: 20px;
  color: var(--mid-grey);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.link-footer {
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
}

.link-footer:hover {
  color: var(--bleu);
}

.footer-text {
  margin: 0;
  color: #bbb;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 24px;
}

.footer-small-text {
  margin-top: 60px;
  color: var(--mid-grey);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-image img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 991px) {
  .menu-button {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: calc(var(--nav-h) + 20px) 0 30px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.4s ease, visibility 0.4s;
  }

  .nav-open .nav-menu {
    transform: none;
    visibility: visible;
  }

  .navigation-link {
    height: 60px;
    padding: 18px 30px;
    font-size: 18px;
  }

  .navigation-link::after {
    display: none;
  }

  .navigation-link[aria-current="page"] {
    color: var(--bleu);
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .hero-image,
  .hero-text,
  .text-container {
    width: 100%;
  }

  .posts-grid,
  .posts-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-top {
    padding-top: 180px;
    padding-bottom: 90px;
  }

  .h1 {
    font-size: 36px;
    line-height: 42px;
  }

  .banner {
    height: 50vw;
  }

  .title-section {
    padding-top: 150px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --nav-h: 75px;
  }

  .navigation {
    padding-right: 8px;
  }

  .navigation-link {
    display: flex;
    align-items: center;
  }

  .hero {
    padding-top: 135px;
  }

  .h2 {
    font-size: 20px;
    line-height: 24px;
  }

  .h1 {
    font-size: 30px;
    line-height: 36px;
  }

  .posts-grid,
  .posts-grid.cols-2,
  .posts-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .about-blog {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .title-section {
    padding-bottom: 60px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media screen and (max-width: 479px) {
  .section,
  .separator,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .navigation {
    padding-left: 16px;
  }

  .hero {
    padding-top: 105px;
    padding-bottom: 30px;
  }

  .latest-posts {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .button {
    width: 100%;
    margin-top: 40px;
  }

  .about-top {
    padding-top: 150px;
    padding-bottom: 60px;
  }

  .h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .banner {
    height: 75vw;
  }

  .about-blog {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .title-section {
    padding-top: 120px;
  }

  .footer {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}
