/*
Theme Name: Indo Surf Trips Standalone
Theme URI: https://indosurftrips.com/
Author: Jeff
Author URI: https://indosurftrips.com/
Description: Thème WordPress ultra-light et autonome, inspiré du template statique Indo Surf Trips.
Version: 1.0.0
Text Domain: indosurftrips-standalone
*/

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: linear-gradient(118deg, #e0f2fe 0, #f9fafb 45%, #fffbe9 100%);
  line-height: 1.6;
}

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

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* LAYOUT GÉNÉRAL */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main#top {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, #e0f2fe 0, #f9fafb 45%, #fffbe9 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;   /* plus de hauteur */
  min-height: 86px;          /* garde une hauteur cohérente même si peu de contenu */
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f97316, #0ea5e9);
  box-shadow: 0 0 0 3px rgba(248, 250, 252, 0.6);
}

.brand-text-main {
  font-family: "Pacifico", system-ui, cursive;
  font-size: 1.1rem;
  line-height: 1.1;
  color: #0f172a;
}

.brand-text-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  padding: 0.35rem 0;
  border-radius: 999px;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    padding 0.15s ease;
}

.nav-link:hover {
  background-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.35);
  padding-inline: 0.8rem;
  text-decoration: none;
}

.nav-link-active {
  background: linear-gradient(120deg, #22c55e, #0ea5e9);
  color: #ffffff;
  padding-inline: 0.9rem;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.45);
}

/* Bouton Blog dans le header */
.nav-link-blog {
  background: #00e0b8;
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.nav-link-blog:hover {
  background: #00c9a4;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #0f172a;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* SHELL ARTICLE (LISTE & SINGLE) */

.article-shell {
  margin-top: 1.5rem;
}

.article-header {
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}

.article-header-inner {
  width: 100%;
  max-width: 1100px;
}

/* BREADCRUMB (Rank Math) */

.breadcrumb-wrapper {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.breadcrumb-wrapper .rank-math-breadcrumb {
  margin: 0;
}

.breadcrumb-wrapper a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb-wrapper a:hover {
  color: #0f766e;
  text-decoration: underline;
}

/* TITRE ARTICLE */
.article-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.article-meta {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

.article-container {
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

/* Liste de posts — grille */

.article-list {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Card de contenu (single) */

.article-content {
  width: 100%;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.25);
}

/* TYPO ARTICLE */

.article-content p {
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.article-content h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem;
  color: #0f172a;
}

.article-content h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: #0f172a;
}

.article-content ul,
.article-content ol {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.article-content li {
  margin-bottom: 0.3rem;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #0ea5e9;
  background: #f0f9ff;
  color: #0f172a;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: #e5e7eb;
  padding: 0.1rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
}

/* TABLES ARTICLE */

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.article-content th {
  background: #f9fafb;
  font-weight: 600;
}

/* IMAGE À LA UNE SUR LES PAGES ARTICLE */

.single-thumb-wrapper {
  margin: 0 0 1.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
}

.single-thumb {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* LISTE BLOG — CARDS */

.post-card {
  background: #ffffff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
}

.post-card-thumb-wrapper {
  display: block;
  overflow: hidden;
}

.post-card-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card-content {
  padding: 1.4rem 1.7rem 1.6rem;
}

.post-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.post-card-category {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0, 224, 184, 0.12);
  color: #047857;
  font-weight: 600;
}

.post-card-reading {
  font-size: 0.8rem;
  color: #6b7280;
}

.post-card-title {
  font-size: 1.25rem;
  margin: 0.4rem 0 0.25rem;
}

.post-card-title a {
  color: #064e3b;
}

.post-card-title a:hover {
  text-decoration: none;
  color: #047857;
}

.post-card-meta {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.article-excerpt p {
  margin-bottom: 0;
}

.post-card-footer {
  margin-top: 1rem;
}

.post-card-readmore {
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f766e;
}

.post-card-readmore:hover {
  color: #0d9488;
  text-decoration: none;
}

/* PAGINATION */

.pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin: 0 0.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid #d1d5db;
  color: #374151;
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: linear-gradient(120deg, #22c55e, #0ea5e9);
  color: #0f172a;
  border-color: transparent;
}

.pagination .page-numbers:hover {
  background-color: #e5e7eb;
  text-decoration: none;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.75rem 1.5rem 2rem;
  background: #ffffff;
  color: #111827;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand-text {
  margin: 0.75rem 0 0;
  max-width: 380px;
  font-size: 0.9rem;
  color: #6b7280;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  text-align: right;
}

.footer-copy {
  color: #6b7280;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;   /* même taille que footer-brand-text */
  color: #6b7280;      /* même couleur que footer-brand-text */
}


.footer-credit-icon {
  width: 18px;
  height: 18px;
  fill: #e0115f; /* rubis */
}


/* 2 COLONNES SUR DESKTOP */

@media (min-width: 1024px) {
  .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RESPONSIVE MOBILE */

@media (max-width: 768px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    margin-top: 0.4rem;
    padding: 0.6rem;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .article-header {
    padding-inline: 1rem;
  }

  .article-header-inner {
    max-width: 100%;
  }

  .article-container {
    padding-inline: 1rem;
  }

  .article-list {
    max-width: 100%;
  }

  .article-content {
    max-width: 100%;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .post-card-thumb {
    height: 200px;
  }

  .footer-inner {
    text-align: left;
  }

  .footer-meta {
    text-align: left;
    align-items: flex-start;
  }
}

/* MENU HEADER ET FOOTER */
.footer-menu {
  list-style: none;
  margin: 0 0 0.25rem;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
}

.footer-menu a:hover {
  color: #0f766e;
  text-decoration: underline;
}
