/* Optimisations de performance pour les polices */
@font-face {
  font-family: 'Cal Sans';
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

/* Prévenir les layout shifts avec des dimensions fixes */
.character-img-home {
  width: 400px !important;
  height: 400px !important;
  object-fit: contain;
}

/* Optimiser le rendu des polices pour éviter les shifts */
body {
  font-display: swap;
}

h1, h2, h3, h4, h5, h6 {
  font-display: swap;
}

/* Uniformiser la hauteur des cartes d'approche */
.approach-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
  padding-bottom: 20px;
}

.approach-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.approach-card .card-number {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: white;
  z-index: 1;
}

.approach-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  line-height: 1.3;
  padding-right: 40px; /* Éviter le chevauchement avec le numéro */
}

.approach-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.approach-card p:last-child {
  margin-bottom: 0;
}

/* ===== EXPERTISE CARD REFACTORING - PROPORTIONS NATURELLES ===== */
.expertise-card {
  display: flex !important;
  flex-direction: column !important;
  /* height: 780px !important; 
  min-height: 780px !important;
  max-height: 780px !important; */
  overflow: hidden !important;
  position: relative !important;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  padding-bottom: 20px !important; /* Padding bottom pour éviter le collage */
  justify-content: space-between !important; /* Espace entre les éléments */
}

.expertise-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Image avec proportions naturelles - NON TRONQUÉE */
.expertise-card .card-thumb {
  height: 380px !important; /* Image encore plus grande */
  min-height: 380px !important;
  max-height: 380px !important;
  overflow: visible !important; /* Pas de troncature */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain !important; /* Image entière visible, pas de crop */
  object-position: center;
}

/* Titre avec hauteur adaptée */
.expertise-card .card-title {
  /* height: 40px !important; 
  min-height: 40px !important;
  max-height: 40px !important; */
  font-size: 1.1rem; /* Police réduite */
  font-weight: 600;
  margin: 8px 0 6px 0;
  padding: 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

/* Catégories compactes */
.expertise-card .project-categories {
  height: 20px !important; /* ULTRA compact */
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 0 5px 0;
  padding: 0 15px;
  font-size: 0.8rem;
  color: var(--primary-blue);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Wrapper pour technologies et texte - hauteur uniforme */
.expertise-card .content-wrapper {
  
  margin: 0 0 8px 0;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 6px; /* Gap réduit pour plus d'espace */
  overflow: hidden;
}

/* Technologies sans hauteur fixe */
.expertise-card .technologies {
  height: 80px !important; /* Hauteur automatique */
  min-height: auto !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  overflow: visible;
  align-items: flex-start;
  flex-shrink: 0;
  height: 80px;
  overflow: hidden;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .expertise-card .technologies {
    height: 70px !important;
  }
}
/* Description avec hauteur flexible */
.expertise-card .card-text {
  flex: 1 !important; /* Prend TOUT l'espace restant */
  margin: 0;
  padding: 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 20; /* PLUS de lignes pour utiliser tout l'espace */
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3; /* Line-height optimisé */
  color: var(--text-secondary);
  font-size: 0.95rem; /* Police plus grande */
  text-overflow: ellipsis; /* Ajout de text-truncate pour les lignes multiples */
  word-wrap: break-word; /* Casse les mots longs */
  word-break: break-word; /* Casse les mots si nécessaire */
  margin-bottom: auto !important; /* Pousse le texte vers le haut */
}

/* Actions en bas avec position normale */
.expertise-card .card-actions {
  position: relative !important; /* Position normale au lieu d'absolute */
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: auto !important; /* Pousse les actions vers le bas */
  flex-shrink: 0 !important; /* Empêche la compression */
}

.expertise-card .cta-wrap {
  flex: 1;
}

.expertise-card .card-meta {
  flex-shrink: 0;
  margin-left: 15px;
}

.expertise-card .card-avatar {
  width: auto !important; /* Augmenté */
  height: 40px !important;
  object-fit: contain;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .expertise-card {
    height: 650px !important; /* Hauteur AUGMENTÉE pour mobile */
    min-height: 650px !important;
    max-height: 650px !important;
  }
  
  .expertise-card .card-thumb {
    height: 220px !important; /* Image réduite pour plus de texte */
    min-height: 220px !important;
    max-height: 220px !important;
    overflow: visible !important; /* Pas de troncature sur mobile */
  }
  
  .expertise-card .card-title {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    font-size: 0.95rem; /* Police optimisée */
  }
  
 
  
  .expertise-card .card-text {
    flex: 1 !important; /* Prend l'espace restant sur mobile */
    -webkit-line-clamp: 18; /* PLUS de lignes pour mobile */
    font-size: 0.9rem;
    line-height: 1.15;
    text-overflow: ellipsis; /* Text-truncate pour mobile */
    word-wrap: break-word; /* Casse les mots longs sur mobile */
    word-break: break-word; /* Casse les mots si nécessaire sur mobile */
    margin-bottom: auto !important; /* Pousse le texte vers le haut sur mobile */
  }
}

/* ===== LOGO CAROUSEL STYLES ===== */
.logo-carousel {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin: 40px 0;
}

/* Desktop padding et margin pour logo-carousel */
@media (min-width: 769px) {
  .logo-carousel {
    padding-left: 80px !important; /* px-20 = 5rem = 80px */
    padding-right: 80px !important;
    margin-left: 80px !important; /* mx-20 = 5rem = 80px */
    margin-right: 80px !important;
  }
}

/* Mobile adjustments pour logo-carousel */
@media (max-width: 768px) {
  .logo-carousel {
    margin-top: 20px !important; /* Réduire l'espace avec le titre */
    margin-bottom: 20px !important; /* Ajouter marge bottom */
  }
  
  .logo-carousel .section-title {
    margin-bottom: 10px !important; /* Réduire l'espace entre titre et logos */
  }
  
  .logo-carousel .logo-slider {
    margin-bottom: 15px !important; /* Marge bottom pour les logos */
  }
  
  /* Enlever les marges des projets en mobile */
  .projects-grid {
    margin-bottom: 0 !important; /* Enlever marge bottom */
  }
  
  .projects-carousel {
    margin-top: 0 !important; /* Enlever marge top */
  }
}

/* Carousel de technologies - Styles unifiés */
.logo-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.logos-track {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 24px !important;
  width: max-content !important;
  will-change: transform;
  transition: transform 0.1s linear !important;
}

/* Images dans le carousel de technologies */
.logos-track img {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  flex-shrink: 0;
  object-fit: contain;
  background: white !important;
  border: 2px solid #3b82f6 !important;
  border-radius: 12px !important;
  padding: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.2s ease;
}

.logos-track img:hover {
  transform: scale(1.1);
}

.carousel-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  width: 80px;
  height: 60px;
  object-fit: contain;
  padding: 5px !important;
  background: white !important;
  border: 2px solid #3b82f6 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo-carousel {
    padding: 0 20px;
  }
  
  .carousel-item img {
    width: 60px;
    height: 45px;
  }
  
  .logos-track {
    gap: 20px !important;
  }
  
  .logos-track img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    padding: 6px !important;
  }
}

/* Fix empietement mascotte sur titre en mobile */
@media (max-width: 768px) {
  /* Supprimer les margins et paddings des conteneurs */
  .hero-content {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .hero.container-layout.mx-auto.mt-5 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .approach-section.container-layout.mx-auto.mt-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  /* Centrer l'image et ajuster sa taille */
  .character-img-home {
    width: 300px !important;
    height: 300px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  /* Centrer le conteneur de l'image */
  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* Supprimer les espacements supplémentaires */
  .approach-section .section-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Ajustements pour mobile portrait (écrans très petits) */
@media (max-width: 480px) {
  /* Supprimer tous les espacements */
  .approach-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  /* Mascotte centrée et bien dimensionnée */
  .character-img-home {
    width: 250px !important;
    height: 250px !important;
    max-width: 250px !important;
    max-height: 250px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  /* Conteneur centré */
  .hero-visual {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  
  /* Supprimer tous les espacements du hero */
  .hero {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* Supprimer les espacements du titre */
  .approach-section .section-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* Fix empietement titres sur images/logos en mobile */
@media (max-width: 768px) {
  .project-header__title {
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
  }
  
  .project-header__client {
    margin-bottom: 15px !important;
  }
  
  .project-header__description {
    margin-bottom: 20px !important;
  }
  
  .project-technologies {
    margin-bottom: 0px !important;
  }
  
  .project-header__image {
    margin-top: 20px !important;
  }
  
  .gallery-main img {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: cover !important;
  }
  
  .gallery-thumbnails {
    margin-top: 15px !important;
    gap: 10px !important;
  }
  
  .gallery-thumbnails img {
    width: 60px !important;
    height: 40px !important;
    object-fit: cover !important;
  }
  
  /* Fix pour les cartes de projets */
  .related-project-card h4,
  .related-project-mobile-card h4 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    word-wrap: break-word !important;
  }
  
  .related-project-card,
  .related-project-mobile-card {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }
  
  .related-project-client,
  .related-project-mobile-client {
    margin-top: 10px !important;
  }
  
  .related-project-client img,
  .related-project-mobile-client img {
    height: 24px !important;
    width: auto !important;
  }
}

/* ===== Blogs grid ===== */
.blogs-page .tab-content .expertise-grid{ display:grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 1024px){
  .blogs-page .tab-content .expertise-grid{ grid-template-columns: 1fr 1fr; }
}
.blogs-page .expertise-card{ display:flex; flex-direction: column; min-height: 520px; }
.blogs-page .expertise-card .card-thumb{ border-radius: 14px; overflow:hidden; aspect-ratio: 16/9; }
.blogs-page .expertise-card .card-thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.blogs-page .expertise-card .card-meta{ display:flex; align-items:center; gap:12px; color: var(--text-secondary); }
.blogs-page .expertise-card .card-avatar{ width:28px; height:28px; border-radius:999px; }
.blogs-page .expertise-card .card-title{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient: vertical; overflow:hidden; line-height:1.3; min-height: calc(1.3em * 2); }
.blogs-page .expertise-card .card-text{ margin-bottom: 10px !important; text-align:center; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient: vertical; overflow:hidden; line-height:1.6; min-height: calc(1.6em * 3); }
.blogs-page .expertise-card .bottom{ margin-top:auto; }
.blogs-page .expertise-card .technologies{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; min-height: 32px; }
.blogs-page .expertise-card .cta-wrap{ display:flex; justify-content:center; margin-top:12px; }

/* Actions row: button left, meta right, same baseline */
.blogs-page .expertise-card .card-actions{ display:flex; flex-direction: column; align-items: stretch; justify-content:flex-start; gap: var(--space-3); margin-top: var(--space-4); }
.blogs-page .expertise-card .card-actions .cta-wrap{ margin-top:0; justify-content:center; }
.blogs-page .expertise-card .card-actions .card-meta{ margin:0; justify-content:center; }
@media (min-width: 1024px){
  .blogs-page .expertise-card .card-actions{ flex-direction: row; align-items:center; justify-content:space-between; gap: 0; }
  .blogs-page .expertise-card .card-actions .cta-wrap{ justify-content:flex-start; }
  .blogs-page .expertise-card .card-actions .card-meta{ justify-content:flex-end; }
}

/* Fix pour les projets : forcer la disposition horizontale même en mobile */
.p-projects .expertise-card .card-actions {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
}

.p-projects .expertise-card .card-actions .cta-wrap {
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
}

.p-projects .expertise-card .card-actions .card-meta {
  align-items: center !important;
  gap: 12px !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  justify-content: flex-end !important;
  display: flex !important;
  width: min-content !important;
}

/* Styles spécifiques pour les projets */
.p-projects .expertise-card .card-actions{ 
  flex-direction: row; 
  align-items: center; 
  justify-content: space-between; 
  gap: 0; 
}

.carousel-projects{
  bottom: 20px;
}

.cta-wrap{
  display: flex;
  justify-content: space-between;
}

.p-projects .expertise-card .card-actions .cta-wrap{ 
  justify-content: flex-start; 
  flex: 0 0 auto;
  width: auto;
}

.p-projects .expertise-card .card-meta{ 
  align-items: center; 
  gap: 12px; 
  color: var(--text-secondary); 
  margin: 0; 
  justify-content: flex-end;
  display: flex; 
  width: min-content !important;
}

.p-projects .expertise-card .card-avatar{ 
  width: auto; /* Largeur automatique pour préserver le ratio */
  max-width: 80px; /* Limite la largeur pour les logos très larges */
  height: 36px; 
  border-radius: 8px; 
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.p-projects .expertise-card .card-author{ 
  font-size: var(--text-base); 
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

/* Standardisation des cartes de projets */
.p-projects .expertise-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.p-projects .expertise-card .card-thumb {
  /* height: 40vh; */
  aspect-ratio: 16/10;  
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: var(--space-4);
}

.p-projects .expertise-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-projects .expertise-card .card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  margin-top: 0;
  /* margin-bottom: 0; */
  height: min-content;
}

.p-projects .expertise-card .technologies {
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.p-projects .expertise-card .card-text {
  margin-bottom: 10px !important;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.p-projects .expertise-card .card-actions {
  margin-top: auto;
  flex-shrink: 0;
}

/* Project Gallery Styles */
.project-gallery {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media screen and (min-width: 768px) {
  .project-gallery {
    height: 500px !important;
  }
}
.gallery-main {
  flex: 1;
  overflow: hidden;
  background: var(--gradient-card);
  box-shadow: var(--glass-shadow);
  /* aspect-ratio: 16/10; */
}

/* Mobile: Repositionner la galerie */
@media (max-width: 768px) {
  /* En mobile, la galerie reste dans project-header__image mais on la repositionne */
  .project-header__image {
    order: -1; /* Mettre l'image avant le contenu */
    margin-bottom: var(--space-6);
  }
  
  /* Ajuster la taille de la galerie en mobile */
  .project-gallery .gallery-main {
    height: 30vh;
    max-height: 250px;
  }
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  background: var(--gradient-card);
}

/* Pour les images verticales, utiliser contain pour afficher l'image entière */
.gallery-main img.image-vertical {
  object-fit: contain !important;
}

.gallery-main img:hover {
  transform: scale(1.02);
}

.gallery-thumbnails {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  padding-top: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.gallery-thumbnail {
  flex-shrink: 0;
  width: 80px;
  /* aspect-ratio: 16/10;  */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: var(--gradient-card);
  box-shadow: var(--glass-shadow);
  height: 40px;
}


.gallery-thumbnail:hover {
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.gallery-thumbnail.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.3);
}

/* Mobile: Style pour la miniature active */
@media (max-width: 768px) {
  /* Maintenir les mêmes dimensions qu'en desktop pour cohérence */
  .gallery-thumbnail {
    width: 80px !important;
    height: 40px !important;
    flex-shrink: 0;
  }
  
  .gallery-thumbnail.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.4);
    transform: scale(1.05); /* Légèrement plus grande quand active */
  }
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-thumbnail:hover img {
  transform: scale(1.1);
}

/* Related Projects Sidebar */
.related-projects-sidebar {
  width: 300px;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}

.related-projects-sidebar h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.related-projects-container {
  flex: 1; /* Prend l'espace restant */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.related-projects-container::-webkit-scrollbar {
  width: 6px;
}

.related-projects-container::-webkit-scrollbar-track {
  background: transparent;
}

.related-projects-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.related-project-card {
  background: var(--gradient-card);
  border: var(--glass-border);
  border-radius: 12px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
}

.related-project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-project-card:last-child {
  margin-bottom: 0;
}

.related-project-image {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.related-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-project-card:hover .related-project-image img {
  transform: scale(1.05);
}

.related-project-title {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.related-project-client {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.related-project-client img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

/* Override pour les cartes avec wrapper */
.related-project-title-wrapper .related-project-title {
    margin-bottom: 0;
}

.related-project-title-wrapper .related-project-client {
    margin: 0;
}

/* Mobile carousel for related projects */
.related-projects-mobile {
  display: none; /* Caché par défaut */
  margin-top: var(--space-8);
  background: rgba(255, 0, 0, 0.1); /* Debug: fond rouge pour voir */
  border: 2px solid red; /* Debug: bordure rouge */
}

.related-projects-mobile h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  text-align: center;
}

.related-projects-mobile-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 300px; /* Largeur fixe pour une seule carte */
  margin: 0 auto; /* Centrer le carousel */
  background: rgba(0, 255, 0, 0.1); /* Debug: fond vert */
  border: 2px solid green; /* Debug: bordure verte */
  min-height: 200px; /* Debug: hauteur minimale */
}

.related-projects-mobile-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: var(--space-4);
  flex-direction: row; /* S'assurer que c'est horizontal */
  width: max-content; /* Force la largeur du contenu */
  flex-wrap: nowrap; /* Empêche le retour à la ligne */
  background: rgba(0, 0, 255, 0.1); /* Debug: fond bleu */
  border: 2px solid blue; /* Debug: bordure bleue */
  min-height: 150px; /* Debug: hauteur minimale */
}

.related-project-mobile-card {
  flex: 0 0 100%; /* Prend toute la largeur du conteneur */
  background: var(--gradient-card);
  border: var(--glass-border);
  border-radius: 12px;
  padding: var(--space-4);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
  flex-shrink: 0; /* Empêche la compression */
  width: 100%; /* Largeur complète du conteneur */
}

.related-project-mobile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-project-mobile-image {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.related-project-mobile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-project-mobile-card:hover .related-project-mobile-image img {
  transform: scale(1.05);
}

.related-project-mobile-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.related-project-mobile-client {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.related-project-mobile-client img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

.related-projects-mobile-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.related-projects-mobile-btn {
  background: var(--gradient-card);
  border: var(--glass-border);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.related-projects-mobile-btn:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-1px);
}

.related-projects-mobile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .related-projects-sidebar {
    display: none !important;
  }
  
  .related-projects-mobile {
    display: block !important;
  }
  
  .project-details {
    flex-direction: column;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  width: 200px;
  height: auto;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-sm);
  max-width: 300px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-services li {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Mobile et tablette */
@media (max-width: 1024px) {
  .contact-item {
    justify-content: center;
  }
}

.contact-icon {
  font-size: var(--text-base);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent-primary);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: var(--space-8) var(--space-4);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }
  
  .footer-brand {
    grid-column: 1;
    align-items: center;
  }
  
  .footer-description {
    max-width: none;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .footer-legal {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .footer-logo {
    width: 150px;
  }
}

/* ===== Blog Detail Page ===== */
.blog-detail-page .blog-detail{ max-width: 1100px; margin: var(--space-10) auto; background: var(--gradient-card); border: var(--glass-border); box-shadow: var(--glass-shadow); border-radius: 16px; overflow: hidden; position: relative; }
.blog-detail-page .blog-detail-header{ padding: var(--card-padding); }
.blog-detail-page .blog-detail-title{ margin: 0 0 var(--space-3); font-size: clamp(1.6rem, 2.2vw, 2.4rem); background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.blog-detail-page .blog-detail-description{ color: var(--text-secondary); margin: var(--space-3) 0; }
.blog-detail-page .blog-detail .card-meta{ margin: var(--space-2) 0 var(--space-3); }
.blog-detail-page .blog-detail .technologies{ padding-bottom: var(--space-2); }
.blog-detail-page .blog-detail-content{ padding: var(--card-padding); color: var(--text-secondary); line-height: 1.8; }
.blog-detail-page .blog-detail-content p{ margin: 0 0 var(--space-4); }

/* Styles pour les blocs de code avec Highlight.js */
.blog-detail-content pre {
    background: #f6f8fa !important;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: var(--space-4) 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.blog-detail-content pre code {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: inherit;
    color: inherit;
}

@media (prefers-color-scheme: dark) {
    .blog-detail-content pre {
        background: #1a1a2e !important;
        border-color: #2a2a3e;
    }
}

/* Styles pour la signature de l'auteur en bas à droite */
.blog-author-bottom-right {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    z-index: 10;
}

.author-bottom-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--gradient-card);
    border: var(--glass-border);
    border-radius: 12px;
    padding: var(--space-3);
    box-shadow: var(--glass-shadow);
}

.author-bottom-avatar {
    flex-shrink: 0;
}

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

.author-bottom-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.author-bottom-name {
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.author-bottom-email {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.author-bottom-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .blog-author-bottom-right {
        bottom: var(--space-2);
        right: var(--space-2);
    }
    
    .author-bottom-content {
        padding: var(--space-2);
        gap: var(--space-2);
    }
    
    .author-bottom-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .author-bottom-info {
        gap: 2px;
    }
    
    .author-bottom-name,
    .author-bottom-email,
    .author-bottom-date {
        font-size: 11px;
    }
}
@import url("https://fonts.googleapis.com/css2?family=Cal+Sans&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Genesis Crypto Design System (Bright) */
:root {
  /* Primary Colors */
  --bg-dark: #12121a;
  --bg-secondary: #242444;
  --bg-card: #1f2a55;
  --text-primary: #ffffff;
  --text-secondary: #d1d1d1;
  --text-muted: #8b93a1;

  /* Accent Colors */
  --primary-blue: #1a6fff;
  --secondary-violet: #bd5fd1;
  --highlight-cyan: #33e1ff;
  --success-green: #22d49a;
  --warning-amber: #ffb74d;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a6fff 0%, #bd5fd1 100%);
  --gradient-secondary: linear-gradient(135deg, #bd5fd1 0%, #7c79ff 100%);
  --gradient-background: radial-gradient(
    ellipse at center,
    #242444 0%,
    #12121a 100%
  );
  --gradient-card: linear-gradient(
    145deg,
    rgba(26, 111, 255, 0.15) 0%,
    rgba(36, 36, 68, 0.85) 100%
  );
  --gradient-button: linear-gradient(135deg, #1a6fff 0%, #bd5fd1 100%);
  --gradient-border: linear-gradient(135deg, #1a6fff 0%, #bd5fd1 100%);

  /* Typography */
  --font-primary: "Cal Sans", system-ui, sans-serif;
  --font-secondary: "Roboto", system-ui, sans-serif;
  --font-mono: JetBrains Mono, monospace;

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 900;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  /* Text Effects */
  --glow-effect: 0 0 12px rgba(26, 111, 255, 0.6),
    0 0 24px rgba(26, 111, 255, 0.4), 0 0 36px rgba(26, 111, 255, 0.2);
  --subtle-text-glow: 0 0 8px rgba(26, 111, 255, 0.15),
    0 0 16px rgba(189, 95, 209, 0.1);
  --subtle-glow: 0 0 10px rgba(26, 111, 255, 0.4);
  --strong-glow: 0 0 18px rgba(26, 111, 255, 0.8),
    0 0 30px rgba(26, 111, 255, 0.5);

  /* Spacing */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Component Spacing */
  --section-padding: 50px 0;
  --container-padding: 0 24px;
  --card-padding: 32px;
  --button-padding: 12px 24px;
  --section-max-width: 1400px;
  /* Uniform gap entre sections (desktop par défaut) */
  --section-gap: 24px;

  /* Visual Effects */
  --glass-backdrop: blur(20px);
  --glass-bg: rgba(36, 36, 68, 0.3);
  --glass-bg-2: rgba(255, 255, 255, 0.1);
  --glass-border: 1px solid rgba(26, 111, 255, 0.3);
  --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);

  /* Glow Effects */
  --button-glow: 0 0 25px rgba(26, 111, 255, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.35);
  --card-glow: 0 0 36px rgba(26, 111, 255, 0.25),
    0 10px 28px rgba(0, 0, 0, 0.25);
  --border-glow: inset 0 0 0 1px rgba(26, 111, 255, 0.4),
    0 0 20px rgba(26, 111, 255, 0.3);

  /* Hover Effects */
  --button-hover-transform: translateY(-2px);
  --button-hover-glow: 0 0 28px rgba(26, 111, 255, 0.7),
    0 10px 24px rgba(0, 0, 0, 0.4);
  --card-hover-transform: translateY(-4px);
  --card-hover-glow: 0 0 40px rgba(26, 111, 255, 0.35),
    0 14px 35px rgba(0, 0, 0, 0.35);

    --sb-track-color: #292941;
    --sb-thumb-color: linear-gradient(135deg, #1a6fff 0%, #9048a0 60%, #7c79ff 100%);
    --sb-size: 8px;
}

/* ===== Sticky Navbar ===== */
/* ===== Services page ===== */
.p-service .services-hero{ @media (max-width: 740px){ padding: var(--space-6) 0 0; } }

/* Process Steps Styling */
.p-service .step-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-3);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.p-service .step-subtitle {
  color: var(--primary-blue);
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-4);
  opacity: 0.9;
  letter-spacing: 0.5px;
}

.p-service .step-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}

.p-service .step-deliverable {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: var(--space-3);
  background: rgba(26, 111, 255, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--primary-blue);
  margin-top: var(--space-4);
}
/* ===== Projects page ===== */
.p-projects .projects-hero{ position: relative; padding: 0; overflow:hidden; }
.p-projects .projects-hero-grid{ display:grid; grid-template-columns: 1.2fr 1fr; align-items:center; }
.p-projects .projects-title{ font-size: clamp(2rem, 3vw, 3rem); color: var(--text-primary); margin: 0 0 var(--space-4); }
.p-projects .projects-lead{ color: var(--text-secondary); max-width: 60ch; }
.p-projects .projects-subtitle{
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-4);
  display: inline-block;
  position: relative;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: .2px;
}
.p-projects .projects-subtitle::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 105%;
  height: 4px;
  border-radius: 3px;
  background: var(--gradient-primary);
  box-shadow: var(--subtle-glow);
}
.p-projects .projects-text{
  font-family: var(--font-secondary);
  color: var(--text-secondary);
  max-width: 70ch;
  margin-top: var(--space-6);
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: var(--space-4) var(--space-5);
  line-height: 1.8;
}
.p-projects .projects-text::before{
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(26,111,255,.35);
}

/* Blobs / géométrie hero */
.p-projects .pjt-blob{ position:absolute; border-radius: 50%; filter: blur(20px); opacity:.7; }
.p-projects .pjt-blob-1{ width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #1a6fff, transparent 60%); top: 12%; left: 10%; animation: blob-float-1 7s ease-in-out infinite; }
.p-projects .pjt-blob-2{ width: 180px; height: 180px; background: radial-gradient(circle at 70% 70%, #bd5fd1, transparent 60%); bottom: 8%; right: 6%; animation: blob-float-2 9s ease-in-out infinite; }
/* .p-projects .projects-mascot-frame{ position:absolute; inset:auto 12% -10% auto; width: clamp(200px, 28vw, 360px); aspect-ratio: 1/1; border-radius: 20px; overflow:hidden; } */
.p-projects .projects-mascot{ width:80%; height:100%; object-fit: cover; display:block; filter: saturate(1.05); will-change: transform; animation: projects-mascot-float 6.5s ease-in-out infinite; @media (max-width: 740px){ width: 90%; margin: auto; } }

/* Blobs / géométrie hero pour services */
.p-service .pjt-blob{ position:absolute; border-radius: 50%; filter: blur(20px); opacity:.7; }
.p-service .pjt-blob-1{ width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #1a6fff, transparent 60%); top: 12%; left: 10%; animation: blob-float-1 7s ease-in-out infinite; }
.p-service .pjt-blob-2{ width: 180px; height: 180px; background: radial-gradient(circle at 70% 70%, #bd5fd1, transparent 60%); bottom: 8%; right: 6%; animation: blob-float-2 9s ease-in-out infinite; }
.p-service .projects-mascot-frame{ position:absolute; inset:auto 12% -10% auto; width: clamp(200px, 28vw, 360px); aspect-ratio: 1/1; border-radius: 20px; overflow:hidden; }
.p-service .projects-mascot{ width:80%; height:100%; object-fit: cover; display:block; filter: saturate(1.05); will-change: transform; animation: projects-mascot-float 6.5s ease-in-out infinite; @media (max-width: 740px){ width: 90%; margin: auto; display:none; } }

@keyframes projects-mascot-float{
  0%, 100% { transform: translateY(0) rotate(0.3deg) scale(1); }
  30% { transform: translateY(-8px) rotate(-0.3deg) scale(1.014); }
  60% { transform: translateY(6px) rotate(0.2deg) scale(0.996); }
}

/* Animation spécifique pour pink-square-img (flottement avec rotation annulée) */
@keyframes pink-square-float{
  0%, 100% { transform: translateY(0) rotate(-8deg) scale(1); }
  30% { transform: translateY(-8px) rotate(-8deg) scale(1.014); }
  60% { transform: translateY(6px) rotate(-8deg) scale(0.996); }
}

/* Animation spécifique pour character-img-home (flottement avec rotation annulée) */
@keyframes character-home-float{
  0%, 100% { transform: translateY(0) rotate(5deg) scale(1); }
  30% { transform: translateY(-8px) rotate(5deg) scale(1.014); }
  60% { transform: translateY(6px) rotate(5deg) scale(0.996); }
}

/* Classe pour annuler la rotation et appliquer le flottement */
.pink-square-img {
  animation: pink-square-float 6.5s ease-in-out infinite;
  will-change: transform;
}

.character-img-home {
  animation: character-home-float 6.5s ease-in-out infinite;
  will-change: transform; 
  top: -30px!important;
  width: 20rem!important;
  left: 50%!important;
  transform: translateX(-50%)!important;
}

@media (prefers-reduced-motion: reduce){
  .p-projects .projects-mascot{ animation: none; }
  .pink-square-img{ animation: none; }
  .character-img-home{ animation: none; }
}

.p-projects .projects-list{ margin-bottom: var(--section-gap); }
.p-projects .projects-grid{ 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: var(--space-8);
}

.p-projects .project-card{ 
  background: var(--gradient-card); 
  border: 2px solid transparent; 
  border-radius: 16px; 
  padding: var(--space-6); 
  box-shadow: var(--card-glow); 
  position: relative; 
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-projects .project-card::before{ 
  content: ""; position:absolute; inset:0; border-radius:16px; padding:2px; background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events:none;
}
.p-projects .project-card::after{ 
  content: ""; position:absolute; top:-20%; right:-10%; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(122,108,255,.35), transparent 70%);
}

.p-projects .project-logo{ 
  background: transparent; 
  border-radius: 12px; 
  padding: var(--space-2); 
  display: grid; place-items: center; 
  height: 72px; 
  margin-bottom: var(--space-4);
}
.p-projects .project-logo img{ max-height: 52px; width: auto; object-fit: contain; display: block; filter: none; }

.p-projects .project-client{ color: var(--text-primary); margin: 0 0 2px; font-weight: var(--weight-regular); font-size: 1rem; }
.p-projects .project-title{ color: var(--text-secondary); margin: 0; font-size: .95rem; font-weight: normal;}

.p-projects .project-actions{ margin-top: var(--space-4); }
.p-projects .project-btn{ 
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding: 8px 12px; border-radius: 10px; color:#fff; text-decoration:none;
  background: var(--gradient-button); box-shadow: var(--button-glow);
  font-family: var(--font-primary); font-weight: var(--weight-medium); font-size: .85rem;
  border: 1px solid rgba(255,255,255,.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.p-projects .project-btn:hover{ transform: var(--button-hover-transform); box-shadow: var(--button-hover-glow); }

.p-projects .project-card:hover{ transform: translateY(-6px); box-shadow: var(--strong-glow); }

@media (max-width: 1024px){
  .p-projects .projects-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }


  .p-service .services-hero-visual {
    width: 100%;
    overflow: hidden;
    position:absolute!important;
    top: 10%;
    right: 0%;
  }

  .p-service .blob {
     height: 110px!important;
     width: 110px!important;
  }
  
}
@media (max-width: 640px){
  .p-projects .projects-grid{ grid-template-columns: 1fr; }
  .p-projects .projects-hero-grid{ grid-template-columns: 1fr; }
  .p-projects .projects-hero-visual {
    /* top: -70px;
    right:0;
    filter: brightness(0.6); */
  }
  .p-projects .projects-subtitle::after{ bottom: -8px; width: 105%; }
  .p-projects .projects-text{ margin-top: var(--space-5); padding: var(--space-4); margin-bottom:0; }

}
.p-service .services-hero-grid{ display:grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-12); align-items:center; }
.p-service .services-title{ font-size: clamp(2rem, 3vw, 3rem); color: var(--text-primary); margin: 0 0 var(--space-4); }
.p-service .services-lead{ color: var(--text-secondary); max-width: 720px; }
.p-service .services-badges{ display:flex; flex-wrap:wrap; gap: var(--space-3); margin-top: var(--space-6); }
.p-service .badge{ padding: 6px 10px; border-radius: 999px; background: rgba(26,111,255,.12); border:1px solid rgba(26,111,255,.25); color: var(--text-primary); font-size: var(--text-sm); }
.p-service .services-hero-visual{ position: relative; }
/* Animations pour les blobs */
@keyframes blob-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -10px) scale(1.1); }
  66% { transform: translate(-10px, 15px) scale(0.9); }
}

@keyframes blob-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-12px, 8px) scale(0.95); }
  66% { transform: translate(18px, -12px) scale(1.05); }
}

.p-service .blob{ position: absolute; border-radius: 50%; filter: blur(20px); opacity:.7; }
.p-service .blob-1{ 
  width: 220px; 
  height: 220px; 
  background: radial-gradient(circle at 30% 30%, #1a6fff, transparent 60%); 
  top: 15%; 
  left: 8%;
  animation: blob-float-1 6s ease-in-out infinite;
}
.p-service .blob-2{ 
  width: 180px; 
  height: 180px; 
  background: radial-gradient(circle at 70% 70%, #bd5fd1, transparent 60%); 
  bottom: 8%; 
  right: 3%;
  animation: blob-float-2 8s ease-in-out infinite;
}

/* Services highlights slider adapté au thème sombre */
.p-service .services-highlights-section{ 
  max-width: var(--section-max-width);
  overflow: hidden; 
  padding-inline: 0px !important;
  margin-bottom: var(--section-gap);
  margin: auto;
  @media (max-width: 740px){
    margin-top: var(--space-8);
  }
}

.p-service .slider__container { 
  --margin-left: var(--space-20); 
  --margin-right: calc(var(--margin-left) - 2rem); 
  position: relative; 
  margin: auto; 
  padding-right: 0px !important; 
  padding-left: 0px !important;
}

.p-service .section-header { 
  position: relative; 
  z-index: 1; 
  width: fit-content;
  margin-left: var(--space-8); 
  text-align: left;
}

.p-service .section-header__title { 
  display: flex; 
  flex-direction: column; 
  align-items: flex-start; 
  justify-content: center; 
  color: var(--text-primary);
  font-size: clamp(2.38rem,2.27rem + .39vw,2.63rem); 
  letter-spacing: .01rem;
  font-family: var(--font-primary); 
  font-weight: 400; 
  line-height: 1.33;
  margin: 0px;
  width: fit-content;
}

.p-service .section-header__title::before { 
  content: ""; 
  display: block; 
  width: 105%; 
  height: 4px; 
  background: var(--gradient-primary);
  position: absolute;
  bottom: -8px;
  @media (max-width: 740px){
    width: 100%; 
  }
}

.p-service .slider { 
  position: relative; 
  padding: 0px;
}

.p-service .slider--with-background { 
  margin-top: 1rem;
}

.p-service .slick-slider { 
  -webkit-touch-callout: none; 
  -webkit-tap-highlight-color: transparent; 
  box-sizing: border-box; 
  touch-action: pan-y; 
  user-select: text;
  display: block; 
  position: relative;
}

.p-service .slick-list { 
  display: block; 
  position: relative;
  margin: 0; 
  overflow: hidden; 
  padding: 0; 
  transition: height .2s ease-in-out;
  transform: translateZ(0);
  overflow: visible;
}

.p-service .slider--with-background .slick-list { 
  --background-padding: 3rem; 
  padding: var(--background-padding) 0 var(--background-padding);
  margin-left: 1rem;
  margin-right: 1rem;
  @media (max-width: 740px){
    padding: 0;
  }
}

.p-service .slider--with-background .slick-list::before { 
  --background-left-margin: 16rem; 
  content: ""; 
  display: block; 
  background: var(--gradient-primary); 
  opacity: 0.25;
  position: absolute; 
  bottom: 5%; 
  left: 0px;
  right: 0px;
  height: 90%;
  border-radius: 28px;
}

.p-service .slick-track { 
  display: flex; 
  align-items: stretch; 
  justify-content: space-around;
  left: 0; 
  position: relative; 
  top: 0;
  transform: translateZ(0);
}

.p-service .slick-slide { 
  display: none; 
  min-height: 1px;
  padding: 0px;
  width: 23%;
}

.p-service .slick-initialized .slick-slide { 
  display: block;
}

.p-service .slick-slide > div { 
  height: 100%;
  user-select: text;
}

.p-service .reasons__item { 
  box-shadow: 0px 8px 24px rgba(71, 90, 158, 0.1); 
  padding: 2.5rem 1.5rem 2rem; 
  text-align: center; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  display: flex !important;
  background: var(--gradient-card); 
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid transparent;
  border-radius: 16px;
  height: 100%;
  min-height: 280px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: text;
}

.p-service .reasons__item::before {
  content: "";
  position: absolute; 
  inset: 0; 
  border-radius: 16px; 
  padding: 2px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.p-service .reasons__item:hover {
  transform: translateY(-8px);
  box-shadow: var(--strong-glow);
}

.p-service .reasons__icon { 
  margin-bottom: 2rem;
  pointer-events: none;
}

.p-service .icon-placeholder {
  width: 4.5rem;
  height: 4.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.95;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.p-service .icon-placeholder img{
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* rendu blanc */
  display: block;
}

.p-service .reasons__title { 
  font-size: 1.625rem; 
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  font-family: var(--font-primary);
  font-weight: normal;
  user-select: text;
}

.p-service .reasons__description p { 
  font-size: 1rem; 
  color: var(--text-secondary); 
  line-height: 1.75;
  font-family: var(--font-secondary);
  user-select: text;
}

/* Responsive */
@media (max-width: 1024px) {
  .p-service .slider__container {
    --margin-left: var(--space-8);
    --margin-right: var(--space-8);
    width: calc(100vw - var(--margin-left) - var(--margin-right));
  }
  
  .p-service .slider--with-background .slick-list::before {
    --background-left-margin: var(--space-8);
  }
}

@media (max-width: 768px) {
  .p-service .services-highlights-section {
    padding: 0 var(--space-6);
  }
  
  .p-service .slider__container {
    width: 100%;
    margin-left: 0;
    --margin-left: 0;
    --margin-right: 0;
  }
  
  .p-service .section-header__title {
    font-size: 2rem;
  }
  
  .p-service .slider--with-background {
    margin-top: 2rem;
  }
  
  .p-service .slider--with-background .slick-list {
    --background-padding: 2rem;
  }
  
  .p-service .slider--with-background .slick-list::before {
    display: none;
  }
  
  .p-service .slick-track {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    @media (max-width: 1024px){
      margin: 20px;
    }
  }
  
  .p-service .slick-slide {
    margin: 0;
    width: 100%;
    max-width: 400px;
  }
  
  .p-service .reasons__item {
    padding: 2rem 1.5rem;
    width: 100%;
    min-height: 240px;
  }
  
  .p-service .reasons__title {
    font-size: 1.375rem;
  }
  
  .p-service .reasons__description p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .p-service .reasons__item {
    padding: 1.5rem 1.25rem;
    min-height: 220px;
  }
  
  .p-service .reasons__title {
    font-size: 1.25rem;
  }
  
  .p-service .reasons__description p {
    font-size: 0.85rem;
  }
}

/* ===== EMPÊCHER LE SCROLL COMPLÈTEMENT ===== */
html, body {
  margin: 0;
  padding: 0;
  background: var(--gradient-background) !important;
}

* {
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

.p-service .services-expertises{ margin-bottom: var(--section-gap); overflow: hidden; }
/* Rows alternées media + contenu pour un rendu éditorial (pas des cards) */
.p-service .expertise-rows{ display:flex; flex-direction: column; @media (min-width: 740px){ gap: var(--space-12); } }
.p-service .expertise-row{ display:grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); align-items: center; position: relative; overflow: visible; }
.p-service .expertise-row.reverse{ grid-template-columns: 1fr 1.2fr; }
.p-service .expertise-row.reverse .expertise-media{ order: 2; }
.p-service .expertise-row.reverse .expertise-content{ order: 1; }
.p-service .expertise-media .media-frame{ position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; z-index: 1; width: 75%; margin: 0 auto; max-width: 780px; }
.p-service .expertise-media .media-frame::after{ content:""; position:absolute; inset:0; border-radius:24px; padding:3px; background: var(--gradient-primary); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events:none; }
.p-service .expertise-media img{ width:100%; height:100%; object-fit: cover; filter: saturate(1.1); display:block; }
.p-service .expertise-content{ position: relative; padding: 0; border: 0; background: transparent; }
.p-service .expertise-content .expertise-title{ font-size: clamp(1.5rem, 2.4vw, 2.4rem); color: var(--text-primary); margin: 0 0 var(--space-3); }
.p-service .expertise-content .expertise-text{ color: var(--text-secondary); margin-bottom: var(--space-4); max-width: 60ch; }
.p-service .expertise-list{ margin: 0 0 var(--space-6); padding-left: var(--space-6); }
.p-service .expertise-list li{ margin-bottom: var(--space-2); color: var(--text-secondary); }

@media (max-width: 1024px){
  .p-service .expertise-row,
  .p-service .expertise-row.reverse{ grid-template-columns: 1fr; }
  .p-service .expertise-row.reverse .expertise-media{ order: 0; }
  .p-service .expertise-row.reverse .expertise-content{ order: 0; }
  .p-service .expertise-media .media-frame{ width: 100%; aspect-ratio: 16/9; }
}

/* Bloc géométrique en arrière de l'image qui dépasse latéralement */
.p-service .expertise-media{ position: relative; }
.p-service .expertise-media::before{
  content: "";
  position: absolute;
  top: 10%;
  left: -3%;
  width: 60%;
  height: 80%;
  background: linear-gradient(135deg, rgba(26,111,255,.35), rgba(124,121,255,.25));
  border-radius: 18px;
  transform: rotate(-3deg);
  z-index: 0;
  @media (min-width: 1024px){
    left: 3%;
  }
}
.p-service .expertise-row.reverse .expertise-media::before{
  left: auto;
  right: -3%;
  transform: rotate(3deg);
  @media (min-width: 1024px){
    right: 3%;
  }
}
.p-service .step h4 { font-weight: normal; }
@media (max-width: 1024px){
  .p-service .services-hero-grid{ grid-template-columns: 1fr; gap: var(--space-8); }
  .p-service .highlights-grid{ grid-template-columns: 1fr; }
  .p-service .span-2{ grid-column: span 1; }
  .p-service .expertises-grid{ grid-template-columns: 1fr; }
}

/* Process timeline */
.p-service .services-process{ margin-bottom: var(--section-gap); }
.p-service .process-steps{ list-style: none; padding: 0; margin: 0; display:grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); counter-reset: step; }
.p-service .step{ position: relative; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius: 16px; padding: var(--space-6); }
.p-service .step::before{ counter-increment: step; content: counter(step); position:absolute; top: -14px; left: -14px; width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-weight: var(--weight-bold); box-shadow: var(--button-glow); }
@media (max-width: 1024px){ .p-service .process-steps{ grid-template-columns: 1fr; } }
@media (min-width: 1024px){ .p-service .process-steps{ margin-top: var(--space-8); } }

/* CTA */
.p-service .services-cta{ margin-bottom: var(--section-gap); }

/* ===== Projects CTA ===== */
.p-projects .projects-cta{ margin-bottom: var(--section-gap); }
.cta-card{ background: var(--gradient-card); border:2px solid transparent; border-radius: 24px; padding: var(--space-8); text-align: center; box-shadow: var(--card-glow); position: relative; max-width: 900px; margin: 0 auto; }
.cta-card::before{ content:""; position:absolute; inset:0; border-radius:24px; padding:2px; background: var(--gradient-border); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; pointer-events:none; }
.cta-card p{
  font-family: var(--font-secondary);
  color: var(--text-secondary);
}
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  background: transparent;
  backdrop-filter: none;
}

.site-header.scrolled{
  background: rgba(18,18,26,0.7);
  /* backdrop-filter: blur(10px); */
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}

.nav-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-logo{
  height: 60px;
  width: auto;
  object-fit: contain;
  @media (max-width: 768px) {
    height: 50px;
  }
}

.site-nav{
  display: flex;
  gap: var(--space-12);
  align-items: center;
}

.nav-link{
  position: relative;
  color: var(--text-secondary);
  width: auto;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: var(--weight-medium);
  transition: color .2s ease;
}

.nav-link::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  border-radius: 2px;
}

.nav-link:hover{
  color: var(--text-primary);
}
.nav-link:hover::after{
  transform: scaleX(1);
}

/* Lien actif: soulign e9 en permanence sans hover */
.site-nav .nav-link[aria-current="page"]{
  color: var(--text-primary);
}
.site-nav .nav-link[aria-current="page"]::after{
  transform: scaleX(1);
}

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 900px){
 nav,.site-header.scrolled {
    background: rgba(18, 18, 26, 0.99);
    /* backdrop-filter: blur(10px); */
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
 }
 
  .site-nav{
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    align-items: flex-start;
  }
  .site-nav.open{ display: flex; }
  .nav-toggle{ display: inline-flex; }
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


html::-webkit-scrollbar {
  width: var(--sb-size);
}

html::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

html::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}

@supports not selector(::-webkit-scrollbar) {
  html {
      scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

body {

  margin: 0;
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--gradient-background);
  min-height: 100vh;
  line-height: 1.6;
  scrollbar-color: #1a6fff rgba(255, 255, 255, 0.05);
}

/* Typography */
h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  margin: 0 0 var(--space-6) 0;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

h1 .gradient-text {
  background: linear-gradient(
    90deg,
    #4a7fff 0%,
    #4a7fff 40%,
    #bd5fd1 60%,
    #bd5fd1 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 4px rgba(26, 111, 255, 0.3))
    drop-shadow(0 0 4px rgba(189, 95, 209, 0.3));
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-4) 0;
  color: var(--text-primary);
  text-shadow: 0 0 4px rgba(26, 111, 255, 0.15);
  letter-spacing: 0.03em;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--button-padding);
  background: var(--gradient-button);
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--button-glow);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: var(--button-hover-transform);
  box-shadow: var(--button-hover-glow);
}

.btn:active {
  transform: translateY(0);
}

/* Card */
.card {
  background: var(--gradient-card);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 16px;
  padding: var(--card-padding);
  box-shadow: var(--card-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: var(--gradient-border);
  /* Masquage cross-browser pour bordure dégradée */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;   /* Safari/Chromium */
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;       /* Firefox */
  pointer-events: none;
}

.card:hover {
  transform: var(--card-hover-transform);
  box-shadow: var(--card-hover-glow);
}

.card:hover::before {
  background: linear-gradient(135deg, #1a6fff 0%, #bd5fd1 100%);
  filter: brightness(1.2);
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  gap: var(--space-4);

}

nav a {
  display: inline-block;
  text-decoration: none;
  position:relative;
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  transition: all 0.3s ease;
}



nav a[aria-current="page"] {
  color: var(--text-primary);
  border-color: transparent;
}

main {
  margin: 0;
}

/* Classe pour les conteneurs avec max-width et padding */
.container-layout,.container-layout-no-mobile {
  max-width: var(--section-max-width);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glow {
  text-shadow: 0 0 6px rgba(26, 111, 255, 0.3);
}

.subtle-glow {
  text-shadow: 0 0 4px rgba(26, 111, 255, 0.15);
}

.strong-glow {
  text-shadow: 0 0 8px rgba(26, 111, 255, 0.4);
}

/* Hero Section */
.hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  @media (max-width: 768px) {
    min-height: 80vh;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
  margin: 0 auto var(--section-gap);
}

.hero-text h1 {
  font-size: var(--text-6xl);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-text p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.3;
  font-family: var(--font-secondary);
  letter-spacing: 0.01em;
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* backdrop-filter: blur(10px); */
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary-blue);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pink-square {
  width: 400px;
  height: 350px;
  background: linear-gradient(135deg, #bd5fd1 0%, #7c79ff 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  position: relative;
  box-shadow: 0 20px 60px rgba(189, 95, 209, 0.3);
  transform: rotate(8deg);
  border-radius: 38px 44px 136px 30px;
}

.character-img {
  width: 20rem;
  position: absolute;
  top: 10px;
  left: 0px;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Floating Bubbles */
.floating-bubble {
  position: absolute;
  background: var(--primary-blue);
  border-radius: 50%;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.bubble-1 {
  width: 45px;
  height: 45px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 30px;
  height: 30px;
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.bubble-3 {
  width: 22px;
  height: 22px;
  bottom: 30%;
  left: 5%;
  animation-delay: 2s;
}

.bubble-4 {
  width: 38px;
  height: 38px;
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

.bubble-5 {
  width: 26px;
  height: 26px;
  top: 50%;
  left: -5%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
  }
  75% {
    transform: translateY(-15px) translateX(3px);
  }
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes float-gentle-card1 {
  0%,
  100% {
    transform: translateY(calc(-50% - 2px));
  }
  50% {
    transform: translateY(calc(-50% + 2px));
  }
}

@keyframes float-gentle-card2 {
  0%,
  100% {
    transform: translateX(calc(-50% - 1px));
  }
  50% {
    transform: translateX(calc(-50% + 1px));
  }
}

@keyframes float-gentle-card3 {
  0%,
  100% {
    transform: translateY(calc(-50% - 2px));
  }
  50% {
    transform: translateY(calc(-50% + 2px));
  }
}

@keyframes float-gentle-card4 {
  0%,
  100% {
    transform: translateX(calc(-50% - 1px));
  }
  50% {
    transform: translateX(calc(-50% + 1px));
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }

  .hero-buttons {
    justify-content: center;
  }
  .hero-text h1 {
    font-size: var(--text-4xl);
  }

  .pink-square {
    width: 16rem;
    height: 16rem;
  }
  .hero-visual {
    align-items: flex-start;
  }
  .character-img {
    width: 16rem;
    height: auto;
  }
}


/* Logo Carousel */
.logo-carousel {
  margin-bottom: var(--section-gap);
  /* opacity: 0.8; */
  /* backdrop-filter: blur(10px); */
  width: 100%;
  @media (max-width: 768px) {
    /* margin-bottom: var(--space-8); */
  }
}

.carousel-container {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  animation: scroll 20s linear infinite;
  width: fit-content;
  gap: var(--space-8);
  padding: 0 var(--space-8);
}

.carousel-item {
  flex-shrink: 0;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: all 0.3s ease;
  /* opacity: 0.7; */
}

.company-logo:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive pour le carrousel */
@media (max-width: 768px) {
  .company-logo {
    height: 30px;
    max-width: 100px;
  }

  .carousel-item {
    padding: 0 var(--space-3);
  }
}

/* Section Notre approche */
.approach-section {
  padding-bottom: var(--space-6);
  padding-top: var(--space-6);
  @media (max-width: 768px) {
    margin-bottom: 0;
    padding-top: 0;
  }
}



.section-title {
  text-align: center;
  font-size: var(--text-4xl);
  color: var(--text-primary);
  @media (max-width: 768px) {
    margin-bottom: var(--space-4);
  }
}

.approach-cards {
  position: relative;
  margin: auto;
  width: 1000px;
  height: 800px;
  @media (max-width: 768px) {
    margin-top: var(--space-16);
    width: auto;
  }
}

.approach-card {
  background: var(--gradient-card);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: var(--space-5);
  position: absolute;
  box-shadow: var(--card-glow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 350px;
  height: auto;
  min-height: 220px;
}

.approach-card:nth-child(1) {
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  animation: float-gentle-card2 6s ease-in-out infinite;
  animation-delay: 0s;
}

.approach-card:nth-child(2) {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  animation: float-gentle-card1 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

.approach-card:nth-child(3) {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  animation: float-gentle-card3 6s ease-in-out infinite;
  animation-delay: 3s;
}

.expertise-text {
  font-family: var(--font-secondary);
}
.approach-card:nth-child(4) {
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  animation: float-gentle-card4 6s ease-in-out infinite;
  animation-delay: 4.5s;
}
.approach-card p {
  font-family: var(--font-secondary);
}
.approach-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background-image: url("./assets/img/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 10;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.approach-logo:hover {
  transform: translate(-50%, -50%) rotate(25deg);
}

.approach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;   /* Safari/Chromium */
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;       /* Firefox */
  pointer-events: none;
}

.card-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  box-shadow: var(--button-glow);
  z-index: 10;
}

.approach-card h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.1em;
}

.p-about .about-cards .card {
  box-shadow:none;
}
.approach-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
  font-size: calc(var(--text-sm) * 1.1);
}

/* Responsive pour les cards */
@media (max-width: 1400px) and (min-width: 769px) {
  .approach-cards {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-8);
    max-width: 800px;
  }

  .approach-card:nth-child(1),
  .approach-card:nth-child(2),
  .approach-card:nth-child(3),
  .approach-card:nth-child(4) {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 200px;
    animation: none;
  }

  .approach-logo {
    display: none;
  }

  .approach-card {
    padding: var(--space-6);
  }
}

@media (max-width: 768px) {
  .approach-cards {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    max-width: none;
  }

  .approach-card:nth-child(1),
  .approach-card:nth-child(2),
  .approach-card:nth-child(3),
  .approach-card:nth-child(4) {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    min-height: 180px;
    animation: none;
  }

  .approach-logo {
    display: none;
  }

  .approach-card {
    padding: var(--space-6);
  }

  .card-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
    top: -20px;
  }
}

/* Section Nos expertises - Onglets */
.expertise-section {
  padding-bottom: var(--space-6) 0;
  margin-bottom: var(--section-gap);
  @media (max-width: 768px) {
    padding-top: 0!important;
  }
}

.expertise-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(36, 36, 68, 0.3);
  border: 1px solid rgba(26, 111, 255, 0.2);
  border-radius: 12px;
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-primary);
  font-weight: var(--weight-medium);
}

.tab-btn:hover {
  border-color: var(--primary-blue);
  background: rgba(26, 111, 255, 0.1);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--text-primary);
  box-shadow: var(--button-glow);
}

.tab-icon {
  font-size: var(--text-lg);
}

.tab-label {
  font-size: var(--text-sm);
}

.tab-content {
  position: relative;
  min-height: 400px;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.expertise-card {
  background: var(--gradient-card);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: var(--space-4);
  box-shadow: var(--card-glow);
  position: relative;
}

.expertise-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: var(--gradient-border);
  /* Masquage cross-browser pour bordure dégradée */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;   /* Safari/Chromium */
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;       /* Firefox */
  pointer-events: none;
}

.expertise-card h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  text-align: center;
}

.expertise-subtitle {
  font-size: var(--text-lg);
  color: var(--highlight-cyan);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
  text-align: center;
}

.expertise-card > p:not(.expertise-subtitle) {
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
}

.expertise-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-6);
}

.expertise-item {
  max-width: 100%;
  background: rgba(26, 111, 255, 0.1);
  border: 1px solid rgba(26, 111, 255, 0.2);
  border-radius: 8px;
  padding: var(--space-3);
  color: var(--text-primary);
  text-align: center;
  font-size: var(--text-sm);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  width: 250px;
  flex-shrink: 0;
}

.expertise-item:hover {
  background: rgba(26, 111, 255, 0.2);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.container-layout-no-mobile {
  padding-left:0!important;
  padding-right:0!important;
}
/* Responsive pour les onglets */
@media (max-width: 768px) {
  .tab-buttons {
    gap: var(--space-1);
  }

  .tab-btn {
    padding: var(--space-2) var(--space-3);
  }

  .tab-label {
    display: none;
  }

  .tab-icon {
    font-size: var(--text-xl);
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* Section Nos projets */
.projects-section {
  width: 100%;
  position: relative;
  height: auto;
  margin-bottom: var(--section-gap);
}

.projects-slider {
  width: 100%;
  position: relative;
  margin-bottom: var(--section-gap);
}

.project-slide {
  position: relative;
  padding: var(--space-4) var(--space-4);
  padding-bottom: 0;
  padding-top: var(--space-12);
  border-radius: 10px;
  width: 100%;
  min-height: 600px;
  display: none;
  align-items: center;
  justify-content: center;
}

.project-slide.active {
  display: flex;
  @media (max-width: 740px){
    padding-left: 10px;
    padding-right: 10px;
  }
}
.project-slide.active .project-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;

}
.project-slide:nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-slide:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-slide:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-slide:nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 0 var(--space-1);
  height: 100%;
  @media (max-width: 768px) {
    padding-bottom: 0 !important;
  }
}

.project-content-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: var(--space-12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
    height: auto;
    min-height: 550px;
}

.project-info-section {
  flex: 1;
  max-width: 500px;
  color: white;
  z-index: 10;
}

.project-info {
  color: white;
  z-index: 10;
  text-align: center;
}

.client-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: white;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

.project-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-align: center;
  color: white;
}

.project-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-8);
  font-family: var(--font-secondary);
  opacity: 0.9;
  font-weight: normal;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 6.4em;
}

.technologies {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.2);
  /* backdrop-filter: blur(10px); */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tech-color, rgba(255, 255, 255, 0.2));
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.tech-badge:hover::before {
  opacity: 0.5;
}

.tech-badge:hover {
  transform: translateY(-2px);
}

.tech-badge img,
.tech-badge span {
  position: relative;
  z-index: 1;
}

.tech-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.project-image-desktop {
  flex: 1;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-image-mobile {
  display: none;
  justify-content: center;
  align-items: center;
  margin: var(--space-4) 0;
}

.project-image-desktop img,
.project-image-mobile img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.project-image-desktop img:hover,
.project-image-mobile img:hover {
  transform: scale(1.05);
}

.slider-controls {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  z-index: 20;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all 0.3s ease;
  /* backdrop-filter: blur(10px); */
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: var(--space-2);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: white;
  transform: scale(1.2);
}

/* Responsive pour les projets - Écrans moyens (tablettes, petits PC) */
@media (max-width: 1024px) {
  .project-content-container {
    height: 480px;
    padding: var(--space-10);
    gap: var(--space-12);
  }

  .project-title {
    font-size: var(--text-3xl);
  }

  .project-description {
    font-size: var(--text-sm);
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: 4.8em;
  }

  .project-image img {
    max-height: 350px;
  }
  .slider-controls {
    bottom: -60px;
  }
}

/* Responsive pour les projets - Tablettes */
@media (max-width: 768px) {
  .projects-slider {
    min-height: auto;
  }

  .project-slide {
    min-height: auto;
    padding: var(--space-4) 0;
  }

  .project-content {
    padding: var(--space-4);
    height: auto;
    display: flex;
    align-items: center;
  }

  .project-content-container {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-8);
    height: auto;
    max-height: 850px;
    min-height: 550px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .project-info-section {
    max-width: none;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .project-image-desktop {
    display: none;
  }

  .project-image-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: var(--space-2) 0;
  }

  .project-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
  }

  .project-description {
    font-size: var(--text-base);
    -webkit-line-clamp: 10;
    line-clamp: 10;
    max-height: 16em;
    margin-bottom: var(--space-4);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .technologies {
    justify-content: center;
    margin-bottom: var(--space-4);
  }

  .project-image-mobile img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
  }

  .slider-controls {
    position: relative;
    justify-content: center;
    bottom: -4px;
  }
}

/* Responsive pour les projets - Téléphones */
@media (max-width: 480px) {
  .projects-section {
    min-height: auto;
  }

  .projects-slider {
    min-height: auto;
  }

  .project-slide {
    min-height: auto;
    padding: var(--space-3) 0;
  }

  .project-content {
    padding: var(--space-3);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .project-content-container {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-4);
    height: auto;
    max-height: 800px;
    min-height: 500px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
  }

  .project-info-section {
    max-width: none;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .project-image-desktop {
    display: none;
  }

  .project-image-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: var(--space-2) 0;
  }

  .client-name {
    font-size: var(--text-xs);
    margin-bottom: var(--space-2);
  }

  .project-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
    line-height: 1.2;
  }

  .project-description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
    -webkit-line-clamp: 10;
    line-clamp: 10;
    max-height: 14em;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .technologies {
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
  }
  .cards-section {
    padding:0;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .card-2 .card-image {
    left: 0!important;
  }
  .cards-section .card {
    width: 200px;
  }
  .cards-section .card-image {
   height: 70%;
   transform: scale(1.2)!important;

  }
  .cards-section .card-1 .card-image {
    left: 50%!important;
    transform: translateX(-50%) scale(1.2)!important;
 
  }
  .cards-section .card-1 .card-image {
    left: 50%!important;
    transform: translateX(-50%) scale(1.2)!important;
 
  }

  .cards-section .card-3 .card-image {
    left: 50%!important;
    transform: translateX(-50%) scale(1.2)!important;
 
  }
  .tech-badge {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    border-radius: 16px;
  }

  .tech-badge img {
    width: 14px;
    height: 14px;
  }

  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }

  /* Forcer les avatars des cartes de projets à garder la même hauteur qu'en desktop */
  .p-projects .expertise-card .card-avatar {
    width: auto !important; /* Largeur automatique pour préserver le ratio */
    height: 36px !important;
  }


  .project-image-mobile img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
  }

  .slider-controls {
    gap: var(--space-4);
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}

.section-subtitles {
  font-family: var(--font-secondary);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  text-align: center;
  margin-bottom: var(--space-12);
  margin-top: var(--space-4);
}

/* Section À propos */
.about-section {
  padding: 6rem 0;
  position: relative;
  background: var(--gradient-background);
  @media (max-width: 768px) {
    margin-top: var(--space-32);
  }
}

.about-content {
  margin-top: 4rem;
}

.card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.about-card h3 {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-card p {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 1024px) {
  .about-section {
    padding: 4rem 2rem;
  }
}

@media (max-width: 767px) {
  .about-section {
    padding: 3rem 1rem;
  }
  
  /* Slider pour les cartes sur mobile */
  .cards-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
  }
  
  .cards-slider {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
  }
  
  .card {
    flex: 0 0 100%;
    position: static;
    transform: none !important;
    animation: none;
    margin: 0;
    width: 100%;
    height: 350px;
  }
  
  .card-1,
  .card-2,
  .card-3 {
    transform: none !important;
    animation: none;
  }
  
  .card-image {
    height: 220px;
    position: relative;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  .card-content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 1rem;
    z-index: 1;
    padding: 1rem;
  }
  
  /* Contrôles du slider */
  .cards-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-6);
    padding-bottom: 2rem;
  }
  
  .slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 111, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
  }
  
  .slider-dot.active {
    background: var(--primary-blue);
    transform: scale(1.2);
  }
}

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: var(--section-padding);
  position: relative;
  padding-bottom: 0px!important;
  @media (max-width: 768px) {
    padding-top: var(--space-8);
  }
}

.about-section .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 94px;
  align-items: center;
}

/* Section des cards */
.cards-section {
  position: relative;
  top: 200px;
  min-height: 600px;
}

.card {
  position: absolute;
  width: 240px;
  height: 350px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}


.card-1 {
  /* background: var(--gradient-primary); */
  background-image: url("./assets/img/about-cards/sprite_1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  
  top: 0;
  right: 2px;
  z-index: 10;
  transform: rotate(-9deg);
}

.card-1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26, 111, 255, 0.3) 30%,
    rgba(26, 111, 255, 0.7) 70%,
    rgba(26, 111, 255, 0.9) 100%
  );
  border-radius: 20px;
  z-index: 15;
  pointer-events: none;
}

.card-1 .card-image {
  margin: auto;
}
.card-2 .card-image {
  left: 0;
}

.card-3 .card-image {
  left: 50%;
  transform: translateX(-50%);
}
.card-2 {
  /* background: var(--gradient-secondary); */
  background-image: url("./assets/img/about-cards/sprite_2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  top: 10px;
  left: -45px;
  z-index: 9;
  transform: rotate(-13deg);
}

.card-2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(189, 95, 209, 0.3) 30%,
    rgba(189, 95, 209, 0.7) 70%,
    rgba(189, 95, 209, 0.9) 100%
  );
  border-radius: 20px;
  z-index: 15;
  pointer-events: none;
}
.card {
  background-size: 100% 102.9%;
  
}
.card-3 {
  /* background: linear-gradient(
    135deg,
    var(--highlight-cyan) 0%,
    var(--primary-blue) 100%
  ); */
  background-image: url("./assets/img/about-cards/sprite_3.png");
  background-position: center;
  background-repeat: no-repeat;
  top: -219px;
  right: 200px;
  z-index: 9;
  transform: rotate(14deg);
}

.card-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(51, 225, 255, 0.3) 30%,
    rgba(51, 225, 255, 0.7) 70%,
    rgba(51, 225, 255, 0.9) 100%
  );
  border-radius: 20px;
  z-index: 15;
  pointer-events: none;
}

.card-image {
  position: absolute;
  bottom: 0;

  width: auto;
  height: 250px;
  z-index: 1;
}

.team-photo {
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.card-content {
  position: absolute;
  top: 20px;
  display: flex;
  justify-content: flex-start;
  left: 20px;
  right: 20px;

  border-radius: 12px;
  padding: 15px;
  color: var(--text-primary);
  text-align: center;
  z-index: -1;
}

.card-name {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-primary);
}

.card-role {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-family: var(--font-secondary);
  opacity: 0.8;
}

/* Section contenu */
.content-section {
  padding-left: 40px;
}

.main-title {
  font-size: var(--text-7xl);
  font-weight: var(--weight-black);
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-family: var(--font-primary);
  text-shadow: var(--subtle-text-glow);
}

.decorative-line {
  width: 354px;
  height: 20px;
  background: var(--gradient-button);
  border-radius: 20px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: var(--button-glow);
}

.decorative-line::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--primary-blue);
  border-radius: 50%;
  box-shadow: var(--subtle-glow);
}

.description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  width: 100%;
  font-family: var(--font-secondary);
}

.cta-button {
  background: var(--gradient-button);
  color: var(--text-primary);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  padding: 11px 37px 9px 41px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
  box-shadow: var(--button-glow);
  display: inline-block;
  text-decoration: none;
  height: -webkit-fill-available;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--highlight-cyan) 0%,
    var(--secondary-violet) 100%
  );
  transition: left 0.3s ease;
  z-index: -1;
  border-radius: 8px;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--strong-glow);
}

.cta-button > * {
  position: relative;
  z-index: 1;
}

/* Animations pour les cartes */
@keyframes float-cards {
  0%,
  100% {
    transform: translateY(0px) rotate(var(--rotation));
  }
  50% {
    transform: translateY(-10px) rotate(var(--rotation));
  }
}

.card-1 {
  --rotation: -9deg;
  animation: float-cards 6s ease-in-out infinite;
}

.card-2 {
  --rotation: -13deg;
  animation: float-cards 6s ease-in-out infinite 2s;
}

.card-3 {
  --rotation: 14deg;
  animation: float-cards 6s ease-in-out infinite 4s;
}

.container-layout-about {
  margin-bottom: var(--space-4)!important;
}

/* Responsive */
@media screen and (max-width: 1366px) {
  .about-section .container {
    gap: 60px;
  }
  .container-layout {
    padding-left: var(--space-4)!important;
    padding-right: var(--space-4)!important;
  }
  .p-projects .projects-hero {
    padding: var(--space-4) var(--space-8);
    padding-bottom: 0;
  }
  .card {
    width: 210px;
    height: 320px;
  }
  .card-3 {
    margin-top: -50px;
  }
  .cards-section {
    margin-left: 100px;
  }
  .main-title {
    font-size: var(--text-6xl);
  }

  .cta-button {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 1024px) {
  .main-title {
    font-size: var(--text-5xl);
  }

  .content-section {
    padding-left: 0;
    order: 2;
  }

  .cards-section {
    order: 1;
    min-height: 400px;
  }
}
.cta-button-mobile {
  display: none;
}
@media (max-width: 1300px) {
  .about-section {
    display: flex;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
    width: 100%;
  }

  .about-section .container {
    gap: 30px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .cta-button-mobile {
    display: block;
  }

  .cta-button:not(.cta-button-mobile) {
    display: none;
  }

  .card {
    width: 171px;
    position: static;
  }
  .card-1,
  .card-2,
  .card-3 {
    transform: rotate(0deg) !important;
  }

  .card-1 .card-image {
    left: 0;
  }
  .card-3 {
    margin-top: 0;
  }
  .cards-section {
    width: 100%;
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 4px;
  }
  .card-image {
    height: 80%;
  }

  .card-content {
    top: 15px;
    left: 15px;
    right: 15px;
    padding: 12px;
  }

  .card-name {
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
  }

  .card-role {
    font-size: var(--text-sm);
    line-height: 1.4;
  }

  .card-1 {
    top: -63px;
    right: -51px;
  }

  .card-2 {
    top: 1px;
    left: -80px;
  }

  .card-3 {
    top: -115px;
    right: 115px;
  }

  .main-title {
    font-size: var(--text-4xl);
  }

  .decorative-line {
    width: 172px;
    height: 20px;
  }

  .description {
    font-size: var(--text-base);
  }

  .cta-button {
    font-size: var(--text-xl);
    padding: 8px 25px;
  }

  .cards-section {
    min-height: 195px;
  }
}

/* Section Témoignages */
.testimonials-section {
  background: var(--gradient-background);
  position: relative;
  width: 100%;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  @media (max-width: 768px) {
    margin-top: 0;
    height: min-content;
  }
}

.testimonials-section .container {
  /* Pas de max-width pour que la section s'étende sur toute la page */
  padding: var(--container-padding);
}

.testimonials-slider {
  position: relative;
  margin: var(--space-6) 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card {
  background: var(--gradient-card);
  backdrop-filter: var(--glass-backdrop);
  border: 2px solid transparent;
  border-radius: 24px;
  padding: var(--space-6);
  box-shadow: var(--card-glow);
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 2px;
  background: var(--gradient-border);
  /* Masquage cross-browser pour bordure dégradée */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;   /* Safari/Chromium */
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;       /* Firefox */
  pointer-events: none;
}

.testimonial-content {
  text-align: center;
}

.testimonial-text {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-family: var(--font-secondary);
  font-style: italic;
  position: relative;
}

.testimonial-text::before {
  content: "\201C"; /* " opening quote */
  font-size: var(--text-4xl);
  color: var(--primary-blue);
  position: absolute;
  top: -20px;
  left: -20px;
  opacity: 0.3;
}

.testimonial-text::after {
  content: "\201D"; /* " closing quote */
  font-size: var(--text-4xl);
  color: var(--primary-blue);
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-blue);
  box-shadow: var(--subtle-glow);
}

.author-info {
  text-align: left;
}

.author-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-1) 0;
}

.author-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  font-family: var(--font-secondary);
}

.testimonials-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  width: 1200px;
  max-width: 98vw;
}

.testimonial-btn {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  padding: var(--space-4);
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  width: 300px;
}

.testimonial-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

/* Les boutons ne sont plus désactivés, ils reviennent au début/fin */

/* Styles Calendly supprimés - utilisation du popup */

/* Personnalisation de la popup Calendly */
.calendly-popup-content {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) rgba(255, 255, 255, 0.1);
}

.calendly-popup-content::-webkit-scrollbar {
  width: 8px;
}

.calendly-popup-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.calendly-popup-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #bd5fd1 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendly-popup-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4a7fff 0%, #bd5fd1 100%);
}

/* Styles pour tous les éléments Calendly */
.calendly-inline-widget::-webkit-scrollbar,
.calendly-popup-content::-webkit-scrollbar,
[data-calendly-popup]::-webkit-scrollbar {
  width: 8px;
}

.calendly-inline-widget::-webkit-scrollbar-track,
.calendly-popup-content::-webkit-scrollbar-track,
[data-calendly-popup]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.calendly-inline-widget::-webkit-scrollbar-thumb,
.calendly-popup-content::-webkit-scrollbar-thumb,
[data-calendly-popup]::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #bd5fd1 100%);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendly-inline-widget::-webkit-scrollbar-thumb:hover,
.calendly-popup-content::-webkit-scrollbar-thumb:hover,
[data-calendly-popup]::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4a7fff 0%, #bd5fd1 100%);
}

.testimonial-dots {
  display: none;
}

.testimonial-dot {
  display: none;
}

.testimonial-dot.active {
  display: none;
}

/* Responsive pour les témoignages */
@media (max-width: 768px) {
  .testimonial-card {
    padding: var(--space-8);
    margin: 0 var(--space-4);
  }

  .testimonial-text {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
  
  .testimonial-text::before,
  .testimonial-text::after {
    font-size: var(--text-2xl);
    top: -15px;
    left: -15px;
  }
  
  .testimonial-text::after {
    bottom: -15px;
    right: -15px;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: var(--space-3);
  }
  
  .author-image {
    width: 50px;
    height: 50px;
  }
  
  .author-info {
    text-align: center;
  }
  
  .testimonials-controls {
    display: none;
  }
  
  .testimonial-btn {
    display: none;
  }
}

/* ===== About page (Section 1: Hero, structure fidèle) ===== */
.p-about .hero_banner{ position: relative; width: 100%; height: 95vh; overflow: hidden; }
.p-about .hero_banner_container_content{ height: 100%;display: grid;}

.p-about .banner_content{ position: relative; z-index: 2; width: 100%; max-width: 850px; text-align: center; margin: 0 auto; }
.p-about .banner_text p{ color: var(--text-secondary); }
.p-about .banner_image{ margin-top: -10rem;  z-index: 1;
  display: flex;top:0; width:100%; height: 100%; justify-content: center; align-items: flex-end;margin-top:20px; position:absolute
}

.p-about .banner-image-container img{
  color: transparent;
  width: 100%;
  object-fit: cover;
  position: relative;
  filter: blur(2.5px);
  height: 100%;

}

.p-about .banner-image-container{
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}


.p-about .banner-image-container::after{
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(ellipse at top left, transparent 0%, var(--bg-secondary) 40%, var(--bg-dark) 94%);
  pointer-events: none;
}
.p-about .btn-solid{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 10px 16px; border-radius: 10px; color:#fff; text-decoration:none; background: var(--gradient-button); box-shadow: var(--button-glow); font-family: var(--font-primary); font-weight: var(--weight-medium); font-size: .95rem; border: 1px solid rgba(255,255,255,.15); transition: transform .2s ease, box-shadow .2s ease; }
.p-about .btn-solid:hover{ transform: var(--button-hover-transform); box-shadow: var(--button-hover-glow); }
.p-about .btn-ghost{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 10px 16px; border-radius: 10px; color: var(--text-primary); text-decoration:none; background: transparent; border:1px solid rgba(255,255,255,.25); font-family: var(--font-primary); font-weight: var(--weight-medium); font-size: .95rem; transition: background .2s ease, color .2s ease, transform .2s ease; }
.p-about .btn-ghost:hover{ background: rgba(255,255,255,.06); transform: translateY(-1px); }

@media (max-width: 640px){
  .p-about .hero_banner{ padding-top: var(--space-16); }
}

/* ===== About: Section 2 (Overview 2 colonnes) ===== */
.p-about .about-overview{ padding: var(--space-16) 0 var(--space-12); }
.p-about .overview-grid{ display:grid; grid-template-columns: 0.4fr 1.6fr; gap: var(--space-12); align-items:start; }
.p-about .overview-heading{ color: var(--text-primary); font-size: clamp(1.6rem, 2.4vw, 2.6rem); margin: 0; }
.p-about .overview-content{ color: var(--text-secondary); font-size: 1.1rem; font-family: var(--font-secondary); line-height: 1.7; display:flex; flex-direction:column; gap: var(--space-4); }
.p-about .about-divider{ height:1px; width:100%; background: rgba(255,255,255,.1); margin-top: var(--space-12); }
@media (max-width: 1024px){
  .p-about .overview-grid{ grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ===== About: Section 3 (slider logos) ===== */
.p-about .about-skills{ padding: 0 0 var(--space-12); text-align:center; }
.p-about .skills-title{ color: var(--text-primary); font-size: clamp(1.4rem, 2vw, 2rem); margin: 0 0 var(--space-4); }
.p-about .skills-text{ color: var(--text-secondary); font-family: var(--font-secondary); max-width: 80ch; font-weight: normal; margin: 0 auto var(--space-8); line-height:1.7; font-size: clamp(.95rem, 1.1vw, 1.1rem); }
.p-about .logo-slider{ position: relative; overflow: hidden; mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%); }
.p-about .logos-track{ display:flex; align-items:center; gap: clamp(28px, 5vw, 64px); width: max-content; animation: about-logos-scroll 22s linear infinite; }
.p-about .logos-track img{ height: clamp(28px, 5vw, 44px); width: auto; filter: none; transform: translateZ(0); }
@keyframes about-logos-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* Principles sections spacing */
.p-about .principles-section{ padding: var(--space-16) 0 var(--space-12); }
.p-about .about-cards .card-text {
  font-family: var(--font-secondary);
  flex-grow: 1;
}
/* Cards slider */
.p-about .about-cards .section-header{ text-align:center; margin-bottom: var(--space-8); }
.p-about .about-cards .section-title{ color: var(--text-primary); font-size: clamp(1.6rem, 2.4vw, 2.6rem); }
.p-about .cards-slider{ position: relative; display:flex; align-items:center; gap: var(--space-4); }
.p-about .cards-track{ display:flex; gap: var(--space-6); overflow-x:auto; scroll-snap-type: x mandatory; padding: var(--space-2) var(--space-2) var(--space-2) 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.p-about .cards-track::-webkit-scrollbar{ display:none; }
.p-about .cards-track .card{ flex:0 0 clamp(220px, 24vw, 320px); height: auto; min-height: clamp(320px, 40vw, 480px); scroll-snap-align: start; background: var(--gradient-card); border:1px solid rgba(255,255,255,.08); border-radius: 16px; padding: var(--space-6); color: var(--text-secondary); position: relative; display: flex; flex-direction: column; }
.p-about .cards-track .card .card-title{ color: var(--text-primary); font-weight: var(--weight-semibold); margin: var(--space-4) 0 var(--space-2); font-size: clamp(1.1rem, 1.4vw, 1.4rem); }
.p-about .cards-track .card .card-thumb{ height: 180px; border-radius: 14px; overflow: hidden; margin-bottom: var(--space-4); background: rgba(255,255,255,.04); }
.p-about .cards-track .card .card-thumb img{ width:100%; height:100%; object-fit: cover; display:block; }
.p-about .cards-arrow{ background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: var(--text-primary); width: 42px; height: 42px; border-radius: 999px; display:grid; place-items:center; cursor:pointer; transition: background .2s ease, transform .2s ease; }
.p-about .cards-arrow:hover{ background: rgba(255,255,255,.2); transform: translateY(-1px); }
.p-about .cards-track .card:hover {
  transform: scale(1.01);
}
@media (max-width: 640px){
  .p-about .cards-arrow{ display:none; }
}

/* Allow vertical page scroll when hovering the horizontal cards track */
.p-about .cards-slider,
.p-about .cards-track,
.p-about .cards-track * {
  overscroll-behavior: auto;
}

.p-about .cards-track {
  touch-action: auto;
}

/* ===== About Team Section ===== */

.p-about .team-header{ 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: var(--space-16); 
  align-items: center; 
  position: relative;
}

.p-about .team-content{ 
  padding-left: var(--space-8); 
}

.p-about .team-title{ 
  color: var(--text-primary); 
  font-size: clamp(2rem, 3vw, 2.5rem); 
  font-weight: var(--weight-bold); 
  margin: 0 0 var(--space-2); 
}

.p-about .team-description{ 
  max-width: 541px; 
}

.p-about .team-description p{ 
  color: var(--text-secondary); 
  font-size: clamp(1rem, 1.25vw, 1.25rem); 
  line-height: 1.6; 
  margin-bottom: var(--space-4); 
  font-family: var(--font-secondary);
}

.p-about .team-description p:first-child{
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-weight: normal;
}

.p-about .team-visual{ 
  position: relative; 
  overflow: hidden;
  border-radius: 16px;
}

.p-about .team-image{ 
  width: 100%; 
  height: auto; 
  object-fit: cover; 
  border-radius: 16px;
  box-shadow: var(--card-glow);
}

.p-about .btn_wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
@media (max-width: 768px){
  /* Hero Section Mobile */
  .p-about .hero_banner{ 
    height: 95vh; 
    padding-top: 0; 
    padding-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
  }
  
  .p-about .hero_banner_container_content{ 
    height: 100%; 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    position: relative;
  }
  
  .p-about .banner_content{ 
    max-width: none; 
    padding: 0 var(--space-4); 
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .p-about .banner_content h1{ 
    font-size: clamp(1.8rem, 4vw, 2.2rem) !important; 
    line-height: 1.2; 
    margin-bottom: var(--space-4);
  }
  
  .p-about .banner_text p{ 
    font-size: clamp(0.9rem, 2.5vw, 1.1rem) !important; 
    line-height: 1.5; 
    margin-bottom: var(--space-6);
  }
  
  .p-about .btn_wrapper{ 
    display: flex;
    flex-direction: column; 
    gap: var(--space-3); 
    align-items: center;
  }
  
  .p-about .btn-solid,
  .p-about .btn-ghost{ 
    width: 100%; 
    max-width: 280px; 
    justify-content: center;
  }
  
  .p-about .banner_image{ 
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .p-about .banner-image-container{ 
    width: 100%; 
    height: 100%;
    position: relative;
  }
  
  .p-about .banner-image-container img{ 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
  }
  
  /* Cards Slider Mobile */
  .p-about .cards-slider{ 
    padding: 0 var(--space-4) 0;
  }
  
  .p-about .cards-track{ 
    display: flex; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    padding: 0;
    gap: var(--space-4);
  }
  
  .p-about .cards-track .card{ 
    flex: 0 0 100%; 
    width: 100%; 
    min-height: 400px; 
    margin-right: 0; 
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--space-6);
  }
  
  .p-about .cards-track .card .card-thumb{ 
    height: 200px; 
    margin-bottom: var(--space-4);
    flex-shrink: 0;
  }
  
  .p-about .cards-track .card .card-title{ 
    font-size: clamp(1.2rem, 3vw, 1.4rem); 
    margin: var(--space-3) 0 var(--space-2);
  }
  
  .p-about .cards-track .card .card-text{ 
    font-size: clamp(0.9rem, 2.5vw, 1rem); 
    line-height: 1.6;
    flex-grow: 1;
  }
  
  /* Team Section Mobile */
  .p-about .team-header{ 
    grid-template-columns: 1fr; 
    gap: 0; 
    text-align: center;
  }
  
  .p-about .team-content{ 
    padding-left: 0; 
    order: 2;
  }
  
  .p-about .team-visual{ 
    order: 1; 
  }
  
  .p-about .team-description{ 
    max-width: none; 
    margin: 0 auto;
  }
}

/* ===== PROJECT DETAIL PAGE ===== */
.p-project-detail {
  /* Styles spécifiques à la page de détail de projet */
}

/* ==========================================================================
   PROJECT DETAIL SPECIFIC STYLES
   ========================================================================== */

/* Project Header Section */
.project-header {
    position: relative;
    color: var(--text-primary);
    background: var(--gradient-background);
    overflow: hidden;
}

.project-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(26, 111, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(189, 95, 209, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.project-header__container {
    position: relative;
    z-index: 2;
    max-width: var(--section-max-width);
    margin: 0 auto;
    margin-top: 20px;
    padding: var(--container-padding);
    background: var(--gradient-background);
    border-radius: 20px 20px 0 0;
    padding: var(--space-8) var(--space-4) 0 var(--space-4);
}

@media (max-width: 768px) {
    .project-header__container {
        margin-top: 0;
        border-radius: 0;
    }
}

.project-header__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

@media (max-width: 768px) {
    .project-header__row {
        display: flex;
        flex-direction: column;
        gap: var(--space-6);
    }
    
    /* En mobile, la galerie sera déplacée par JavaScript */
    .project-header__image {
        /* Styles par défaut - sera modifié par JS */
    }
}

/* Content Column */
.project-header__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    width: 100%;
}

/* Client Badge */
.project-header__client {
    display: inline-flex !important;
    align-items: center !important;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    gap: var(--space-2) !important;
}

.project-header__client::before {
    display: none !important;
}

/* Technologies Badges */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    opacity: 0.9;
}

.tech-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    backdrop-filter: var(--glass-backdrop);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tech-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.tech-badge:hover::before {
    left: 100%;
}

.tech-badge img {
    width: 16px;
    height: 16px;
    margin-right: var(--space-2);
    border-radius: 2px;
}


/* Project Title */
.project-header__title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.1;
    margin: var(--space-4) 0;
    text-shadow: var(--subtle-text-glow);
}

@media (max-width: 768px) {
    .project-header__title {
        font-size: var(--text-4xl);
    }
}

/* Description */
.project-header__description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
}

/* Call to Action */
.project-header__cta {
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-button);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 111, 255, 0.3);
    width: fit-content;
}

.project-header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 111, 255, 0.4);
}

.project-header__cta::after {
    content: "→";
    margin-left: var(--space-2);
    transition: transform 0.3s ease;
}

.project-header__cta:hover::after {
    transform: translateX(4px);
}

/* Image Column */
.project-header__image {
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.project-header__image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.project-header__image img {
    height: 100%;
    object-fit: fill;
    display: block;
    transition: transform 0.5s ease;
}

/* Mobile: Taille fixe pour les images */
@media (max-width: 768px) {
    .project-header__image img {
        width: 100% !important;
        /* height: 200px !important; */
        object-fit: cover !important;
        display: block !important;
    }
    
    /* Image principale de la galerie en mobile */
    #galleryMainImage {
        height: 200px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    /* Pour les images verticales en mobile, utiliser contain pour afficher l'image entière */
    #galleryMainImage.image-vertical {
        object-fit: contain !important;
        background: var(--gradient-card);
    }
}

/* Decorative Elements */
.project-header__decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.project-header__decoration--1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.project-header__decoration--2 {
    bottom: 30%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* ==========================================================================
   PROJECT CONTENT SECTION
   ========================================================================== */

.project-content {
    position: relative;
    padding: 0 0 var(--space-12) 0;
    background: transparent;
}

.project-content__container {
    background: var(--gradient-background);
    border-radius: 0 0 20px 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-8) var(--space-4) var(--space-8) var(--space-4);
}

/* Project Details Grid */
.project-details {
    display: grid;
    grid-template-columns: 1fr; /* Une seule colonne car la sidebar est en absolute */
    gap: var(--space-16);
    margin-bottom: var(--space-20);
    align-items: start;
    position: relative; /* Parent pour la sidebar en position absolute */
    padding-right: 320px; /* Espace pour la sidebar (300px + 20px de gap) */
}

@media (max-width: 992px) {
    .project-details {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        padding-right: 0; /* Pas de padding sur mobile */
    }
    
    .related-projects-sidebar {
        position: static; /* Retour en position normale sur mobile */
        width: 100%;
    }
}

/* Main Content - Style like approach-card */
.project-main-content {
    background: var(--gradient-card);
    backdrop-filter: var(--glass-backdrop);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: var(--space-4) var(--space-4) var(--space-8) var(--space-4);    position: relative;
    overflow: hidden;
    box-shadow: var(--card-glow);
}

.project-main-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.project-main-content h2 {
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    text-shadow: var(--subtle-text-glow);
}

.project-main-content p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.project-main-content p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.sidebar-card {
    background: var(--gradient-card);
    backdrop-filter: var(--glass-backdrop);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: var(--space-6);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--card-glow);
}

.sidebar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.sidebar-card:hover {
    transform: translateY(-5px);
}

.sidebar-card h3 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
}

.sidebar-card h3::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--project-theme-color, var(--highlight-cyan));
    border-radius: 50%;
    margin-right: var(--space-3);
    box-shadow: var(--subtle-glow);
}

/* Title underlines */
.project-content h2::after {
    content: "";
    display: block;
    width: 280px;
    height: 3px;
    background: var(--project-theme-color, var(--gradient-primary));
    border-radius: 2px;
    margin-top: var(--space-2);
}

@media (max-width: 768px) {
  .project-content h2::after {
    width: 85%;
  }
}

.sidebar-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.sidebar-card li::before {
    content: "▸";
    color: var(--project-theme-color, var(--primary-blue));
    margin-right: var(--space-2);
}

.project-gallery h2 {
    font-family: var(--font-primary);
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-12);
    text-shadow: var(--subtle-text-glow);
    position: relative;
    display: inline-block;
    width: 100%;
}

.project-gallery h2::after {
    content: "";
    display: block;
    width: 85%;
    height: 3px;
    background: var(--project-theme-color, var(--gradient-primary));
    border-radius: 2px;
    margin: var(--space-2) auto 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--gradient-card);
    border: 2px solid transparent;
    backdrop-filter: var(--glass-backdrop);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--card-glow);
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 101%;
    object-fit: fill;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
    border-radius: 15px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: var(--space-4);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    z-index: 3;
}

/* Image popup modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    /* backdrop-filter: blur(10px); */
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accent Elements with Project Colors */
.project-accent {
    position: relative;
}

/* Dynamic color classes */
.project-color-blue { --project-color: #61DAFB; }
.project-color-green { --project-color: #47A248; }
.project-color-purple { --project-color: #764ba2; }
.project-color-orange { --project-color: #FF2D20; }


  /* Article-specific styles */
  .article-page {
    background: var(--gradient-background);
    min-height: 100vh;
}

.article-header {
    position: relative;
    padding: var(--space-20) 0 var(--space-12);
    overflow: hidden;
}

.article-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(26, 111, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(189, 95, 209, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.article-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.article-category {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: var(--subtle-glow);
}

.article-date {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-family: var(--font-secondary);
}

.article-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-shadow: var(--subtle-text-glow);
}

.article-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    font-family: var(--font-secondary);
    max-width: 80ch;
}

.article-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--space-12);
    box-shadow: var(--card-glow);
}

.article-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 3px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.article-content {
    background: var(--gradient-card);
    backdrop-filter: var(--glass-backdrop);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: var(--space-12);
    position: relative;
    box-shadow: var(--card-glow);
    margin-bottom: var(--space-12);
}

.article-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.article-content h2 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    margin: var(--space-8) 0 var(--space-4);
    position: relative;
}

.article-content h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: var(--space-2);
}

.article-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    margin: var(--space-6) 0 var(--space-3);
}

.article-content p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    font-family: var(--font-secondary);
}

.article-content ul,
.article-content ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.article-content li {
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-family: var(--font-secondary);
    line-height: 1.6;
}

.article-content blockquote {
    background: rgba(26, 111, 255, 0.1);
    border-left: 4px solid var(--primary-blue);
    border-radius: 0 12px 12px 0;
    padding: var(--space-4) var(--space-6);
    margin: var(--space-6) 0;
    position: relative;
}

.article-content blockquote p {
    color: var(--text-primary);
    font-style: italic;
    margin-bottom: 0;
    font-size: var(--text-lg);
}

.article-content code {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--highlight-cyan);
}

.article-tags {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-8);
    flex-wrap: wrap;
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    background: rgba(26, 111, 255, 0.1);
    border: 1px solid rgba(26, 111, 255, 0.3);
    border-radius: 16px;
    font-size: var(--text-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background: rgba(26, 111, 255, 0.2);
    transform: translateY(-2px);
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.nav-article {
    background: var(--gradient-card);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: var(--space-6);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--card-glow);
}

.nav-article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.nav-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-glow);
}

.nav-article-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.nav-article-title {
    font-size: var(--text-lg);
    color: var(--text-primary);
    font-weight: var(--weight-medium);
    margin: 0;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-button);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: var(--weight-medium);
    transition: all 0.3s ease;
    box-shadow: var(--button-glow);
    margin-bottom: var(--space-8);
}

.back-to-blog:hover {
    transform: var(--button-hover-transform);
    box-shadow: var(--button-hover-glow);
}

/* Responsive */
@media (max-width: 768px) {
    .article-container {
        padding: 0 var(--space-4);
    }

    .article-content {
        padding: var(--space-8);
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
    }

    .article-image img {
        height: 250px;
    }
}

/* Floating decorative elements */
.floating-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.decoration-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

 .decoration-2 {
     bottom: 20%;
     left: 5%;
     animation-delay: 4s;
 }

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

.contact-page {
    background: var(--gradient-background);
    min-height: 100vh;
}

.contact-hero {
    position: relative;
    padding: var(--space-12) 0 var(--space-12);
    overflow: hidden;
    text-align: center;
}

.contact-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(26, 111, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(189, 95, 209, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 2;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-shadow: var(--subtle-text-glow);
}

.contact-description {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-8);
    font-family: var(--font-secondary);
}

/* Contact Options */
.contact-options {
    padding: var(--space-6) 0;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.option-card {
    background: var(--gradient-card);
    backdrop-filter: var(--glass-backdrop);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: var(--space-8);
    text-align: center;
    position: relative;
    box-shadow: var(--card-glow);
    transition: all 0.3s ease;
}

.option-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.option-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--strong-glow);
}

.priority-option {
    border: 2px solid rgba(26, 111, 255, 0.3);
}

.option-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.option-card h2 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: var(--weight-semibold);
}

.option-card p {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.option-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.benefit {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    width: 100%;
}

/* Contact Form Section */
.contact-form-section {
    margin-bottom: var(--space-8);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.form-header h2 {
    font-size: var(--text-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-weight: var(--weight-semibold);
}

.form-header p {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.contact-form {
    background: var(--gradient-card);
    backdrop-filter: var(--glass-backdrop);
    border: 2px solid transparent;
    border-radius: 24px;
    padding: var(--space-12);
    position: relative;
    box-shadow: var(--card-glow);
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-2);
    font-family: var(--font-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: var(--text-base);
    transition: all 0.3s ease;
    /* backdrop-filter: blur(10px); */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(26, 111, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    color: #ff6b6b;
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    font-family: var(--font-secondary);
}

.form-actions {
    text-align: center;
    margin-top: var(--space-8);
}

.btn-submit {
    position: relative;
    min-width: 200px;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Messages */
.form-message {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--card-glow);
    border: 2px solid transparent;
}

.form-message.success-message {
    border-color: var(--success-green);
}

.form-message.error-message {
    border-color: #ff6b6b;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.form-message h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
}

.form-message p {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Contact Info Section */
.contact-info-section {
    padding: var(--space-12) 0;
    background: rgba(255, 255, 255, 0.02);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

.info-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--card-glow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
}

.info-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
}

.info-card p {
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        padding: 0 var(--space-4);
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .contact-form {
        padding: var(--space-8);
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--space-3);
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .contact-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .contact-description {
        font-size: var(--text-base);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .form-row .form-group {
        margin-bottom: var(--space-4);
    }
}

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ===== Section About Image ===== */
.about-image-section {
    width: 100%;
    height: 100%;
    margin-bottom: var(--space-8);
    padding: 0;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .about-image-section {
        margin-bottom: var(--space-12);
    }
    
    .about-image {
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .about-image-section {
        margin-bottom: var(--space-16);
    }
    
    .about-image {
        border-radius: 24px;
    }
}

/* ===== Technologies Section Uniformization ===== */
.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-around;
    align-items: flex-start;
    min-height: 95px;
    max-height: 95px;
    overflow: hidden;
    padding: 8px 0;
    opacity: 0.9;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    color: #374151;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 2px solid var(--tech-color, #e5e7eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tech-badge img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.tech-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for technologies */
@media (max-width: 768px) {
    .technologies {
        min-height: 32px;
        max-height: 80px;
        gap: 6px;
    }
    
    .tech-badge {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .tech-badge img {
        width: 14px;
        height: 14px;
    }
}

/* ===== Card Text and Logo Adjustments ===== */
.expertise-card .card-text {
    height: 148px !important;
    min-height: 148px !important;
    max-height: 148px !important;
    font-size: 1rem;
    line-height: 1.6;
    /* min-height: 175px; */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
  .expertise-card .card-text {
    height: 155px !important;
    min-height: 155px !important;
    max-height: 155px !important;  
  }
}

/* .expertise-card .card-avatar {
    width: 48px !important;
    height: 48px !important;
    object-fit: contain;
    background: white !important;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
} */

/* Mobile adjustments */
@media (max-width: 768px) {
    .expertise-card .card-text {
        font-size: 0.9rem;
        min-height: 16rem;
        -webkit-line-clamp: 3;
    }
    
    .expertise-card .card-avatar {
        width: auto !important;
        height: 42px !important;
        padding: 3px;
        border-radius: 10px;
    }
}

/* ===== Carousel Projects Styles (identique aux cartes projets) ===== */
.project-slide {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-slide .card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    max-height: 200px;
}

.project-slide .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.project-slide .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}

.project-slide .card-text {
    font-size: 1rem;
    line-height: 1.6;
    min-height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #6b7280;
    margin-bottom: 16px;
}

.project-slide .card-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 16px;
}

.project-slide .card-actions .cta-wrap {
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    display: flex;
    flex-direction: row;
}

.project-slide .card-actions .card-meta {
    align-items: center;
    gap: 12px;
    color: #6b7280;
    margin: 0;
    justify-content: flex-end;
    display: flex;
    width: min-content;
}

.project-slide .technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-around;
    align-items: flex-start;
    min-height: 60px;
    max-height: 80px;
    overflow: hidden;
    padding: 8px 0;
}

/* Mobile adjustments for carousel */
@media (max-width: 768px) {
    .project-slide .card-content {
        padding: 20px;
    }
    
    .project-slide .card-title {
        font-size: 1.125rem;
    }
    
    .project-slide .card-text {
        font-size: 0.9rem;
        min-height: 140px;
        -webkit-line-clamp: 3;
    }
    
    .project-slide .technologies {
        min-height: 80px;
        max-height: 80px;
        gap: 6px;
    }
}

/* ===== Projects Grid Styles (identique à projects.html) ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Mobile: 1 colonne */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        height: auto; /* Hauteur automatique pour mobile */
        min-height: 600px;
    }
}

/* Animation de fondu pour les projets */
.projects-grid {
    position: relative;
    min-height: 700px; /* Hauteur fixe pour éviter les sauts */
    height: auto; /* Hauteur automatique pour s'adapter au contenu */
    overflow: visible; /* Permettre l'affichage complet des cartes */
    z-index: 2;
}

/* Force les dimensions des logos d'entreprises */
.card-avatar {
    height: 48px !important;
    width: auto !important;
    min-width: 32px !important;
    min-height: 48px !important;
    max-width: 80px !important;
    object-fit: contain !important;
    background: white !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 12px !important;
    padding: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Carousel avec miniatures ===== */
.projects-carousel {
    margin-top: 25px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
}

.carousel-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.6;
}

.carousel-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.carousel-thumbnail.active {
    border-color: #3b82f6;
    opacity: 1;
    transform: scale(1.1);
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Logo carousel (entreprises) ===== */
.logo-carousel .company-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Style badge identique aux logos des cartes projets */
.company-logo-badge {
    background: #fff !important;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Styles pour le logo-carousel */
.logo-carousel .carousel-container {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    opacity: 0.9;
}

.logo-carousel .carousel-track {
    display: flex;
    gap: 12px;
    overflow: visible;
    width: max-content;
    min-width: 100%;
    padding: 8px 0;
    transition: transform 0.1s linear;
}

.logo-carousel .carousel-item {
    flex-shrink: 0;
    padding: 4px;
}

.logo-carousel .carousel-item img {
    min-width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    background: white !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 8px !important;
    padding: 5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Styles pour le carousel des miniatures de projets */
.projects-carousel .carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    overflow: hidden; /* Masquer le débordement pour l'auto-scroll */
}

.projects-carousel .carousel-track {
    display: flex;
    gap: 12px;
    overflow: visible;
    width: max-content;
    min-width: 100%;
    padding: 8px 0;
    transition: transform 0.1s linear;
}

.projects-carousel .carousel-thumbnail {
    flex-shrink: 0;
}

/* Styles pour le contenu HTML des projets */
.project-content ul,
.project-header__description ul,
.card-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 16px;
}

.project-content li,
.project-header__description li,
.card-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.project-content p,
.project-header__description p,
.card-text p {
    line-height: 1.6;
}

.card-text {
  height: min-content;

.project-content strong,
.project-header__description strong,
.card-text strong {
    font-weight: 600;
    color: var(--primary-color, #3b82f6);
}

/* Couleurs de bordures pour les pastilles technos dans project-detail */
.project-technologies .tech-badge {
    border: 2px solid var(--tech-color, #e5e7eb);
}

/* Styles pour le logo client dans project-detail */
.project-header__client {
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--space-2) !important;
}

/* Logo size géré via JavaScript inline styles */

/* Supprimer le point avant le logo client */
.project-header__client::before {
    display: none !important;
}

/* Styles pour les catégories dans project-detail */
.project-categories {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    /* Gradient géré via JavaScript inline styles */
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile adjustments for carousel */
@media (max-width: 768px) {
    .projects-carousel {
        gap: 12px;
        max-width: 400px;
    }
    
    .carousel-container {
        max-width: 300px;
    }
    
    .carousel-track {
        max-width: 200px;
        gap: 8px;
    }
    
    .carousel-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ===== Carousel de technologies (page About) - Styles spécifiques si besoin ===== */
.p-about .logo-slider {
    opacity: 0.9;
    padding: 20px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .logos-track {
        gap: 20px !important;
    }
    
    .logos-track img {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        border-radius: 10px;
        padding: 6px;
    }
}

/* ===== Catégories de projet (dans les cartes) ===== */
.project-categories {
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    margin: 12px 0 16px 0;
}

/* ===== Cartes de projets avec actions en bas ===== */
.expertise-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.expertise-card .card-actions {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .project-categories {
        font-size: 13px;
        padding: 6px 0;
        margin: 10px 0 14px 0;
    }
}

/* ===== Ajustement du padding et margin en mobile pour logo-carousel ===== */
@media (max-width: 768px) {
    .mobile-no-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 1rem !important; /* mx-4 */
        margin-right: 1rem !important; /* mx-4 */
    }
}

/* ===== Signature de l'auteur en bas à droite dans blog-detail ===== */
.blog-author-bottom-right {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.author-bottom-content {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e293b; /* Fond bleu foncé comme dans l'image */
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.author-bottom-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.author-bottom-avatar {
    flex-shrink: 0;
}

.author-bottom-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.author-bottom-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-bottom-name {
    font-size: 14px;
    font-weight: 600;
    color: white; /* Texte blanc comme dans l'image */
    margin: 0;
}

.author-bottom-email {
    font-size: 12px;
    color: #cbd5e1; /* Texte gris clair */
    margin: 0;
}

.author-bottom-date {
    font-size: 11px;
    color: #94a3b8; /* Texte gris plus clair */
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .blog-author-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .author-bottom-content {
        padding: 10px 14px;
        gap: 10px;
    }
    
    .author-bottom-avatar img {
        width: 35px;
        height: 35px;
    }
    
    .author-bottom-name {
        font-size: 13px;
    }
    
    .author-bottom-email {
        font-size: 11px;
    }
    
    .author-bottom-date {
        font-size: 10px;
    }
}

/* ===== Catégories de projet (dans les cartes) ===== */
.project-categories {
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    margin: 12px 0 16px 0;
}

/* Mobile */
@media (max-width: 768px) {
    .project-categories {
        font-size: 13px;
        padding: 6px 0;
        margin: 10px 0 14px 0;
    }
}

/* ===== Page des mentions légales ===== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.legal-nav-link {
    padding: 10px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.legal-nav-link:hover,
.legal-nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.legal-sections {
    line-height: 1.7;
}

.legal-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.legal-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin: 25px 0 15px 0;
}

.legal-info p {
    margin-bottom: 15px;
    color: #4b5563;
}

.legal-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-info li {
    margin-bottom: 8px;
    color: #4b5563;
}

.legal-info a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.legal-info a:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
        margin: 0 10px;
    }
    
    .legal-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .legal-nav {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .legal-nav-link {
        text-align: center;
        padding: 12px 20px;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
}

/* ===== Logos d'entreprises dans les projets liés ===== */
.related-project-card,
.related-project-mobile-card {
    position: relative;
}

/* Styles pour related-project-title-wrapper gérés via JavaScript inline */
.related-project-title {
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    line-height: 1.3;
}

.related-project-mobile-title {
    padding-right: 45px; /* Espace pour le logo mobile */
    margin-bottom: 0;
}

.related-project-client {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Styles pour related-project-client logo gérés via JavaScript inline */

.related-project-mobile-client {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-project-mobile-client img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    background: white !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 6px !important;
    padding: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Image du blog dans blog-detail ===== */
.blog-detail-image {
    margin: 20px 0;
    text-align: center;
}

.blog-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.g-recaptcha {
    display: flex !important;
    justify-content: center !important;
}

/* Mobile */
@media (max-width: 768px) {
    .blog-detail-image {
        margin: 16px 0;
    }
    
    .blog-detail-image img {
        border-radius: 8px;
    }
}

/* ===== reCAPTCHA ===== */
.g-recaptcha {
    margin: 15px 0;
}

.g-recaptcha iframe {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== Carousel des logos d'entreprises (même structure que les technologies) ===== */
.logo-carousel {
    overflow: hidden;
    position: relative;
}

.logo-carousel .logo-slider {
    overflow: hidden;
    width: 100%;
}

.logo-carousel .logos-track {
    display: flex;
    gap: 12px;
    width: 200%;
    min-width: 200%;
    padding: 8px 0;
    transition: transform 0.1s linear;
}

.logo-carousel .carousel-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-carousel .carousel-item img {
    min-width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    background: white !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 8px !important;
    padding: 5px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile */
@media (max-width: 768px) {
    .logo-carousel {
        padding: 0 16px;
    }
    
    .logo-carousel .carousel-item img {
        min-width: 28px !important;
        height: 28px !important;
        padding: 4px !important;
    }
}
