@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,300..700&display=swap');

/* --- TYPOGRAPHIE ET DESIGN SYSTEM MEDIUM / KESSEL --- */
:root {
  --blog-text-color: #242424;
  --blog-title-color: #111827;
  --blog-muted-color: #6b7280;
  --blog-accent-blue: #0033cc;
  --blog-bg-light: #f9fafb;
  --blog-card-border: #e5e7eb;
  --blog-font-serif: 'Source Serif 4', Georgia, serif;
  --blog-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- CARTES ET GRILLES DU JOURNAL (INDEX & BLOG PAGE) --- */
.journal-section {
  padding: 40px 0 80px 0;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.journal-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--blog-card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 51, 204, 0.08);
}

.journal-card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.journal-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.journal-card:hover .journal-card-image {
  transform: scale(1.04);
}

.journal-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journal-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--blog-font-sans);
  font-size: 0.875rem;
  color: var(--blog-muted-color);
}

.journal-tag {
  background-color: #eef2ff;
  color: var(--blog-accent-blue);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.journal-card-title {
  font-family: var(--blog-font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blog-title-color);
  margin: 0 0 12px 0;
  transition: color 0.2s ease;
}

.journal-card:hover .journal-card-title {
  color: var(--blog-accent-blue);
}

.journal-card-excerpt {
  font-family: var(--blog-font-serif);
  font-size: 0.975rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--blog-font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blog-accent-blue);
}

.journal-card-link svg {
  transition: transform 0.2s ease;
}

.journal-card:hover .journal-card-link svg {
  transform: translateX(4px);
}

/* --- ARTICLE DETAIL PAGE (STYLE MEDIUM / KESSEL) --- */
.article-page {
  background-color: #ffffff;
  color: var(--blog-text-color);
  font-family: var(--blog-font-serif);
  min-height: 100vh;
}

.article-nav-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--blog-font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background-color: #f9fafb;
  transition: all 0.2s ease;
}

.article-back-link:hover {
  background-color: #f3f4f6;
  color: var(--blog-accent-blue);
}

.article-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 24px 100px 24px;
}

.article-header {
  margin-bottom: 40px;
  text-align: left;
}

.article-category {
  display: inline-block;
  font-family: var(--blog-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blog-accent-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.article-title {
  font-family: var(--blog-font-sans);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--blog-title-color);
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.85rem;
  }
}

.article-subtitle {
  font-family: var(--blog-font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 28px 0;
  font-style: italic;
}

.article-author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  font-family: var(--blog-font-sans);
}

.article-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--blog-accent-blue);
}

.article-author-info {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--blog-title-color);
}

.article-author-date {
  font-size: 0.875rem;
  color: var(--blog-muted-color);
}

.article-cover-wrapper {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

.article-body {
  font-size: 1.2rem;
  line-height: 1.85;
  color: #242424;
}

.article-body p {
  margin-bottom: 28px;
  letter-spacing: -0.003em;
}

.article-body h2 {
  font-family: var(--blog-font-sans);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blog-title-color);
  margin: 48px 0 20px 0;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.article-body h3 {
  font-family: var(--blog-font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blog-title-color);
  margin: 36px 0 16px 0;
  line-height: 1.35;
}

.article-body blockquote {
  margin: 36px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--blog-accent-blue);
  background-color: #f8fafc;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.25rem;
  color: #1e293b;
}

.article-body blockquote p {
  margin: 0;
}

.formula-box {
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  padding: 20px 24px;
  border-radius: 12px;
  margin: 32px 0;
  font-family: monospace;
  font-size: 1.2rem;
  text-align: center;
  color: #1e1b4b;
  font-weight: bold;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin: 32px 0;
  font-family: var(--blog-font-sans);
}

.specs-item {
  display: flex;
  flex-direction: column;
}

.specs-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--blog-muted-color);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.specs-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blog-title-color);
  margin-top: 4px;
}

.article-body ul, .article-body ol {
  margin: 24px 0 28px 24px;
}

.article-body li {
  margin-bottom: 12px;
}

.article-footer-author {
  margin-top: 60px;
  padding: 32px;
  background-color: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  display: flex;
  gap: 20px;
  align-items: center;
}

.article-footer-author img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.article-footer-author h4 {
  font-family: var(--blog-font-sans);
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: var(--blog-title-color);
}

.article-footer-author p {
  font-family: var(--blog-font-sans);
  font-size: 0.95rem;
  color: var(--blog-muted-color);
  margin: 0;
  line-height: 1.5;
}

/* --- NOTION-LIKE MEDIA BOOKMARKS --- */
.media-section {
  padding: 60px 0 80px 0;
}

.media-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.notion-bookmark {
  display: flex;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 110px;
}

.notion-bookmark:hover {
  transform: translateY(-2px);
  border-color: #0033cc;
  box-shadow: 0 8px 24px rgba(0, 51, 204, 0.08);
}

.notion-bookmark-content {
  padding: 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.notion-bookmark-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--blog-font-sans);
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 6px;
}

.notion-bookmark-publisher {
  font-weight: 700;
  color: #111827;
}

.notion-bookmark-dot {
  font-size: 0.7rem;
  color: #9ca3af;
}

.notion-bookmark-date {
  color: #6b7280;
}

.notion-bookmark-title {
  font-family: var(--blog-font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-bookmark:hover .notion-bookmark-title {
  color: #0033cc;
}

.notion-bookmark-desc {
  font-family: var(--blog-font-sans);
  font-size: 0.875rem;
  line-height: 1.45;
  color: #4b5563;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notion-bookmark-url {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--blog-font-sans);
  font-size: 0.78rem;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notion-bookmark-cover {
  width: 180px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
  border-left: 1px solid #e5e7eb;
  padding: 16px;
}

.notion-bookmark-cover img {
  width: 100%;
  height: 100%;
  max-width: 140px;
  max-height: 65px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.notion-bookmark:hover .notion-bookmark-cover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .notion-bookmark {
    flex-direction: column-reverse;
  }
  .notion-bookmark-cover {
    width: 100%;
    min-width: 100%;
    height: 160px;
  }
  .notion-bookmark-title {
    white-space: normal;
  }
}

/* --- HERO SOCIAL CALL TO ACTIONS --- */
.hero-cta-wrapper {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--blog-font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  letter-spacing: 0.2px;
}

/* Instagram button style */
.hero-cta-button.instagram-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(225, 48, 108, 0.6);
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.15);
}

.hero-cta-button.instagram-cta:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.35);
}

/* WhatsApp button style */
.hero-cta-button.whatsapp-cta {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(37, 211, 102, 0.6);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
}

.hero-cta-button.whatsapp-cta:hover {
  background: #25D366;
  border-color: #25D366;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.hero-cta-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero-cta-button:hover .hero-cta-icon {
  transform: scale(1.15);
}

@media (max-width: 576px) {
  .hero-cta-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-button {
    justify-content: center;
  }
}

/* --- ULTRA-FLUID GPU SCROLL ANIMATIONS --- */
html {
  scroll-behavior: smooth;
}

/* Force hardware acceleration on animated components */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Subtle staggered delays for list items */
.stagger-1 { transition-delay: 0.04s; }
.stagger-2 { transition-delay: 0.08s; }
.stagger-3 { transition-delay: 0.12s; }
.stagger-4 { transition-delay: 0.16s; }
.stagger-5 { transition-delay: 0.20s; }

/* Ultra smooth hover transitions for interactive cards */
.journal-card, .notion-bookmark, .home-services-card-wrapper, .bloc-frise {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
  will-change: transform;
}

.journal-card-image, .notion-bookmark-cover img, .image-expe, .image-6 {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.journal-card:hover .journal-card-image {
  transform: scale(1.04);
}

.notion-bookmark:hover .notion-bookmark-cover img {
  transform: scale(1.05);
}

.banner-cta, .hero-cta-button {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
              box-shadow 0.25s ease, 
              background-color 0.25s ease, 
              border-color 0.25s ease;
  will-change: transform;
}

.banner-cta:active, .hero-cta-button:active {
  transform: scale(0.97);
}

/* --- FLOATING TOP-RIGHT LANGUAGE SWITCHER --- */
.lang-switcher-floating {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 4px 6px;
  gap: 2px;
  font-family: var(--blog-font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.lang-switcher-floating .lang-option {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.lang-switcher-floating .lang-option:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.lang-switcher-floating .lang-option.active {
  background: #ffffff;
  color: #0033cc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.lang-switcher-floating .lang-divider {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .lang-switcher-floating {
    top: 16px;
    right: 16px;
  }
}

/* --- DONATION BANNER & HELLOASSO MODAL --- */
.donation-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0033CC;
  color: white;
  z-index: 9998;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.2);
  padding: 18px 0;
  font-family: var(--blog-font-sans);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.banner-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.banner-text {
  display: flex;
  flex-direction: column;
}

.banner-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.banner-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.banner-cta {
  background-color: #ffffff;
  color: #0033CC;
  border: none;
  padding: 12px 26px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.banner-cta:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  cursor: pointer;
  padding: 0 5px;
}

.banner-close:hover {
  color: white;
}

/* HELLOASSO MODAL OVERLAY */
.donation-overlay {
  display: none !important;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 25, 100, 0.85);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.donation-overlay.is-active {
  display: flex !important;
}

.donation-modal-content {
  background: white;
  width: 95%;
  max-width: 550px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.modal-close-btn {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 32px;
  border: none; background: none;
  cursor: pointer; color: #333;
  z-index: 10;
}

@media (max-width: 768px) {
  .banner-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .banner-title { font-size: 1.1rem; }
  .banner-cta { width: 100%; padding: 12px; }
  .banner-close { position: absolute; top: 5px; right: 10px; }
}
