/*
Theme Name: EVIACORE Blog
Theme URI: https://eviacore.com/
Author: EVIACORE
Description: Thème WordPress du blog EVIACORE, adapté du site statique Next.js.
Version: 1.6.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: eviacore
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --evia-black: #0a0b0d;
  --evia-panel: #151619;
  --evia-yellow: #f6c94a;
  --evia-yellow-dark: #a87d00;
  --evia-muted: #f4f4f0;
  --evia-muted-text: #5f625f;
  --evia-border: #deded7;
  --evia-wide: 100rem;
  --evia-copy: 48rem;
  --evia-article-padding: 0px;
  --evia-article-block-spacing: 18px;
}

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

html {
  scrollbar-color: var(--evia-yellow) var(--evia-black);
}

body {
  margin: 0;
  background: #fff;
  color: var(--evia-black);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 500;
}

:focus-visible {
  outline: 3px solid var(--evia-yellow-dark);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: min(calc(100% - 2rem), var(--evia-wide));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4rem;
  background: var(--evia-black);
  color: #fff;
}

.admin-bar .site-header {
  top: 32px;
}

.navbar {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  flex: 0 0 auto;
}

.brand img,
.brand object {
  display: block;
  width: 11rem;
  height: 31px;
  object-fit: contain;
}

.brand object {
  pointer-events: none;
}

.desktop-navigation {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.desktop-navigation a,
.desktop-menu-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.desktop-navigation a:hover,
.desktop-navigation a[aria-current="page"],
.desktop-menu-toggle:hover,
.desktop-menu.is-open > .desktop-menu-toggle {
  color: var(--evia-yellow);
}

.desktop-menu {
  position: relative;
  padding-block: 1.25rem;
}

.desktop-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
}

.desktop-menu-chevron {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.desktop-menu.is-open > .desktop-menu-toggle .desktop-menu-chevron {
  transform: rotate(180deg);
}

.desktop-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  visibility: hidden;
  width: 20rem;
  margin: 0;
  padding: 0.75rem;
  list-style: none;
  background: var(--evia-panel);
  opacity: 0;
}

.desktop-menu.is-open .desktop-submenu {
  visibility: visible;
  opacity: 1;
}

.desktop-submenu a {
  display: block;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.desktop-submenu li:last-child a {
  border-bottom: 0;
}

.desktop-submenu a:hover {
  background: rgba(255,255,255,.05);
}

.quote-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border: 1px solid var(--evia-yellow) !important;
  background: var(--evia-yellow) !important;
  color: var(--evia-black) !important;
  font-weight: 500;
  text-decoration: none;
}

.quote-button:hover,
.quote-button:focus-visible {
  background: var(--evia-black) !important;
  color: var(--evia-yellow) !important;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.875rem;
}

.desktop-navigation > .language-switch {
  margin-left: 0.25rem;
}

.language-switch .active {
  color: var(--evia-yellow);
}

.language-switch > a,
.language-switch > .active {
  padding: 0.5rem 0.25rem;
}

.language-switch .separator {
  color: rgba(255,255,255,.35);
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  position: relative;
  z-index: 1002;
  display: inline-block;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  overflow: visible;
}

.menu-toggle > .inner {
  position: relative;
  display: block;
  width: 100%;
  margin: -1px 0 0;
  transition: transform .5s cubic-bezier(.645,.045,.355,1);
}

.menu-toggle span.bar {
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transform-origin: 100% 0;
  transition: transform .3s cubic-bezier(.645,.045,.355,1) .1s;
}

.menu-toggle span.bar:first-child {
  top: -7px;
}

.menu-toggle span.bar:nth-child(2) {
  top: 0;
  transform-origin: 0 0;
}

.menu-toggle span.bar:nth-child(3) {
  top: 7px;
  transform-origin: 100% 100%;
}

.menu-toggle.active > .inner {
  transform: rotate(180deg) translate3d(0, -2px, 0);
}

.menu-toggle.active span.bar {
  background: var(--evia-yellow);
  transition-delay: 0s;
}

.menu-toggle.active span.bar:first-child {
  transform: rotate(45deg) scaleX(.4) translate3d(14.142px, 5.657px, 0);
}

.menu-toggle.active span.bar:nth-child(2) {
  transform: scaleX(.92);
}

.menu-toggle.active span.bar:nth-child(3) {
  transform: rotate(-45deg) scaleX(.4) translate3d(14.142px, -5.657px, 0);
}

.mobile-navigation {
  position: fixed;
  z-index: 1001;
  top: 4rem;
  right: 0;
  bottom: 0;
  left: 0;
  visibility: hidden;
  overflow-y: auto;
  padding: 2rem 1.75rem 3rem;
  background: var(--evia-black);
  color: #fff;
  opacity: 0;
}

.admin-bar .mobile-navigation {
  top: calc(4rem + 32px);
}

.mobile-navigation.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-navigation > ul {
  display: grid;
  gap: 1.75rem;
}

.mobile-navigation a,
.mobile-navigation .mobile-group-title {
  display: block;
  font-family: "Space Grotesk", Arial, sans-serif;
  text-decoration: none;
}

.mobile-navigation > ul > li > a {
  font-size: 1.25rem;
}

.mobile-group-title {
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,.45);
}

.mobile-submenu {
  display: grid;
  gap: 0.85rem;
}

.mobile-submenu a {
  font-size: 1.125rem;
}

.blog-hero {
  min-height: 44rem;
  margin-top: -4rem;
  padding-block: 8rem 4rem;
  background: var(--evia-yellow);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 2.5rem;
  color: var(--evia-muted-text);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.blog-hero .breadcrumbs {
  display: block;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--evia-black);
}

.breadcrumb-chevron {
  display: block;
  width: .875rem;
  height: .875rem;
}

.blog-hero h1 {
  max-width: 11ch;
  margin-bottom: 2.25rem;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 2.5rem;
  letter-spacing: -0.08em;
}

.blog-hero p {
  max-width: var(--evia-copy);
  margin: 0;
  color: var(--evia-muted-text);
  font-size: 1rem;
  line-height: 1.5;
}

.outline-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: .5rem;
  margin-top: 2.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--evia-black);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.25rem;
  text-decoration: none;
}

.outline-button-icon {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
}

.posts-section {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  background: var(--evia-muted);
}

.posts-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(10,11,13,.2);
}

.posts-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.posts-heading p {
  margin: 0;
  color: var(--evia-muted-text);
}

.posts-grid {
  display: grid;
  gap: 2rem;
}

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-bottom: 4px solid var(--evia-yellow);
  background: #fff;
}

.post-card-link {
  color: inherit;
  text-decoration: none;
}

.post-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #171716;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,.35);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.25rem;
  place-content: center;
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
}

.post-meta {
  margin: 0;
  color: var(--evia-muted-text);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 1rem 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.post-card-link:hover h2 {
  color: var(--evia-yellow-dark);
}

.post-card-excerpt {
  margin: 0 0 1.5rem;
  color: var(--evia-muted-text);
  line-height: 1.65;
}

.read-more {
  margin-top: auto;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--evia-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.pagination {
  margin-top: 3rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination .page-numbers {
  display: grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--evia-black);
  text-decoration: none;
  place-content: center;
}

.pagination .current,
.pagination a:hover {
  background: var(--evia-black);
  color: var(--evia-yellow);
}

.article-shell {
  width: min(calc(100% - 2rem), 56rem);
  margin-inline: auto;
}

body.single-post main > article {
  margin-top: -4rem;
}

.article-header {
  padding-block: 8rem 3.5rem;
}

.article-header .breadcrumbs {
  display: block;
}

.article-header h1 {
  margin: 1.25rem 0 0;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 2.5rem;
  letter-spacing: -0.075em;
}

.article-featured-image {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #171716;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding-block: var(--evia-article-padding);
  color: #303330;
  font-size: 1.075rem;
  line-height: 1.8;
}

.article-content > :first-child {
  margin-top: 0;
}

.article-content h2 {
  margin: 3.75rem 0 1.25rem;
  color: var(--evia-black);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.article-content h3 {
  margin: 2.75rem 0 1rem;
  color: var(--evia-black);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content figure,
.article-content table {
  margin-top: 0;
  margin-bottom: var(--evia-article-block-spacing);
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
}

.article-content a {
  color: var(--evia-black);
  font-weight: 600;
  text-decoration-color: var(--evia-yellow);
  text-decoration-thickness: .16rem;
  text-underline-offset: .2rem;
}

.article-content blockquote {
  margin-inline: 0;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 5px solid var(--evia-yellow);
  color: var(--evia-black);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.article-content th,
.article-content td {
  min-width: 10rem;
  padding: .9rem 1rem;
  border: 1px solid var(--evia-border);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--evia-yellow);
  color: var(--evia-black);
  font-family: "Space Grotesk", Arial, sans-serif;
}

.article-back {
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.article-back a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  text-decoration-color: var(--evia-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.article-back svg {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
}

.empty-state {
  max-width: 44rem;
  padding-block: 5rem;
}

.empty-state h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.075em;
}

.search-form {
  display: flex;
  max-width: 40rem;
  margin-top: 2rem;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 3rem;
  padding: .75rem 1rem;
  border: 1px solid var(--evia-black);
  background: #fff;
}

.search-submit {
  padding-inline: 1.5rem;
  border: 1px solid var(--evia-yellow);
  background: var(--evia-yellow);
  color: var(--evia-black);
  font-weight: 600;
}

.site-footer {
  background: var(--evia-black);
  color: #fff;
}

.site-footer > .shell {
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.footer-main {
  display: grid;
  gap: 3.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-brand img {
  width: 13rem;
  margin-bottom: 1.75rem;
}

.footer-brand p {
  max-width: 28rem;
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.5rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2.5rem;
}

.footer-column-title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--evia-yellow);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
}

.footer-column ul {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  line-height: 1.25rem;
}

.footer-column a {
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-column a.is-active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--evia-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-quote {
  color: #fff;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.75rem;
  text-decoration-color: var(--evia-yellow);
  text-underline-offset: 8px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  line-height: 1.428571;
}

.footer-bottom p {
  margin: 0;
}

.footer-info {
  color: rgba(255,255,255,.55);
  font-size: .875rem;
  line-height: inherit;
}

.footer-copyright {
  margin-bottom: 1rem !important;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-address {
  text-decoration: underline !important;
  text-decoration-color: var(--evia-yellow) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: .25rem;
}

.footer-address:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
}

.footer-legal a:hover {
  color: #fff;
}

@media (min-width: 48rem) {
  .shell,
  .article-shell {
    width: min(calc(100% - 4rem), var(--evia-wide));
  }

  .blog-hero h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .article-header {
    padding-top: 10rem;
  }

  .article-header h1 {
    font-size: 3.75rem;
    line-height: 1;
  }

  .article-shell {
    max-width: 56rem;
  }

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

  .footer-columns {
    grid-template-columns: repeat(4, minmax(0,1fr));
  }

  .footer-quote {
    font-size: 1.25rem;
  }
}

@media (min-width: 64rem) {
  .desktop-navigation {
    display: flex;
  }

  .mobile-actions,
  .mobile-navigation {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 2.4fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

@media (min-width: 80rem) {
  .blog-hero h1 {
    font-size: 3.75rem;
  }

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

  .desktop-navigation {
    gap: 2.5rem;
  }

  .footer-quote {
    font-size: 1.5rem;
    line-height: 2rem;
  }

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

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .mobile-navigation {
    top: calc(4rem + 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
