/* Styles minimalistes pour le blog Smilo, cohérents avec un thème sombre + accents turquoise */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: #0f172a;
  color: #e5e7eb; /* gray-200 */
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
}

a {
  color: hsl(175, 77%, 43%); /* primary */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1; /* Push footer down */
  width: 100%;
  box-sizing: border-box;
}

.article-header {
  margin-bottom: 2rem;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.article-back-link:hover {
  color: hsl(175, 77%, 43%); /* primary */
}

.article-cover-wrapper {
  margin-bottom: 1.75rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.18), transparent);
}

.article-cover {
  width: 100%;
  display: block;
  max-height: 340px;
  object-fit: cover;
}

.article-title {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.article-meta {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #9ca3af; /* gray-400 */
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag {
  border-radius: 9999px;
  border: 1px solid rgba(45, 212, 191, 0.5);
  padding: 0.2rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(45, 212, 191, 0.95);
  background: rgba(45, 212, 191, 0.12);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.tag:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.75);
  text-decoration: none;
}

.article-content {
  margin-top: 2.5rem;
  line-height: 1.7;
}

.article-content h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: hsl(175, 77%, 43%); /* primary */
}

.article-content p {
  margin-top: 0.9rem;
}

.article-content ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.article-content li {
  margin-top: 0.4rem;
}

.blockquote {
  border-left: 3px solid hsl(175, 77%, 43%); /* primary */
  padding-left: 0.75rem;
  margin-top: 1rem;
  color: hsl(175, 77%, 43%); /* primary */
  font-style: italic;
}

.cta-smilo {
  margin-top: 3rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.14), transparent),
    rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.75rem 1.5rem;
}

.cta-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: hsl(175, 77%, 43%); /* primary */
  margin-bottom: 0.3rem;
  margin-top: 0;
}

.cta-text {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-bottom: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 1rem;
  background-color: hsl(175, 77%, 43%); /* primary */
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cta-button:hover {
  background-color: hsla(175, 77%, 43%, 0.9);
  text-decoration: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
}

.cta-button:active {
  transform: scale(0.98);
}

.blog-list-item {
  padding: 1.25rem 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.blog-list-item-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.blog-list-item-link:hover {
  text-decoration: none;
}

.blog-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .blog-list-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-list-section {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-list-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: hsl(175, 77%, 43%); /* primary */
}

.blog-list-meta {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.blog-list-desc {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.blog-list-thumb-wrapper {
  margin-bottom: 0.9rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.blog-list-thumb {
  width: 100%;
  display: block;
  max-height: 180px;
  object-fit: cover;
}

.blog-layout-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.blog-layout-intro {
  margin-top: 0.9rem;
  color: #9ca3af;
  font-size: 0.95rem;
}

.blog-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.blog-index-header-text {
  flex: 1 1 0;
}

.blog-index-hero-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-index-hero {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .blog-index-hero {
    width: 160px;
    height: 160px;
  }
}

.blog-tags-section {
  margin-top: 2.5rem;
}

.blog-tags-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.blog-list-section {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header-inner {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0.25rem 1.25rem; /* py-1 px-5 */
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}

@media (min-width: 768px) {
  .site-header-inner {
    padding: 0.5rem 1.5rem; /* md:px-6 */
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .site-header-inner {
    padding-left: 2rem; /* lg:px-8 */
    padding-right: 2rem;
  }
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-icon {
  width: 40px;
  height: 40px;
}

.site-logo {
  height: 3.5rem; /* h-14 */
  width: auto;
}

@media (min-width: 768px) {
  .site-logo {
    height: 5rem; /* h-20 */
  }
}

.site-header-actions {
  display: flex;
  align-items: center;
}

.nav-cta {
  background-color: #ffffff;
  color: #0f172a;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem; /* rounded-xl */
  font-size: 0.875rem; /* text-sm */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em; /* tracking-wide */
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 0px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 0 0 rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background-color: #f3f4f6; /* hover:bg-gray-100 */
  text-decoration: none;
}

.nav-cta:active {
  box-shadow: none;
  transform: translateY(2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  font-weight: 700;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
  
  /* Match SecondaryButton.tsx styles */
  background-color: transparent;
  border: 2px solid hsl(175, 77%, 43%); /* border-primary */
  color: hsl(175, 77%, 43%); /* text-primary */
  
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem; /* text-xs */
  line-height: 1rem; /* leading-4 */
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
  font-family: inherit;
  white-space: nowrap;
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

@media (min-width: 768px) {
  .btn-secondary {
    font-size: 1rem; /* text-base */
    line-height: 1.5rem; /* leading-6 */
  }
}

.btn-secondary:hover {
  background-color: hsl(175, 77%, 43%); /* hover:bg-primary */
  color: #ffffff; /* hover:text-white */
  border-color: hsl(175, 77%, 43%);
  text-decoration: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* hover:shadow-xl */
}

.btn-secondary:active {
  transform: scale(0.95); /* active:scale-95 */
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  padding: 4rem 1.5rem 6rem; /* increased bottom padding */
  background-color: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 2.5rem 3rem 6rem;
  }
}

.site-footer-inner {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-brand {
  grid-column: span 2;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.5;
}

@media (min-width: 768px) {
  .footer-col-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  height: 4.5rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .footer-logo {
    height: 4.5rem;
  }
}

.copyright {
  font-size: 0.75rem; /* text-xs */
  color: #6b7280; /* gray-500 */
  margin: 0;
  line-height: 1.5;
}

.footer-title {
  font-size: 0.75rem; /* text-xs */
  font-weight: 700;
  color: white;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .footer-title {
    font-size: 0.875rem; /* text-sm */
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li a {
  font-size: 0.75rem; /* text-xs */
  color: #9ca3af; /* gray-400 */
  transition: color 0.2s;
  text-decoration: none;
}

@media (min-width: 768px) {
  .footer-links li a {
    font-size: 0.875rem; /* text-sm */
  }
}

.footer-links li a:hover {
  color: hsl(175, 77%, 43%); /* primary */
  text-decoration: underline;
}

.footer-social-row {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}

.footer-social {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(229, 231, 235, 0.9);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.footer-social:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.footer-social-placeholder {
  cursor: pointer;
}

.site-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-bottom-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.55);
}

@media (min-width: 768px) {
  .site-footer-bottom-inner {
    flex-direction: row;
  }
}

.site-footer-copy {
  margin: 0;
}

/* Sticky Disclaimer */
.sticky-disclaimer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
}

.sticky-disclaimer-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  font-weight: 600;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .sticky-disclaimer-inner {
    font-size: 0.875rem;
  }
}

.disclaimer-icon {
  color: hsl(175, 77%, 43%); /* primary */
  font-size: 1.125rem;
}
