@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&display=swap');

body {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0;
  background: url('https://www.transparenttextures.com/patterns/sandpaper.png'), #f7f7f7;
  background-repeat: repeat;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.7;
  font-size: 17px;
}




/* Titre section */
.section-title {
  text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin: 30px auto 20px;
    color: #535ee1;
}

/* Catégories nav */
.categories-nav {
  display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.categories-nav a {
  text-decoration: none;
  background: #eee;
  color: #333;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.2s ease;
}

/* === Grille produits responsive === */
.product-grid {
  display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC */
    gap: 16px;
    padding: 0 10px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Mobile : 2 colonnes max */
@media screen and (max-width: 768px) {
  .product-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 8px;
}

}

/* === Carte produit stylée === */
.product-card {
  background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease;
    padding: 0;
}

.product-card:hover {
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
    height: 180px; /* Hauteur fixe */
    object-fit: cover; /* Recadre joliment */
    display: block;
    border-bottom: 1px solid #eee;
}

.product-info {
  text-align: center;
    padding: 10px;
}

.product-info h3 {
  font-size: 14px;
    margin: 8px 0 4px;
    font-weight: 500;
    color: #333;
}

.product-info .price {
  font-weight: bold;
  color: #535ee1;
  font-size: 20px;
  margin-bottom: 6px;
  margin: 10px 0;
}

.product-info 
.product-info 

/* === Header_profil === */
.influencer-header {
  position: relative;
    text-align: center;
    margin-bottom: 30px;
}

.influencer-banner {
  background: url('/static/images/hero-gradient.webp') top center/cover no-repeat;
    height: 90px; /* ← on l'augmente ici */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin: 0px auto 0;
}

.influencer-profile.horizontal {
  background: white;
    max-width: 92%;
    margin: -80px auto 0;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: center;
}

.influencer-profile.horizontal .avatar {
  width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    flex-shrink: 0;
}

.profile-details {
  flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* ✅ aligne à gauche */
    text-align: left;        /* ✅ texte aligné à gauche */;
}

.profile-details h2 {
  margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
    color: #222;
}

.profile-details .location {
  font-size: 14px;
    color: #555;
    margin-bottom: 14px;
    max-width: 260px;
}

/* Ligne stats + bouton suivre */
.stats-follow-row {
  display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.influencer-stats {
  display: flex;
    gap: 20px;
    font-size: 14px;
}

.influencer-stats div {
  text-align: center;
}

.influencer-stats strong {
  display: block;
    font-size: 16px;
    color: #22C6C4;
}

.categories-nav {
  display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.categories-nav a:hover {
  background: #ddd;
}

.categories-nav a.active {
  background: #22C6C4;
    color: white;
    font-weight: bold;
}

.filters-bar {
  display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 10px 10px;
}

.sort-dropdown {
  position: relative;
  margin: 0;
}

.sort-toggle {
  background: #f7f7f7;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  gap: 6px;
}

.sort-toggle svg {
  width: 20px;
    height: 20px;
}

.sort-options {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1000;
  min-width: 150px;
  flex-direction: column;
  margin-top: 4px;
  /* réduit la distance avec le bouton */
  padding: 4px 0;
}

.sort-options a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  text-align: left;
}

.sort-options a:hover {
  background: #f2f2f2;
  background-color: #f0f0f0;
}

.sort-dropdown.open .sort-options {
  display: block;
}

.produit-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.produit-header {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.image-principale img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.infos-produit {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.infos-produit .prix {
  font-size: 20px;
  font-weight: bold;
  color: #22C6C4;
}

.infos-produit 

.infos-produit 

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.media-gallery img,
.media-gallery video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.produit-hero {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  padding: 40px 20px;
  text-align: center;
}

.main-product {
  max-width: 600px;
  margin: 30px auto;
  text-align: center;
}

.main-product img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  margin-bottom: 10px;
}

.avis-perso {
  position: relative;
  max-width: 600px;
  margin: 20px auto;
  padding: 15px 20px;
  padding-left: 25px; /* espace pour la fausse bordure */
  background: transparent;
  border-radius: 10px;
  font-size: 0.95em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.avis-perso::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 10px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e14de7, #fe7285);
}

.avis-perso strong {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.media-grid img, .media-grid video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.product-buttons 
.product-buttons 
.product-detail {
  max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.product-main {
  display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-main img.main-image {
  max-width: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.product-info h1 {
  font-size: 24px;
    margin: 0;
}

.product-info .brand {
  font-size: 18px;
    color: #555;
}

.product-info .description {
  margin-bottom: 20px;
}

.marque {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 500;
  display: block;
}

.media-gallery {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}

.media-gallery .media-grid {
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

/* Reset de base */
body, h1, h2, h3, p, ul {
  margin: 0;
    padding: 0;
}

/* Couleurs principales */
:root {
  --main-cta: #8f0f7f;
  --font-family: 'Outfit', sans-serif;
  --font-weight: 600;
  --gradient: linear-gradient(135deg, #a4defc 0%, #d7bdfc 50%, #e2207f 100%);
  --white: #fff;
  --text-dark: #222;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* GLOBALS */


/* === HEADER (dégradé assorti au Hero) === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: url('/static/images/header-gradient.svg') center/cover no-repeat;
  color: #a4defc;
  border-bottom: 0px;
  margin-bottom: 0px;
  z-index: 10;
  position: relative;
}

.logo {
  max-width: 120px;   /* adapte selon ton besoin */
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .logo {
    max-width: 100px;
}

}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
}

to {
  transform: translateY(0);
  opacity: 1;
}

}

.icon-connexion img {
  height: 26px;
  width: 26px;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #cde4fa;
  cursor: pointer;
}

@media (max-width: 768px) {
  .burger-menu {
    display: block;
}

}

/* === HERO === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
}

.search-bar {
  display: flex;
  justify-content: center;
  border: 2px solid #cde4fa;
  border-radius: 30px;
  overflow: hidden;
  background: white;
  max-width: 90%;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.search-bar input {
  border: none;
  padding: 10px 14px;
  flex: 1;
  font-size: 1rem;
}

.search-bar button {
  background: #cde4fa;
  color: white;
  border: none;
  padding: 0 14px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero-title {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 10px;
  font-weight: 600;
}

/* === CATÉGORIES === */
.categories {
  padding: 24px 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0f7f8f;
  font-family: 'Outfit', sans-serif;
  text-align: center;
  animation: fadeIn 0.8s ease-in;
}

.category-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  gap: 12px;
  padding: 0.5rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-bubble {
  text-decoration: none;
  background: #eee;
  color: #333;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
  transition: background 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.category-bubble:hover {
  background: #ddd;
}

.category-bubble.active {
  background: #22C6C4;
  color: white;
  font-weight: bold;
}

/* === PROFIL HOME === */
.profile-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 1rem 1rem;
  scroll-snap-type: x mandatory;
}

.profile-carousel::-webkit-scrollbar {
  display: none;
}

.profile-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-snap-align: start;
  width: 80px; /* plus petit */;
}

.profile-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.4rem;
}

.profile-card .pseudo {
  font-size: 0.8rem;
  color: #444;
}

/* === FOOTER === */
.footer {
  background-color: #f9f9f9;
  padding: 24px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #444;
  border-top: 1px solid #ddd;
  margin-top: 48px;
}

.footer p {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #0f7f8f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #980d5b;
}

/* === BURGER === */
.burger-dropdown {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  position: absolute;
  top: 60px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0.8rem 1rem;
  width: 220px;
  font-family: 'Outfit', sans-serif;
}

.burger-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.burger-dropdown.hidden {
  display: none;
}

.burger-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.burger-dropdown li + li {
  margin-top: 12px;
}

.burger-dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #535ee1;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 800;
  font-size: 17px;
}

.burger-dropdown a:hover {
  background-color: #f1f8f9;
  color: #8f0f7f;
}

.burger-icon {
  background: none;
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s ease;
}

.burger-icon:hover {
  background-color: #3866da;
}

/* === MON COMPTE === */
.mon-compte-header {
  background: url('/static/images/hero-gradient.webp') top center / cover no-repeat;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
}

.avatar-profil {
  width: 80px;
  height: 80px;
  border-radius: 100%;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 3px solid white;
}

.mon-compte-menu {
  margin: 2rem 1rem;
}

.mon-compte-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mon-compte-menu li {
  margin-bottom: 1rem;
}

.mon-compte-menu a {
  display: block;
  background: #f5f5f5;
  color: #333;
  text-decoration: none;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.mon-compte-menu a:hover {
  background: #e0e0e0;
}

/* === FORMULAIRES FRONT === */
.form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.form-container p {
  margin-bottom: 1.4rem; /* ou 1.6rem si tu veux plus d'air */
}


.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #8f0f7f;
  box-shadow: 0 0 0 2px rgba(143, 15, 127, 0.2);
}

.flash-container {
  margin: 1rem auto;
  max-width: 600px;
}

.flash {
  padding: 12px 20px;
  border-radius: 20px;
  margin-bottom: 10px;
  font-weight: 500;
  text-align: center;
  display: inline-block;
  font-size: 0.95rem;
  animation: fadeIn 0.4s ease, fadeOut 0.4s ease 4s forwards;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.flash-success {
  background-color: #dff5e1;
  color: #2d6a4f;
  border-left: 5px solid #2d6a4f;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.flash.danger {
  background-color: #f9d6d5;
  color: #a00000;
}

.flash.warning {
  background-color: #fff3cd;
  color: #8a6d3b;
}

.btn-retour {
  display: inline-block;
  margin-top: 20px;
  color: #0f7f8f;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  background: #eee;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.retour-menu-container {
  margin-top: 20px;
  text-align: center;
}

.btn-retour:hover {
  background: #ddd;
}

/* === FORMULAIRES PRODUITS === */
.product-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.product-table th, .product-table td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.miniature {
  width: 40px;
  height: auto;
  border-radius: 8px;
}

.drag-handle {
  cursor: grab;
  font-size: 18px;
  color: #999;
}

.titre-avec-retour {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.fleche-retour {
  text-decoration: none;
  font-size: 14px;
  color: black;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  /* ou flex selon contexte */
  align-items: center;
  gap: 8px;
  margin: 12px 16px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
}

.fleche-retour:hover {
  color: #8f0f7f;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  margin: 0 2px;
  font-size: 14px;
  text-decoration: none;
  color: white;
}

.btn-icon.edit {
  background-color: none;
}

.btn-icon.view {
  background-color: none;
}

.btn-icon.delete {
  background-color: none;
}

.btn-icon:hover {
  opacity: 0.85;
}

.heart {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.heart.full {
  color: red;
}

.heart.empty {
  color: #ccc;
}

/* Miniature produit */
.miniature {
  width: 50px;
  height: auto;
  border-radius: 8px;
}

/* Responsiveness générale */
@media screen and (max-width: 768px) {
  .product-table th,
  .product-table td {
    font-size: 12px;
    padding: 4px 6px;
}

}

.drag-handle,
.drag-handle-col {
  width: 40px;
  text-align: center;
  font-size: 18px;
  color: #888;
}

/* En mobile on la rend plus fine */
@media screen and (max-width: 768px) {
  .drag-handle,
  .drag-handle-col {
    width: 24px;
    font-size: 14px;
}

}

.form-container {
  padding: 1rem 0.5rem; /* Réduit les marges horizontales */
  max-width: 100%;
}

/* En mobile, on réduit à fond les marges */
@media screen and (max-width: 768px) {
  .form-container {
    padding: 10px 12px;
}

}

.col-nom {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  .col-nom {
    max-width: 80px;
    font-size: 0.8rem;
}

}

.table-container {
  max-width: 100%;
  padding: 0;
  margin: 0 auto;
}

td.marque {
  display: table-cell;
  vertical-align: middle !important;
  text-align: center;
  font-style: bold;
  color: #aaa;
  height: 100%;
}

.star-fav {
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.star-fav:hover {
  transform: scale(1.2);
}

.col-marque {
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85em;
}

/* === Podium pour les stats === */
.podium-card {
  background: #fff;
  color: #222;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.top-produits-grid {
  display: flex;
  gap: 15px;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 10px;
}

.produit-mini-card {
  width: 75px;
  background: #f4f4f4;
  color: #222;
  border-radius: 8px;
  text-align: center;
  padding: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.produit-mini-card img.mini-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}

.mini-nom {
  font-weight: bold;
  font-size: 0.85rem;
  margin: 0;
}

.mini-marque {
  font-size: 0.75rem;
  color: #666;
  margin: 2px 0 0;
}

.rank-badge {
  background: #ffc107;
  color: #000;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 12px;
  position: absolute;
  top: 6px;
  left: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.mini-vues {
  font-size: 0.7rem;
  color: #888;
  margin-top: 4px;
}

/* Variante sans image */
.produit-mini-card.no-image {
  padding-top: 26px; /* laisse de la place pour le badge */;
}

.produit-mini-card.no-image .mini-info {
  margin-top: 0;
}

.stats-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* onglets stats */
.stats-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 20px;
  padding-top: 10px;
  border-bottom: 2px solid #ddd;
  max-width: 600px;
}

.stats-tab {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.stats-tab.active {
  background: white;
  color: #222;
  font-weight: 600;
  border: 2px solid #8f0f7f;
  border-bottom: none;
  position: relative;
  top: 2px;
  z-index: 2;
}

.tabs {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  border-bottom: 2px solid #ccc;
  max-width: 600px;
}

.tab-link {
  background: none;
  border: none;
  outline: none;
  padding: 10px 16px;
  margin: 0 5px;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease-in-out;
}

.tab-link.active {
  color: #000;
  border-bottom: 3px solid #8f0f7f; /* ta couleur framboise */;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Style des graphs */
.perf-indicateurs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.kpi-box {
  background: #f4f4f4;
  color: #333;
  padding: 12px 12px;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: left;
  min-width: 140px;
}

.kpi-box.large {
  font-size: 1.4em;
  font-weight: bold;
}

.stats-divider {
  border-bottom: 1px solid #ddd;
  margin: 2rem 0;
}

.perf-indicateurs.left {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 1rem;
}

/* Style previ factu insight */
.factu-kpis {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.factu-kpis .kpi-box {
  text-align: left;
  background: #f6fafd;
  padding: 1rem;
  border-left: 4px solid #8f0f7f;
  border-radius: 8px;
}

.insight-box {
  background-color: #f2fbfc;
  border-left: 4px solid #0f7f8f;
  padding: 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

.palier-table h3 {
  margin-bottom: 0.5rem;
}

.palier-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.palier-table th, .palier-table td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

/* Réseaux sociaux */
.social-links {
  margin-top: 20px;
}

.social-links label {
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links input {
  margin-bottom: 12px;
  width: 100%;
  padding: 8px;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 0; /* ⬅️ ceci masque les espaces/tirets entre balises inline */;
}

.social-links a {
  font-size: initial; /* ⬅️ remet la taille de police normale dans les liens */;
}

/* Modif photo profil */
.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
  margin-bottom: 10px;
}

.btn-delete-avatar {
  background-color: #ffdddd;
  border: 1px solid #dd4444;
  color: #dd0000;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
}

.btn-delete-avatar:hover {
  background-color: #ffe6e6;
}

/* Message flash */
.flashes {
  margin: 20px auto;
  max-width: 500px;
  padding: 0;
  text-align: center;
  z-index: 10;
}

/* Types de messages */
.flash-success {
  background: linear-gradient(135deg, #d1fbe5, #b5f2d0);
  color: #087851;
  border-left: 5px solid #0f7f4f;
}

.flash-danger {
  background: linear-gradient(135deg, #fde5e5, #f7cccc);
  color: #b42525;
  border-left: 5px solid #d0312d;
}

.flash-warning {
  background: linear-gradient(135deg, #fff4d9, #ffefc3);
  color: #b86800;
  border-left: 5px solid #ffb700;
}

.flash-info {
  background: linear-gradient(135deg, #e6f0ff, #cddfff);
  color: #094f9f;
  border-left: 5px solid #0f7f8f;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
}

}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

}


/* Choix inscription */
.choix-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.choix-container h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.choix-container .profil-option {
  margin: 2rem 0;
}

.choix-container .profil-option p {
  font-size: 0.95rem;
  color: #333;
  margin: 0.5rem 0 1rem;
}

.form-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
}

.choix-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.choix-container .section-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0f7f8f;
}

.choix-container .intro-text {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.profil-option {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.04);
}

.profil-option h3 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.profil-option .tag {
  font-size: 0.9rem;
  color: #999;
  font-weight: normal;
}

.profil-option p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* Like produit */
.product-card {
  position: relative;
}

.like-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.like-form-inline {
  display: inline-block;
  margin-bottom: 6px;
}

.like-btn {
  background: none;
  border: none;
  outline: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: inherit;
}

.like-btn-wrapper {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

/* Liste rekos followés */
.followed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.followed-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdfdfd;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.left-part {
  display: flex;
  align-items: center;
}

.avatar-small {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.reko-info {
  display: flex;
  flex-direction: column;
}

.reko-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.reko-user {
  margin: 0;
  font-size: 0.85rem;
  color: #777;
}

}
.left-part {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
}

.left-part:hover .reko-title {
  text-decoration: underline;
}

/* Style pour la page produit */
.product-page {
  max-width: 600px;
  margin: auto;
  padding-bottom: 80px;
  position: relative;
}

.product-main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.media-gallery img,
.media-gallery video,
.external-media {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  margin: 15px 0; /* <-- Ajoute du margin haut et bas */
  max-width: 100%;
  position: relative; /* <-- Très important pour éviter qu'elle soit "écrasée" */
  z-index: 2; /* <-- Pour être sûr qu’elle soit bien au-dessus visuellement */;
}

.external-media iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 15px;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Important pour bien coller en haut */
  gap: 12px;
}

.product-titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0px;
}

.brand {
  font-size: 1.2em;
  font-weight: bold;
  text-align: left;
}

.title {
  font-size: 1em;
  text-align: left;
  color: #444;
}

.fav-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
}

.fav-btn .liked {
  color: #e63946;
}

.description {
  font-size: 0.85em;
  color: #777;
  margin-top: 10px;
}

.product-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: white;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  z-index: 2000;
}

/* Modal générale */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: none;
  border: none;
  padding: 0;
  max-width: 90%;
  width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  pointer-events: none;
}

.modal-content iframe,
.modal-content video {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  pointer-events: auto;  /* important pour la vidéo/iframe */
  z-index: 1001;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 2000;
  pointer-events: auto;
}

/* Bouton de fermeture */
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Animation douce d'apparition */
@keyframes fadeIn {
  from {opacity: 0;
}

}

/* Bloc principal */
.product-main-image {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Galerie des médias */
.media-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

/* Miniatures générales */
.media-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

/* Miniatures pour les vidéos */
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 5px 10px;
  pointer-events: none;
}

/* Modal vidéo existante */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content video,
.modal-content iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Image principale */
.product-main-image {
  max-height: 450px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Galerie horizontale scrollable */
.media-gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.media-gallery-scroll::-webkit-scrollbar {
  display: none;
}

/* Miniature carrée */
.media-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Vidéo */
.video-thumb .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 4px 8px;
  pointer-events: none;
}

.media-gallery-scroll {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 8px 0;
}

.product-titles {
  flex-grow: 1;
}

.product-titles .brand {
  font-size: 18px;
  color: #888;
}

.product-titles .title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 2px;
}

.product-actions {
  display: flex;
  flex-direction: column; /* 👈 les éléments sont empilés */
  align-items: flex-end;   /* 👈 alignés à droite */
  gap: 4px;
  flex-shrink: 0;
}

.product-actions .price {
  font-weight: bold;
  font-size: 18px;
  color: #0f7f8f;
}

.product-main-image {
  margin-bottom: -100px;
  margin-top: 0;
  padding-top: 0;
}

.breadcrumb {
  margin: 12px 16px 8px;
  font-size: 14px;
  color: #666;
  flex: 1;
}

.retour-img {
  width: 18px;
  height: 18px;
  display: inline-block;  /* 👈 très important : inline-block, pas block */
  vertical-align: middle;
}

.produits-populaires-section {
  padding: 16px;
  margin-top: 24px;
}

.produits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.produit-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  text-align: center;
}

.produit-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.produit-card .infos {
  padding: 8px;
}

.produit-card .marque {
  font-size: 12px;
  color: #888;
}

.produit-card .nom {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.sort-label {
  margin-left: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #333;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;     /* réduit l’espace intérieur */
  margin: 4px 4px ;    /* réduit l’espace extérieur haut/bas */;
}

/* SECTION "COMMENT ÇA MARCHE" */

.onboarding-hero {
  background-color: #f9f9f9;
  padding: 3rem 1.5rem;
  text-align: center;
  color: #333;
  font-family: 'Outfit', sans-serif;
}

.hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0f7f8f;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.hero-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  margin: 0 auto;
}

.hero-img {
  width: 100px;
  margin-bottom: 1rem;
}

.hero-card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #0f7f8f;
}

.hero-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.btn-reko {
  background: linear-gradient(90deg, #e14de7, #fe7285);
}

.btn-komu {
  background: linear-gradient(90deg, #e14de7, #fe7285);
}

/* Desktop layout */
@media (min-width: 768px) {
  .hero-cards {
    flex-direction: row;
    justify-content: center;
}

}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.hero-text-cards {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  padding: 0;
}

.hero-text-card {
  background: linear-gradient(120deg, #f4f0fd,#f1ebfa);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  max-width: 700px;
  margin: 0 0.5rem;
}

.hero-text-card.align-left {
  text-align: left;
}

.hero-text-card.align-center {
  text-align: center;
}

.hero-text-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0.5rem 0;
  color: #333;
}

.hero-text-card .highlight {
  color: #0f7f8f;
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero-text-card p {
    font-size: 1.2rem;
}

}

.hero-highlight-intro {
  text-align: center;
  margin: 0rem 0;
}

.rekogu-bold {
  font-weight: 550;
  font-size: 1.7rem;
  background: linear-gradient(90deg, #e14de7, #fe7285);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rekogu-sub {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: #333;
}

.highlight-blue {
  color: #0f7f8f; /* bleu foncé */
  font-size: 1.3rem;
  font-weight: 600;
}

.onboarding-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0f7f8f;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* CCM REKO Carousel */
.carousel-container {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 100px); /* ajuste si header/footer fixe */;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  width: calc(100% * 3); /* 3 slides */;
}

.carousel-slide {
  flex: 0 0 100%;
  max-width: 100vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
  margin: 0;
}

.carousel-slide h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  white-space: normal;
  word-wrap: break-word;
  text-align: center; /* ← Ajout nécessaire */;
}

.carousel-slide p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center; /* ← Ajout nécessaire */;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.carousel-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background-color: #0f7f8f;
}

.carousel-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel-cta 

.carousel-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.carousel-slide img {
  width: 100%;
  max-width: 500px;  /* Limite la taille de l'image sur grand écran */
  height: auto;
  display: block;
  margin: 0 auto;    /* Centre l’image sur desktop */;
}

/* Fil d’ariane + bouton */
.breadcrumb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #0f7f8f;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.btn-retour-blog {
  color: #0f7f8f;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid #0f7f8f;
  padding: 6px 12px;
  border-radius: 999px;
  transition: 0.2s ease;
  align-self: flex-start;
}

.btn-retour-blog:hover {
  background-color: #0f7f8f;
  color: white;
}

/* Titre & meta */

.article-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem; /* ↑ marges hautes/basses à 3rem et latérales à 2rem */
}

.article-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 15px;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Image principale */
.article-image {
  text-align: center;
  margin-bottom: 1.5rem;
}

.article-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Image dans le contenu */
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Légende image */
.image-description {
  font-size: 14px;
  color: #777;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.article-image .image-description {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Texte principal */
.article-

.article-body p {
  margin-bottom: 1.2em;
}

.article-body ul {
  padding-left: 1.2rem; /* marge intérieure à gauche */
  margin-bottom: 1.2rem; /* espace sous la liste */
  list-style-type: disc; /* puces classiques */
}

.article-body li {
  margin-bottom: 0.6rem; /* espace entre chaque point */
  line-height: 1.6; /* meilleure lisibilité */
}
.article-body ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
  list-style-type: decimal;
}

.article-body ol li {
  margin-bottom: 0.6rem;
}

/* Partage réseaux sociaux */
.share-section {
  margin-top: 3rem;
  font-size: 15px;
}

.share-section a {
  margin-right: 12px;
  color: #8f0f7f;
  text-decoration: none;
  font-weight: 600;
}

.share-section a:hover {
  text-decoration: underline;
}

/* Articles recommandés */
.recommended-articles {
  margin-top: 3rem;
}

.recommended-articles h2 {
  margin-bottom: 1rem;
  font-size: 20px;
}

.recommended-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.recommended-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: 0.2s ease;
}

.recommended-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.recommended-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.recommended-card h3 {
  padding: 0.8rem;
  font-size: 16px;
  font-weight: 600;
}

/* Responsive : mobile first */
@media screen and (max-width: 480px) {
  .article-wrapper {
    padding: 1.5rem 1rem;
}

@media (min-width: 1024px) {
  .article-wrapper {
    padding: 3rem 3rem;
  }
}

.article-title {
  font-size: 1.4rem;
    text-align: left;
}

.breadcrumb-bar {
  flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

}

/* === HARMONIZED BUTTONS === */
.btn,
.btn-purple,
.btn-pink,
.cta-btn,
.cta-header,
.cta-mini,
.onboarding-btn,
.preview-button,
.btn-apercu,
form button,
form input[type="submit"] {
  background: linear-gradient(90deg, #e14de7, #fe7285);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(143, 15, 127, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn-purple:hover,
.btn-pink:hover,
.cta-btn:hover,
.cta-header:hover,
.cta-mini:hover,
.onboarding-btn:hover,
.preview-button:hover,
.btn-apercu:hover,
form button:hover,
form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(143, 15, 127, 0.3);
}

/* === OUTLINE BUTTON === */
.cta-btn-outline,
.logout-btn,
.unfollow-btn,
.follow-btn {
  background: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid #615bb7;
  color: #615bb7;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-btn-outline:hover,
.logout-btn:hover,
.unfollow-btn:hover,
.follow-btn:hover {
  background-color: #615bb7;
  color: white;
}

.product-buttons .btn.secondary {
  background: #e0e0e0;
  color: #333;
}
.product-buttons .btn.secondary:hover {
  background: #d0d0d0;
}

/* === HOME BLOG === */
/* === BLOG HEADER === */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.blog-header .logo {
  font-size: 20px;
  color: #615bb7;
}

.search-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #615bb7;
  cursor: pointer;
}

.blog-featured {
  padding: 0 16px;
  margin-bottom: 20px;
}

.blog-carousel-container {
  width: 100vw;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.blog-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 300%; /* pour 3 slides */
}

.blog-carousel-slide {
  flex: 0 0 100vw;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
}
.blog-carousel-slide img {
  width: 100vw;
  height: auto;
  max-height: 250px; /* ajuste à ce que tu veux voir */
  display: block;
  object-fit: cover; /* ou cover si tu veux recadrer */
  border-radius: 16px;
}

.blog-carousel-banner {
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.blog-carousel-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.blog-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 16px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.featured-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.featured-link {
  color: white;
  font-weight: 500;
  text-decoration: underline;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.blog-carousel-dots {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.blog-carousel-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.blog-carousel-dots .dot.active {
  background-color: #615bb7;
}

/* === CATÉGORIES === */
.category-filters {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 16px;
  scroll-snap-type: x mandatory;
}

.filter-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  background: #f1f1f1;
  color: #333;
  font-weight: 500;
  scroll-snap-align: start;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-btn.active {
  background: #615bb7;
  color: white;
}

/* === ARTICLES RÉCENTS === */
.recent-articles {
  padding: 20px 16px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

.article-count {
  font-size: 14px;
  color: #888;
  margin-left: 8px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.article-card.hide {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.blog-article-image {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 12px;
}

.blog-article-title {
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0;
}

.article-meta {
  font-size: 13px;
  color: #888;
}

.article-link {
  color: #615bb7;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  margin-top: 6px;
  text-decoration: none;
}

.read-more-link {
  display: inline-block;
  margin-top: auto;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #615bb7;
  text-decoration: none;
  align-self: flex-end;
  transition: color 0.2s ease;
}

.read-more-link:hover {
  color: #8f0f7f;
}


/* === BADGES === */
.article-card .badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  color: white;
  margin-bottom: 8px;
  background: #615bb7; /* valeur par défaut */
}

/* Couleurs spécifiques par nom exact (avec espaces) */
.badge.Tendance-Shopping         { background: #900C3F ; }
.badge.Top-Produits-de-la-Semaine { background: #0fa34b; }
.badge.Astuces-Reko              { background: #ed5809; }
.badge.Offres-Spéciales          { background: #5c0e8e; }
.badge.Nouveautés                { background: #ce6dce; }
.badge.Best-Sellers              { background: #22C6C4; }
.badge.Coup-de-Cœur-du-Mois      { background: #8f0f7f; }
.badge.La-Rencontre              { background: #6dcea6; }

/* === RESULTATS SEARCH HOME === */
.reko-page-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 16px;
}

.reko-page-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 12px;
  gap: 14px;
}

.reko-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eee;
}

.reko-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.reko-titre {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.reko-btn {
  font-size: 14px;
  color: #615bb7;
  text-decoration: none;
  margin-top: 6px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.reko-btn:hover {
  color: #8f0f7f;
}

.btn-retour-home {
  display: inline-block;
  margin-bottom: 1rem;
  color: #0f7f8f;
  font-weight: bold;
  text-decoration: none;
}

.categorie-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.btn-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  background-color: #c4c4c4;
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 999;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.box-info {
  background-color: #f8f9fa;
  padding: 1.2em;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 2em;
}

/* === facturation === */
.historique-factures ul.facture-liste {
  list-style: none;
  padding: 0;
}

.historique-factures ul.facture-liste li {
  padding: 0.5em 0;
  border-bottom: 1px solid #eee;
}

.statut {
  font-weight: bold;
}

.statut.en_attente { color: #ff9900; }
.statut.payé { color: #28a745; }
.statut.echec { color: #dc3545; }

.form-check {
  margin-bottom: 15px;
}

/* === PAGE CONTACT=== */
.formulaire {
  max-width: 600px;
  margin: auto;
}

.formulaire .form-group {
  margin-bottom: 15px;
}

.formulaire label {
  font-weight: bold;
}

.formulaire .form-control {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.flash {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-weight: bold;
}

.flash-success {
  background-color: #dff0d8;
  color: #3c763d;
}

.flash-danger {
  background-color: #f2dede;
  color: #a94442;
}

/* CGU CGV */
.cgu-scrollable {
  max-height: 200px;
  overflow-y: auto;
  background: #f9f9f9;
  border: 1px solid #ccc;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9em;
}

.reassurance-container {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid var(--couleur-primaire); /* par exemple #0f7f8f */
  border-radius: 8px;
  background-color: var(--couleur-fond-clair); /* couleur claire douce */
}

.reassurance-title {
  color: var(--couleur-primaire);
  margin-bottom: 10px;
}

.reassurance-list {
  list-style: none;
  padding-left: 0;
  color: var(--couleur-secondaire); /* par ex. #094f59 */
}

.reassurance-link a {
  color: var(--couleur-cta);
  text-decoration: underline;
}

/* ALERTE BANDEAU CB */
.alert-bandeau {
  background-color: #ffe0e0;
  color: #8f0f0f;
  border-left: 4px solid #8f0f0f;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.alert-bandeau .cta-small {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: #8f0f7f;
  color: white;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
}

/* CONTENU SPONSO */
.badge-publicite {
  display: inline-block;
  background-color: #c4c4c4;
  color: white;
  padding: 0.3em 0.6em;
  border-radius: 1em;
  font-size: 0.8em;
  margin-top: 0.5em;
}

/* CODE PROMO PRODUIT */
.code-promo-encart {
  background-color: #f4f4f4;
  padding: 1.2rem;
  border-radius: 10px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.code-promo-titre {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.code-promo-bloc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.code-promo-bloc .code {
  background-color: white;
  border: 1px dashed #8f0f7f;
  padding: 0.4rem 0.8rem;
  font-weight: bold;
  border-radius: 6px;
  font-size: 1.1rem;
}

.copier-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.copier-btn img {
  width: 24px;
  height: 24px;
}

/*CSS inscription*/
.input-password-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-container input {
  padding-right: 40px !important;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.password-match-message {
  font-size: 14px;
  margin-top: 5px;
  color: #8f0f7f;
}
.password-match-message.invalid {
  color: #cc0000;
}


.password-strength-message {
  font-size: 14px;
  margin-top: 5px;
  color: #8f0f7f;
}
.password-strength-message.invalid {
  color: #cc0000;
}

/*BANDEAU COOKIE*/

.cookie-banner {
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  background: white;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px;
  margin: auto;
  z-index: 9999;
  display: none;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.7rem;

}

.cookie-banner.show {
  display: flex;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1em;
}

.cookie-btn {
  padding: 8px 16px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.cookie-btn.accept {
  background: linear-gradient(90deg, #e14de7, #fe7285);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: bold;
  margin-right: 8px;
  cursor: pointer;
}

.cookie-btn.customize {
  background: #f0f0f0;
  color: #333;
}

.cookie-options {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.cookie-options li {
  margin-bottom: 0.5em;
  font-size: 0.7em;
}

/*FAQ PAIEMENT*/

.faq-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #595757;
  cursor: pointer;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  padding-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}

.faq-question .arrow {
  transition: transform 0.3s ease;
}

.faq-question.active .arrow {
  transform: rotate(180deg);
}

/*FOOTER*/
.footer {
  text-align: center;
}

.footer-columns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

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

.footer-col h4 {
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #0f7f8f;
}

.footer-col a {
  text-decoration: none;
  color: #333;
  margin: 0.2rem 0;
}

.footer-col a:hover {
  text-decoration: underline;
}
