@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ═══════════════════════════════════════
   AnnuaireIA — style.css
   ═══════════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --bg:           #0a0a0f;
  --bg2:          #16161F;
  --bg3:          #1E1E2A;
  --surface:      #16161F;
  --surface2:     #1E1E2A;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text:         #F0F0F5;
  --text-muted:   #8A8A9E;
  --text-dim:     #55556E;
  --accent:       #FF6B9D;
  --accent2:      #34D399;
  --accent3:      #34D399;
  --accent-amber: #E8B84B;
  --purple:       #FF6B9D;
  --teal:         #34D399;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
  --radius-sm: 3px;
}


/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, .logo, .page-title {
  font-family: var(--serif);
  letter-spacing: -0.03em;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── NAV ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center;
  padding: 0 32px; gap: 0;
}

.logo {
  font-size: 20px; font-weight: 800;
  margin-right: 40px; white-space: nowrap;
}
.logo .dot { color: var(--accent); }

.nav-links { display: flex; gap: 4px; flex: 1; }

.nav-link {
  padding: 7px 16px; font-size: 13px; font-weight: 500;
  border: none; background: transparent;
  color: var(--text-muted); cursor: pointer;
  border-radius: var(--radius-sm, 3px); font-family: var(--sans);
  transition: all .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text); background: rgba(255,255,255,0.08); }

.nav-cta {
  padding: 5px 12px; font-size: 12px; font-weight: 600; line-height: 1.4;
  border: 1px solid #fff; background: #fff;
  color: var(--bg); border-radius: var(--radius-sm, 3px); cursor: pointer;
  font-family: var(--sans); transition: all .2s;
  white-space: nowrap; flex-shrink: 0; margin-left: 10px;
}
.nav-cta:hover { background: #e8e8ee; border-color: #e8e8ee; }

/* ─── SÉLECTEUR DE LANGUE ─── */
.lang-selector {
  position: relative;
  margin-left: 12px;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-current:hover {
  background: rgba(255,255,255,0.07);
}

.lang-arrow {
  font-size: 12px;
  opacity: 0.65;
  margin-left: 1px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 145px;
  padding: 5px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  z-index: 300;
}

.lang-selector.open .lang-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-btn {
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm, 3px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.lang-btn.active {
  color: var(--text);
  background: rgba(255,107,157,0.12);
}

/* Mobile */
@media (max-width: 768px) {
  .lang-selector {
    margin-left: 6px;
  }

  .lang-current {
    padding: 6px 8px;
    font-size: 10px;
  }
}

/* ─── PAGES ─── */
.page { display: none; }
.page.active { display: block; animation: fadeIn .3s ease; }

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

/* ─── HERO ─── */
.hero {
  padding: 80px 32px 60px;
  text-align: center;
  max-width: 1100px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,157,0.12);
  border: 1px solid rgba(255,107,157,0.3);
  color: #FF9DBC; font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 28px; letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.6); }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 750; line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #FF6B9D 0%, #C86BFF 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px; color: var(--text-muted); line-height: 1.7;
  max-width: 520px; margin: 0 auto 36px; font-weight: 300;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-main {
  padding: 13px 28px; font-size: 14px; font-weight: 600;
  background: #fff; color: var(--bg);
  border: none; border-radius: var(--radius, 4px); cursor: pointer;
  font-family: var(--sans); transition: all .2s;
}
.btn-main:hover { background: #e8e8ee; transform: translateY(-1px); }

.btn-outline {
  padding: 13px 28px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-hover); border-radius: var(--radius, 4px);
  cursor: pointer; font-family: var(--sans); transition: all .2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 56px; padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat-n {
  font-size: 32px; font-weight: 600; letter-spacing: -1px;
}
.stat-l { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stat-blue .stat-n  { color: var(--accent); }
.stat-pink .stat-n  { color: var(--accent2); }
.stat-green .stat-n { color: var(--accent3); }

/* ─── PAGE HEADER ─── */
.page-header { padding: 40px 0 24px; }
.page-title { font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.page-sub { font-size: 14px; color: var(--text-muted); }

/* ─── SEARCH ─── */
.search-wrap { position: relative; margin-bottom: 18px; }
.search-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim); pointer-events: none; font-size: 17px;
}
.search-input {
  width: 100%; padding: 13px 16px 13px 46px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; border-radius: var(--radius, 4px);
  font-family: var(--sans); outline: none;
  transition: border-color .2s;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: rgba(255,107,157,0.5); }

/* ─── FILTERS ─── */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.filter {
  padding: 5px 14px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); border-radius: 20px;
  background: transparent; color: var(--text-muted);
  cursor: pointer; font-family: var(--sans);
  transition: all .15s; letter-spacing: 0.02em;
}
.filter:hover  { border-color: var(--border-hover); color: var(--text); }
.filter.active { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }

/* ─── CATÉGORIES ACCUEIL ─── */
.home-cat-header { margin-bottom: 20px; }
.cat-header-flex {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.home-cat-title {
  font-family: var(--serif); font-weight: 600;
  font-size: 26px; letter-spacing: -0.03em; margin-bottom: 6px;
}
.home-cat-sub { font-size: 14px; color: var(--text-muted); font-weight: 300; }
.cat-count-badge {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  background: var(--bg2); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}

/* Une seule ligne, défilement horizontal forcé — jamais de retour à la
   ligne, ni sur mobile ni sur desktop (consigne explicite). */
.home-cat-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.home-cat-grid::-webkit-scrollbar { height: 6px; }
.home-cat-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius, 4px); }

.home-cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius, 4px);
  padding: 14px 10px; cursor: pointer; transition: all .15s;
  font-family: var(--sans); text-align: center;
  flex: 0 0 auto; width: 108px; scroll-snap-align: start;
}
.home-cat-tile:hover  { border-color: var(--border-hover); transform: translateY(-2px); }
.home-cat-tile.active {
  border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset;
}
.home-cat-icon  { font-size: 22px; line-height: 1; }
.home-cat-name  { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.25; }
.home-cat-count { font-size: 10px; color: var(--text-dim); }
.home-cat-selected {
  font-size: 9px; font-weight: 700; color: #FF9DBC;
  margin-top: 2px;
}

@media (min-width: 700px) {
  .home-cat-tile { width: 130px; }
}

/* Barre affichée sous les tuiles quand une vraie catégorie est sélectionnée */
.cat-confirm-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg2); border: 1px solid rgba(255,107,157,0.35);
  border-radius: var(--radius, 4px); padding: 14px 16px; margin-bottom: 24px;
  animation: catPreviewIn .2s ease;
}
@keyframes catPreviewIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-confirm-icon { font-size: 20px; }
.cat-confirm-text {
  font-family: var(--serif); font-weight: 600; font-size: 14px; flex: 1;
}
.cat-confirm-cta {
  padding: 9px 16px; border-radius: var(--radius, 4px);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 13px; font-weight: 600;
  font-family: var(--sans); text-decoration: none; white-space: nowrap;
  margin-left: auto; transition: all .15s;
}
.cat-confirm-cta:hover { background: rgba(255,255,255,0.12); }

/* Menu déroulant du filtre étoiles */
.star-filter { position: relative; }
.star-filter-summary {
  list-style: none; cursor: pointer; user-select: none;
}
.star-filter-summary::-webkit-details-marker { display: none; }
.star-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius, 4px);
  padding: 6px; min-width: 170px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.star-menu-option {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm, 3px); cursor: pointer;
  font-size: 13px; color: var(--text);
}
.star-menu-option:hover { background: rgba(255,255,255,0.05); }
.star-menu-option input { accent-color: #FF6B9D; }
.star-menu-clear { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; color: var(--text-dim); }

/* ─── TOOLS PAGE : entête dynamique par catégorie ─── */
.tools-page-count {
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  background: rgba(255,255,255,0.05); padding: 2px 10px; border-radius: var(--radius, 4px);
  vertical-align: middle; margin-left: 6px;
}

/* ─── TOOLS PAGE : filtres avancés + tri ─── */
.tool-filter-row {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-bottom: 12px;
}
.filter-disabled {
  opacity: 0.35; cursor: not-allowed; pointer-events: none;
}
.filter-reset {
  margin-left: auto; color: var(--text-dim); border-style: dashed;
}
.filter-reset:hover { color: var(--text); border-color: var(--border-hover); }

.tool-sort-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.tool-sort-row label {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.tool-sort-row select {
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; font-family: var(--sans);
  padding: 7px 12px; border-radius: var(--radius, 4px); cursor: pointer; outline: none;
}
.tool-sort-row select:focus { border-color: rgba(255,107,157,0.5); }

@media (max-width: 600px) {
  .filter-reset { margin-left: 0; }
  .home-cat-title { font-size: 22px; }
}

/* ─── TOOLS GRID ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; margin-bottom: 48px;
}
.tool-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius, 4px); padding: 20px;
  cursor: pointer; transition: all .2s; position: relative; overflow: hidden;
}
.tool-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tool-ico {
  width: 40px; height: 40px; border-radius: var(--radius, 4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.tool-name { font-size: 15px; font-weight: 600; font-family: var(--serif); }
.tool-cat { font-size: 11px; color: var(--text-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.tool-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; font-weight: 300; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; }

.price-tag {
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: var(--radius-sm, 3px); letter-spacing: 0.03em;
}
.price-free,
.price-freemium,
.price-paid { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.1); }

.stars { font-size: 13px; color: var(--text-dim); }
.stars .on { color: var(--accent-amber); }

/* ─── BLOG ─── */
/* ─── BLOG ─── */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.blog-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

/* Image pleine largeur en haut */
.blog-thumb {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.05); }

/* Contenu texte en bas */
.blog-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.blog-title {
  font-size: 15px; font-weight: 600;
  line-height: 1.4; margin-bottom: 6px;
  font-family: var(--serif);
  color: #fff;
  transition: none;
}
.blog-card:hover .blog-title { color: #fff; }
.blog-meta  { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.blog-excerpt {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; font-weight: 300;
  flex: 1;
}
.blog-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: var(--radius-sm, 3px); margin-top: 10px;
  align-self: flex-start;
}
.blog-mins {
  font-size: 11px; color: var(--text-dim);
  padding: 10px 18px 14px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ─── GALLERY ─── */
.gallery-grid {
  columns: 220px 4;
  column-gap: 10px;
  margin-bottom: 48px;
}
.gallery-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px); overflow: hidden;
  cursor: pointer; transition: border-color .2s;
  break-inside: avoid; margin-bottom: 10px;
  display: block; width: 100%;
}
.gallery-card:hover { border-color: var(--border-hover); }

.gallery-thumb {
  position: relative; overflow: hidden;
  background: var(--bg3);
}
.gallery-type {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  border-radius: var(--radius-sm, 3px); letter-spacing: 0.05em; text-transform: uppercase;
}
.type-image,
.type-vidéo,
.type-musique { background: rgba(10,10,15,0.78); color: var(--text-muted); border: 1px solid var(--border); }

.gallery-music-ico {
  font-size: 30px; line-height: 1;
  color: var(--text-dim);
}

/* ─── GALLERY PLAY ICON ─── */
.gallery-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  color: #fff; font-size: 28px;
  opacity: 0; transition: opacity .2s, background .2s;
}
.gallery-card:hover .gallery-play-icon {
  opacity: 1; background: rgba(0,0,0,0.35);
}
.gallery-thumb img {
  width: 100%; height: auto; display: block;
}
.gallery-thumb:has(.gallery-music-ico) {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-info { padding: 10px 12px 12px; }
.gallery-title { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.gallery-tool  { font-size: 11px; color: var(--text-dim); }

/* ─── EMPTY STATE ─── */
.empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-dim); font-size: 14px;
}
.empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }

/* ─── LOADING ─── */
.loading {
  text-align: center; padding: 60px 20px;
  color: var(--text-dim); font-size: 14px;
}
.spinner {
  width: 28px; height: 28px; margin: 0 auto 12px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px; text-align: center;
  color: var(--text-dim); font-size: 13px;
}
footer a { color: var(--accent); text-decoration: none; }

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   Breakpoints :
     sm  : 480px  (grands téléphones)
     md  : 768px  (tablettes)
     lg  : 1024px (petits desktops)
   ═══════════════════════════════════════ */

/* ── TABLETTE (≤ 1024px) ── */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

}

/* ── TABLETTE (≤ 768px) ── */
@media (max-width: 768px) {

  /* Navigation */
  nav {
    padding: 0 16px;
    height: auto;
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 0;
  }
  .logo { margin-right: auto; padding: 14px 0; }
  .nav-cta { display: none; }

  /* Nav links → barre du bas */
  .nav-links {
    order: 10;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 0 2px;
    gap: 2px;
    border-top: 1px solid var(--border);
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }
  .nav-link.active {
    background: transparent;
    border-bottom-color: var(--accent);
    color: var(--text);
  }

  /* Layout */
  .container { padding: 0 16px; }
  .hero { padding: 40px 16px 36px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
  .stat-n { font-size: 26px; }
  .page-header { padding: 28px 0 18px; }
  .page-title { font-size: 22px; }

  /* Grilles */
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
  .gallery-grid {
    columns: 160px 2;
    column-gap: 8px;
  }
  .gallery-card { margin-bottom: 8px; }

  /* Blog */
  .blog-list { grid-template-columns: 1fr; }
  .blog-card { transform: none !important; }
  .blog-mins { display: block; }

  /* Modal */
  .modal { border-radius: var(--radius, 4px) var(--radius, 4px) 0 0; max-height: 92vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .two-col { grid-template-columns: 1fr; }
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {

  /* Hero */
  .hero { padding: 28px 16px 28px; }
  .hero h1 { font-size: 32px; letter-spacing: -1.5px; }
  .hero p { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-main, .btn-outline { text-align: center; }
  .hero-stats { gap: 12px; }
  .hero-stats > div { flex: 1; min-width: 80px; }
  .stat-n { font-size: 22px; }
  .stat-l { font-size: 12px; }

  /* Nav */
  .nav-link { padding: 10px 12px; font-size: 12px; }

  /* Blog */
  .blog-list { grid-template-columns: 1fr; }
  .blog-thumb { height: 160px; }

  /* Galerie */
  .gallery-grid { column-gap: 8px; }
  .gallery-card { margin-bottom: 8px; }

  /* Outils */
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 16px; }

  /* Formulaire modal */
  .modal-header { padding: 16px 16px 0; }
  .modal-body { padding: 16px; }
  .modal-footer { padding: 0 16px 16px; flex-direction: column; }
  .modal-footer .btn-outline,
  .modal-footer .btn-main { width: 100%; text-align: center; }

  /* Toast */
  .toast { font-size: 13px; padding: 10px 16px; white-space: normal; text-align: center; max-width: 90vw; }

  /* Footer */
  footer { padding: 20px 16px; }
}

/* ═══════════════════════════════════════
   FAVORIS
   ═══════════════════════════════════════ */

.fav-count {
  display: inline-block;
  background: var(--accent2);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: var(--radius, 4px);
  margin-left: 4px; vertical-align: middle;
  min-width: 16px; text-align: center;
  line-height: 16px;
}
.fav-count:empty { display: none; }

.fav-btn {
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  padding: 4px; line-height: 1;
  transition: transform .2s;
  color: var(--text-dim);
}
.fav-btn:hover { transform: scale(1.25); }
.fav-btn.active { color: var(--accent2); }

.fav-empty {
  text-align: center; padding: 80px 20px;
  color: var(--text-dim);
}
.fav-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.fav-empty h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.fav-empty p  { font-size: 14px; line-height: 1.6; max-width: 300px; margin: 0 auto 20px; }

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */

.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }

.modal {
  background: var(--bg2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius, 4px);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}
.modal-header h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
}
.modal-close {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 16px; padding: 4px 8px;
  border-radius: var(--radius-sm, 3px); transition: background .15s;
}
.modal-close:hover { background: rgba(255,255,255,0.08); }

.modal-body { padding: 20px 24px; }
.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 0 24px 20px;
}

/* ─── FORM ─── */
.form-row { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px;
}
.req { color: var(--accent2); }

.form-input {
  width: 100%; padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; border-radius: var(--radius, 4px);
  font-family: var(--sans); outline: none;
  transition: border-color .2s;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: rgba(255,107,157,0.5); }
select.form-input { cursor: pointer; }
select.form-input option { background: var(--bg2); }

.form-textarea { resize: vertical; min-height: 80px; }
.char-count { font-size: 11px; color: var(--text-dim); float: right; margin-top: 4px; }

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

.form-error {
  background: rgba(255,107,157,0.1);
  border: 1px solid rgba(255,107,157,0.3);
  color: #ff6b9d; font-size: 13px;
  padding: 10px 14px; border-radius: var(--radius-sm, 3px);
  margin-top: 4px;
}

/* ─── SUCCESS STATE ─── */
.form-success {
  text-align: center; padding: 32px 20px;
}
.form-success .success-icon { font-size: 48px; margin-bottom: 16px; }
.form-success h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--text-muted); }

/* ═══════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════ */

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg3);
  border: 1px solid var(--border-hover);
  color: var(--text); font-size: 14px;
  padding: 12px 20px; border-radius: var(--radius, 4px);
  z-index: 300; white-space: nowrap;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0; pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════
   FAVICON LOGOS
   ═══════════════════════════════════════ */

.tool-favicon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: var(--radius-sm, 3px);
  display: block;
}

.tool-ico-fallback {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tool-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}



/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0 40px;
}
.pg-info { font-size: 13px; color: var(--text-muted); }
.pg-controls { display: flex; align-items: center; gap: 4px; }
.pg-btn {
  min-width: 34px; height: 34px; padding: 0 6px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: var(--radius-sm, 3px);
  font-size: 13px; cursor: pointer;
  font-family: var(--sans);
  transition: all .15s;
}
.pg-btn:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text); }
.pg-btn.active { background: #fff; border-color: #fff; color: var(--bg); }
.pg-btn:disabled { opacity: .35; cursor: not-allowed; }
.pg-arrow { font-size: 16px; }
.pg-dots { color: var(--text-dim); padding: 0 4px; font-size: 14px; line-height: 34px; }

/* Titres d'articles : toujours blancs */
.blog-card:hover .blog-title { color: #fff; }

/* Blog card link wrapper */
.blog-card-link .blog-card { cursor: pointer; }
.blog-card-link .blog-card:hover { border-color: var(--border-hover); transform: translateX(4px); }
.blog-card-link .blog-card:hover .blog-title { color: #fff; }

/* ═══════════════════════════════════════
   LOGO SVG NAV
   ═══════════════════════════════════════ */
nav .logo svg { display: block; }
nav .logo { display: flex; align-items: center; }

/* ═══════════════════════════════════════
   SECTION ÉDITORIALE — ACCUEIL
   ═══════════════════════════════════════ */
.home-editorial {
  padding: 0 0 60px;
  border-top: 1px solid var(--border);
}
.editorial-intro {
  text-align: center;
  padding: 60px 32px 48px;
  max-width: 800px;
  margin: 0 auto;
}
.editorial-title {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text);
}
.editorial-lead {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.85;
  font-weight: 300;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.editorial-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.editorial-block h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.editorial-block p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
  font-weight: 300;
}
.editorial-block p:last-child { margin-bottom: 0; }
.editorial-highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,107,157,0.06);
  border: 1px solid rgba(255,107,157,0.2);
  border-radius: var(--radius, 4px);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.editorial-hl-icon { flex-shrink: 0; margin-top: 2px; }
.editorial-hl-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #ff6b9d;
  margin-bottom: 8px;
}
.editorial-hl-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
}
.editorial-feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  padding: 20px;
  text-align: center;
}
.ef-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.ef-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.ef-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.editorial-cta {
  text-align: center;
  padding: 40px 20px 20px;
  border-top: 1px solid var(--border);
}
.editorial-cta p {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 300;
}

@media (max-width: 768px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 24px; }
  .editorial-grid-3 { grid-template-columns: 1fr; }
  .editorial-intro { padding: 40px 16px 32px; }
  .editorial-highlight { flex-direction: column; gap: 12px; padding: 18px; }
}




/* fin style.css */


/* ─── CARTES OUTILS VEDETTES ─── */
.tool-card-featured {
  position: relative;
}
.tool-card-featured:hover {
  border-color: var(--border-hover);
}
.tool-featured-badge {
  display: block; margin-top: 10px; font-size: 11px; font-weight: 500;
  color: var(--text-dim, #55556E); letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   QUIZ — TROUVER MON OUTIL IA
   ═══════════════════════════════════════ */

/* Bouton hero */
.hero-quiz-cta {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  margin-top: 20px;
}

.btn-quiz {
  padding: 13px 28px; font-size: 15px; font-weight: 600;
  background: #fff; color: var(--bg); border: none; border-radius: var(--radius, 4px);
  cursor: pointer; font-family: var(--sans);
  box-shadow: 0 4px 20px rgba(255,255,255,0.12);
  transition: all .2s; letter-spacing: 0.01em;
}
.btn-quiz:hover {
  transform: translateY(-2px); background: #e8e8ee;
  box-shadow: 0 6px 28px rgba(255,255,255,0.18);
}

.hero-quiz-sub {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.03em;
}

/* Modale quiz */
.quiz-modal {
  max-width: 560px !important;
}

/* Barre de progression */
.quiz-progress {
  height: 4px; background: var(--border);
  border-radius: 2px; margin-bottom: 8px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: var(--accent2);
  border-radius: 2px;
  transition: width .4s ease;
  width: 0%;
}

.quiz-step-label {
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 20px; letter-spacing: 0.03em;
}

.quiz-question {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
  line-height: 1.3;
}

.quiz-options {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-option {
  padding: 12px 16px; font-size: 14px; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: var(--radius, 4px);
  cursor: pointer; font-family: var(--sans);
  text-align: left; transition: all .15s; line-height: 1.4;
}
.quiz-option:hover {
  border-color: var(--accent2);
  color: var(--text);
  background: rgba(255,107,157,0.08);
}
.quiz-option.selected {
  border-color: var(--accent2);
  background: rgba(255,107,157,0.15);
  color: var(--accent2);
}

/* Résultats */
.quiz-results { padding: 0 4px; }

.quiz-results-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 800;
  color: var(--text); margin-bottom: 6px;
}

.quiz-results-sub {
  font-size: 12px; color: var(--text-dim);
  margin-bottom: 20px;
}

.quiz-results-grid {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}

.quiz-result-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px); padding: 14px 16px;
  cursor: pointer; transition: all .15s;
}
.quiz-result-card:hover {
  border-color: var(--accent2);
  background: rgba(255,107,157,0.05);
  transform: translateX(3px);
}

.quiz-result-head {
  display: flex; align-items: center;
  gap: 12px; margin-bottom: 8px;
}

.quiz-result-ico {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.quiz-result-name {
  font-weight: 700; font-size: 15px; color: var(--text);
}
.quiz-result-cat {
  font-size: 12px; color: var(--text-dim);
}

.quiz-result-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.6; margin-bottom: 8px;
}

.quiz-result-cta {
  font-size: 12px; color: var(--accent2);
  font-weight: 600;
}

/* Boutons résultats */
.quiz-results-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
}

.btn-quiz-share {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted); border-radius: var(--radius-sm, 3px);
  cursor: pointer; font-family: var(--sans);
  transition: all .15s;
}
.btn-quiz-share:hover { color: var(--text); border-color: var(--border-hover); }

.btn-quiz-whatsapp {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25d366; border-radius: var(--radius-sm, 3px);
  cursor: pointer; font-family: var(--sans);
  transition: all .15s;
}
.btn-quiz-whatsapp:hover { background: rgba(37,211,102,0.2); }

.quiz-copy-confirm {
  font-size: 12px; color: var(--accent3);
  margin-top: 8px; font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-question { font-size: 17px; }
  .quiz-results-actions { flex-direction: column; }
  .btn-quiz-share, .btn-quiz-whatsapp { width: 100%; text-align: center; }
}

/* ════════════════════════════════════════
   COMPARATEUR — partagé entre comparateur.html
   et toutes les pages /comparer/*.html
   ════════════════════════════════════════ */

/* ── PAGE DYNAMIQUE (comparateur.html) ── */
.comp-hero { padding:64px 32px 40px; text-align:center; max-width:900px; margin:0 auto; position:relative; }
.comp-hero::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:500px; height:250px; background:radial-gradient(ellipse,rgba(255,107,157,0.12) 0%,transparent 70%); pointer-events:none; }
.comp-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(255,107,157,0.1); border:1px solid rgba(255,107,157,0.3); color:#FF9DBC; font-size:11px; font-weight:700; padding:4px 14px; border-radius:20px; margin-bottom:20px; letter-spacing:0.08em; text-transform:uppercase; }
.comp-hero h1 { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:clamp(30px,5vw,52px); font-weight:800; letter-spacing:-0.03em; margin-bottom:14px; }
.comp-hero h1 .grad { background:linear-gradient(135deg,#FF6B9D,#34D399); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.comp-hero p { font-size:15px; color:var(--text-muted); font-weight:300; max-width:440px; margin:0 auto; }

.comp-selection { max-width:900px; margin:0 auto; padding:0 32px 32px; }
.comp-search { position:relative; margin-bottom:16px; }
.comp-search input { width:100%; padding:13px 16px 13px 44px; background:var(--bg2); border:1px solid var(--border); color:var(--text); font-size:14px; border-radius:var(--radius, 4px); font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); outline:none; transition:border-color .2s; }
.comp-search input:focus { border-color:rgba(255,107,157,0.5); }
.comp-search input::placeholder { color:var(--text-dim); }
.comp-search-icon { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-dim); font-size:16px; pointer-events:none; }

.comp-cat-filters { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
.comp-cat-btn { padding:5px 14px; font-size:12px; font-weight:500; border:1px solid var(--border); border-radius:20px; background:transparent; color:var(--text-muted); cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .15s; }
.comp-cat-btn:hover { border-color:var(--border-hover); color:var(--text); }
.comp-cat-btn.active { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.4); color:#fff; }

.tools-picker { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:8px; max-height:340px; overflow-y:auto; padding-right:4px; }
.tools-picker::-webkit-scrollbar { width:4px; }
.tools-picker::-webkit-scrollbar-track { background:transparent; }
.tools-picker::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:2px; }

.picker-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:10px 14px; cursor:pointer; transition:all .2s; display:flex; align-items:center; gap:10px; user-select:none; }
.picker-card:hover { border-color:rgba(255,107,157,0.35); background:rgba(255,107,157,0.05); }
.picker-card.selected { border-color:rgba(255,107,157,0.5); background:rgba(255,107,157,0.08); }
.picker-card.disabled { opacity:.35; pointer-events:none; }
.picker-logo { width:28px; height:28px; border-radius:var(--radius-sm, 3px); object-fit:contain; background:var(--bg3); flex-shrink:0; }
.picker-logo-fallback { width:28px; height:28px; border-radius:var(--radius-sm, 3px); background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.picker-name { font-size:12px; font-weight:500; line-height:1.3; flex:1; }
.picker-check { margin-left:auto; font-size:13px; color:#ff6b9d; display:none; flex-shrink:0; }
.picker-card.selected .picker-check { display:block; }

.selected-bar { max-width:900px; margin:0 auto 24px; padding:0 32px; }
.selected-bar-inner { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:14px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.selected-chips { display:flex; gap:8px; flex-wrap:wrap; flex:1; }
.selected-chip { display:flex; align-items:center; gap:6px; padding:5px 12px; background:rgba(255,107,157,0.1); border:1px solid rgba(255,107,157,0.3); border-radius:20px; font-size:12px; font-weight:500; color:#ff6b9d; }
.chip-remove { cursor:pointer; opacity:.7; transition:opacity .15s; font-size:14px; line-height:1; }
.chip-remove:hover { opacity:1; }
.selected-hint { font-size:12px; color:var(--text-dim); white-space:nowrap; }
.comp-btn { padding:11px 24px; background:#fff; color:#0a0a0f; border:none; border-radius:var(--radius, 4px); font-size:13px; font-weight:600; cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .2s; white-space:nowrap; }
.comp-btn:hover { background:#e8e8ee; transform:translateY(-1px); }
.comp-btn:disabled { opacity:.4; pointer-events:none; }

.comp-result { max-width:900px; margin:0 auto 64px; padding:0 32px; display:none; }
.comp-result.show { display:block; }
.comp-result-title { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:20px; font-weight:700; margin-bottom:16px; }
.comp-table-wrap { overflow-x:auto; }
.comp-table { width:100%; border-collapse:collapse; }
.comp-table th { padding:16px 14px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-dim); text-align:center; border-bottom:1px solid var(--border); background:var(--bg2); }
.comp-table th.tool-col { font-size:14px; letter-spacing:0; color:var(--text); text-transform:none; font-weight:600; }
.comp-table th.tool-col .th-logo { width:32px; height:32px; border-radius:var(--radius-sm, 3px); object-fit:contain; display:block; margin:0 auto 6px; background:var(--bg3); }
.comp-table th.tool-col .th-logo-fallback { width:32px; height:32px; border-radius:var(--radius-sm, 3px); background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:18px; margin:0 auto 6px; }
.comp-table td { padding:13px 14px; border-bottom:1px solid var(--border); font-size:13px; text-align:center; color:var(--text); transition:background .15s; }
.comp-table tr:hover td { background:rgba(255,255,255,0.03); }
.comp-table td.crit-col { text-align:left; color:var(--text); font-weight:500; background:var(--bg3); }
.comp-table td .dash { color:var(--text-dim); }
.yes { color:#34D399; font-weight:700; font-size:16px; }
.no  { color:#ff4d4d; font-weight:700; font-size:16px; }
.comp-cta-row { display:flex; gap:8px; justify-content:center; margin-top:24px; flex-wrap:wrap; }
.comp-cta-btn { padding:10px 20px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.22); color:#fff; border-radius:var(--radius, 4px); font-size:13px; font-weight:600; cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); text-decoration:none; transition:all .2s; display:inline-flex; align-items:center; gap:8px; }
.comp-cta-btn img { width:18px; height:18px; border-radius:var(--radius-sm, 3px); object-fit:contain; }
.comp-cta-btn:hover { background:rgba(255,255,255,0.12); }
.comp-reset { display:block; text-align:center; margin-top:16px; font-size:12px; color:var(--text-dim); cursor:pointer; transition:color .15s; }
.comp-reset:hover { color:var(--text); }

.paires-section { max-width:900px; margin:0 auto 64px; padding:0 32px; }
.paires-title { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:14px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-dim); margin-bottom:14px; }
.paires-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:8px; }
.paire-link { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); text-decoration:none; color:var(--text); font-size:13px; font-weight:500; transition:all .2s; gap:10px; }
.paire-link:hover { border-color:rgba(255,107,157,0.4); background:rgba(255,107,157,0.06); color:#FF9DBC; }
.paire-logos { display:flex; align-items:center; gap:4px; flex-shrink:0; }
.paire-logos img { width:18px; height:18px; border-radius:var(--radius, 4px); object-fit:contain; }
.paire-vs { font-size:9px; color:var(--text-dim); font-weight:700; letter-spacing:0.08em; }

/* ── COMPARATEUR : cartes outils + recommandations ── */
.comp-cards-row { display:grid; gap:12px; margin-bottom:20px; grid-template-columns:repeat(var(--n-tools,2),1fr); }

.comp-tool-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:18px 14px; text-align:center; height:100%; display:flex; flex-direction:column; }
.comp-tool-card .ct-logo, .comp-tool-card .ct-logo-fallback { width:40px; height:40px; border-radius:var(--radius, 4px); object-fit:contain; margin:0 auto 8px; background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:20px; }
.comp-tool-card .ct-name { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:14px; font-weight:700; margin-bottom:2px; }
.comp-tool-card .ct-cat { font-size:10px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
.comp-tool-card .ct-note { font-size:12px; font-weight:600; color:var(--accent-amber); margin-bottom:10px; }
.comp-tool-card .ct-note .ct-avis { color:var(--text-dim); font-weight:400; }
.comp-tool-card .ct-note.empty { color:var(--text-dim); font-weight:400; }
.comp-tool-card .ct-actions { display:flex; flex-direction:column; gap:6px; margin-top:auto; }

.ct-btn { display:block; text-decoration:none; font-size:12.5px; font-weight:600; padding:8px 10px; border-radius:var(--radius-sm, 3px); transition:all .15s; border:1px solid; }
.ct-btn-primary { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.22); color:#fff; }
.ct-btn-primary:hover { background:rgba(255,255,255,0.12); }
.ct-btn-secondary { background:transparent; border-color:var(--border); color:var(--text-muted); }
.ct-btn-secondary:hover { border-color:var(--border-hover); color:var(--text); }

.reco-section { max-width:900px; margin:0 auto 64px; padding:0 32px; }
.reco-title { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:14px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--text-dim); margin-bottom:4px; }
.reco-sub { font-size:12.5px; color:var(--text-dim); margin-bottom:16px; }
.reco-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; }
.reco-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:16px; text-decoration:none; display:block; transition:all .15s; }
.reco-card:hover { border-color:rgba(255,107,157,0.3); transform:translateY(-2px); }
.reco-label { font-size:10.5px; font-weight:700; letter-spacing:0.04em; padding:3px 9px; border-radius:var(--radius-sm, 3px); display:inline-block; margin-bottom:10px; }
.reco-label.gold { background:rgba(245,166,35,0.12); color:var(--accent-amber); }
.reco-label.mint { background:rgba(52,211,153,0.12); color:var(--accent3); }
.reco-label.purple { background:rgba(255,107,157,0.12); color:#FF9DBC; }
.reco-label.pink { background:rgba(255,107,157,0.12); color:var(--accent2); }
.reco-tool { display:flex; align-items:center; gap:8px; }
.reco-tool img, .reco-tool .reco-fallback { width:26px; height:26px; border-radius:var(--radius-sm, 3px); object-fit:contain; background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:14px; }
.reco-tool-name { font-size:13.5px; font-weight:600; color:var(--text); }

.comp-empty { text-align:center; padding:32px 0; color:var(--text-dim); font-size:13px; }
.comp-empty a { color:var(--accent2); }

/* ── COMPARATEUR : layout sidebar + filtres (maquette de référence) ── */
.comp-hero--sober { padding:36px 32px 20px; text-align:left; max-width:1200px; }
.comp-hero--sober::before { display:none; }
.comp-hero--sober h1 { font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); font-size:26px; font-weight:700; letter-spacing:-0.01em; color:var(--text); margin-bottom:8px; }
.comp-hero--sober p { margin:0; max-width:none; text-align:left; }

.comp-layout { max-width:1200px; margin:0 auto; padding:0 32px 24px; display:grid; grid-template-columns:260px 1fr; gap:28px; align-items:start; }
.comp-main { min-width:0; }
.comp-main .selected-bar,.comp-main .comp-result,.comp-main .paires-section,.comp-main .reco-section { max-width:none; padding:0; margin-left:0; margin-right:0; }
.comp-main .selected-bar { margin-bottom:20px; }
.comp-main .comp-result { margin-bottom:40px; }
.comp-main .paires-section { margin-bottom:40px; }
.comp-main .reco-section { margin-bottom:0; }

.comp-filters-btn { display:none; align-items:center; justify-content:space-between; width:calc(100% - 40px); margin:0 20px 16px; background:var(--bg2); border:1px solid var(--border); color:var(--text); font-size:13px; font-weight:600; padding:12px 16px; border-radius:var(--radius, 4px); cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); }
.cfb-right { display:flex; align-items:center; gap:8px; }
.cfb-count { background:var(--accent2); color:#fff; font-size:11px; font-weight:700; padding:1px 8px; border-radius:20px; min-width:18px; text-align:center; }
.cfb-chevron { color:var(--text-dim); font-size:13px; transition:transform .2s; }
.comp-filters-btn.open .cfb-chevron { transform:rotate(180deg); }

.sidebar-block { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:18px; margin-bottom:16px; position:sticky; top:16px; }
.sidebar-block:last-child { margin-bottom:0; }
.sidebar-block-title { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:12.5px; font-weight:700; letter-spacing:0.04em; margin-bottom:12px; }

.tools-picker--sidebar { grid-template-columns:1fr; max-height:280px; }

.select-wrap { position:relative; }
.select-wrap::after { content:'˅'; position:absolute; right:12px; top:50%; transform:translateY(-50%); color:var(--text-dim); font-size:13px; pointer-events:none; }
.select-wrap select { width:100%; appearance:none; -webkit-appearance:none; background:var(--bg3); border:1px solid var(--border); color:var(--text); font-size:13px; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); padding:9px 30px 9px 12px; border-radius:var(--radius, 4px); cursor:pointer; transition:border-color .15s; }
.select-wrap select:hover, .select-wrap select:focus { border-color:var(--border-hover); outline:none; }
.select-wrap select option { background:var(--bg2); color:var(--text); }

.filter-group { margin-bottom:16px; }
.filter-group:last-of-type { margin-bottom:14px; }
.filter-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-dim); margin-bottom:8px; }
.filter-check { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-muted); padding:5px 0; cursor:pointer; }
.filter-check input { accent-color:var(--accent2); width:15px; height:15px; }
.filter-reset { width:100%; background:transparent; border:1px solid var(--border); color:var(--text-dim); font-size:12px; padding:9px; border-radius:var(--radius, 4px); cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .15s; }
.filter-reset:hover { border-color:var(--border-hover); color:var(--text); }

.comp-result-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.comp-result-head .comp-result-title { margin-bottom:0; }
.toggle-switch-wrap { display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; }
.sidebar-block--toggle { background:rgba(255,107,157,0.08); border-color:rgba(255,107,157,0.25); padding:14px 16px; }
.sidebar-block--toggle .toggle-label { color:#FF9DBC; font-weight:500; }
.toggle-switch { position:relative; display:inline-block; width:38px; height:22px; }
.toggle-switch input { position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:1; }
.toggle-track { position:absolute; inset:0; background:var(--bg3); border:1px solid var(--border); border-radius:20px; transition:background .2s,border-color .2s; }
.toggle-thumb { position:absolute; top:2px; left:2px; width:16px; height:16px; background:var(--text-dim); border-radius:50%; transition:transform .2s,background .2s; }
.toggle-switch input:checked ~ .toggle-track { background:rgba(255,107,157,0.25); border-color:rgba(255,107,157,0.5); }
.toggle-switch input:checked ~ .toggle-track .toggle-thumb { transform:translateX(16px); background:var(--accent2); }
.toggle-label { font-size:12.5px; color:var(--text-muted); }
.comp-table tbody tr[data-diff="0"] { display:none; }
.comp-table:not(.diff-only) tbody tr[data-diff="0"] { display:table-row; }

.duel-carousel { display:flex; gap:10px; overflow-x:auto; padding-bottom:6px; scroll-snap-type:x proximity; }
.duel-carousel::-webkit-scrollbar { height:4px; }
.duel-carousel::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:2px; }
.duel-card { flex:0 0 170px; scroll-snap-align:start; display:flex; flex-direction:column; gap:8px; background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:12px; text-decoration:none; color:var(--text); transition:all .2s; }
.duel-card:hover { border-color:rgba(255,107,157,0.4); background:rgba(255,107,157,0.06); }
.duel-tools { display:flex; align-items:center; justify-content:center; gap:10px; }
.duel-tool { display:flex; flex-direction:column; align-items:center; gap:5px; flex:1; min-width:0; }
.duel-logo { width:32px; height:32px; border-radius:var(--radius-sm, 3px); object-fit:contain; background:var(--bg3); }
.duel-tool-name { font-size:11.5px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.duel-vs { font-size:10px; font-weight:700; color:var(--text-dim); flex-shrink:0; }
.duel-cta { font-size:11.5px; color:var(--accent2); font-weight:600; text-align:center; }

@media (max-width:900px) {
  .comp-layout { grid-template-columns:1fr; padding:0 20px; }
  .comp-filters-btn { display:flex; }
  .comp-sidebar { display:grid; grid-template-rows:0fr; overflow:hidden; transition:grid-template-rows .25s ease; }
  .comp-sidebar .sidebar-inner { min-height:0; }
  .comp-sidebar.open { grid-template-rows:1fr; margin-bottom:16px; }
  .sidebar-block { position:static; }
  .comp-main { padding:0; }
}

/* ── PAGES STATIQUES (/comparer/) ── */
.comparer-hero { padding:56px 32px 40px; text-align:center; max-width:900px; margin:0 auto; }
.comparer-hero h1 { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:clamp(26px,4vw,44px); font-weight:800; letter-spacing:-0.03em; margin-bottom:12px; }
.comparer-hero p { font-size:15px; color:var(--text-muted); font-weight:300; }
.vs-badge { display:inline-block; background:rgba(255,107,157,0.1); border:1px solid rgba(255,107,157,0.3); color:#ff6b9d; font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; padding:4px 14px; border-radius:20px; margin-bottom:20px; }

.tools-header { display:flex; justify-content:center; align-items:center; gap:24px; margin:32px auto; max-width:700px; padding:0 32px; }
.tool-header-card { flex:1; background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:24px 20px; text-align:center; transition:border-color .2s; }
.tool-header-card.winner { border-color:rgba(255,107,157,0.35); background:linear-gradient(135deg,var(--bg2),rgba(255,107,157,0.05)); }
.tool-header-logo { width:52px; height:52px; border-radius:var(--radius, 4px); object-fit:contain; margin:0 auto 10px; display:block; background:var(--bg3); }
.tool-header-logo-fallback { width:52px; height:52px; border-radius:var(--radius, 4px); background:var(--bg3); display:flex; align-items:center; justify-content:center; font-size:28px; margin:0 auto 10px; }
.tool-header-name { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:18px; font-weight:700; margin-bottom:4px; }
.tool-header-cat { font-size:11px; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.06em; }
.tool-note { display:inline-block; margin-top:10px; font-size:13px; font-weight:600; padding:3px 10px; border-radius:var(--radius-sm, 3px); }
.badge-top { background:rgba(52,211,153,0.12); color:#34D399; border:1px solid rgba(52,211,153,0.25); }
.badge-bon { background:rgba(255,107,157,0.12); color:#FF9DBC; border:1px solid rgba(255,107,157,0.25); }
.badge-ok  { background:rgba(245,166,35,0.12); color:#f5a623; border:1px solid rgba(245,166,35,0.25); }
.vs-divider { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:22px; font-weight:800; color:rgba(255,107,157,0.5); display:flex; align-items:center; flex-shrink:0; }

.table-wrap { max-width:700px; margin:0 auto 48px; padding:0 32px; overflow-x:auto; }
.compare-table { width:100%; border-collapse:collapse; }
.compare-table thead tr { background:var(--bg2); }
.compare-table th { padding:14px 16px; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-dim); text-align:left; border-bottom:1px solid var(--border); }
.compare-table th.th-tool { text-align:center; font-size:13px; font-weight:700; letter-spacing:0; color:var(--text); text-transform:none; }
.compare-table th.th-tool img { width:24px; height:24px; border-radius:var(--radius-sm, 3px); object-fit:contain; display:block; margin:0 auto 4px; }
.compare-table tr { border-bottom:1px solid var(--border); transition:background .15s; }
.compare-table tr:hover { background:rgba(255,255,255,0.02); }
.crit-label { padding:14px 16px; font-size:13px; color:var(--text-muted); font-weight:400; }
.crit-val { padding:14px 16px; text-align:center; }
.check { font-size:16px; font-weight:700; }
.check.yes { color:#34D399; }
.check.no  { color:#ff4d4d; }
.check.neutral { color:var(--text-dim); }
.cell-text { font-size:13px; color:var(--text); }

.verdict-wrap { max-width:700px; margin:0 auto 40px; padding:0 32px; }
.verdict-card { background:linear-gradient(135deg,rgba(255,107,157,0.08),rgba(52,211,153,0.05)); border:1px solid rgba(255,107,157,0.2); border-radius:var(--radius, 4px); padding:24px 28px; }
.verdict-label { font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:#FF9DBC; margin-bottom:8px; }
.verdict-title { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:18px; font-weight:700; margin-bottom:8px; display:flex; align-items:center; gap:10px; }
.verdict-title img { width:26px; height:26px; border-radius:var(--radius-sm, 3px); object-fit:contain; }
.verdict-text { font-size:14px; color:var(--text-muted); line-height:1.7; font-weight:300; }

.cta-wrap { max-width:700px; margin:0 auto 64px; padding:0 32px; display:flex; gap:12px; flex-wrap:wrap; }
.cta-btn { flex:1; min-width:200px; display:flex; align-items:center; justify-content:space-between; padding:14px 20px; border-radius:var(--radius, 4px); font-size:14px; font-weight:600; text-decoration:none; transition:all .2s; border:1px solid; gap:10px; }
.cta-btn img { width:22px; height:22px; border-radius:var(--radius-sm, 3px); object-fit:contain; }
.cta-btn-a { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.22); color:#fff; }
.cta-btn-a:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.4); }
.cta-btn-b { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.22); color:#fff; }
.cta-btn-b:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.4); }
.back-link { display:block; text-align:center; margin-bottom:32px; font-size:13px; color:var(--text-dim); text-decoration:none; transition:color .15s; }
.back-link:hover { color:var(--text); }

/* ── RESPONSIVE COMPARATEUR ── */
@media (max-width:768px) {
  .comp-hero,.comp-selection,.selected-bar,.comp-result,.paires-section,.reco-section { padding-left:20px; padding-right:20px; }
  .comp-hero { padding-top:48px; }
  .tools-header { flex-direction:column; gap:12px; }
  .vs-divider { transform:rotate(90deg); }
  .table-wrap,.verdict-wrap,.cta-wrap { padding-left:20px; padding-right:20px; }
  .comparer-hero { padding:40px 20px 28px; }
  .comp-cards-row { grid-template-columns:repeat(2,1fr); gap:8px; }
  .comp-tool-card { padding:16px 10px; }
}

/* ════════════════════════════════════════
   RESSOURCES — ressources.html
   Généré dynamiquement depuis ressources.json
   ════════════════════════════════════════ */

/* ── HERO ── */
.ressources-hero { padding:64px 32px 40px; text-align:center; max-width:960px; margin:0 auto; position:relative; }
.ressources-hero::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); width:500px; height:260px; background:radial-gradient(ellipse,rgba(52,211,153,0.1) 0%,transparent 70%); pointer-events:none; }
.ressources-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(52,211,153,0.1); border:1px solid rgba(52,211,153,0.3); color:#34D399; font-size:11px; font-weight:700; padding:4px 14px; border-radius:20px; margin-bottom:20px; letter-spacing:0.08em; text-transform:uppercase; }
.ressources-hero h1 { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:clamp(30px,5vw,52px); font-weight:800; letter-spacing:-0.03em; margin-bottom:14px; }
.ressources-hero h1 .grad-teal { background:linear-gradient(135deg,#34D399,#FF6B9D); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.ressources-hero p { font-size:15px; color:var(--text-muted); font-weight:300; max-width:460px; margin:0 auto 28px; line-height:1.7; }
.ressources-stats { display:flex; justify-content:center; gap:36px; padding-top:24px; border-top:1px solid var(--border); }
.ressources-stat-n { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:26px; font-weight:800; }
.ressources-stat-l { font-size:11px; color:var(--text-muted); margin-top:2px; }

/* ── FILTRES (injectés par JS depuis ressources.json) ── */
.ressources-controls { max-width:960px; margin:0 auto; padding:0 32px 24px; }
.ressources-filters { display:flex; gap:6px; flex-wrap:wrap; }
.ressource-filter { padding:6px 16px; font-size:12px; font-weight:500; border:1px solid var(--border); border-radius:20px; background:transparent; color:var(--text-muted); cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .15s; }
.ressource-filter:hover { border-color:rgba(52,211,153,0.4); color:var(--text); }
.ressource-filter.active { background:rgba(52,211,153,0.1); border-color:rgba(52,211,153,0.4); color:#34D399; }

/* ── GRILLE (containers statiques, cartes injectées par JS) ── */
.ressources-grid-wrap { max-width:960px; margin:0 auto; padding:0 32px 48px; }
.ressources-section-title { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:12px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-dim); margin-bottom:14px; }
.ressources-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; margin-bottom:40px; min-height:20px; }

/* ── CARTES (générées par carteLibreHTML() et carteEmailHTML()) ── */
.ressource-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius, 4px); padding:22px; position:relative; overflow:hidden; transition:all .25s; display:flex; flex-direction:column; }
.ressource-card:hover { border-color:rgba(52,211,153,0.3); transform:translateY(-3px); box-shadow:0 12px 40px rgba(52,211,153,0.06); }
.ressource-card.libre::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,#34D399,#FF6B9D); }
.ressource-card.email-requis::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,#ff6b9d,#FF6B9D); }

/* Badges */
.ressource-badges { display:flex; gap:6px; margin-bottom:14px; flex-wrap:wrap; }
.badge-acces { font-size:10px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; padding:3px 9px; border-radius:var(--radius-sm, 3px); }
.badge-libre { background:rgba(52,211,153,0.1); color:#34D399; border:1px solid rgba(52,211,153,0.25); }
.badge-email { background:rgba(255,107,157,0.1); color:#FF9DBC; border:1px solid rgba(255,107,157,0.25); }
.badge-type { font-size:10px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; padding:3px 9px; border-radius:var(--radius-sm, 3px); background:rgba(255,255,255,0.05); color:var(--text-dim); border:1px solid var(--border); }

/* Contenu carte */
.ressource-ico { font-size:28px; margin-bottom:10px; line-height:1; }
.ressource-titre { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:15px; font-weight:700; margin-bottom:6px; line-height:1.3; }
.ressource-desc { font-size:12px; color:var(--text-muted); line-height:1.6; font-weight:300; margin-bottom:14px; flex:1; }
.ressource-meta { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.ressource-meta-item { font-size:11px; color:var(--text-dim); display:flex; align-items:center; gap:4px; }

/* CTA — bouton et lien (les deux générés par JS) */
.ressource-cta { width:100%; padding:10px 16px; border-radius:var(--radius, 4px); font-size:13px; font-weight:600; cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .2s; display:flex; align-items:center; justify-content:space-between; border:1px solid; background:none; text-decoration:none; box-sizing:border-box; }
.ressource-cta.cta-libre { background:rgba(52,211,153,0.08); border-color:rgba(52,211,153,0.3); color:#34D399; }
.ressource-cta.cta-libre:hover { background:rgba(52,211,153,0.15); border-color:rgba(52,211,153,0.5); }
.ressource-cta.cta-email { background:rgba(255,255,255,0.06); border-color:rgba(255,255,255,0.22); color:#fff; }
.ressource-cta.cta-email:hover { background:rgba(255,255,255,0.12); border-color:rgba(255,255,255,0.4); }

/* Formulaire inline (généré par carteEmailHTML()) */
.ressource-form { display:none; margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.ressource-form.open { display:block; }
.ressource-form-label { font-size:11px; color:var(--text-muted); margin-bottom:8px; font-weight:500; }
.ressource-form-row { display:flex; gap:8px; }
.ressource-email-input { flex:1; padding:9px 12px; background:var(--bg); border:1px solid rgba(255,107,157,0.3); color:var(--text); font-size:13px; border-radius:var(--radius-sm, 3px); font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); outline:none; transition:border-color .2s; min-width:0; }
.ressource-email-input::placeholder { color:var(--text-dim); }
.ressource-email-input:focus { border-color:rgba(255,107,157,0.6); }
.ressource-form-btn { padding:9px 16px; background:#fff; color:#0a0a0f; border:none; border-radius:var(--radius-sm, 3px); font-size:12px; font-weight:600; cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .2s; white-space:nowrap; flex-shrink:0; }
.ressource-form-btn:hover { background:#e8e8ee; }
.ressource-form-note { font-size:10px; color:var(--text-dim); margin-top:6px; text-align:center; }
.ressource-form-success { display:none; text-align:center; padding:10px; color:#34D399; font-size:13px; font-weight:500; }

/* ── VITRINE GLOSSAIRE (générée par vitrineHTML()) ── */
.glossaire-vitrine { max-width:960px; margin:0 auto 48px; padding:0 32px; }
.glossaire-vitrine-card { background:linear-gradient(135deg,rgba(52,211,153,0.08),rgba(255,107,157,0.06)); border:1px solid rgba(52,211,153,0.2); border-radius:20px; padding:32px 36px; display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; }
.glossaire-vitrine-left { display:flex; align-items:center; gap:20px; }
.glossaire-vitrine-ico { font-size:44px; flex-shrink:0; line-height:1; }
.glossaire-vitrine-title { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:20px; font-weight:700; margin-bottom:6px; }
.glossaire-vitrine-sub { font-size:13px; color:var(--text-muted); font-weight:300; line-height:1.6; }
.glossaire-vitrine-tags { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.vitrine-tag { font-size:10px; padding:2px 10px; border-radius:var(--radius-sm, 3px); font-weight:600; }
.vitrine-tag-libre { background:rgba(52,211,153,0.1); color:#34D399; border:1px solid rgba(52,211,153,0.25); }
.vitrine-tag-pages { background:rgba(255,255,255,0.05); color:var(--text-dim); border:1px solid var(--border); }
.glossaire-vitrine-btn { padding:12px 24px; background:#34D399; color:#0a0a0f; border:none; border-radius:var(--radius, 4px); font-size:14px; font-weight:700; cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .2s; text-decoration:none; white-space:nowrap; display:inline-block; flex-shrink:0; }
.glossaire-vitrine-btn:hover { background:#00bfa0; transform:translateY(-1px); }

/* ── NEWSLETTER ── */
.ressources-newsletter { max-width:960px; margin:0 auto 64px; padding:0 32px; }
.ressources-newsletter-card { background:linear-gradient(135deg,rgba(255,107,157,0.08),rgba(255,107,157,0.06)); border:1px solid rgba(255,107,157,0.2); border-radius:20px; padding:36px; display:flex; align-items:center; justify-content:space-between; gap:28px; flex-wrap:wrap; }
.ressources-newsletter-text h3 { font-family:var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size:20px; font-weight:700; margin-bottom:6px; }
.ressources-newsletter-text p { font-size:13px; color:var(--text-muted); font-weight:300; line-height:1.6; }
.ressources-newsletter-form { display:flex; gap:8px; flex-wrap:wrap; flex:1; max-width:400px; }
.ressources-newsletter-input { flex:1; min-width:180px; padding:11px 16px; background:var(--bg); border:1px solid rgba(255,107,157,0.3); color:var(--text); font-size:14px; border-radius:var(--radius, 4px); font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); outline:none; transition:border-color .2s; }
.ressources-newsletter-input::placeholder { color:var(--text-dim); }
.ressources-newsletter-input:focus { border-color:rgba(255,107,157,0.6); }
.ressources-newsletter-btn { padding:11px 22px; background:#fff; color:#0a0a0f; border:none; border-radius:var(--radius, 4px); font-size:13px; font-weight:600; cursor:pointer; font-family:var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif); transition:all .2s; white-space:nowrap; }
.ressources-newsletter-btn:hover { background:#e8e8ee; transform:translateY(-1px); }
.ressources-newsletter-success { display:none; color:#34D399; font-size:14px; font-weight:500; margin-top:8px; }

/* ── RESPONSIVE ── */
@media (max-width:768px) {
  .ressources-hero,
  .ressources-controls,
  .ressources-grid-wrap,
  .glossaire-vitrine,
  .ressources-newsletter { padding-left:16px !important; padding-right:16px !important; }
  .ressources-hero { padding-top:48px; }
  .ressources-stats { flex-wrap:wrap; gap:16px; justify-content:center; }
  .ressources-stats > div { flex:1 1 130px; text-align:center; }
  .ressources-grid { grid-template-columns:1fr !important; gap:16px; }
  .glossaire-vitrine-card { flex-direction:column; text-align:center; gap:20px; }
  .glossaire-vitrine-left { flex-direction:column; }
  .glossaire-vitrine-tags { justify-content:center; }
  .ressources-newsletter-card { flex-direction:column; padding:24px 16px !important; }
  .ressources-newsletter-form { flex-direction:column; width:100%; max-width:100%; }
  .ressources-newsletter-input,
  .ressources-newsletter-btn { width:100%; }
  .ressource-form-row { flex-direction:column; gap:10px; }
  .ressource-form-btn { width:100%; }
}
/* ════════════════════════════════════════
   TUTORIELS — tutoriels.html
   Annuaire vidéo des outils IA
   ════════════════════════════════════════ */

/* ── HERO TUTORIELS ── */
.tuto-hero {
  padding: 72px 32px 48px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}
.tuto-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,107,157,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.tuto-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,157,0.1);
  border: 1px solid rgba(255,107,157,0.3);
  color: #ff6b9d;
  font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tuto-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.tuto-hero h1 .grad-pink {
  background: linear-gradient(135deg, #ff6b9d, #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tuto-hero p {
  font-size: 15px; color: var(--text-muted);
  font-weight: 300; max-width: 480px;
  margin: 0 auto 32px; line-height: 1.7;
}
.tuto-hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.tuto-hero-stats {
  display: flex; justify-content: center; gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.tuto-stat { text-align: center; }
.tuto-stat-n {
  font-family: var(--serif);
  font-size: 28px; font-weight: 800;
  color: var(--accent2);
  display: block;
}
.tuto-stat-l {
  font-size: 11px; color: var(--text-muted);
  margin-top: 2px; display: block;
}

/* ── GRILLE CARTES ── */
.tuto-grille-wrap { max-width: 960px; margin: 0 auto; padding: 0 32px 64px; }
.tuto-grille { display: flex; flex-direction: column; gap: 14px; }

/* ── CARTE OUTIL (accordéon) ── */
.tuto-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  position: relative;
}
.tuto-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #FF6B9D);
  opacity: 0;
  transition: opacity .3s;
}
.tuto-card.actif::before,
.tuto-card:hover::before { opacity: 1; }
.tuto-card.actif {
  border-color: rgba(255,107,157,0.25);
  box-shadow: 0 8px 40px rgba(255,107,157,0.06);
}

.tuto-card-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 22px 24px 16px;
  gap: 16px; flex-wrap: wrap;
}
.tuto-card-identity { display: flex; align-items: center; gap: 14px; }
.tuto-card-logo {
  width: 46px; height: 46px;
  border-radius: var(--radius, 4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.tuto-card-nom {
  font-family: var(--serif);
  font-size: 17px; font-weight: 700; margin-bottom: 3px;
}
.tuto-card-cat {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.tuto-card-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tuto-card-note {
  font-size: 13px; color: var(--accent-amber);
  display: flex; align-items: center; gap: 4px;
}
.tuto-card-note span { color: var(--text); font-weight: 600; }
.tuto-card-avis { font-size: 11px; color: var(--text-dim); }
.tuto-card-badge-count {
  font-size: 11px; font-weight: 600;
  background: rgba(255,107,157,0.1);
  border: 1px solid rgba(255,107,157,0.25);
  color: #ff6b9d;
  padding: 2px 9px; border-radius: var(--radius-sm, 3px);
}

.tuto-card-desc-courte {
  font-size: 13px; color: var(--text-muted);
  font-weight: 300; line-height: 1.65;
  padding: 0 24px 14px;
}
.tuto-card-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 0 24px 16px;
}
.tuto-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: var(--radius-sm, 3px);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tuto-card-actions {
  display: flex; gap: 8px;
  padding: 0 24px 22px;
}

/* ── BOUTONS CARTE ── */
.tuto-card-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  border-radius: var(--radius-sm, 3px); cursor: pointer; font-family: var(--sans);
  transition: all .2s;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: #fff;
}
.tuto-card-btn:hover,
.tuto-card-btn.actif {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4);
}
.tuto-btn-soumettre {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; font-size: 12px; font-weight: 500;
  border-radius: var(--radius-sm, 3px); cursor: pointer;
  font-family: var(--sans);
  transition: all .2s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
}
.tuto-btn-soumettre:hover {
  border-color: var(--border-hover); color: var(--text);
}

/* ── ACCORDÉON EXPAND ── */
.tuto-card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(0.4, 0, 0.2, 1);
}
.tuto-expand-inner {
  padding: 0 24px 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.tuto-desc-longue {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.75; font-weight: 300;
  margin-bottom: 24px;
}
.tuto-section-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.tuto-section-label svg { flex-shrink: 0; color: var(--accent2); }

/* ── GRILLE MINIATURES VIDÉO ── */
.tuto-video-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.tuto-thumb {
  cursor: pointer;
  transition: transform .2s;
}
.tuto-thumb:hover { transform: translateY(-3px); }
.tuto-thumb-img {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius, 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg3);
  margin-bottom: 8px;
}
.tuto-thumb-img.thumb-short {
  aspect-ratio: 9/14;
}
.tuto-thumb-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.tuto-thumb:hover .tuto-thumb-img img { transform: scale(1.05); }
.thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
  border-radius: var(--radius, 4px);
}
.tuto-thumb:hover .thumb-play { opacity: 1; }
.thumb-badge {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--radius, 4px);
  letter-spacing: 0.04em;
}
.badge-short {
  background: rgba(255,107,157,0.9); color: #fff;
}
.badge-video {
  background: rgba(10,10,15,0.85); color: var(--text-muted);
  border: 1px solid var(--border);
}
.thumb-duree {
  position: absolute; bottom: 6px; right: 6px;
  font-size: 10px; font-weight: 600;
  background: rgba(0,0,0,0.8); color: #fff;
  padding: 2px 6px; border-radius: var(--radius, 4px);
}
.thumb-titre {
  font-size: 11px; font-weight: 500;
  line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.thumb-canal {
  font-size: 10px; color: var(--text-dim); margin-top: 3px;
}

/* ── CTA "Voir tous les tutoriels" ── */
.tuto-voir-tout {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius, 4px); font-size: 13px; font-weight: 600;
  color: #fff; text-decoration: none; transition: all .2s;
}
.tuto-voir-tout:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); transform: translateX(3px);
}

/* ── BOUTON HÉROS SOUMETTRE ── */
.tuto-btn-hero-soumettre {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 13px; font-weight: 600;
  border-radius: var(--radius, 4px); cursor: pointer;
  font-family: var(--sans); transition: all .2s;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: #fff;
}
.tuto-btn-hero-soumettre:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); transform: translateY(-1px);
}

/* ── SECTION ÉDITORIALE ── */
.tuto-editorial-wrap {
  max-width: 760px; margin: 0 auto 72px;
  padding: 0 32px;
}
.tuto-editorial-head {
  text-align: center; margin-bottom: 40px;
}
.tuto-editorial-head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.tuto-editorial-head p {
  font-size: 13px; color: var(--text-muted); font-weight: 300;
}
.tuto-editorial-body h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text);
}
.tuto-editorial-body h3:first-child { margin-top: 0; }
.tuto-editorial-body p {
  font-size: 14px; color: var(--text-muted);
  font-weight: 300; line-height: 1.8;
  margin-bottom: 16px;
}

/* ── FAQ ── */
.tuto-faq-wrap {
  max-width: 760px; margin: 0 auto 80px;
  padding: 0 32px;
}
.tuto-faq-head {
  text-align: center; margin-bottom: 32px;
}
.tuto-faq-head h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800; letter-spacing: -0.02em;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  color: var(--text);
  transition: color .2s;
}
.faq-question:hover { color: var(--accent2); }
.faq-icone {
  flex-shrink: 0; color: var(--text-dim);
  transition: transform .3s;
}
.faq-item.active .faq-icone { transform: rotate(180deg); }
.faq-reponse {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-reponse p {
  padding: 0 4px 18px;
  font-size: 13px; color: var(--text-muted);
  font-weight: 300; line-height: 1.75;
}

/* ── PLAYER MODAL ── */
.tuto-player-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.tuto-player-modal.open { display: flex; animation: fadeIn .2s ease; }
.tuto-player-inner {
  width: 100%; max-width: 900px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.tuto-player-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.tuto-player-titre {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: calc(100% - 44px);
}
.tuto-player-close {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .15s;
  flex-shrink: 0;
}
.tuto-player-close:hover { background: rgba(255,107,157,0.15); color: #ff6b9d; }
.tuto-player-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
}
.tuto-player-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── MODAL SOUMISSION ── */
.tuto-modal-soumission {
  display: none;
  position: fixed; inset: 0; z-index: 1001;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.tuto-modal-soumission.open { display: flex; animation: fadeIn .2s ease; }
.tuto-modal-inner {
  width: 100%; max-width: 500px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
}
.tuto-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .15s;
}
.tuto-modal-close:hover { background: rgba(255,107,157,0.15); color: #ff6b9d; }
.tuto-modal-ico { font-size: 32px; margin-bottom: 12px; }
.tuto-modal-titre {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700;
  margin-bottom: 6px;
}
.tuto-modal-sub {
  font-size: 13px; color: var(--text-muted);
  font-weight: 300; line-height: 1.6;
  margin-bottom: 24px;
}
.tuto-modal-sub strong { color: var(--accent2); font-weight: 600; }

/* Champs formulaire */
.tuto-form-field { margin-bottom: 14px; }
.tuto-form-label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 6px;
}
.tuto-form-input,
.tuto-form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  color: var(--text); font-size: 13px;
  font-family: var(--sans);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
}
.tuto-form-input::placeholder { color: var(--text-dim); }
.tuto-form-input:focus,
.tuto-form-select:focus { border-color: rgba(255,107,157,0.5); }
.tuto-form-select { cursor: pointer; }
.tuto-form-submit {
  width: 100%; padding: 12px;
  background: #fff; color: var(--bg); border: none;
  border-radius: var(--radius, 4px); font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: var(--sans);
  transition: all .2s; margin-top: 8px;
}
.tuto-form-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.tuto-form-submit.success { background: linear-gradient(135deg, #34D399, #009b80); }
.tuto-form-note {
  font-size: 11px; color: var(--text-dim);
  text-align: center; margin-top: 10px;
}

/* ── ERREUR ── */
.tuto-error {
  background: rgba(255,107,157,0.08);
  border: 1px solid rgba(255,107,157,0.25);
  border-radius: var(--radius, 4px);
  padding: 16px 20px;
  font-size: 13px; color: #ff6b9d;
  margin: 24px 32px;
}

/* ── RESPONSIVE TUTORIELS ── */
@media (max-width: 900px) {
  .tuto-video-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .tuto-hero,
  .tuto-grille-wrap,
  .tuto-editorial-wrap,
  .tuto-faq-wrap { padding-left: 16px !important; padding-right: 16px !important; }
  .tuto-hero { padding-top: 48px; }
  .tuto-hero-stats { gap: 20px; flex-wrap: wrap; }
  .tuto-stat-n { font-size: 22px; }
  .tuto-card-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tuto-card-actions { flex-wrap: wrap; }
  .tuto-video-grid { grid-template-columns: repeat(2, 1fr); }
  .tuto-player-modal { padding: 12px; }
  .tuto-modal-inner { padding: 24px 18px; }
  .tuto-hero-actions { flex-direction: column; align-items: center; }
}
/* ════════════════════════════════════════
   TUTORIEL-OUTIL — tutoriel-outil.html
   Page profonde : vidéothèque d'un outil
   ════════════════════════════════════════ */

:root {
  --outil-color: #ff6b9d;
  --outil-color-soft: rgba(255,107,157,0.12);
}

/* ── BREADCRUMB ── */
.outil-breadcrumb {
  max-width: 960px; margin: 0 auto;
  padding: 16px 32px 0;
  font-size: 12px; color: var(--text-dim);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.outil-breadcrumb a {
  color: var(--text-dim); text-decoration: none;
  transition: color .2s;
}
.outil-breadcrumb a:hover { color: var(--accent2); }
.bc-sep { opacity: .4; }

/* ── HERO OUTIL ── */
.outil-hero {
  max-width: 960px; margin: 0 auto;
  padding: 24px 32px 40px;
}
.outil-retour {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px; border-radius: var(--radius-sm, 3px);
  border: 1px solid var(--border);
  background: transparent;
  transition: all .2s;
  margin-bottom: 28px;
}
.outil-retour:hover {
  color: var(--text); border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

.outil-hero-inner {
  display: flex; align-items: flex-start; gap: 32px;
  flex-wrap: wrap;
}

/* Logo grand format */
.outil-logo-wrap { flex-shrink: 0; }
.outil-logo-grand {
  width: 90px; height: 90px;
  border-radius: 22px;
  font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow .3s;
}

/* Infos */
.outil-hero-infos { flex: 1; min-width: 240px; }
.outil-hero-top {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.outil-cat-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-sm, 3px);
  background: var(--outil-color-soft);
  color: var(--outil-color);
  border: 1px solid rgba(255,255,255,0.06);
}
.outil-count-badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--radius-sm, 3px);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.outil-h1 {
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 10px;
}
.outil-sous-titre {
  font-size: 14px; color: var(--text-muted);
  font-weight: 300; line-height: 1.65;
  margin-bottom: 12px; max-width: 560px;
}
.outil-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--accent-amber);
}
.outil-note strong { color: var(--text); font-size: 15px; font-weight: 700; }
.outil-note span { color: var(--text-dim); font-size: 12px; }

/* ── BARRE DE FILTRES ── */
.outil-filtres-wrap {
  position: sticky; top: 0; z-index: 100;
  background: rgba(var(--bg-rgb, 16,16,22), 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
}
.outil-filtres-bar {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; padding: 12px 0;
}
.filtres-groupe {
  display: flex; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  padding: 3px;
}
.filtre-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: var(--radius-sm, 3px);
  font-size: 13px; font-weight: 600;
  font-family: var(--sans);
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  transition: all .18s;
}
.filtre-btn:hover { color: var(--text); }
.filtre-btn.actif {
  background: var(--outil-color-soft);
  color: var(--outil-color);
}

/* Dropdown durée */
.filtres-duree-wrap { position: relative; }
.duree-container { position: relative; }
.filtre-btn-duree {
  border: 1px solid var(--border) !important;
  background: rgba(255,255,255,0.04) !important;
  gap: 8px;
}
.filtre-btn-duree.actif {
  border-color: var(--outil-color) !important;
  color: var(--outil-color) !important;
  background: var(--outil-color-soft) !important;
}
.duree-chevron { transition: transform .25s; flex-shrink: 0; }
.filtre-btn-duree.actif .duree-chevron { transform: rotate(180deg); }

.duree-dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 160px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius, 4px);
  padding: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  z-index: 200;
  animation: fadeIn .15s ease;
}
.duree-dropdown.open { display: block; }
.duree-option {
  display: block; width: 100%;
  text-align: left;
  padding: 8px 12px; border-radius: var(--radius-sm, 3px);
  font-size: 13px; font-weight: 500;
  font-family: var(--sans);
  cursor: pointer; border: none;
  background: transparent; color: var(--text-muted);
  transition: all .15s;
}
.duree-option:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.duree-option.actif {
  background: var(--outil-color-soft);
  color: var(--outil-color);
  font-weight: 700;
}

.filtres-count {
  font-size: 12px; color: var(--text-dim);
  margin-left: 4px;
}
.filtre-soumettre {
  margin-left: auto;
}

/* ── GRILLE VIDÉOS (page profonde) ── */
.outil-grille-wrap {
  max-width: 960px; margin: 0 auto;
  padding: 32px 32px 64px;
}
.outil-video-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Carte vidéo grande */
.outil-video-card {
  cursor: pointer;
  border-radius: var(--radius, 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.outil-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,157,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.outil-video-thumb {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--bg3);
}
.card-short .outil-video-thumb {
  aspect-ratio: 9/14;
}
.outil-video-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s;
}
.outil-video-card:hover .outil-video-thumb img { transform: scale(1.06); }
.outil-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.38);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.outil-video-card:hover .outil-thumb-overlay { opacity: 1; }
.outil-play-btn {
  width: 48px; height: 48px;
  background: rgba(255,107,157,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transform: scale(0.85);
  transition: transform .2s;
}
.outil-video-card:hover .outil-play-btn { transform: scale(1); }
.outil-video-info {
  padding: 12px 14px 14px;
}
.outil-video-titre {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 6px;
}
.outil-video-canal {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--text-dim);
}

/* Skeleton loader */
.outil-skeleton {
  border-radius: var(--radius, 4px);
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s infinite;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* État vide */
.outil-vide {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 32px;
  color: var(--text-dim);
}
.outil-vide-ico { font-size: 40px; display: block; margin-bottom: 12px; }
.outil-vide p { font-size: 14px; margin-bottom: 18px; }

/* ── CTA SOUMISSION BAS ── */
.outil-cta-section {
  max-width: 960px; margin: 0 auto 72px;
  padding: 0 32px;
}
.outil-cta-inner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.outil-cta-inner::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(255,107,157,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.outil-cta-ico { font-size: 36px; margin-bottom: 14px; }
.outil-cta-titre {
  font-family: var(--serif);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.outil-cta-sub {
  font-size: 14px; color: var(--text-muted);
  font-weight: 300; line-height: 1.65;
  max-width: 480px; margin: 0 auto 24px;
}

/* ── RESPONSIVE PAGE PROFONDE ── */
@media (max-width: 900px) {
  .outil-video-grille { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .outil-hero, .outil-grille-wrap,
  .outil-cta-section, .outil-breadcrumb { padding-left: 16px !important; padding-right: 16px !important; }
  .outil-filtres-wrap { padding: 0 16px; }
  .outil-hero-inner { flex-direction: column; gap: 20px; }
  .outil-logo-grand { width: 70px; height: 70px; font-size: 30px; }
  .outil-video-grille { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .outil-filtres-bar { gap: 8px; }
  .filtre-soumettre { display: none; }
  .outil-cta-inner { padding: 32px 20px; }
}
@media (max-width: 420px) {
  .outil-video-grille { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ════════════════════════════════════════
   MENU KEBAB - ALBEXIA (VERSION FINALE)
   ════════════════════════════════════════ */

.kebab-wrap {
  position: relative;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
}

.kebab-btn {
  width: 36px; 
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 3px);
  cursor: pointer;
  display: flex; 
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  gap: 4px;
  transition: border-color .2s, background .2s;
  flex-shrink: 0;
}

.kebab-btn:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

.kebab-btn span {
  display: block;
  width: 14px; 
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: background .2s;
}

.kebab-btn:hover span { background: var(--text); }

.kebab-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px); 
  right: 0; 
  width: 260px;
  
  /* Sécurités indispensables */
  max-width: 280px;
  max-height: 75vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  
  background: var(--bg2);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius, 4px);
  padding: 10px 8px;
  z-index: 9999; /* Priorité maximale */
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.2);
  animation: kebab-drop .2s cubic-bezier(0.34,1.56,0.64,1);
}

.kebab-menu.open { 
  display: block !important; 
}

@keyframes kebab-drop {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Styles des Items --- */
.kebab-label {
  font-size: 9px; 
  font-weight: 700;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 12px 4px;
  margin-top: 2px;
}

.kebab-item {
  display: flex; 
  align-items: center; 
  gap: 12px;
  padding: 9px 12px; 
  border-radius: var(--radius, 4px);
  text-decoration: none; 
  color: var(--text);
  transition: background .15s;
  cursor: pointer;
}

.kebab-item:hover { background: rgba(255,255,255,0.05); }

.kebab-ico {
  font-size: 18px; 
  flex-shrink: 0;
  width: 32px; 
  height: 32px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm, 3px);
}

.kebab-item-name {
  font-size: 13px; 
  font-weight: 600;
  color: var(--text); 
  line-height: 1.2;
}

.kebab-item-sub {
  font-size: 11px; 
  color: var(--text-dim);
  margin-top: 2px; 
  line-height: 1.3;
}

.kebab-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}

/* --- Lien spécial Hub --- */
.kebab-hub-link {
  background: rgba(255,107,157,0.06);
  border: 1px solid rgba(255,107,157,0.15);
  margin-top: 2px;
}

.kebab-hub-link:hover {
  background: rgba(255,107,157,0.12);
  border-color: rgba(255,107,157,0.3);
}

.kebab-hub-link .kebab-item-name { color: #FF9DBC; }
.kebab-hub-link .kebab-ico { background: rgba(255,107,157,0.12); }

/* --- Ajustements spécifiques Mobile (La Correction) --- */
@media (max-width: 768px) {
  .kebab-menu {
    position: fixed; /* Détache le menu de la nav pour éviter qu'il soit coupé */
    top: 70px;      /* Ajuste cette valeur selon la hauteur de ta nav */
    right: 15px;    /* Laisse un petit espace avec le bord de l'écran */
    left: auto;
    width: calc(100vw - 30px); /* S'adapte à la largeur du téléphone */
    max-width: 280px;
    max-height: 70vh;
  }
}

/* ════════════════════════════════════════
   HUB — Page Hub Central
   ════════════════════════════════════════ */
.hub-hero {
  position: relative; padding: 80px 32px 56px;
  text-align: center; overflow: hidden;
}
.hub-hero-glow {
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(255,107,157,0.14) 0%, rgba(255,107,157,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hub-hero-inner { position: relative; z-index: 1; }
.hub-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,157,0.12); border: 1px solid rgba(255,107,157,0.3);
  color: #FF9DBC; font-size: 11px; font-weight: 700;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hub-hero h1 {
  font-family: var(--serif); font-size: clamp(34px, 6vw, 60px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px;
}
.hub-hero h1 .grad {
  background: linear-gradient(135deg, #FF6B9D 0%, #ff6b9d 55%, #34D399 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hub-hero p { font-size: 16px; color: var(--text-muted); font-weight: 300; line-height: 1.75; max-width: 540px; margin: 0 auto; }

.hub-spotlight-wrap { margin-bottom: 16px; display: flex; justify-content: flex-end; padding-right: 8px; }
.hub-spotlight {
  position: relative; width: 280px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,107,157,0.08) 50%, rgba(255,107,157,0.06) 100%);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius, 4px);
  padding: 18px 20px 14px; cursor: pointer; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255,107,157,0.1), 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .2s, box-shadow .2s;
}
.hub-spotlight:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgba(255,107,157,0.25), 0 16px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}
.hub-spotlight::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius, 4px); padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,157,0.5), rgba(255,107,157,0.4), rgba(52,211,153,0.3), rgba(255,107,157,0.5));
  background-size: 300% 300%; animation: hub-shimmer-border 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
@keyframes hub-shimmer-border {
  0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
.hub-spot-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #FF9DBC; margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.hub-spot-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2); animation: pulse 2s infinite; flex-shrink: 0;
}
.hub-spot-body { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hub-spot-ico {
  width: 44px; height: 44px; border-radius: var(--radius, 4px); background: var(--bg3);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.hub-spot-ico img { width: 28px; height: 28px; object-fit: contain; border-radius: var(--radius, 4px); }
.hub-spot-name { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: 3px; }
.hub-spot-type { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.hub-spot-question {
  font-size: 12px; color: var(--text-muted); line-height: 1.55; font-weight: 300;
  padding: 10px 12px; background: rgba(255,255,255,0.04); border-radius: var(--radius, 4px);
  border: 1px solid var(--border); margin-bottom: 12px; min-height: 48px;
}
.hub-spot-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hub-spot-progress { flex: 1; height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.hub-spot-bar {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px; width: 100%; transform-origin: left;
  animation: hub-spot-countdown 6s linear forwards;
}
@keyframes hub-spot-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.hub-spot-skip {
  font-size: 10px; font-weight: 600; color: var(--text-dim); background: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm, 3px); padding: 3px 8px;
  cursor: pointer; font-family: var(--sans); transition: all .15s; white-space: nowrap; flex-shrink: 0;
}
.hub-spot-skip:hover { border-color: var(--border-hover); color: var(--text); }
@keyframes hub-spot-in { from { opacity: 0; transform: translateX(20px) scale(0.97); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes hub-spot-out { from { opacity: 1; transform: translateX(0) scale(1); } to { opacity: 0; transform: translateX(30px) scale(0.95); } }
.hub-spotlight.entering { animation: hub-spot-in 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.hub-spotlight.leaving  { animation: hub-spot-out 0.35s ease-in forwards; }

.hub-zone { margin-bottom: 64px; }
.hub-zone-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.hub-zone-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.hub-zone-title { font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 6px; }
.hub-zone-desc { font-size: 14px; color: var(--text-muted); font-weight: 300; line-height: 1.65; max-width: 600px; }
.hub-cards-grid { display: grid; gap: 16px; }
.hub-cards-3   { grid-template-columns: repeat(3, 1fr); }
.hub-cards-2-3 { grid-template-columns: repeat(3, 1fr); }

.hub-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius, 4px);
  padding: 26px 24px 22px; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .25s cubic-bezier(0.34,1.56,0.64,1), border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.hub-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 16px 48px rgba(0,0,0,0.35); }
.hub-card-glow { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 200px; height: 120px; border-radius: 50%; opacity: 0; transition: opacity .3s; pointer-events: none; }
.hub-card:hover .hub-card-glow { opacity: 1; }
.hub-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: var(--radius, 4px) var(--radius, 4px) 0 0; opacity: 0.7; transition: opacity .2s; }
.hub-card:hover::before { opacity: 1; }
.hub-card--teal::before  { background: linear-gradient(90deg,#34D399,#FF6B9D); } .hub-card--teal .hub-card-glow  { background: radial-gradient(ellipse,rgba(52,211,153,.18),transparent); } .hub-card--teal:hover { border-color:rgba(52,211,153,.3); } .hub-card--teal .hub-card-cta { color:#34D399; }
.hub-card--purple::before { background: linear-gradient(90deg,#FF6B9D,#ff6b9d); } .hub-card--purple .hub-card-glow { background: radial-gradient(ellipse,rgba(255,107,157,.2),transparent); } .hub-card--purple:hover { border-color:rgba(255,107,157,.35); } .hub-card--purple .hub-card-cta { color:#FF9DBC; }
.hub-card--amber::before { background: linear-gradient(90deg,#f5a623,#ff6b9d); } .hub-card--amber .hub-card-glow { background: radial-gradient(ellipse,rgba(245,166,35,.18),transparent); } .hub-card--amber:hover { border-color:rgba(245,166,35,.3); } .hub-card--amber .hub-card-cta { color:#f5a623; }
.hub-card--pink::before  { background: linear-gradient(90deg,#ff6b9d,#f5a623); } .hub-card--pink .hub-card-glow  { background: radial-gradient(ellipse,rgba(255,107,157,.2),transparent); } .hub-card--pink:hover { border-color:rgba(255,107,157,.35); } .hub-card--pink .hub-card-cta { color:#ff6b9d; }
.hub-card--red::before   { background: linear-gradient(90deg,#ff4d4d,#ff6b9d); } .hub-card--red .hub-card-glow   { background: radial-gradient(ellipse,rgba(255,77,77,.18),transparent); } .hub-card--red:hover { border-color:rgba(255,77,77,.3); } .hub-card--red .hub-card-cta { color:#ff7070; }
.hub-card--green::before { background: linear-gradient(90deg,#34D399,#6cff8f); } .hub-card--green .hub-card-glow { background: radial-gradient(ellipse,rgba(108,255,143,.15),transparent); } .hub-card--green:hover { border-color:rgba(52,211,153,.3); } .hub-card--green .hub-card-cta { color:#34D399; }
.hub-card--blue::before  { background: linear-gradient(90deg,#38bdf8,#FF6B9D); } .hub-card--blue .hub-card-glow  { background: radial-gradient(ellipse,rgba(56,189,248,.18),transparent); } .hub-card--blue:hover { border-color:rgba(56,189,248,.3); } .hub-card--blue .hub-card-cta { color:#38bdf8; }
.hub-card-ico { font-size: 32px; margin-bottom: 14px; line-height: 1; display: block; }
.hub-card-title { font-family: var(--serif); font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.hub-card-desc { font-size: 13px; color: var(--text-muted); font-weight: 300; line-height: 1.65; flex: 1; margin-bottom: 16px; }
.hub-card-cta { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.hub-card:hover .hub-card-cta { gap: 10px; }
.hub-card-cta span { transition: transform .2s; display: inline-block; }
.hub-card:hover .hub-card-cta span { transform: translateX(4px); }
.hub-card--ghost { background: transparent; border: 2px dashed rgba(255,255,255,0.1); cursor: default; pointer-events: none; opacity: 0.55; }
.hub-card--ghost::before { display: none; }
.hub-card--ghost .hub-card-ico { opacity: 0.5; }
.hub-card--ghost .hub-card-title, .hub-card--ghost .hub-card-desc { color: var(--text-dim); }
.hub-card-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-sm, 3px); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); margin-top: 4px; }

.hub-cta-banner { margin-bottom: 72px; }
.hub-cta-inner { position: relative; background: linear-gradient(135deg,rgba(255,107,157,.1) 0%,rgba(255,107,157,.08) 50%,rgba(52,211,153,.06) 100%); border: 1px solid rgba(255,107,157,.2); border-radius: 24px; padding: 56px 40px; text-align: center; overflow: hidden; }
.hub-cta-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 500px; height: 250px; background: radial-gradient(ellipse,rgba(255,107,157,.15) 0%,transparent 70%); pointer-events: none; }
.hub-cta-ico { font-size: 40px; display: block; margin-bottom: 16px; }
.hub-cta-inner h2 { font-family: var(--serif, 'Fraunces', Georgia, 'Times New Roman', serif); font-size: clamp(20px,3.5vw,32px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.hub-cta-inner p { font-size: 15px; color: var(--text-muted); font-weight: 300; margin-bottom: 28px; }

@media (max-width: 900px) { .hub-cards-3, .hub-cards-2-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .hub-hero { padding: 48px 16px 36px; }
  .hub-zone-header { flex-direction: column; gap: 8px; }
  .hub-cards-3, .hub-cards-2-3 { grid-template-columns: 1fr; }
  .hub-zone { margin-bottom: 44px; }
  .hub-cta-inner { padding: 36px 20px; }
  .hub-spotlight-wrap { justify-content: center; }
  .hub-spotlight { width: 100%; max-width: 340px; }
}

/* ═══════════════════════════════════════════════════
   CARTES OUTILS — SYSTÈME 3 PLANS
   À ajouter dans style.css après .tool-card-featured
   ═══════════════════════════════════════════════════ */

/* ── Plan FEATURED — bordure rose + glow ── */
.tool-card-plan-featured {
  border-color: rgba(255, 107, 157, 0.3);
  background: linear-gradient(
    160deg,
    rgba(255, 107, 157, 0.06) 0%,
    var(--bg2, #12121a) 55%
  );
  box-shadow:
    0 0 0 1px rgba(255, 107, 157, 0.12),
    0 4px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Ligne de couleur rose en haut de la carte */
.tool-card-plan-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b9d, #f5a623, #ff6b9d);
  border-radius: var(--radius, 4px) var(--radius, 4px) 0 0;
}

.tool-card-plan-featured:hover {
  border-color: rgba(255, 107, 157, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 107, 157, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* ── Plan STARTER — bordure violette discrète ── */
.tool-card-plan-starter {
  border-color: rgba(255, 107, 157, 0.25);
  background: linear-gradient(
    160deg,
    rgba(255, 107, 157, 0.05) 0%,
    var(--bg2, #12121a) 55%
  );
}

.tool-card-plan-starter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF6B9D, #FF9DBC);
  border-radius: var(--radius, 4px) var(--radius, 4px) 0 0;
}

.tool-card-plan-starter:hover {
  border-color: rgba(255, 107, 157, 0.4);
  transform: translateY(-3px);
}

/* ── Plan GRATUIT — carte standard avec ligne grise ── */
.tool-card-plan-gratuit {
  /* Hérite du style .tool-card standard — pas d'extra visuel fort */
}

/* ── BADGES DE PLAN ── */
.tool-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-top: 10px;
}

/* Badge FEATURED — rose */
.tool-plan-badge-featured {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim, #55556E);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 157, 0); }
  50%       { box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1); }
}

/* Badge STARTER — violet */
.tool-plan-badge-starter {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim, #55556E);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Badge GRATUIT — gris discret */
.tool-plan-badge-gratuit {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim, #4a4a6a);
  border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ═══════════════════════════════════════
   LIGHTBOX GALERIE v2
   À coller à la toute fin de style.css
   ═══════════════════════════════════════ */

/* ─── OVERLAY PLEIN ÉCRAN ─── */
#lb-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #000;
  flex-direction: column;
}
#lb-overlay.open { display: flex; }

/* ─── BARRE HAUTE ─── */
#lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.6);
}
#lb-counter {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-family: var(--sans);
}
#lb-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
#lb-close:hover { background: rgba(255,255,255,0.25); }

/* ─── ZONE MÉDIA (centre, prend tout l'espace) ─── */
#lb-media-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}
#lb-media-wrap.dragging { cursor: grabbing; }

/* Image */
#lb-img {
  display: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  padding: 0;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.1s ease;
  pointer-events: none;
  border-radius: 2px;
}
#lb-img.active { display: block; }

/* Vidéo */
#lb-video {
  display: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  outline: none;
  border-radius: 2px;
}
#lb-video.active { display: block; }

/* Musique */
#lb-audio-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 24px;
}
#lb-audio-wrap.active { display: flex; }
#lb-audio-art {
  width: 180px; height: 180px;
  border-radius: var(--radius, 4px);
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  color: var(--text-dim);
}
#lb-audio-title {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--sans);
}
#lb-audio {
  width: min(320px, 90vw);
  outline: none;
}

/* Flèches de navigation (centré verticalement sur la zone média) */
#lb-prev, #lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
#lb-prev { left: 12px; }
#lb-next { right: 12px; }
#lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.28); }

/* ─── BARRE BASSE ─── */
#lb-bottombar {
  flex-shrink: 0;
  background: rgba(0,0,0,0.6);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#lb-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
#lb-title {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#lb-tool {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-family: var(--sans);
}

/* Contrôles zoom */
#lb-zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 4px 10px;
  flex-shrink: 0;
}
#lb-zoom-controls button {
  background: rgba(255,255,255,0.1);
  border: none; color: #fff;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#lb-zoom-controls button:hover { background: rgba(255,255,255,0.25); }
#lb-zoom-level {
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  min-width: 36px;
  text-align: center;
  font-family: var(--sans);
}

/* ─── ANIMATION ENTRÉE MÉDIA ─── */
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
#lb-img.active,
#lb-video.active,
#lb-audio-wrap.active {
  animation: lbFadeIn .18s ease;
}

/* ─── MOBILE ─── */
@media (max-width: 480px) {
  #lb-prev { left: 4px; }
  #lb-next { right: 4px; }
  #lb-prev, #lb-next { width: 38px; height: 38px; font-size: 20px; }
  #lb-audio-art { width: 140px; height: 140px; font-size: 48px; }
  #lb-bottombar { padding: 8px 12px; }
  #lb-title { font-size: 13px; }
}


/* ═══════════════════════════════════════════════════════════
   ALBEXIA — Spotlight Notification
   Coller ce bloc à la fin de style.css
   ═══════════════════════════════════════════════════════════ */

/* ─── PANEL SPOTLIGHT ─── */
#notif-spotlight {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(255, 107, 157, 0.05);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--radius, 4px);
  animation: spotlight-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#notif-spotlight.spotlight-hiding {
  animation: spotlight-out 0.35s ease forwards;
}

@keyframes spotlight-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spotlight-out {
  from { opacity: 1; transform: translateY(0); max-height: 400px; }
  to   { opacity: 0; transform: translateY(-8px); max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}

/* ─── EN-TÊTE ─── */
.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.spotlight-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6b9d;
  font-family: var(--sans, 'Inter', -apple-system, 'Segoe UI', sans-serif);
}

.spotlight-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b9d;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.25);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(255, 107, 157, 0.10); }
}

.spotlight-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.spotlight-close:hover {
  background: rgba(255, 107, 157, 0.15);
  border-color: rgba(255, 107, 157, 0.4);
  color: #ff6b9d;
}

/* ─── GRILLE CARTES ─── */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ─── CARTE SPOTLIGHT ─── */
.spotlight-card {
  cursor: pointer;
  border-color: rgba(255, 107, 157, 0.15) !important;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s !important;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
  border-color: rgba(255, 107, 157, 0.35) !important;
}

/* ─── RESPONSIVE ─── */

/* Tablette : 2 colonnes si 2 ou 3 outils */
@media (max-width: 768px) {
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Si un seul outil : pleine largeur */
  .spotlight-grid:has(.spotlight-card:only-child) {
    grid-template-columns: 1fr;
  }
}

/* Mobile : 1 colonne */
@media (max-width: 480px) {
  #notif-spotlight {
    padding: 14px;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}
/* ═══════════════════════════════════════
   Albexia — Bloc à ajouter à la fin de style.css
   Fix menu avatar nav + toutes les pages
   ═══════════════════════════════════════ */

/* ─── BOUTON CONNEXION DANS LA NAV ─── */
.nav-profile-slot {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.btn-nav-auth {
  padding: 7px 16px; background: #fff; color: var(--bg);
  border-radius: var(--radius-sm, 3px); font-size: 12px; font-weight: 600;
  text-decoration: none; font-family: inherit;
  transition: opacity .15s; white-space: nowrap;
}
.btn-nav-auth:hover { opacity: .85; }

/* ─── AVATAR ─── */
.nav-avatar-wrap {
  position: relative;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s, transform .15s;
  line-height: 1;
}
.nav-avatar:hover {
  opacity: .9;
  transform: scale(1.05);
}

/* ─── MENU DÉROULANT ─── */
.nav-avatar-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius, 4px);
  padding: 8px;
  min-width: 210px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  z-index: 9999;
}
.nav-avatar-menu.open { display: block; }

.nav-avatar-name {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-avatar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm, 3px);
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  line-height: 1;
}
.nav-avatar-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.nav-avatar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}

.nav-avatar-logout {
  color: rgba(224,92,92,0.8) !important;
}
.nav-avatar-logout:hover {
  background: rgba(224,92,92,0.12) !important;
  color: #e05c5c !important;
}

/* ═══════════════════════════════════════
   BOUTON COLLECTION SUR LES CARTES
   ═══════════════════════════════════════ */

.col-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-sm, 3px);
  margin-left: auto;
  opacity: 0.5;
  transition: opacity .15s, background .15s;
  line-height: 1;
}
.tool-card:hover .col-btn { opacity: 1; }
.col-btn:hover { background: rgba(255,255,255,0.08); }

/* ─── MENU POPUP COLLECTION ─── */
.col-menu-popup {
  position: absolute;
  z-index: 9999;
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius, 4px);
  padding: 8px;
  min-width: 210px;
  max-width: 240px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.col-menu-header {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 180px;
  overflow-y: auto;
}

.col-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm, 3px);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: all .15s;
}
.col-menu-item:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.col-menu-empty {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  padding: 8px 10px;
  text-align: center;
}

.col-menu-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 6px 0;
}

.col-menu-new {
  display: flex;
  gap: 6px;
  padding: 0 2px;
}

.col-menu-new input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm, 3px);
  padding: 7px 10px;
  font-size: 12px;
  color: #fff;
  font-family: inherit;
  min-width: 0;
}
.col-menu-new input:focus {
  outline: none;
  border-color: rgba(255,107,157,0.5);
}
.col-menu-new input::placeholder { color: rgba(255,255,255,0.25); }

.col-menu-new button {
  background: linear-gradient(135deg, #FF6B9D, #ff6b9d);
  border: none;
  border-radius: var(--radius-sm, 3px);
  padding: 7px 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  flex-shrink: 0;
}
.col-menu-new button:hover { opacity: .85; }

/* ─── TOAST AVEC LIEN (favoris non connecté) ─── */
.toast-link {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e;
  border: 1px solid rgba(255,107,157,0.4);
  border-radius: var(--radius, 4px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-family: var(--sans);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 9999;
  opacity: 0;
  transition: all .3s;
  white-space: nowrap;
  max-width: 90vw;
}
.toast-link.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-link-btn {
  background: linear-gradient(135deg, #FF6B9D, #ff6b9d);
  color: #fff;
  border-radius: var(--radius-sm, 3px);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s;
}
.toast-link-btn:hover { opacity: .85; }
.toast-link-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  transition: color .15s;
}
.toast-link-close:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 480px) {
  .toast-link {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    bottom: 16px;
    padding: 12px;
  }
}
.tool-rating-badge { color: #f5a623; } 


/* ═══════════════════════════════════════
   PATCH style.css — Bouton save vidéo
   À coller à la fin de css/style.css
   ═══════════════════════════════════════ */

/* ── Pied de carte vidéo (canal + bouton save) ── */
.outil-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

/* ── Bouton sauvegarder vidéo ── */
.btn-save-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm, 3px);
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--text-dim, #888);
  cursor: pointer;
  flex-shrink: 0;
  transition: color .2s, border-color .2s, background .2s;
}

.btn-save-video:hover {
  color: #ff6b9d;
  border-color: rgba(255,107,157,0.4);
  background: rgba(255,107,157,0.08);
}

/* État "sauvegardé" */
.btn-save-video.saved {
  color: #ff6b9d;
  border-color: rgba(255,107,157,0.5);
  background: rgba(255,107,157,0.12);
}

.btn-save-video.saved svg {
  fill: #ff6b9d;
  stroke: #ff6b9d;
}

.btn-save-video:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



                   @media (max-width: 1024px) and (min-width: 769px) {
  .hero { padding: 56px 24px 40px; }
  .hero h1 { font-size: clamp(32px, 5vw, 48px); }
     }

/* ─── REFONTE ACCUEIL (hero + catégories + outils + articles) ─── */
.home-hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 48px;
}
.home-hero-text h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.05;
  font-weight: 700; margin-bottom: 16px; text-align: left;
}
.home-hero-text p {
  font-size: 16px; line-height: 1.7; color: var(--text-muted);
  font-weight: 300; max-width: 460px; margin: 0 0 28px;
}
.home-hero-visual svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }

.home-block { padding-top: 32px; padding-bottom: 16px; }
.home-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.home-block-head h2 { font-size: 22px; font-weight: 700; }
.home-block-head a { font-size: 13px; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.home-block-head a:hover { color: var(--text); }

.home-cat-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.home-cat-card {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 14px 16px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius, 4px); cursor: pointer; color: var(--text);
  font-family: var(--sans); transition: border-color .2s, transform .2s;
}
.home-cat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.home-cat-card-name { font-family: var(--serif); font-weight: 700; font-size: 14px; }
.home-cat-card-count { font-size: 12px; color: var(--text-muted); }

.home-top-grid, .home-art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-top-card, .home-art-card {
  display: flex; flex-direction: column; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius, 4px); color: var(--text);
  text-decoration: none; transition: border-color .2s, transform .2s; overflow: hidden;
}
.home-top-card:hover, .home-art-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.home-top-card { padding: 16px; gap: 10px; }
.home-top-head { display: flex; align-items: center; gap: 10px; }
.home-top-ico {
  width: 34px; height: 34px; border-radius: var(--radius-sm, 3px); display: flex;
  align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.home-top-ico img { width: 20px; height: 20px; object-fit: contain; }
.home-top-name { font-family: var(--serif); font-weight: 700; font-size: 15px; }
.home-top-desc {
  font-size: 13px; line-height: 1.55; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.home-top-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.home-top-note { font-size: 12px; color: var(--accent-amber); }

.home-art-thumb {
  aspect-ratio: 16 / 9; background: var(--bg3); display: flex;
  align-items: center; justify-content: center; font-size: 32px; overflow: hidden;
}
.home-art-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-art-body { padding: 14px 16px 16px; }
.home-art-title { font-family: var(--serif); font-weight: 700; font-size: 14px; line-height: 1.35; margin-bottom: 6px; }
.home-art-meta { font-size: 12px; color: var(--text-muted); }

.home-skel {
  height: 64px; border-radius: var(--radius, 4px);
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.home-skel.tall { height: 150px; }
.home-empty { color: var(--text-dim); font-size: 14px; padding: 16px 0; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .home-cat-row { grid-template-columns: repeat(3, 1fr); }
  .home-top-grid, .home-art-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .home-hero-text .btn-main { width: 100%; }
  .home-cat-row { grid-template-columns: repeat(2, 1fr); }
  .home-top-grid, .home-art-grid { grid-template-columns: 1fr; }
}

/* ─── Bandeau outils sponsorisés (marquee 2 lignes) ─── */
.home-sponsors {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0 16px; margin-top: 16px; overflow: hidden;
}
.home-sponsors[hidden] { display: none; }
.home-sponsors-bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto 12px; padding: 0 32px;
  font-size: 12px; color: var(--text-muted);
}
.home-sponsors-pause {
  font: 500 12px var(--sans); color: var(--text-muted);
  background: transparent; border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm, 3px); padding: 4px 12px; cursor: pointer; transition: color .2s, border-color .2s;
}
.home-sponsors-pause:hover { color: var(--text); }
.home-marquee {
  overflow: hidden; margin-bottom: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.home-marquee:last-child { margin-bottom: 0; }
.home-marquee-track {
  display: flex; width: max-content;
  animation: marqueeLeft var(--marquee-dur, 60s) linear infinite;
}
.home-marquee-track.reverse { animation-name: marqueeRight; }
.home-marquee:hover .home-marquee-track,
.home-sponsors.is-paused .home-marquee-track { animation-play-state: paused; }
@keyframes marqueeLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marqueeRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.home-sp-card {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  margin-right: 10px; padding: 10px 14px; min-width: 170px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius, 4px);
  color: var(--text); text-decoration: none; transition: border-color .2s;
}
.home-sp-ico {
  width: 32px; height: 32px; border-radius: var(--radius-sm, 3px); flex-shrink: 0; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: transform .2s;
}
.home-sp-ico img { width: 20px; height: 20px; object-fit: contain; }
.home-sp-txt { display: flex; flex-direction: column; min-width: 0; }
.home-sp-txt strong { font-size: 13px; font-weight: 600; transition: color .2s, text-shadow .2s; }
.home-sp-txt small { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.home-sp-card:hover { border-color: var(--accent); }
.home-sp-card:hover .home-sp-ico { transform: scale(1.1); }
.home-sp-card:hover .home-sp-txt strong {
  color: var(--accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .home-marquee-track { animation: none; }
  .home-marquee { overflow-x: auto; }
}
@media (max-width: 600px) { .home-sponsors-bar { padding: 0 16px; } }

/* ─── ESPACEMENT VERTICAL — ACCUEIL ─── */

/* Hero → Outils sponsorisés */
.home-hero + .home-sponsors {
  margin-top: 80px;
}

/* Outils sponsorisés → Catégories */
.home-sponsors + .home-block {
  margin-top: 100px;
}

/* Catégories → Outils les mieux notés */
.home-block + .home-block {
  margin-top: 100px;
}

/* Outils les mieux notés → Derniers articles */
.home-block + .home-block:has(.home-art-grid) {
  margin-top: 112px;
}

/* ─── HERO — RESPIRATION RENFORCÉE ─── */

.home-hero {
  padding-top: 140px;
  padding-bottom: 120px;
}

.home-hero h1 {
  margin-bottom: 36px;
}

.home-hero p {
  margin-bottom: 48px;
}

.home-hero .hero-actions {
  margin-top: 0;
}


/* ═══════════════════════════════════════
   TITRES D'ARTICLES — toujours blancs
   (lien, visité, survol, focus : jamais bleu/violet/rose)
   ═══════════════════════════════════════ */
.blog-card-link,
.blog-card-link:link,
.blog-card-link:visited,
.blog-card-link:hover,
.blog-card-link:active,
.blog-card-link:focus { color: #fff; text-decoration: none; }
.blog-card a,
.blog-card a:visited,
.blog-card a:hover,
.blog-title,
a .blog-title,
a:visited .blog-title,
a:hover .blog-title,
a:focus .blog-title,
a:active .blog-title { color: #fff; text-decoration: none; }

/* ═══════════════════════════════════════
   CARTES OUTILS — style unique (plans sans différenciation visuelle)
   Les classes tool-card-featured / -plan-featured / -plan-starter /
   -plan-gratuit restent dans le HTML mais n'imposent plus aucune couleur.
   ═══════════════════════════════════════ */
.tool-card.tool-card-featured,
.tool-card.tool-card-plan-featured,
.tool-card.tool-card-plan-starter,
.tool-card.tool-card-plan-gratuit {
  background: var(--bg2);
  border-color: var(--border);
  box-shadow: none;
}
.tool-card.tool-card-featured:hover,
.tool-card.tool-card-plan-featured:hover,
.tool-card.tool-card-plan-starter:hover,
.tool-card.tool-card-plan-gratuit:hover {
  border-color: var(--border-hover);
  box-shadow: none;
  transform: translateY(-2px);
}
.tool-card-plan-featured::before,
.tool-card-plan-starter::before { content: none; display: none; }

/* ═══════════════════════════════════════
   CATÉGORIES — pas d'emojis sur les tuiles/onglets de catégories
   ═══════════════════════════════════════ */
.home-cat-icon { display: none; }

/* Nav : la zone profil ne se fait plus recouvrir par le bouton Soumettre */
.nav-profile-slot { flex-shrink: 0; }

/* ═══════════════════════════════════════
   COINS DES CARTES — pilotés par --radius (:root)
   Les cartes avaient des border-radius codés en dur (14-20px) qui
   ignoraient la variable ; elles lisent maintenant var(--radius).
   ═══════════════════════════════════════ */
.tool-card, .blog-card, .home-cat-tile, .editorial-highlight, .editorial-feature,
.quiz-result-card, .picker-card, .comp-tool-card, .reco-card, .duel-card,
.tool-header-card, .verdict-card, .sidebar-block, .ressource-card,
.glossaire-vitrine-card, .ressources-newsletter-card, .tuto-card,
.outil-video-card, .hub-card, .hub-card::before, .hub-spotlight, .hub-spotlight::before,
.home-cat-card, .home-top-card, .home-art-card, .home-sp-card,
.selected-bar-inner, .outil-cta-inner, .nav-avatar-menu {
  border-radius: var(--radius);
}
