/* ========================================
   FICHIER CSS UNIFIÉ POUR LE BLOG TCF CANADA
   Utilisé par : blog.index et blog.show
   ======================================== */

/* === PROTECTION DE LA NAVIGATION === */
nav .group .absolute {
  transition: all 0.7s ease-in-out !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(5px) !important;
}

nav .group:hover .absolute {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Éviter que d'autres scripts interfèrent avec la navigation */
nav, 
nav *, 
.navigation,
.navigation *,
header:not(.hero-section),
header:not(.hero-section) * {
  animation: none !important;
}

/* === ANIMATIONS COMMUNES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(-2px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.05);
  }
}

/* === STYLES DE BASE === */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* === HERO SECTION COMMUNE === */
.hero-section {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #0ea5e9 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section .hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

.hero-title {
  font-weight: 800;
  font-size: 1.8rem !important;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: heroFadeInUp 0.8s ease-out;
}

.hero-description {
  opacity: 0.95;
  color: white;
  line-height: 1.5;
  animation: heroFadeInUp 0.8s ease-out 0.2s both;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  animation: heroFadeInUp 0.8s ease-out 0.4s both;
}

.hero-badge {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  min-width: 0;
  flex-shrink: 1;
}

.hero-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.9);
  animation: heroFadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta-button {
  background: linear-gradient(45deg, #0ea5e9, #0284c7);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
  animation: heroFadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6);
}

/* === CARTES D'ARTICLES === */
.article-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: white;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-card:hover .read-more {
  transform: translateX(5px);
}

.article-image {
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

.read-more {
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 25px;
  white-space: nowrap;
}

/* === OVERLAYS === */
.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
  pointer-events: none;
}

.overlay-title {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 2;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.overlay-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(45deg, #3b82f6, #1e40af);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  z-index: 3;
}

/* === SIDEBAR === */
.sidebar-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid rgba(255,255,255,0.8);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.sidebar-title {
  color: #1e293b;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === PAGINATION === */
.pagination-wrapper .pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination-wrapper .page-item {
  border-radius: 10px;
  overflow: hidden;
}

.pagination-wrapper .page-link {
  padding: 12px 16px;
  background: white;
  color: #3b82f6;
  border: 2px solid #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.pagination-wrapper .page-link:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.pagination-wrapper .page-item.active .page-link {
  background: linear-gradient(45deg, #3b82f6, #1e40af);
  border-color: #3b82f6;
  color: white;
}

/* === CONTENU D'ARTICLE === */
.article-text {
  color: #374151;
  line-height: 1.7;
  font-size: 1rem;
}

.article-text * {
  color: #374151;
}

.article-text h1, .article-text h2, .article-text h3, .article-text h4, .article-text h5, .article-text h6 {
  color: #1e293b;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
}

.article-text h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-text h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  position: relative;
}

.article-text h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1e40af);
}

.article-text h3 {
  font-size: 1.4rem;
  color: #3b82f6;
}

.article-text h4 {
  font-size: 1.2rem;
  color: #1e40af;
}

.article-text p {
  margin: 1.5rem 0;
  line-height: 1.7;
}

.article-text ul, .article-text ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-text li {
  margin: 0.5rem 0;
}

.article-text ul li::marker {
  color: #3b82f6;
}

.article-text blockquote {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-left: 4px solid #3b82f6;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  color: #1e293b;
  font-style: italic;
  border-radius: 0 10px 10px 0;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.1);
}

.article-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-bottom 0.3s ease;
}

.article-text a:hover {
  border-bottom: 1px solid #3b82f6;
}

.article-text img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem auto;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article-text strong {
  font-weight: 700;
  color: #1e293b;
}

.article-text em {
  font-style: italic;
  color: #3b82f6;
}

.article-text code {
  background: #f1f5f9;
  color: #1e293b;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-text pre {
  background: #1e293b;
  color: #f1f5f9;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.article-text th, .article-text td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.article-text th {
  background: #f8fafc;
  font-weight: 700;
  color: #1e293b;
}

/* === CLASSES UTILITAIRES === */
.flex-no-overflow {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

.flex-shrink {
  flex-shrink: 1;
  min-width: 0;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-container {
  background: linear-gradient(180deg, #fafbff 0%, #f1f5f9 100%);
  min-height: 100vh;
  padding: 60px 20px;
}

/* === BOUTONS ET INTERACTIONS === */
button:hover, .btn:hover {
  transform: translateY(-2px);
}

button:focus, input:focus, textarea:focus, a:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

*:focus-visible {
  outline: 2px solid #3b82f6 !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* === FORMULAIRES === */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.newsletter-button {
  width: 100%;
  background: white;
  color: #3b82f6;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}
.btn-partage{
  background: white; 
  padding: 20px; 
  border-radius: 15px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
  margin-bottom: 40px; 
  border: 1px solid rgba(255,255,255,0.8);
}
.signature-article{
    margin-top: 40px; 
    padding: 25px; 
    background: linear-gradient(135deg, #f8fafc, #e2e8f0); 
    border-radius: 15px; 
    border-left: 4px solid #3b82f6;
  }
  .article-content{
    background: white; 
    padding: 50px; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    margin-bottom: 50px; 
    border: 1px solid rgba(255,255,255,0.8); 
    position: relative; 
    overflow: hidden;
  }
  .author-name-litterine{
    width: 60px; 
    height: 60px; 
    background: linear-gradient(45deg, #3b82f6, #1e40af); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-weight: bold; 
    font-size: 1.4rem;
  }
  .comments-section{
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); 
    padding: 60px 20px;
  }
  .comments-icon{
    width: 50px; 
    height: 50px; 
    background: linear-gradient(45deg, #3b82f6, #1e40af); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 20px;
  }
  .user-comments{
    background: white; 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
    padding: 40px; 
    border: 1px solid rgba(255,255,255,0.8);
  }
  .user-comments-litterine{
    width: 50px; 
    height: 50px; 
    background: linear-gradient(45deg, #3b82f6, #1e40af); 
    color: white; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    font-size: 1.2rem; flex-shrink: 0;
  }
  .comments-div{
    background: linear-gradient(135deg, #f8fafc, #f1f5f9); 
    border: 1px solid #e2e8f0; 
    border-radius: 15px; 
    padding: 25px; 
    margin-bottom: 20px; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden;
  }
/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 300px !important;
    gap: 30px !important;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .sidebar {
    margin-top: 40px;
    order: 2;
  }
  
  .main-content {
    order: 1;
  }
  
  .hero-title {
    font-size: 1.5rem !important;
  }
  
  .hero-section {
    padding: 15px 20px !important;
  }
  
  .article-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .filters-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }
  
  .filter-select {
    width: 100% !important;
  }
  
  .hero-badges {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }
  
  .hero-badge {
    width: 100% !important;
    max-width: 200px !important;
    text-align: center !important;
  }

  .hero-meta {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: center !important;
  }
  
  .hero-meta > div {
    width: 100% !important;
    max-width: 200px !important;
    justify-content: center !important;
  }
  .article-text {
    font-size: 0.90rem;
    color: blue;
  }
  
  .article-text h1 {
    font-size: 1.5rem;
    color: blue;
  }
  
  .article-text h2 {
    font-size: 1.3rem;
  }
  
  .article-text h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.4rem !important;
  }
  
  .hero-description {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }
  
  .hero-section {
    padding: 15px 5px !important;
  }
  
  .main-container {
    padding: 10px 5px !important;
  }
  .signature-article{
    margin-top: 20px; 
    padding: 5px; 
    border-radius: 10px; 
    border-left: 2px solid #3b82f6;
  }
  .article-content{
    padding: 5px; 
    border-radius: 10px; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.08); 
    margin-bottom: 20px; 
    
  }
  .author-name-litterine{
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    font-size: 1.2rem;
  }
  .comments-section{
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); 
    padding: 10px 5px;
  }
  .comments-icon{
    width: 35px; 
    height: 35px; 
    border-radius: 6px; 
    font-size: 16px;
  }
  .user-comments{
    border-radius: 10px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    padding: 5px; 
    
  }
  .user-comments-litterine{
    width: 40px; 
    height: 40px; 
    border-radius: 8px; 
    font-size: 1rem; 
  }
  .comments-div{
    border-radius: 10px; 
    padding: 10px; 
    margin-bottom: 10px; 
   
  }
  .article-card {
    margin-bottom: 20px !important;
  }
  
  .article-content-padding {
    padding: 20px !important;
  }
  
  .sidebar-card {
    padding: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .overlay-title {
    font-size: 1rem !important;
    line-height: 1.2 !important;
    -webkit-line-clamp: 2 !important;
  }
  
  .overlay-badge {
    font-size: 10px !important;
    padding: 6px 10px !important;
    top: 10px !important;
    left: 10px !important;
  }

  .article-text {
    font-size: 0.90rem;
    color: blue;
  }
  
  .article-text  h1 {
    font-size: 1.5rem;
    color: blue;
  }
  
  .article-text h2 {
    font-size: 1.3rem;
  }
  
  .article-text h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .main-container {
  padding: 0px 0px;
  margin: 0px;
}
.btn-partage{
  margin: 0px;
  padding: 5px; 
  border-radius: 10px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.08); 
  margin-bottom: 10px; 
  border: 1px solid rgba(255,255,255,0.8);
}
  .hero-title {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }
  
  .hero-description {
    font-size: 0.95rem !important;
  }
  
  .hero-section {
    padding: 20px 10px !important;
  }
  
  .article-grid {
    gap: 15px !important;
  }
  
  .article-image-container {
    height: 200px !important;
  }
  
  .sidebar-card {
    padding: 15px !important;
  }
  
  .sidebar-title {
    font-size: 1.2rem !important;
  }
  
  .pagination-wrapper .page-link {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }

  .hero-meta {
    gap: 8px !important;
  }
  
  .hero-meta > div {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  
  .hero-cta-button {
    padding: 10px 20px !important;
    font-size: 13px !important;
  }

  .article-text {
    font-size: 0.90rem;
    color: blue;
  }
  
  .article-text h1 {
    font-size: 1.5rem;
    color: blue;
  }
  
  .article-text h2 {
    font-size: 1.3rem;
  }
  
  .article-text h3 {
    font-size: 1.1rem;
  }

}

/* === OPTIMISATIONS PRINT === */
@media print {
  nav, #scroll-top, .hero-section {
    display: none !important;
  }
  
  .article-text {
    font-size: 12pt !important;
    line-height: 1.4 !important;
    color: #000 !important;
  }
  
  .article-text * {
    color: #000 !important;
  }
}

/* === RÉDUCTION MOUVEMENT === */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.article {
            background: white;
            margin: 10px 0;
            padding: 4px;
            border-radius: 5px;
            box-shadow: 0 5px 10px rgba(0,0,0,0.1);
           
        }
       
        .article-meta {
            background: #f8fafc;
            padding: 20px;
            border-radius: 12px;
            margin: 25px 0;
            border: 1px solid #e2e8f0;
        }
        .article-meta strong {
            color: #3b82f6;
        }
        
        
        p {
            margin: 8px 0;
            text-align: justify;
        }
        
       
        .reading-time {
            color: #64748b;
            font-size: 0.95rem;
        }
        
        .table-responsive {
            overflow-x: auto;
            margin: 20px 0;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        th, td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }
        th {
            background-color: #f8fafc;
            font-weight: 600;
            color: #374151;
        }
        .score-table {
            background: #f9fafb;
            border: 2px solid #e5e7eb;
        }
        .score-table th {
            background: #3b82f6;
            color: white;
        }
        

/* ====== Sommaire / Table of Contents ====== */
.toc-card{
  background:white;
  border:1px solid #e2e8f0;
  border-radius:16px;
  box-shadow:0 6px 20px rgba(0,0,0,0.06);
  padding:20px;
  margin:30px 0;
}
.toc-title{
  display:flex;align-items:center;gap:10px;
  font-weight:800;color:#1e293b;margin:0 0 12px 0;font-size:1.1rem;
}
.toc-desc{color:#64748b;font-size:13px;margin:0 0 12px 0}
.toc-list{list-style:none;margin:0;padding-left:0}
.toc-list li{margin:6px 0;line-height:1.5}
.toc-list a{
  margin-left: 15px;
  color:#3a5d97;text-decoration:none;font-weight:600;
  border-bottom:1px solid transparent;transition:border-color .2s ease;
}
.toc-list a:hover{border-color:#3b82f6}
.toc-h3{margin-left:16px;font-weight:500}
.toc-active > a{color:#1e40af}

/* Scrollspy (petit indicateur à gauche des h2/h3 actifs) */
.toc-anchor-target{
  scroll-margin-top: 100px; /* évite que le titre passe sous la navbar/hero */
}


/* ===== Boutons de partage ===== */
.share-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}
.share-title{
  color:#1e293b;
  margin:0;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.share-title i{ color:#3b82f6; }

/* Bouton de base */
.share-btn{
  border:none;
  padding:10px 20px;
  border-radius:25px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:600;
  color:#fff;
  box-shadow:0 4px 15px rgba(0,0,0,0.15);
  transition:transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  white-space:nowrap;
}
.share-btn:hover{ transform:translateY(-1px); }
.share-btn:active{ transform:translateY(0); opacity:.95; }
.share-btn:focus-visible{
  outline:2px solid #3b82f6;
  outline-offset:2px;
}

/* Variantes réseaux (dégradés) */
.share-btn--tw{ background:linear-gradient(45deg,#1da1f2,#0d8bd9); box-shadow:0 4px 15px rgba(29,161,242,.3); }
.share-btn--fb{ background:linear-gradient(45deg,#4267b2,#365899); box-shadow:0 4px 15px rgba(66,103,178,.3); }
.share-btn--li{ background:linear-gradient(45deg,#0077b5,#005582); box-shadow:0 4px 15px rgba(0,119,181,.3); }
.share-btn--cp{ background:linear-gradient(45deg,#6b7280,#4b5563); box-shadow:0 4px 15px rgba(107,114,128,.3); }

/* Responsive */
@media (max-width: 768px){
  .share-wrap{
    justify-content:stretch;
    row-gap:10px;
  }
  .share-title{
    width:100%;
    justify-content:center;
    margin-bottom:4px;
    font-size:1rem;
  }
  .share-btn{
    flex:1 1 calc(50% - 8px); /* 2 colonnes */
    min-width:140px;
  }
}

/* === FIX: boutons de partage compacts et non déformés sur mobile === */
@media (max-width: 480px){
  /* on gagne de la place */
  .share-title{ display: none !important; }

  /* une seule ligne ; défilement si vraiment trop serré */
  .share-wrap{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px; /* espace pour la barre de scroll éventuelle */
  }

  /* bouton = cercle 42x42, aucune extension */
  .share-btn{
    flex: 0 0 42px !important;   /* NE PAS s'étendre */
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;  /* écrase l'ancien min-width:140px */
    padding: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  /* icône seule */
  .share-btn span{ display: none !important; }
  .share-btn i{
    font-size: 18px !important;
    display: block !important;
  }

  .toc-list a{
  margin-left: 0px;
  font-size:0.9rem;
  
}
}


/* ===== Section FAQ ===== */
/* ===== Variables de couleur bleu ciel ===== */
:root {
  --sky-primary: #4FC3F7;
  --sky-light: #81D4FA;
  --sky-lighter: #B3E5FC;
  --sky-lightest: #E1F5FE;
  --sky-dark: #0288D1;
  --sky-gradient-start: #4FC3F7;
  --sky-gradient-end: #0288D1;
  --text-dark: #263238;
  --text-medium: #546E7A;
  --text-light: #78909C;
}


.faq-section {
  background: linear-gradient(180deg, #E1F5FE 0%, #ffffff 100%);
  padding: 60px 0;
}

/* Badge en-tête */
.faq-badge {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--sky-gradient-start) 0%, var(--sky-gradient-end) 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(79, 195, 247, 0.4);
  animation: float 3s ease-in-out infinite;
}

.faq-badge i {
  font-size: 36px;
  color: white;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.faq-header h2 {
  font-family: "Kumbh Sans", sans-serif;
  color: var(--text-dark);
  font-size: 32px;
  font-weight: 700;
  margin-top: 10px;
}

.faq-header .subheading {
  text-transform: uppercase;
  font-family: "Kumbh Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--sky-dark);
  letter-spacing: 2px;
}

.faq-header .lead {
  font-size: 18px;
  color: var(--text-medium);
  max-width: 900px;
  margin: 10px auto 0;
}

/* Accordéon FAQ */
.faq-accordion {
  margin-top: 50px;
}

.faq-item {
  background: white;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 4px 20px rgba(79, 195, 247, 0.12);
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: var(--sky-light);
  box-shadow: 0 8px 30px rgba(79, 195, 247, 0.25);
  transform: translateY(-3px);
}

/* Question */

/* Bouton */
.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
}

/* Contenu replié */
.faq-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Contenu ouvert */
.faq-collapse.show {
  max-height: 500px; /* ajuster si besoin */
}

/* Icône chevron */
.faq-question-btn .fa-chevron-down {
  transition: transform 0.3s ease;
}

/* Rotation quand ouvert */
.faq-question-btn:not(.collapsed) .fa-chevron-down {
  transform: rotate(180deg);
}

/* Réponse */
.faq-answer {
  padding: 15px 20px;
}

.faq-question {
  background: white;
}



.faq-question-btn:hover {
  background: var(--sky-lightest);
}

.faq-question-btn:focus {
  outline: none;
  box-shadow: none;
}

/* Icône question */
.faq-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--sky-gradient-start) 0%, var(--sky-gradient-end) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 22px;
  box-shadow: 0 5px 15px rgba(79, 195, 247, 0.4);
  transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(79, 195, 247, 0.5);
}

/* Texte de la question */
.faq-question-text {
  flex: 1;
  font-family: "Kumbh Sans", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Toggle icon */
.faq-toggle {
  width: 38px;
  height: 38px;
  background: var(--sky-lightest);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.faq-toggle i {
  color: var(--sky-dark);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.4s ease;
}

.faq-question-btn:not(.collapsed) .faq-toggle {
  background: var(--sky-primary);
  transform: rotate(180deg);
}

.faq-question-btn:not(.collapsed) .faq-toggle i {
  color: white;
}

/* Réponse */
.faq-answer {
  padding: 0 35px 35px 107px;
  
}

.answer-content {
  color: var(--text-medium);
  font-size: 15px;
  line-height: 1.9;
  padding-top: 25px;
  border-top: 2px solid var(--sky-lighter);
  position: relative;
}

.answer-icon {
  color: var(--sky-primary);
  margin-right: 8px;
  font-size: 18px;
  vertical-align: middle;
}

.answer-content p {
  margin-bottom: 15px;
}

.answer-content p:last-child {
  margin-bottom: 0;
}

/* Animation du collapse */
.faq-item .collapse {
  transition: all 0.3s ease-in-out;
}

.faq-item .collapsing {
  transition: height 0.3s ease;
}

/* Box de contact */
.faq-contact-box {
  background: linear-gradient(135deg, var(--sky-lightest) 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 55px 40px;
  border: 3px dashed var(--sky-light);
  position: relative;
  overflow: hidden;
}

.faq-contact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.contact-box-inner {
  position: relative;
  z-index: 1;
}

.contact-box-inner i {
  font-size: 55px;
  color: var(--sky-primary);
  margin-bottom: 25px;
  display: inline-block;
  animation: bounce-slow 2s ease-in-out infinite;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.contact-box-inner h5 {
  font-family: "Kumbh Sans", sans-serif;
  color: var(--text-dark);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
}

.contact-box-inner p {
  color: var(--text-medium);
  font-size: 17px;
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* Bouton Sky */
.btn-sky {
  background: linear-gradient(135deg, var(--sky-gradient-start) 0%, var(--sky-gradient-end) 100%);
  color: white;
  border: 2px solid transparent;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 20px rgba(79, 195, 247, 0.4);
}

.btn-sky:hover {
  background: linear-gradient(135deg, var(--sky-gradient-end) 0%, var(--sky-gradient-start) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(79, 195, 247, 0.5);
  color: white;
}

.btn-sky i {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .faq-section {
    padding: 40px 0;
  }

  .faq-badge {
    width: 65px;
    height: 65px;
  }

  .faq-badge i {
    font-size: 28px;
  }

  .faq-question-btn {
    padding: 22px 18px;
    gap: 16px;
  }
  
  .faq-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  
  .faq-question-text {
    font-size: 16px;
  }
  
  .faq-answer {
    padding: 0 18px 25px 76px;
  }
  
  .faq-header h2 {
    font-size: 28px;
  }
  
  .faq-contact-box {
    padding: 35px 25px;
  }
  
  .contact-box-inner h5 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .faq-answer {
    padding: 0 18px 25px 18px;
  }
  
  .faq-question-btn {
    flex-wrap: nowrap;
    padding: 18px 15px;
  }
  
  .faq-toggle {
    width: 32px;
    height: 32px;
  }

  .faq-icon {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .btn-sky {
    width: 100%;
    justify-content: center;
  }
}

/* Animation des icônes */
@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.faq-item:hover .faq-icon {
  animation: pulse-icon 2s infinite;
}

/* Effet de brillance */
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.2), transparent);
  transition: left 0.5s;
}

.faq-item:hover::before {
  animation: shine 0.8s;
}


