/* =========================================================================
   SEIDO PARTNERS — main.css
   Couleur de thème : #042353
   ========================================================================= */

:root {
  --navy: #042353; /* couleur de thème demandée */
  --navy-700: #06306f;
  --navy-900: #021024; /* fond profond pour le dégradé */
  --bg-deep: #020c1f;
  --accent: #2d7dff; /* bleu vif des boutons */
  --accent-600: #1f6af0;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --muted-2: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-brd: rgba(255, 255, 255, 0.16);

  --header-h: 96px;
  --container: 1320px;
  --radius: 999px;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset léger ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--white);
  background:
    radial-gradient(
      1200px 800px at 85% 12%,
      rgba(45, 125, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 12% 90%,
      rgba(45, 125, 255, 0.1),
      transparent 55%
    ),
    linear-gradient(
      160deg,
      var(--navy-900) 0%,
      var(--navy) 55%,
      var(--bg-deep) 100%
    );
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
}
a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =========================================================================
   HEADER FIXE
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    min-height 0.35s var(--ease);
}
/* État "scrollé" : fond glassy + condensé */
.site-header.is-scrolled {
  min-height: 72px;
  background: rgba(4, 35, 83, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__brand {
  flex: 0 0 auto;
}
.site-header__brand .custom-logo-link {
  display: inline-flex;
}
.site-header__brand img {
  max-height: 46px;
  width: auto;
}

.site-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.5px;
  color: var(--white);
}

/* ---------- Navigation principale ---------- */
.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.seido-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 44px;
}
.seido-menu li {
  position: relative;
}
.seido-menu a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--white);
  opacity: 0.92;
  padding: 6px 0;
}
.seido-menu a:hover,
.seido-menu .current-menu-item > a {
  opacity: 1;
  color: #bcd4ff;
}
.seido-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.seido-menu a:hover::after,
.seido-menu .current-menu-item > a::after {
  width: 100%;
}

/* sous-menus */
.seido-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(4, 35, 83, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s var(--ease);
  backdrop-filter: blur(10px);
}
.seido-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  top: 120%;
}
.seido-menu .sub-menu a {
  display: block;
  padding: 9px 22px;
  font-size: 16px;
}
.seido-menu .sub-menu a::after {
  display: none;
}

/* ---------- Actions header ---------- */
.site-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-header__cta {
  white-space: nowrap;
}

.site-header__lang {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--white);
}
.site-header__lang:hover {
  color: #bcd4ff;
}

/* Sélecteur de langue (Polylang / WPML) */
.lang-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
}
.lang-switcher__item {
  display: flex;
  align-items: center;
}
.lang-switcher__item + .lang-switcher__item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}
.lang-switcher__item a {
  color: rgba(255, 255, 255, 0.6);
}
.lang-switcher__item a:hover {
  color: #fff;
}
.lang-switcher__item.is-current a {
  color: #fff;
}

.site-header__search {
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  opacity: 0.9;
}
.site-header__search:hover {
  opacity: 1;
  color: #bcd4ff;
}

/* Burger (mobile) */
.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: 10px;
  cursor: pointer;
}
.site-header__burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s var(--ease);
}
.site-header__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header__burger.is-open span:nth-child(2) {
  opacity: 0;
}
.site-header__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Recherche déroulante ---------- */
.site-search {
  border-top: 1px solid var(--line);
  background: rgba(2, 16, 36, 0.9);
  backdrop-filter: blur(10px);
}
.site-search__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 40px;
}

/* =========================================================================
   BOUTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 30px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn svg {
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(45, 125, 255, 0.35);
}
.btn--primary:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(45, 125, 255, 0.45);
}

.btn--ghost {
  background: var(--glass);
  color: #fff;
  border-color: var(--glass-brd);
  backdrop-filter: blur(6px);
  padding: 13px 28px;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* =========================================================================
   HERO (page d'accueil par défaut)
   ========================================================================= */
.site-content {
  padding-top: var(--header-h);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.hero__title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800;
  margin: 0 0 26px;
  max-width: 16ch;
  animation: seido-rise 0.8s var(--ease) both;
}
.hero__subtitle {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 38px;
  animation: seido-rise 0.8s 0.12s var(--ease) both;
}
.hero__cta {
  animation: seido-rise 0.8s 0.24s var(--ease) both;
}

/* Grand "ō" décoratif à droite */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(360px, 46vw, 760px);
  line-height: 0.8;
  color: rgba(120, 150, 255, 0.12);
  user-select: none;
  animation: seido-float 9s ease-in-out infinite;
}
/* Vague de points en bas à gauche */
.hero__dots {
  position: absolute;
  left: -60px;
  bottom: -40px;
  width: 60%;
  height: 60%;
  background-image: radial-gradient(
    rgba(150, 180, 255, 0.45) 1.4px,
    transparent 1.6px
  );
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(
    140% 120% at 0% 100%,
    #000 30%,
    transparent 62%
  );
  mask-image: radial-gradient(140% 120% at 0% 100%, #000 30%, transparent 62%);
  transform: rotate(-14deg);
  opacity: 0.5;
}

.hero__hint {
  max-width: var(--container);
  margin: -40px auto 60px;
  padding: 14px 40px;
  font-size: 14px;
  color: var(--muted-2);
}

@keyframes seido-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes seido-float {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(-54%);
  }
}

/* =========================================================================
   CONTENU GÉNÉRIQUE
   ========================================================================= */
.site-main {
  padding-top: 60px;
  padding-bottom: 90px;
}

.page-content {
  padding-bottom: 60px;
}

.entry-content {
  font-size: 18px;
  color: var(--muted);
}
.entry-content h2,
.entry-content h3 {
  color: #fff;
  margin-top: 1.6em;
}
.entry-content a {
  color: #9cc0ff;
  text-decoration: underline;
}

.single__header {
  padding: 30px 0 24px;
}
.single__title {
  font-size: clamp(30px, 4vw, 52px);
}
.single__meta {
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.single__thumb {
  margin: 0 0 30px;
  border-radius: 18px;
  overflow: hidden;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 125, 255, 0.5);
}
.card__thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card__body {
  padding: 22px 24px 26px;
}
.card__title {
  font-size: 22px;
  margin: 0 0 10px;
}
.card__excerpt {
  color: var(--muted);
  font-size: 15px;
}
.card__more {
  display: inline-block;
  margin-top: 14px;
  color: #9cc0ff;
  font-weight: 600;
}

.error-404 {
  text-align: center;
  padding: 120px 0;
}
.error-404__code {
  font-size: clamp(80px, 16vw, 180px);
  margin: 0;
  color: rgba(255, 255, 255, 0.1);
}
.error-404__text {
  color: var(--muted);
  margin: 0 0 28px;
}

/* Formulaire de recherche */
.search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
}
.search-form__field {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-brd);
  background: var(--glass);
  color: #fff;
  font-size: 16px;
}
.search-form__field::placeholder {
  color: var(--muted-2);
}
.search-form__field:focus {
  outline: none;
  border-color: var(--accent);
}
.search-form__submit {
  padding: 0 26px;
  border-radius: var(--radius);
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  --accent-soft: #4f93ff;
  margin-top: 80px;
  background: linear-gradient(180deg, #05123a 0%, #0a2566 100%);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 40px 50px;
}

/* ---- Ligne 1 : nav + newsletter ---- */
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 70px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px 20px;
}
.footer-menu a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  opacity: 0.95;
}
.footer-menu a:hover {
  color: var(--accent-soft);
}

/* Newsletter */
.footer-news__title {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 26px;
}
.footer-news__form {
  display: flex;
  align-items: flex-end;
  gap: 22px;
}
.footer-news__input {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 22px;
  font-family: var(--font-body);
  padding: 6px 2px 14px;
}
.footer-news__input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}
.footer-news__input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.footer-news__btn {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(45, 125, 255, 0.4);
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease);
}
.footer-news__btn:hover {
  background: var(--accent-600);
  transform: translateY(-2px) scale(1.04);
}
.footer-news__btn svg {
  transform: rotate(0deg);
}

/* ---- Ligne 2 : logo + réseaux + légal ---- */
.footer-bottom {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 30px 60px;
}
.footer-bottom__brand {
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer-bottom__brand .site-logo {
  font-size: 40px;
  font-weight: 800;
}
.footer-bottom__brand img {
  max-height: 48px;
  width: auto;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social__link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.footer-social__link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-legal__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 56px;
}
.footer-legal__menu a {
  font-size: 14px;
  color: var(--accent-soft);
}
.footer-legal__menu a:hover {
  color: #fff;
}

.footer-copy {
  margin: 50px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

/* =========================================================================
   MENU MOBILE
   ========================================================================= */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  padding: calc(var(--header-h) + 20px) 30px 40px;
  background: linear-gradient(160deg, var(--navy-900), var(--navy));
  overflow-y: auto;
}
.mobile-nav__menu {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav__menu li {
  border-bottom: 1px solid var(--line);
}
.mobile-nav__menu a {
  display: block;
  padding: 18px 4px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
}
.mobile-nav__menu .sub-menu {
  list-style: none;
  padding-left: 16px;
}
.mobile-nav__cta {
  width: 100%;
  justify-content: center;
}
.mobile-nav__lang {
  margin-top: 26px;
}
.mobile-nav__lang .lang-switcher {
  font-size: 20px;
}
.mobile-nav__lang .site-header__lang {
  font-size: 20px;
}
body.menu-open {
  overflow: hidden;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .site-header__inner,
  .site-search__inner,
  .hero__inner,
  .site-footer__inner,
  .container,
  .hero__hint {
    padding-left: 28px;
    padding-right: 28px;
  }
  .seido-menu {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .site-nav,
  .site-header__cta,
  .site-header__lang,
  .site-header__actions .lang-switcher {
    display: none;
  }
  .site-header__burger {
    display: flex;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero__mark {
    right: -10%;
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  :root {
    --header-h: 76px;
  }
  .site-header__actions {
    gap: 12px;
  }
  .hero__title {
    font-size: clamp(30px, 8vw, 40px);
  }
}

/* Accessibilité : réduction des animations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
