/* ============================
   VARIABLES & RESET
   ============================ */
:root {
  --primary: #7c6ff6;
  --secondary: #f58ac8;
  --bg: #f4f5fb;
  --card-bg: #ffffff;
  --text: #2d2d2d;
  --muted: #6b7280;
  --dark-text: #444;
  --accent: #4ade80;
  --radius: 14px;
  --btn-radius: 999px;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.08);

  /* Hauteur réelle du header (top-bar) */
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Empêche tout scroll horizontal */
html, body {
  overflow-x: hidden;
}

/* Scroll-lock propre (ne casse pas sticky) */
html.no-scroll {
  overflow: hidden;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #fafaff, #f3f0ff);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-text-size-adjust: 100%;

  /* Compense le header fixé */
  padding-top: var(--header-height);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  padding: 10px;
  width: 100%;
  width: -webkit-fill-available;
  width: -moz-available;
  width: fill-available;
}

/* ============================
   HEADER GLOBAL (PC + MOBILE)
   ============================ */

/* Le header est FIXE, pas sticky */
.header-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.9),
    rgba(245, 240, 255, 0.85)
  );
  border-bottom: 1px solid rgba(180, 180, 200, 0.35);
}

/* Le header interne reste au-dessus */
header {
  position: relative;
  z-index: 99;
}

/* Top bar */
.top-bar {
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Logo */
.logo img {
    width: 7em;
    height: auto;
  }

.top-bar .logo img {
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.08));
}

/* Search bar */
.search-wrapper {
  width: 100%;
  max-width: 370px;
}
.search-bar {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(180, 180, 200, 0.45);
  padding: 0.35rem 0.6rem;
  box-shadow: 0 6px 18px rgba(124, 111, 246, 0.15);
  transition: box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  width: 100%;
}

.search-bar button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.search-bar:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(124, 111, 246, 0.25);
}



/* Burger menu */
.burger-menu {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  display: none;
}

.burger-menu i {
  font-size: 1.8rem;
}

/* ============================
   MOBILE MENU — OFF CANVAS PROPRE
   ============================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #ffffff;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  transition: right 0.35s cubic-bezier(.25,.1,.25,1);
  z-index: 99999;
}

.mobile-menu.open {
  right: 0;
}

/* ============================
   HEADER DU MENU MOBILE (STICKY)
   ============================ */
.mobile-menu-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(18px);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(245, 240, 255, 0.85));
    border-bottom: 1px solid rgba(180, 180, 200, 0.35);
    padding: 0.9rem 1.5rem;
    height: var(--header-height);
}

.close-menu {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
}
.close-menu i {
    font-size: 2rem;
}

/* ============================
   MOBILE SEARCH BAR
   ============================ */
.mobile-search-wrapper {
  padding: 2rem;
}

.mobile-search-bar {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(180, 180, 200, 0.45);
  padding: 0.55rem 0.75rem;
  box-shadow: 0 6px 18px rgba(124, 111, 246, 0.15);
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out,
              background 0.18s ease-out;
}

.mobile-search-bar input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  flex: 1;
  color: var(--text);
}

.mobile-search-bar button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--primary);
}

.mobile-categories {
  padding: 2rem;
}
.categories-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  padding-left: 0.25rem;

  /* Ligne d’accent premium */
  position: relative;
}

.categories-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.85;
  box-shadow: 0 2px 6px rgba(124, 111, 246, 0.25);
}

.mobile-categories .category-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  margin-bottom: 0.5rem;
  color: var(--muted);
  transition: all 0.18s ease-out;
}

.mobile-categories .category-link:hover {
  border-color: var(--primary);
  background: radial-gradient(circle at top, rgba(124, 111, 246, 0.18), transparent 60%);
  color: var(--text);
}

/* ============================
   BREADCRUMB PREMIUM
============================ */
nav.breadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 1.5em;
  margin-bottom: 3rem;
}

/* Liste interne */
nav.breadcrumb ul {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

/* Items */
nav.breadcrumb li {
  display: flex;
  color: var(--text);
}

/* Séparateur premium "/" */
nav.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: rgba(120,120,140,0.7);
  font-weight: 400;
}

/* ============================
   LIENS PREMIUM + ANIMATION
============================ */
nav.breadcrumb li a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Soulignement animé */
nav.breadcrumb li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.18s ease-out;
}

nav.breadcrumb li a:hover {
  color: var(--primary);
}

nav.breadcrumb li a:hover::after {
  width: 100%;
}

/* Icônes */
nav.breadcrumb .material-icons {
  font-size: 1rem;
  color: var(--primary);
  opacity: 0.85;
}

/* User actions */
.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-actions .icon-wrapper {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all 0.18s ease-out;
  padding: 0.35rem 0.5rem;
  gap: 4px;

}

/* ===== Hover premium pour les actions utilisateur ===== */
.user-actions .icon-wrapper {
  position: relative; /* nécessaire pour le ::after */
  transition: border-color 0.25s ease, color 0.25s ease;
}

/* Soulignement animé façon breadcrumb */
.user-actions .icon-wrapper:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px; /* ajuste selon ton design */
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  animation: underline-grow 0.25s ease-out forwards;
}

/* Animation */
@keyframes underline-grow {
  from { width: 0; }
  to { width: 100%; }
}

.icon-color {
  color: var(--primary);
}
/* ============================
   MOBILE ACTIONS + CATEGORIES
   ============================ */
.mobile-user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 2rem;
}

.mobile-user-actions .icon-wrapper {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-user-actions .text-color{
	color: var(--muted);
}
.mobile-user-actions .icon-wrapper.menu-active {
  border-color: var(--primary);
}


.profile-pic-header {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  #outline-offset: -2px;
  border: 2px solid var(--primary);
}

.profile-pic-header-mobile {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-right: 7px;
  border: 2px solid var(--primary);
}

.profile-initial-header {
  border-radius: 50%;
  color: var(--primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-initial-header-mobile {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--primary);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  font-size: 1em;
}
/* ===== ÉTAT ACTIF SIMPLIFIÉ ===== */
.icon-wrapper.menu-active,
.profile-pic-header.menu-active,
.profile-initial-header.menu-active {
    background: radial-gradient(circle at top, rgba(124, 111, 246, 0.18), transparent 60%);
}

/* Icône active */
.icon-wrapper.menu-active i {
  color: var(--primary);
}

/* Texte actif */
.icon-wrapper.menu-active .text-color {
  color: var(--primary);
}
/* ============================
   CATEGORIES GRID (desktop only)
   ============================ */

.categories {
  margin: 1.5rem 0 2rem;
}

.categories ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.categorie a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(124, 111, 246, 0.18), transparent 55%),
    #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 0.85rem;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.categorie a:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 111, 246, 0.8);
  box-shadow: 0 18px 40px rgba(124, 111, 246, 0.25);
}

.categorie i.material-icons {
  font-size: 1.2rem;
  color: var(--primary);
}
/* ============================
   SECTION ACCUEIL — PREMIUM
   ============================ */

.accueil {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(124, 111, 246, 0.12), transparent 55%),
    #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.accueil-texte {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* Nettoyage des wrappers générés par l’éditeur */
.accueil-texte .block,
.accueil-texte .paragraph-content,
.accueil-texte .block-content,
.accueil-texte .block-wrapper,
.accueil-texte .paragraph-wrapper {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style du texte */
.accueil-texte p,
.accueil-texte .block-content {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: justify;
}

/* Espacement entre paragraphes */
.accueil-texte .block {
  margin-bottom: 0.75rem;
}

/* Supprimer les boutons d’édition invisibles */
.block-actions-vertical {
  display: none !important;
}
/* SECTION "A la une" */
.articles.articles-a-la-une {
  margin: 2rem 0;
}

h2 {
  margin-bottom: 2rem;
  margin-top: 2rem;
  font-size: 1.3rem;
  line-height: 1.1;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(200, 200, 220, 0.45);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
  background: linear-gradient(120deg, #4b4b4b, #7c6ff6, #f58ac8);
  -webkit-background-clip: text;
  color: transparent;
}

/* GRID DES ARTICLES */
.articles {
  display: grid;
}
  .article-grid {
	display: grid;  
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
  }

/* CARD ARTICLE */
.article-tile {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(200, 200, 220, 0.45);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.article-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(124, 111, 246, 0.25);
}

/* IMAGE + OVERLAY */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 200, 220, 0.35);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-title-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.9rem;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0)
    );
    backdrop-filter: blur(3px);
    color: #fff;
}

.image-title-overlay h3 {
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0;
}

/* BADGE VUES */
.views-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text);
  border: 1px solid rgba(200, 200, 220, 0.45);
}

.views-badge i {
  font-size: 1rem;
  color: var(--primary);
}

/* AUTEUR + DATE */
.meta-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.avatar-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.date-info {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--dark-text);
  line-height: 1.4;
  vertical-align: middle;
}

.date-info i {
  font-size: 1rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 1px; /* ajuste légèrement le centrage */
}

/* ============================
   STATUS ICON (validé, refusé…)
   ============================ */

.status-icon-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.85);
  padding: 4px 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.status-icon-overlay.validated i {
  color: var(--accent);
  font-size: 1.3rem;
}

/* ============================
   IMAGE INFO OVERLAY (titre + meta)
   ============================ */

.image-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  backdrop-filter: blur(3px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.image-info-overlay h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #fff;
}
/* ============================
   INDICATEUR "À LA UNE"
   ============================ */

.a-la-une-indicator {
  position: absolute;
  top: 10px;
  right: 10px;

  background: rgba(255, 255, 255, 0.85);
  padding: 4px 6px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  backdrop-filter: blur(6px);

  z-index: 5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.a-la-une-indicator i {
  font-size: 1.3rem;
  color: #f5b400; /* Or premium */
  text-shadow: 0 2px 6px rgba(245,180,0,0.35);
}

/* Effet hover premium */
.image-wrapper:hover .a-la-une-indicator {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

/* ============================
   META INFO (date + vues)
   ============================ */

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

.date-views {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  justify-content: space-between;
}

.date-views span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.date-views i {
  font-size: 1rem;
  color: var(--secondary);
}

/* ============================
   ARTICLE META PANEL (sous la carte)
   ============================ */

.article-meta-panel {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============================
   ENGAGEMENT (commentaires + likes)
   ============================ */

.engagement-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.engagement-summary {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-count i {
  font-size: 1.1rem;
  color: var(--primary);
}

/* Reaction bar (likes/dislikes) */
.reaction-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.reaction-bar i {
  font-size: 1.1rem;
  color: var(--primary);
}

/* ============================
   ACTIONS (modifier / supprimer)
   ============================ */

.reaction-and-actions {
  display: flex;
  justify-content: flex-end;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-button {
  background: #fff;
  border: 1px solid rgba(200,200,220,0.45);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease-out;
  display: flex;
  align-items: center;
}

.icon-button:hover {
  border-color: var(--primary);
  background: rgba(124,111,246,0.12);
}

.icon-button i {
  font-size: 1.2rem;
  color: var(--muted);
}

.icon-button i.delete {
  color: #e74c3c;
}

.icon-button i.edit {
  color: var(--primary);
}
/* Alignement parfait icône + texte */
.engagement-summary span,
.reaction-bar span,
.reaction-bar .likes,
.reaction-bar .dislikes,
.comment-count,
.reaction-bar,
.article-actions .icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem; /* espace icône / texte */
}

/* Uniformiser les icônes */
.engagement-summary i,
.reaction-bar i,
.article-actions i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* supprime les décalages verticaux */
  font-size: 1.1rem;
}

/* Corrige le petit décalage vertical des spans */
.engagement-summary span,
.reaction-bar span {
  line-height: 1;
}

.article-content {
	margin-bottom: 2rem;
}
/* -------------------------------------------------------
   CONTENEUR ARTICLE
------------------------------------------------------- */
.article-texte {
    font-size: 1em;
    line-height: 1.7;
    text-align: justify;
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    background: radial-gradient(circle at top left, rgba(124, 111, 246, 0.12), transparent 55%), #ffffff;
    border: 1px solid rgba(200, 200, 220, 0.45);
    box-shadow: var(--shadow-soft);
}

/* -------------------------------------------------------
   ESPACEMENT ENTRE BLOCS
------------------------------------------------------- */
.article-texte .block {
  margin-bottom: 1.4em;
}

.article-texte .block:first-child {
  margin-top: 0 !important;
}

.article-texte .block:last-child {
  margin-bottom: 0 !important;
}

/* Neutralisation des marges internes parasites */
.article-texte .block-content,
.article-texte .block-wrapper,
.article-texte iframe,
.article-texte table,
.article-texte img {
  margin: 0;
  padding: 0;
}

/* -------------------------------------------------------
   PARAGRAPHES
------------------------------------------------------- */
.article-texte .paragraph {
  font-size: 0.9em;
  line-height: 1.6;
  color: var(--muted);
}

/* -------------------------------------------------------
   TITRES
------------------------------------------------------- */
.article-texte .heading1,
.article-texte .heading2,
.article-texte .heading3,
.article-texte .heading4,
.article-texte .heading5,
.article-texte .heading6 {
  color: var(--text);
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.7em;
  line-height: 1.3;
}

/* H1 */
.article-texte .heading1 {
  font-size: 1.45em;
}

/* H2 */
.article-texte .heading2 {
  font-size: 1.28em;
}

/* H3 */
.article-texte .heading3 {
  font-size: 1.15em;
}

/* H4 */
.article-texte .heading4 {
  font-size: 1.1em;
}

/* H5 */
.article-texte .heading5 {
  font-size: 1.05em;
}

/* H6 */
.article-texte .heading6 {
  font-size: 1.02em;
}

/* -------------------------------------------------------
   LISTES
------------------------------------------------------- */
.article-texte .list-unordered,
.article-texte .list-ordered,
.article-texte .list-alpha {
  font-size: 1em;
  color: var(--muted);
  line-height: 1.55;
  padding-left: 1.2em;
}

.article-texte .list-unordered li,
.article-texte .list-ordered li,
.article-texte .list-alpha li {
  margin: 0.35em 0;
  line-height: 1.45;
  font-size: 0.95em;
}

.article-texte .list-alpha ol {
  list-style-type: lower-alpha;
}

/* -------------------------------------------------------
   BLOC UNIFIÉ — STYLE PREMIUM (lecture)
------------------------------------------------------- */
.article-texte .quote,
.article-texte .callout {
  border-left: 4px solid #ccc;
  padding: 14px 18px;
  background: #fafafa;
  border-radius: 6px;
  overflow-wrap: break-word;
  line-height: 1.55;
  color: #444;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 18px 0;
}

/* Icône */
.article-texte .quote .quote-icon,
.article-texte .callout .callout-icon {
  opacity: 0.8;
  flex-shrink: 0;
  font-size: 1.2rem;
  line-height: 1;
}

/* Contenu */
.article-texte .quote .quote-content,
.article-texte .callout .callout-content {
  flex: 1;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

/* -------------------------------------------------------
   VARIANTES — QUOTE
------------------------------------------------------- */
.article-texte .quote.simple {
  border-color: #b8b8b8;
  background: #fafafa;
  font-style: italic;
}

.article-texte .quote.simple .quote-icon {
  color: #999;
}

.article-texte .quote.note {
  border-color: #6c757d;
  background: #f1f3f5;
}

.article-texte .quote.note .quote-icon {
  color: #6c757d;
}

/* -------------------------------------------------------
   VARIANTES — CALLOUT
------------------------------------------------------- */
.article-texte .callout.info {
  border-color: #0d6efd;
  background: #e7f1ff;
}

.article-texte .callout.warning {
  border-color: #ffc107;
  background: #fff8e1;
}

.article-texte .callout.success {
  border-color: #198754;
  background: #e6f4ea;
}

.article-texte .callout.tip {
  border-color: #6c757d;
  background: #f1f3f5;
}

/* Couleurs icônes */
.article-texte .callout.info .callout-icon { color: #0d6efd; }
.article-texte .callout.warning .callout-icon { color: #ffc107; }
.article-texte .callout.success .callout-icon { color: #198754; }
.article-texte .callout.tip .callout-icon { color: #6c757d; }

/* -------------------------------------------------------
   CODE BLOCK
------------------------------------------------------- */
.article-texte .code pre {
  background: #2b2f33;
  border-radius: 6px;
  padding: 14px 18px;
  border-left: 4px solid #6ea8ff;
  overflow-x: auto;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  line-height: 1.55;
  color: #e6e6e6;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.9em;
}

/* -------------------------------------------------------
   TABLEAUX
------------------------------------------------------- */
.article-texte .block.table {
  width: 100%;
  overflow-x: auto;
}

.article-texte .block.table table {
  width: 100%;
  border-collapse: collapse;
}

.article-texte .block.table th,
.article-texte .block.table td {
  border: 1px solid #ddd;
  padding: 8px 10px;
}

.table-cell span {
  display: inline !important;
}

/* -------------------------------------------------------
   IMAGES
------------------------------------------------------- */
.block.image.editor-align-center {
  text-align: center;
}

.block.image.editor-align-center .image-wrapper {
  margin-left: auto;
  margin-right: auto;
}

.block.image.editor-align-left {
  text-align: left;
}

.block.image.editor-align-right {
  text-align: right;
}

.block.image.editor-align-right .image-wrapper {
  margin-left: auto;
}

.block.image .image-wrapper {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.block.image .image-wrapper img.editor-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* -------------------------------------------------------
   EMBEDS
------------------------------------------------------- */
.article-texte .embed-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
  border: 1px solid #ddd;
}

.article-texte .embed-wrapper iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: none;
}

/* -------------------------------------------------------
   ALIGNEMENT DES BLOCS TEXTUELS
------------------------------------------------------- */
.article-texte .block.align-left .paragraph-content,
.article-texte .block.align-left .heading-content,
.article-texte .block.align-left .list-content {
  text-align: left;
}

.article-texte .block.align-center .paragraph-content,
.article-texte .block.align-center .heading-content,
.article-texte .block.align-center .list-content {
  text-align: center;
}

.article-texte .block.align-right .paragraph-content,
.article-texte .block.align-right .heading-content,
.article-texte .block.align-right .list-content {
  text-align: right;
}

.article-texte .block.align-justify .paragraph-content,
.article-texte .block.align-justify .heading-content,
.article-texte .block.align-justify .list-content {
  text-align: justify;
}

/* ============================
   TEXTE / PARAGRAPHES
============================ */
.excerpt.editor-content {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================
   TITRES (H3)
============================ */
.editor-content h3 {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.2rem 0 0.6rem;

  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

.editor-content h3:first-child {
  margin-top: 0;
}

/* ============================
   LIENS
============================ */
.editor-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
  font-size: 1.1rem;
}

.editor-content a:hover {
  color: var(--secondary);
}

/* ============================
   TABLEAU
============================ */
.editor-content table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(200,200,220,0.45);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* En-têtes */
.editor-content table th {
  border: 1px solid rgba(200,200,220,0.45);
  padding: 10px;
  background: rgba(124,111,246,0.12);
  font-weight: 600;
  text-align: left;
  color: var(--text);
}

/* Placeholder pour TH vides */
.editor-content table th:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  opacity: 0.7;
}

/* Cellules */
.editor-content table td {
  border: 1px solid rgba(200,200,220,0.45);
  padding: 10px;
  background: #fff;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text);
}

/* Alignement vertical */
.editor-content td,
.editor-content th {
  vertical-align: top;
}

/* Hover sur les lignes */
.editor-content table tr:hover td {
  background-color: rgba(124,111,246,0.06);
}

/* Supprimer contour bleu */
.editor-content table td:focus,
.editor-content table td:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Spans colorés TinyMCE */
.editor-content span[style*='color'] {
  font-weight: 500;
}

/* Retour à la ligne des spans dans les cellules */
.editor-content table .table-cell span {
  display: block;
  margin-bottom: 4px;
}

/* ---------------------------------------------------------
   🟦 CONTAINER GLOBAL
--------------------------------------------------------- */

.comments {
  margin-top: 40px;
  color: var(--text);
}
.replies:empty {
  display: none;
}

.comment-level-0 {
  margin-left: 0;
}

.comment-level-1 {
  margin-left: 32px;
  padding-left: 16px;
  border-left: 2px solid rgba(124, 111, 246, 0.25);
}

.comment-level-2 {
  margin-left: 64px; /* 🔥 plus décalé que level 1 */
  padding-left: 16px;
  border-left: 2px solid rgba(124, 111, 246, 0.25);
}

/* ---------------------------------------------------------
   🟩 HEADER
--------------------------------------------------------- */

.comment_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(124, 111, 246, 0.08);
  margin-bottom: 20px;
}

.comment_header .total {
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

/* Bouton "Commenter" harmonisé */
.comment_header a.write_comment_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(124, 111, 246, 0.25);
  transition: all 0.25s ease;
}

.comment_header a.write_comment_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 111, 246, 0.35);
}

/* ---------------------------------------------------------
   🟧 COMMENTAIRE
--------------------------------------------------------- */

.comment {
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(124, 111, 246, 0.08);
  border-left: 4px solid transparent;
  transition: 0.25s ease;
}

.comment.deleted-user {
  opacity: 0.6;
}

.comment:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 111, 246, 0.12);
}

/* ---------------------------------------------------------
   🟨 HEADER DU COMMENTAIRE
--------------------------------------------------------- */

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar-and-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Avatar uniquement dans les commentaires */
.comment .avatar-wrapper {
  width: 35px;      /* largeur souhaitée */
  height: 35px;     /* hauteur souhaitée */
  min-width: 35px;  /* empêche l'écrasement */
  min-height: 35px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image interne */
.comment .avatar-comments {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Icône fallback */
.comment .avatar-icon {
  font-size: 26px;
  color: #777;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}


.comment .name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-text);
}

.comment .date {
  font-size: 0.8rem;
  color: var(--dark-text);
}

/* ---------------------------------------------------------
   🟪 CONTENU
--------------------------------------------------------- */
.comment .content {
    background: #f5f5f7;
    padding: 14px 18px;
    border-radius: 14px;
    margin: 10px 0 15px;
    position: relative;
    display: inline-block;
    width: 100%;
	  line-height: 1.55;
  font-size: 0.9rem;
}

/* Petit chapeau sous l’avatar */
.comment .content::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 40px; /* aligné sous l’avatar */
    width: 12px;
    height: 12px;
    background: #f5f5f7;
    transform: rotate(45deg);
    border-radius: 3px;
}

/* ---------------------------------------------------------
   🟫 FOOTER (actions)
--------------------------------------------------------- */

.comment-footer {
  display: flex;
  gap: 18px;
}

.comment-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.25s ease;
}

.comment-footer a:hover {
  opacity: 0.7;
}

.disabled-action {
  opacity: 0.4 !important;
  pointer-events: none !important;
}

/* ---------------------------------------------------------
   🟩 RÉPONSES
--------------------------------------------------------- */

.replies {
  margin-left: 32px;
  padding-left: 16px;
  border-left: 2px solid rgba(124, 111, 246, 0.25);
  margin-top: 14px;
}

/* ---------------------------------------------------------
   🟦 FORMULAIRE
--------------------------------------------------------- */

.write_comment {
  margin-top: 12px;
}

.write_comment textarea {
  width: 100%;
  min-height: 90px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(180,180,200,0.45);
  background: #fff;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.25s ease;
  margin-bottom: 0.5rem;
}

.write_comment textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(124,111,246,0.25);
  outline: none;
}
/* ---------------------------------------------------------
   🟧 BOUTON "PUBLIER" (harmonisé)
--------------------------------------------------------- */

.write_comment .btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(124, 111, 246, 0.25);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.write_comment .btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124, 111, 246, 0.35);
}

.write_comment .btn-small.no-click {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------------------------------------------------------
   🟥 MESSAGES INLINE
--------------------------------------------------------- */

.moderation-inline {
  margin-top: 10px;
  padding: 12px;
  background: #fff7e6;
  border-left: 4px solid #ffb300;
  border-radius: 8px;
  font-size: 14px;
}
.moderation-inline {
    margin: 14px 0 22px 0;
}

@keyframes slideFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.moderation-inline.disappear {
  animation: slideFadeOut 0.4s ease forwards;
}

.comment {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   BOUTON LOAD MORE (premium)
============================ */
#loadMoreBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
  padding: 0.8rem 1.4rem;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 999px;

  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(124,111,246,0.25);

  margin: 2rem auto 0 auto; /* centré */
  width: 100%;
  max-width: 300px;
}

/* Hover premium */
#loadMoreBtn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}

/* Désactivé */
#loadMoreBtn:disabled,
#loadMoreBtn.disabled {
  background: #cccccc;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.7;
  box-shadow: none;
}

/* Icône + texte */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

a i.material-icons {
  text-decoration: none !important;
}

/* Conteneur centré */
.load-more-container {
  text-align: center;
  margin-bottom: 3rem;
}

.image-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.image-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ============================
   META AUTHOR BLOCK
   ============================ */

.meta-author {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    /* background: #fff; */
    border-radius: var(--radius);
    padding: 0.9rem 0.9rem 1rem;
    background: radial-gradient(circle at top left, rgba(124, 111, 246, 0.18), transparent 55%), #ffffff;
    border: 1px solid rgba(200, 200, 220, 0.45);
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

/* ============================
   LIGNE 1 : AUTEUR-INFO
   ============================ */

.auteur-info {
  display: flex;
  align-items: center;
}

/* Groupe avatar + pseudo */
.avatar-wrapper {
  display: flex;
  align-items: center;
}

.avatar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(124,111,246,0.25);
}

.pseudo {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.date-vues {
  font-size: 0.78rem;
  color: var(--dark-text);
  display: inline-flex; /* meilleur alignement dans les lignes */
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  margin-left: auto;
}

.date-vues i {
  font-size: 1rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================
   LIGNE 2 : META-BLOCK
   ============================ */

.meta-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ============================
   REACTIONS (like / dislike)
   ============================ */

.reactions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reactions button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid rgba(200,200,220,0.45);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease-out;
  color: var(--muted);
}

.reactions button:hover {
  border-color: var(--primary);
  background: rgba(124,111,246,0.12);
  color: var(--primary);
}

.reactions i {
  font-size: 1.1rem;
}

.pipe-separator {
  opacity: 0.4;
  font-size: 1rem;
}

/* ============================
   SHARE BUTTON
   ============================ */

.share-wrapper {
  display: flex;
  align-items: center;
}

.share-default {
  border: none;
  background: #fff;
  border: 1px solid rgba(200,200,220,0.45);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease-out;
  display: flex;
  align-items: center;
}

.share-default:hover {
  border-color: var(--primary);
  background: rgba(124,111,246,0.12);
  color: var(--primary);
}

.share-default .material-icons {
  font-size: 1.3rem;
  color: var(--primary);
}

/* ============================
   IMAGE BANNER
   ============================ */

.image-banner {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.2rem 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.image-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

  .article-layout {
	display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    gap: 3rem;
  }

.articles-similaires {
  display: grid;
  gap: 35px;
}
  .articles-similaires {
    grid-template-columns: 1fr;
    gap: 3em;
  }
  
 /* ============================
   CONTAINER DU DASHBOARD
============================ */
.dashboard-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

/* ============================
   TILE (carte)
============================ */
.dashboard-container .tile {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(200,200,220,0.45);
  box-shadow: var(--shadow-soft);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.dashboard-container .tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(124,111,246,0.25);
}

/* ============================
   LIEN INTERNE
============================ */
.dashboard-container .tile a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 1.4rem 1rem;
  text-decoration: none;

  color: var(--text);
  gap: 0.6rem;
}

/* ============================
   ICÔNES
============================ */
.dashboard-container .tile i.material-icons {
  font-size: 2.2rem;
  color: var(--primary);
  transition: transform 0.25s ease;
}

.dashboard-container .tile:hover i.material-icons {
  transform: scale(1.12);
}

/* ============================
   TITRE
============================ */
.dashboard-container .tile h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

/* ============================
   BADGE (ex: nombre d’articles)
============================ */
.dashboard-container .tile .badge {
  position: absolute;
  top: 10px;
  right: 14px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;

  padding: 4px 10px;
  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 600;

  box-shadow: 0 4px 12px rgba(124,111,246,0.25);
}

/* ============================
   CONTAINER GLOBAL
============================ */
.informations {
  padding: 2rem;
  max-width: 900px;
  margin: 2rem auto;
  border-radius: var(--radius);
  background: radial-gradient(circle at top left, rgba(124, 111, 246, 0.18), transparent 55%), #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

/* ============================
   HEADER PROFIL
============================ */
.profil-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: #ffffff;
    border: 1px solid rgba(200, 200, 220, 0.45);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}
.profil-header i.material-icons {
  font-size: 4em;
  color: #ccc;
  border-radius: 50%;
}

.profil-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 20px rgba(124, 111, 246, 0.25);
  overflow: hidden; /* important pour arrondir l’image */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* optionnel */
}

.profil-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil-photo i {
  font-size: 70px;
  color: var(--primary);
}


/* ============================
   META INFORMATIONS
============================ */
.profil-meta-informations {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profil-meta-informations p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

.profil-meta-informations strong {
  color: var(--text);
  font-weight: 600;
}
.activity-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: transparent;
    transition: all 0.25s ease;
	gap: 4px;
}

/* ============================
   ACTIONS
============================ */
.profil-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.profil-actions .otherbtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}

.profil-actions .otherbtn i {
  font-size: 1.2rem;
}

/* ============================
   FORM CONTAINER
============================ */
.form-container {
  padding: 1.8rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 750px;
  margin: 2rem auto;
  color: var(--text);
  box-sizing: border-box;
  background: radial-gradient(circle at top left, rgba(124, 111, 246, 0.25), transparent 55%), radial-gradient(circle at bottom right, rgba(245, 138, 200, 0.25), transparent 55%), #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

.refresh-icon {
    cursor: pointer;
    transition: transform 0.25s ease;
}

.refresh-icon:hover {
    transform: rotate(90deg);
}
/* --- VALIDATION LIVE --- */
.valid { border-color: #7c6ff6 !important; }
.invalid { border-color: #ff6b6b !important; }

/* --- COMPTEUR --- */
.char-counter {
    text-align: right;
    font-size: 13px;
    color: #7c6ff6;
    margin-top: 5px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert {
    animation: slideFade 0.45s ease forwards;
}

@keyframes slideFade {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   TITRES
============================ */
.form-container h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  position: relative;
}

.form-container h3::after {
  content: '';
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.form-container textarea {
    min-height: 140px; /* Ajuste la hauteur selon ton goût */
}

/* ============================
   INPUTS & TEXTAREA
============================ */
.form-container input,
.form-container textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(180,180,200,0.45);
  background: #fff;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(124,111,246,0.08);
}

.form-container input:focus,
.form-container textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(124,111,246,0.25);
  outline: none;
}

/* ============================
   PASSWORD CONTAINER
============================ */
.password-container {
  position: relative;
  width: 100%;
}

/* On retire le margin-bottom de l’input dans ce container */
.password-container input {
  padding-right: 48px; /* espace pour l’œil */
}

/* ============================
   TOGGLE PASSWORD (ŒIL)
============================ */
.toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%); /* centrage parfait */
  height: 24px;
  width: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: var(--primary);
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toggle-password:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.toggle-password .material-icons {
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
}
.password-strength-container {
    padding: 15px;
    background: #f7f7fb;
    border-radius: 12px;
    border: 1px solid #e5e5f0;
}

.strength-bar {
    width: 100%;
    height: 10px;
    background: #e5e5f0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: red;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.strength-rules {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 7px;
    display: flex;
    flex-direction: column;
}

.strength-rules li {
  position: relative;
  padding-left: 34px;
  font-size: 0.8rem;
  line-height: 22px; /* Alignement vertical du texte */
  display: flex;
  align-items: center; /* Alignement horizontal */
}

/* Icône neutre (gris) */
.strength-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* Centre l’icône verticalement */
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #d1d5db;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

/* Icône verte premium + coche */
.strength-rules li.valid::before {
  content: "✓";
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;

  background: radial-gradient(circle at top,
    rgba(74, 222, 128, 0.9),
    rgba(34, 197, 94, 0.9)
  );
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

/* ============================
   CIVILITÉ — WRAPPER
============================ */
.civilite-group {
  display: flex;
  gap: 0.4rem;
}

/* Label "Civilité" */
.civilite-group .label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================
   RADIO CONTAINER
============================ */
.radio-container {
  display: flex;
  align-items: center;       /* aligne parfaitement verticalement */
  gap: 2rem;                 /* espace horizontal entre Mr / Mme */
}

/* ============================
   RADIO ITEM
============================ */
.radio-item {
  display: flex;
  align-items: center;       /* aligne l’input et le texte */
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  user-select: none;
}

/* Style du radio natif */
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary); /* couleur premium */
  cursor: pointer;
  margin: 0;                    /* supprime les décalages natifs */
}
.captcha-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: var(--card-bg);
  padding: 6px 10px;
  border: 1px solid rgba(180, 180, 200, 0.45);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  width: fit-content;
  margin: 10px auto;
}

.refresh-icon {
  cursor: pointer;
  color: var(--primary);
  margin-left: 10px;
  font-size: 1.2em;
  transition: color 0.2s ease, transform 0.4s ease; /* délai + rotation */
}

.refresh-icon:hover {
  color: var(--secondary);
  transform: rotate(180deg); /* rotation au hover */
}

.captcha-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
#captcha {
    display: block;
    margin: 0 auto;
	max-width: 200px;
}
.captcha-input {
    display: block;
    margin: 0 auto;
	max-width: 200px;
}
.captcha-block {
	text-align: center;
}

/* ============================
   BOUTON
============================ */
.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    width: 100%;
    max-width: 400px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(124, 111, 246, 0.25);
    margin-left: auto;
    margin-right: auto;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}

.btn-text {
	display: flex;
	align-items: center;
    justify-content: center;
	gap: 5px;
}
.btn-small {
    display: inline-flex; /* important pour s’adapter au contenu */
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0.45rem 0.9rem; /* plus compact */
    width: auto; /* ← largeur selon le contenu */

    border-radius: 999px;
    border: none;

    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;

    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(124, 111, 246, 0.25);
}

.btn-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}
/* ---------------------------------------------------------
   🔄 LOADER GLOBAL POUR TOUS LES BOUTONS data-loader
--------------------------------------------------------- */
/* Masque le contenu du bouton en mode loading */
[data-loader].is-loading .btn-text,
[data-loader].is-loading i {
    visibility: hidden; /* conserve la place sans décalage */
}
/* Loader centré */
.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    display: none; /* invisible par défaut */
    pointer-events: none;
}

/* Cercle animé parfaitement rond */
.btn-loader::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    box-sizing: border-box; /* évite l’écrasement */
    animation: spin 0.7s linear infinite;
}

/* Affichage uniquement en mode loading */
[data-loader].is-loading .btn-loader {
    display: block;
}

/* Ajustement spécifique pour les petits boutons */
.btn-small .btn-loader {
    width: 14px;
    height: 14px;
}
.btn-small .btn-loader::before {
    width: 14px;   /* largeur fixe */
    height: 14px;  /* hauteur identique */
    border-width: 2px;
    border-radius: 50%; /* cercle parfait */
    box-sizing: border-box;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empêche les clics multiples */
.no-click {
    pointer-events: none;
}

/* ============================
   DISABLE ICÔNES CHROME
============================ */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-textfield-decoration-container,
input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
.auth-separator {
  width: 100%;
  max-width: 400px;
  margin: 35px auto;
  position: relative;
  text-align: center;
}

.auth-separator::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(180,180,200,0.45);
}

.separator-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 12px;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.9rem;
}
.google-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bouton Google premium */
.btn-google .btn-text {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0.85rem 1.4rem;
    width: 100%;
    max-width: 400px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(124, 111, 246, 0.25);
    text-decoration: none;
}

.btn-google:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.google-icon-wrapper {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.profil-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px; /* espacement propre et cohérent */
}

.profil-meta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}
/* ============================
   GRID DES STATS
============================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

/* ============================
   BOX STAT (carte)
============================ */
.stats-grid .stat-box {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(200,200,220,0.45);
  box-shadow: var(--shadow-soft);

  padding: 1.4rem 1rem;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats-grid .stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(124,111,246,0.25);
}

/* ============================
   ICÔNES
============================ */
.stats-grid .stat-box .material-icons {
  font-size: 2.2rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  line-height: 1;
}

.stats-grid .stat-box:hover .material-icons {
  transform: scale(1.12);
}

/* ============================
   CHIFFRE
============================ */
.stats-grid .stat-box h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

/* ============================
   LABEL
============================ */
.stats-grid .stat-box p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
/* ============================
   CONTAINER
============================ */
.article-list {
  margin-top: 2rem;
}

.article-list h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;

  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

/* ============================
   LISTE
============================ */
.article-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ============================
   LIENS
============================ */
.article-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.9rem 1rem;
  background: #fff;

  border-radius: var(--radius);
  border: 1px solid rgba(200,200,220,0.45);
  box-shadow: var(--shadow-soft);

  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;

  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Hover premium */
.article-list li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(124,111,246,0.25);
  border-color: rgba(124,111,246,0.8);
}

/* ============================
   FLÈCHE
============================ */
.article-list .arrow {
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  display: inline-block;
  line-height: 1;
}

/* Animation de la flèche */
.article-list li a:hover .arrow {
  transform: translateX(4px);
}

/* ============================
   BOUTON UPLOAD
============================ */
.btn-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 0.85rem 1.4rem;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;

  color: #fff;
  font-weight: 600;
  cursor: pointer;

  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(124,111,246,0.25);
}

.btn-file-upload:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}

/* ============================
   LIENS
============================ */
.forgot-password,
.creataccount {
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.forgot-password:hover,
.creataccount:hover {
  color: var(--secondary);
}

/* ============================
   CHECKBOX CUSTOM
============================ */
.checkbox-container {
  display: flex;
  align-items: center;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.custom-checkbox-input {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;

  border: 2px solid rgba(180,180,200,0.6);
  background: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: all 0.25s ease;
  position: relative;
}

.custom-checkbox-input:checked + .custom-checkbox {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,111,246,0.25);
}

.custom-checkbox-input:checked + .custom-checkbox::after {
  content: "";
  width: 10px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
  position: absolute;
  top: 50%;
  left: 50%;
}

/* ============================
   FIELDSET
============================ */
fieldset {
    border: none;
    padding: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.alert {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.4;
}
.alert ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.alert.alert-danger li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Version danger */
.alert-danger {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #c82333;
  box-shadow: 0 6px 18px rgba(220, 53, 69, 0.15);
}
.resend-link {
  color: #7c6ff6;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(124, 111, 246, 0.5);
  padding-bottom: 2px;
  transition: 0.25s ease;
  cursor: pointer;
}

.resend-link:hover {
  color: #5a4de3;
  border-bottom-color: #5a4de3;
}

/* ============================
   ALERT SUCCESS
============================ */
.alert-success {
  background: rgba(40, 167, 69, 0.12); /* vert doux */
  border: 1px solid rgba(40, 167, 69, 0.35);
  color: #218838; /* vert lisible */
  box-shadow: 0 6px 18px rgba(40, 167, 69, 0.15);
}

/* ============================
   MATERIAL ICONS
============================ */
.material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

/* ============================
   LIENS AUTH (mot de passe / créer un compte)
============================ */
.auth-column {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
  margin-top: 1rem;
}

.auth-item {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.auth-item:hover {
  opacity: 0.7;
}

/* ============================
   MATERIAL ICONS (global)
============================ */
.material-icons {
  font-family: 'Material Icons' !important;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

a i.material-icons {
  text-decoration: none !important;
}

/* ============================
   CONTAINER GLOBAL
============================ */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 15px;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  border-radius: var(--radius);
}

.profile-pic-container,
.profile-initial-container {
  position: relative;
  display: flex;              /* meilleur centrage */
  align-items: center;
  justify-content: center;
  width: 120px;               /* taille premium */
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fff;
  font-weight: bold;
  background-size: cover;
  background-position: center;

  /* Style premium */
  border: 3px solid var(--primary);
  box-shadow: 0 8px 20px rgba(124, 111, 246, 0.25);
}

/* Image */
.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Icône fallback */
.profile-initial-container i {
  font-size: 70px;
  color: #ccc;
  line-height: 1;
}

/* ============================
   BOUTONS (changer / ajouter)
   — Harmonisés avec ton template
============================ */
.add-pic-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;

  box-shadow: 0 6px 18px rgba(124,111,246,0.25);

  /* même logique que tes autres boutons */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.add-pic-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}

.add-pic-btn i {
  font-size: 1.2rem;
}
.delete-pic-btn {
  position: absolute;
  bottom: 6px;
  right: 6px;

  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: none;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;

  box-shadow: 0 6px 18px rgba(124,111,246,0.25);

  /* même logique que tes autres boutons */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.delete-pic-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}
.delete-pic-btn i {
  font-size: 1.2rem;
}
.otherbtn {
  display: flex; /* au lieu de inline-flex pour un centrage fiable */
  align-items: center;
  justify-content: center;

  gap: 8px;
  padding: 0.8rem 1.4rem;

  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;

  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(124,111,246,0.25);

  width: 100%;
  max-width: 400px;
  margin-top: 1rem;
  margin-left: auto;   /* ← centrage horizontal */
  margin-right: auto;  /* ← centrage horizontal */
}

.otherbtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}

.otherbtn i {
  font-size: 1.2rem;
}

/* Bouton rouge */
.btn-danger {
  background: linear-gradient(135deg, #d9534f, #c9302c);
}

#image-upload-wrapper {
  display: flex;
  justify-content: center;

}

/* ============================
   CONTAINER
============================ */
#image-preview-container {
  position: relative;
  width: 70%;
  max-width: 800px;
  aspect-ratio: 800 / 450;
  margin: auto;
  display: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  background: #fff;
}

/* ============================
   IMAGE
============================ */
#image-preview {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ============================
   DELETE BUTTON
============================ */
#delete-image-button {
  position: absolute;
  top: 8px;
  right: 8px;

  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.25s ease;

  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#delete-image-button i.material-icons {
  color: #fff;
  font-size: 20px;
}

/* Hover premium */
#delete-image-button:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(124,111,246,0.35);
}
#add-image-button,
.btn-file-upload,
.custom-file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0.85rem 1.4rem;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;

  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(124,111,246,0.25);

  margin: 1rem auto;
}

#add-image-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124,111,246,0.35);
}

/* Icône Material Icons */
#add-image-button i.material-icons {
  font-size: 20px;
  line-height: 1;
}

/* ============================
   WRAPPER
============================ */
.custom-select {
  position: relative;
  width: 100%;
  font-family: inherit;
}

/* ============================
   TRIGGER (champ visible)
============================ */
.custom-select-trigger {
  background: #fff;
  border: 1px solid rgba(180,180,200,0.45);
  padding: 12px 15px;
  border-radius: var(--radius);

  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: all .25s ease;
  box-shadow: 0 4px 12px rgba(124,111,246,0.08);
}

.custom-select-trigger:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(124,111,246,0.18);
}

/* Flèche */
.custom-select .arrow {
  transition: transform .25s ease;
  font-size: 1.2rem;
  color: var(--primary);
}

.custom-select.open .arrow {
  transform: rotate(180deg);
}

/* ============================
   OPTIONS CONTAINER
============================ */
.custom-options {
  position: absolute;
  left: 0;
  width: 100%;
  background: #fff;

  border-radius: var(--radius);
  border: 1px solid rgba(180,180,200,0.45);

  max-height: 0;
  opacity: 0;
  overflow: hidden;

  transition:
    max-height .35s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity .25s ease-out;

  z-index: 10;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Scroll interne */
.custom-options-inner {
  max-height: 260px;
  overflow-y: auto;
  padding: 4px 0;
}

/* Direction bas */
.custom-select.direction-down .custom-options {
  top: calc(100% + 6px);
}

/* Direction haut */
.custom-select.direction-up .custom-options {
  bottom: calc(100% + 6px);
}

/* Ouverture */
.custom-select.open .custom-options {
  max-height: 260px;
  opacity: 1;
}

/* ============================
   OPTION
============================ */
.custom-option {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;

  transition: background .2s ease;
}

.custom-option:hover {
  background: rgba(124,111,246,0.08);
}

.custom-option.selected {
  background: rgba(124,111,246,0.15);
  font-weight: 600;
  color: var(--primary);
}

/* Icônes */
.option-icon,
.selected-icon {
  font-size: 20px;
  color: var(--primary);
}

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

footer {
  padding: 2rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    rgba(245, 240, 255, 1)
  );
  border-top: 1px solid rgba(180, 180, 200, 0.35);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 3rem;
}

/* ============================
   NEWSLETTER
   ============================ */

.newsletter {
  max-width: 600px;
  margin: 0 auto 1rem;
  padding: 1.5rem;
  border-radius: 18px;
      background: radial-gradient(circle at top left, rgba(124, 111, 246, 0.25), transparent 55%), radial-gradient(circle at bottom right, rgba(245, 138, 200, 0.25), transparent 55%), #ffffff;
    border: 1px solid rgba(200, 200, 220, 0.45);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.newsletter h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  max-width: 350px;
  border-radius: 999px;
  border: 1px solid rgba(180, 180, 200, 0.45);
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
  background: #ffffff;
  transition: border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

/* Focus premium identique au global */
.newsletter-form input:hover,
.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(124, 111, 246, 0.18);
  outline: none;
}

/* ============================
   OVERLAY
============================ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55); /* plus lisible */
  z-index: 99; /* passe au-dessus de tout */
  display: none;
  backdrop-filter: blur(2px); /* floute le fond, PAS le modal */
  justify-content: center;
  align-items: center;
}
/* ============================
   OVERLAY PASTEL + BLUR
   ============================ */
.cropper-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
  background: rgba(255, 255, 255, 0.55);
  background: transparent !important;
  opacity: 1 !important;
}


/* ============================
   CONTENU DU MODAL
   ============================ */
.cropper-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 92%;
  max-width: 440px;
  padding: 1.4rem;

  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(200, 200, 220, 0.45);
  box-shadow: var(--shadow-soft);

  animation: modalPop 0.28s cubic-bezier(.16,.84,.44,1);
  overflow: hidden;
}

/* ============================
   ZONE CROPPER
   ============================ */
.cropper-wrapper {
  width: 100%;
  height: 360px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  position: relative;

  /* Ombre interne douce façon premium */
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.06);
  background: #fafaff;
}

#cropper-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Conteneur global */
.cropper-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}

/* Groupe outils (rotation + flip) */
.cropper-tools {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Boutons outils — style premium harmonisé */
.cropper-tools button {
  all: unset;
  cursor: pointer;

  width: 42px;
  height: 42px;

  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(124,111,246,0.55);

  display: flex;
  justify-content: center;
  align-items: center;

  color: var(--text);
  font-size: 20px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  transform: none !important;
  box-shadow: none !important;
}

.cropper-tools button:hover {
  background: rgba(124,111,246,0.08);
  transform: none !important;
}

/* Groupe validation */
.cropper-validate-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cropper-validate-group .cancel {
    background: rgba(200, 200, 220, 0.25);
    color: var(--text);
    border: 1px solid rgba(200, 200, 220, 0.45);
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease;
    padding: 0.45rem 0.9rem;
    width: auto;
    border-radius: 999px;
}

.cropper-validate-group .cancel:hover {
  background: rgba(200,200,220,0.4);
}

/* ============================
   ANIMATION
   ============================ */
@keyframes modalPop {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ============================
   POPUP ULTRA PREMIUM
============================ */
.popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  max-width: 340px;
  width: 100%;
  z-index: 99999;
  overflow: hidden;

  animation: popupFade 0.28s ease;
  background: radial-gradient(circle at top left, rgba(124, 111, 246, 0.18), transparent 55%), #ffffff;
  border: 1px solid rgba(200, 200, 220, 0.45);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
}

/* Animation plus vivante */
@keyframes popupFade {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ============================
   HEADER
============================ */
.popup-header {
  padding: 14px 18px;
  text-align: center;
  font-weight: 600;
  color: var(--dark-text);

  background: linear-gradient(
    135deg,
    rgba(124,111,246,0.12),
    rgba(255,255,255,0.4)
  );

  border-bottom: 1px solid rgba(160, 160, 200, 0.28);
  box-shadow: 0 2px 6px rgba(124,111,246,0.12);
}
.popup-header h1 {
  font-size: 1.15rem;
}

/* ============================
   CLOSE BUTTON ULTRA PREMIUM
============================ */
.popup .close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  font-size: 18px;
  color: var(--text);

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(200,200,220,0.35);
  backdrop-filter: blur(8px);

  transition: all 0.25s ease;
}

.popup .close:hover {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 6px 18px rgba(124,111,246,0.28);
  transform: scale(1.08);
}

/* ============================
   CONTENU
============================ */
.popup-content {
  padding: 14px 18px;
  text-align: center;
}

.popup p {
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* ============================
   BOUTON PREMIUM
============================ */
.popup button,
.popup .popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0.85rem 1.6rem;
  border-radius: 999px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;

  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;

  transition: all 0.28s cubic-bezier(.25,.46,.45,.94);
  box-shadow: 0 8px 22px rgba(124,111,246,0.28);
}

.popup button:hover,
.popup .popup-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 32px rgba(124,111,246,0.38);
}

.reset-info {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
	background: #f5f5f7;
    border-left: 6px solid #b8b4ff;
    border-radius: 8px;
    font-size: 16px;
    color: #2d2d2d;
}
.reset-info strong {
    color: #7c6ff6;
}

/* ============================
   FOOTER LINKS
   ============================ */
.footer-background {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.5rem; /* spacing horizontal + vertical */
  padding: 1.5rem 1rem;
  text-align: center;
}

/* Liens */
.footer-background a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95em;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

/* Icônes */
.footer-background a i {
  font-size: 1.2em;
  opacity: 0.85;
  color: var(--primary);
}

/* Hover pastel premium */
.footer-background a:hover {
  background: rgba(124, 111, 246, 0.12); /* pastel violet */
  color: var(--primary);
  transform: translateY(-2px);
}

footer h3 {
  text-align: center;
  color: var(--text);
  font-size: 1.1em;
  font-weight: 600;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
}

/* COPYRIGHT */
.copyright {
	margin-top: 2em;
}
.copyright p {
  font-size: 0.7em;
  color: var(--muted);
}

/* ============================
   LOADER RECTANGLES PREMIUM
============================ */
.rect-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 1rem auto;
}

.rect-loader span {
  width: 7px;
  height: 18px;

  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 4px;

  animation: rectPulse 0.8s infinite ease-in-out;
  display: inline-block;

  box-shadow: 0 4px 12px rgba(124,111,246,0.25);
}

/* Décalage des animations */
.rect-loader span:nth-child(1) { animation-delay: 0s; }
.rect-loader span:nth-child(2) { animation-delay: 0.15s; }
.rect-loader span:nth-child(3) { animation-delay: 0.3s; }
.rect-loader span:nth-child(4) { animation-delay: 0.45s; }

@keyframes rectPulse {
  0%   { transform: scaleY(1);   opacity: 0.6; }
  50%  { transform: scaleY(1.9); opacity: 1;   }
  100% { transform: scaleY(1);   opacity: 0.6; }
}

/* --- WRAPPER GLOBAL --- */
.article-list.users-list {
    margin-top: 25px;
}

/* --- GRILLE : UNE SEULE COLONNE --- */
.users-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

/* --- CARTE UTILISATEUR PREMIUM --- */
.user-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.9rem 1rem;
  background: #fff;

  border-radius: var(--radius);
  border: 1px solid rgba(200,200,220,0.45);
  box-shadow: var(--shadow-soft);

  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.user-card-info {
    flex-grow: 1;
}

.stars {
    margin-top: 4px;
    display: inline-flex;
    align-items: center; /* aligne les étoiles entre elles */
    gap: 2px
}

.star-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-icon.gold {
    color: #f4c542;
}

.star-icon.grey {
    color: #d0d0d0;
}

/* Hover pastel premium */
.user-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(124,111,246,0.25);
}

/* --- AVATAR ROND PREMIUM --- */
.user-card-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
	border: 2px solid var(--primary);
}

.user-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-avatar .material-icons {
    font-size: 34px;
    opacity: .6;
}

.user-card-info p {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: .7;
}
.user-card-info strong {
  color: #000000;
  font-weight: 600;
}

:root {
  --cookie-bg: #ffffff;
  --cookie-text: #2d2d2d;
  --cookie-muted: #6b7280;
  --cookie-accent: #7c6ff6;
  --cookie-accent-hover: #6a5ee0;
  --cookie-border: rgba(180, 180, 200, 0.35);
}

#cookie-banner {
  display: none;
}
  .cookie-banner {
	flex-direction: row;  
  }
  .cookie-buttons {
  max-width: 300px;
  }
.cookie-banner {
  z-index: 999999;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.8em;
  font-size: 0.95em;
  gap: 1em;
  background: var(--cookie-bg);
  box-shadow: 0 -1px 10px 0 rgba(124, 111, 246, 0.15);
  border-top: 1px solid var(--cookie-border);
}

.cookie-text {
  color: var(--cookie-text);
  line-height: 1.6;
  margin-bottom: 2em;
}

.cookie-text p {
  margin: 0;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 1em;
  width: 100%;
  margin-left: auto;
}

.cookie-buttons button {
  width: 100%;
  padding: 1em;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(124, 111, 246, 0.25);
  transition: all 0.2s ease-out;
}

.cookie-buttons button:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(124, 111, 246, 0.35);
}

#cookie-customize,
#cookie-save {
  background: transparent;
  color: var(--cookie-accent);
  border: 2px solid var(--cookie-accent);
  box-shadow: none;
  width: 100%;
}

#cookie-customize:hover,
#cookie-save:hover {
  background: var(--cookie-accent-hover);
  color: #fff;
  border-color: var(--cookie-accent-hover);
}

.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
  overflow: auto;
}

.cookie-modal-content {
  background: var(--cookie-bg);
  color: var(--cookie-text);
  border: 1px solid var(--cookie-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  padding: 2em;
  font-size: 0.95em;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
}

.cookie-modal-content h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: var(--cookie-accent);
  margin-bottom: 1.5em;
  text-align: center;
}

.cookie-modal-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1.5em;
}

.cookie-modal-buttons button {
  padding: 1em 2em;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(124, 111, 246, 0.25);
  transition: all 0.2s ease-out;
  width: 100%;
}

.cookie-modal-buttons button:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(124, 111, 246, 0.35);
}

.cookie-note {
  padding: 15px;
  color: var(--cookie-muted);
  background: #f4f5fb;
  border-radius: 12px;
  font-size: 0.85em;
  margin-bottom: 15px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d4d4dd;
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.switch input:checked + .slider {
  background: linear-gradient(135deg, #7c6ff6, #f58ac8);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.switch input:disabled + .slider {
  background-color: #c7c9d6;
  cursor: not-allowed;
  opacity: 0.6;
}

.switch input:disabled + .slider:before {
  background-color: #e5e7f0;
}

.cookie-toggle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
  color: #2d2d2d;
}

.cookie-toggle-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  color: #6b7280;
}

.cookie-toggle-btn:hover {
  color: #7c6ff6;
}

.cookie-policy-link a {
  color: #7c6ff6;
  text-decoration: none;
  font-style: italic;
}

.cookie-policy-link a:hover {
  text-decoration: underline;
}

#cookie-form label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95em;
  cursor: pointer;
  color: var(--cookie-text);
}

 .popup-2fa-card {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.popup-2fa-card[style*="display:"] {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup-2fa-inner {
  width: 100%;
  max-width: 560px;
  background:
    radial-gradient(circle at top left, rgba(124, 111, 246, 0.18), transparent 55%),
    #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(200, 200, 220, 0.55);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
  padding: 2rem 2rem 1.8rem;
}

.popup-2fa-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c6ff6, #f58ac8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 25px rgba(124, 111, 246, 0.45);
}

.popup-2fa-icon .material-icons {
  font-size: 24px;
}

.popup-2fa-inner h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.popup-2fa-text {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.code-inputs-2fa {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.code-box-2fa {
  width: 48px;
  height: 54px;
  font-size: 1.35rem;
  border-radius: 10px;
  border: 1px solid rgba(180, 180, 200, 0.6);
  text-align: center;
  font-weight: 600;
  color: #111827;
  outline: none;
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, transform 0.08s ease-out;
}

.code-box-2fa:focus {
  border-color: #7c6ff6;
  box-shadow: 0 0 0 3px rgba(124, 111, 246, 0.25);
  transform: translateY(-1px);
}

.popup-2fa-error {
  font-size: 0.8rem;
  color: #b91c1c;
  margin-bottom: 0.5rem;
  text-align: center;
}

.popup-2fa-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.btn-2fa {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.popup-2fa-success {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #16a34a;
}

.check-circle-2fa {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  margin: 0 auto 0.4rem;
  background: radial-gradient(circle at top, #4ade80, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.check-circle-2fa .material-icons {
  font-size: 22px;
}

/* petite vibration en cas d'erreur */
.popup-2fa-card.shake .popup-2fa-inner {
  animation: shake-2fa 0.18s linear;
}

@keyframes shake-2fa {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
#cooldown-alert {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cooldown-card {
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    animation: fadeIn 0.5s ease forwards;
    text-align: center;
	gap: 1rem;
}

.cooldown-ring {
    position: relative;
    width: 90px;
    height: 90px;
}

.cooldown-inline-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
}

.cooldown-ring svg {
    width: 100%;
    height: 100%;
}

.cooldown-ring .bg {
    fill: none;
    stroke: rgba(0,0,0,0.1);
    stroke-width: 3;
}

.cooldown-ring .progress {
    fill: none;
    stroke: #7c6ff6;
    stroke-width: 3;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dasharray 0.3s linear;
}

.cooldown-text {
    font-size: 16px;
    text-align: center;
    color: #333;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

.hidden-block {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
  .burger-menu {
    display: block;
  }
  .search-wrapper,
  .user-actions {
    display: none;
  }
  .categories {
    display: none;
  }
    .articles {
    grid-column: 1 / -1;
  }
    .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
    .article-layout {
    grid-template-columns: repeat(1, 1fr);
  }
    .articles-similaires {
    grid-template-columns: repeat(2, 1fr);
  }
    .cookie-banner {
	flex-direction: column;  
  }
  .cookie-buttons {
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  }
  .logo img {
  width: 5.5em;
 }
  .mobile-user-actions .icon-wrapper.menu-active::after {
    content: none !important;
  }
  .profil-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }
  .profil-actions .otherbtn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
  .profil-actions button, .profil-actions form {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 640px) {
  .accueil {
    padding: 1.2rem 1rem;
  }
  .accueil-texte {
    font-size: 0.9rem;
  }
  .articles {
    grid-column: 1 / 3;
  }
  .article-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 3em;
  }
  .article-layout {
    grid-template-columns: repeat(1, 1fr);
	gap: 0em;
  }
  .articles-similaires {
    grid-template-columns: repeat(1, 1fr);
  }
    .cookie-buttons {
    flex-direction: column;
    width: 100%;
	margin: auto;
  }
    .cookie-banner {
    align-items: flex-start;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-modal-content {
    padding: 1.5em;
  }

  .cookie-modal-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal-buttons button {
    width: 100%;
  }
  .logo img {
  width: 5em;
  }
  .profil-header {
    flex-direction: column;
  }

  .profil-photo {
    display: flex;
    justify-content: center;
  }

  .profil-photo img {
    display: block;
    margin: 0 auto;
  }  

  .profil-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
  }

  .profil-actions button,
  .profil-actions form {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .profil-actions .otherbtn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .form-container {
    padding: 15px;
  }
  .popup-2fa-inner {
  max-width: 350px;
  }
  .code-box-2fa {
    width: 35px;
    height: 43px;
  }
  nav.breadcrumb {
    margin-top: 0;
    margin-bottom: 2rem;
}
h2 {
	margin-top: 0;
}
.footer-background {
    padding: 1rem 0.5rem;
}