/* =============================================================
   STYLE.CSS — bento.lucasdescot.com
   ============================================================= */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Variables — Light ───────────────────────────────────────── */
:root {
  --bg:           #F3F5F0;
  --bg2:          #E8EDE4;
  --surface:      #FAFBF8;
  --border:       rgba(27,67,50,0.10);
  --border2:      rgba(27,67,50,0.18);
  --text:         #0D1B12;
  --muted:        #4A6358;
  --muted2:       #8FAD9E;
  --accent:       #1B4332;
  --accent-light: rgba(27,67,50,0.07);
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 2px 20px rgba(27,67,50,0.08);
  --shadow-lg:    0 12px 48px rgba(27,67,50,0.16);
  --col-left:     230px;
  --gap:          10px;
}

/* ── Variables — Dark ────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0F1A14;
  --bg2:          #162118;
  --surface:      #1A2B21;
  --border:       rgba(139,195,162,0.10);
  --border2:      rgba(139,195,162,0.16);
  --text:         #E8F0EC;
  --muted:        #8BAD9E;
  --muted2:       #5C7A6C;
  --accent:       #4ADE80;
  --accent-light: rgba(74,222,128,0.08);
  --shadow:       0 2px 20px rgba(0,0,0,0.20);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.35);
}

/* ── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
/* Desktop (>900px) : pas de scroll, tout tient dans le viewport */
@media (min-width: 901px) {
  html, body { height: 100vh; overflow: hidden; }
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.font-serif { font-family: 'Cormorant Garamond', serif; }

/* ═════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND — cercles verts flous en mouvement
   ═════════════════════════════════════════════════════════════ */
.bg-circles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

/* Light theme — verts bien visibles, mouvement ample */
.bg-circle--1 {
  width: 580px; height: 580px; background: #16a34a; opacity: 0.38;
  top: -12%; left: -8%;
  animation: floatA 28s ease-in-out infinite;
  animation-delay: 0s;
}
.bg-circle--2 {
  width: 460px; height: 460px; background: #22c55e; opacity: 0.34;
  top: 52%; right: -6%;
  animation: floatB 22s ease-in-out infinite;
  animation-delay: -9s;
}
.bg-circle--3 {
  width: 370px; height: 370px; background: #4ade80; opacity: 0.32;
  top: 22%; left: 38%;
  animation: floatC 18s ease-in-out infinite;
  animation-delay: -16s;
}
.bg-circle--4 {
  width: 290px; height: 290px; background: #86efac; opacity: 0.36;
  bottom: 8%; left: 8%;
  animation: floatD 24s ease-in-out infinite;
  animation-delay: -5s;
}
.bg-circle--5 {
  width: 230px; height: 230px; background: #bbf7d0; opacity: 0.38;
  top: 4%; right: 18%;
  animation: floatE 16s ease-in-out infinite;
  animation-delay: -20s;
}

/* Dark theme — verts lumineux, plus visibles */
[data-theme="dark"] .bg-circle--1 { background: #4ade80; opacity: 0.20; }
[data-theme="dark"] .bg-circle--2 { background: #22c55e; opacity: 0.18; }
[data-theme="dark"] .bg-circle--3 { background: #4ade80; opacity: 0.20; }
[data-theme="dark"] .bg-circle--4 { background: #86efac; opacity: 0.16; }
[data-theme="dark"] .bg-circle--5 { background: #a7f3d0; opacity: 0.19; }

/* Mouvements très amples — pas de scale (évite le blink) */
@keyframes floatA {
  0%   { transform: translate(0px,   0px);   }
  20%  { transform: translate(220px, 160px); }
  40%  { transform: translate(340px, -120px); }
  60%  { transform: translate(130px,  280px); }
  80%  { transform: translate(-100px, 170px); }
  100% { transform: translate(0px,   0px);   }
}
@keyframes floatB {
  0%   { transform: translate(0px,    0px);    }
  25%  { transform: translate(-250px, -180px); }
  50%  { transform: translate(-150px, -310px); }
  75%  { transform: translate(-280px,  -90px); }
  100% { transform: translate(0px,    0px);    }
}
@keyframes floatC {
  0%   { transform: translate(0px,    0px);   }
  33%  { transform: translate(190px, -230px); }
  66%  { transform: translate(-160px,  150px); }
  100% { transform: translate(0px,    0px);   }
}
@keyframes floatD {
  0%   { transform: translate(0px,    0px);    }
  25%  { transform: translate(130px, -200px);  }
  50%  { transform: translate(-120px, -270px); }
  75%  { transform: translate(200px,  -130px); }
  100% { transform: translate(0px,    0px);    }
}
@keyframes floatE {
  0%   { transform: translate(0px,    0px);   }
  30%  { transform: translate(-150px, 200px); }
  65%  { transform: translate(110px,  260px); }
  100% { transform: translate(0px,    0px);   }
}

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.3; }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
@keyframes shimmerSkeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Widget animations ───────────────────────────────────────── */
.widget {
  opacity: 0;
  animation: fadeInUp 0.48s ease forwards;
}
.widget:nth-child(1) { animation-delay: 0.04s; }
.widget:nth-child(2) { animation-delay: 0.09s; }
.widget:nth-child(3) { animation-delay: 0.14s; }
.widget:nth-child(4) { animation-delay: 0.19s; }
.widget:nth-child(5) { animation-delay: 0.24s; }
.widget:nth-child(6) { animation-delay: 0.29s; }
.widget:nth-child(7) { animation-delay: 0.34s; }
.widget:nth-child(8) { animation-delay: 0.39s; }

/* ═════════════════════════════════════════════════════════════
   PAGE WRAPPER — CSS Grid 2 cols × 2 rows
   Col 1 : sidebar (row 1) + footer (row 2)
   Col 2 : bento-grid (spans both rows)
   ═════════════════════════════════════════════════════════════ */
.page-wrapper {
  display: grid;
  grid-template-columns: var(--col-left) 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "sidebar bento"
    "footer  bento";
  column-gap: 24px;
  row-gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 16px;
  height: 100vh;
}
/* Tablet+ : hauteur auto pour pouvoir scroller */
@media (max-width: 900px) {
  .page-wrapper { height: auto; min-height: auto; }
}

/* ── Sidebar — sticky dans grid row 1 ───────────────────────── */
.sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 40px;
  align-self: start;
}

/* ── Bento grid — occupe les 2 rows de la colonne droite ────── */
.bento-grid {
  grid-area: bento;
  grid-row: 1 / 3;   /* span row 1 et row 2 */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  grid-auto-flow: dense;
  align-content: start;
}

/* ── Footer — grid-area "footer" : bas gauche ───────────────── */
.footer {
  grid-area: footer;
  font-size: 0.67rem;
  color: var(--muted2);
  padding-top: 14px;
  padding-bottom: 0;
  align-self: end;
  line-height: 1;
}

/* ── Grid sizing ─────────────────────────────────────────────── */
.w-medium { grid-column: span 2; }
.w-full   { grid-column: span 3; }

/* ═════════════════════════════════════════════════════════════
   PROFILE
   ═════════════════════════════════════════════════════════════ */
.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 12px;
  will-change: transform;
}
.profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Centre sur le haut pour garder le visage visible */
  object-position: center 15%;
  display: block;
}

.profile__name {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.profile__pseudo {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 3px;
}
.profile__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}
.profile__location {
  font-size: 0.75rem;
  color: var(--muted2);
  margin-top: 6px;
}

.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--accent-light);
  margin-top: 8px;
}
.badge-available__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ═════════════════════════════════════════════════════════════
   CARD BASE
   ═════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border2);
}

/* ═════════════════════════════════════════════════════════════
   WIDGET YOUTUBE [span 2] — header comme brand-tile + grille 2×2
   ═════════════════════════════════════════════════════════════ */
.widget--yt { background: rgba(255,0,0,0.03); }
[data-theme="dark"] .widget--yt { background: rgba(255,0,0,0.05); }

/* Header : [icône + texte] — [bouton] space-between */
.yt-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.yt-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

/* Icône YT — fond rouge subtil, style cohérent avec les autres icônes */
.yt-icon-wrap {
  background: rgba(255, 0, 0, 0.10) !important;
  flex-shrink: 0;
}
[data-theme="dark"] .yt-icon-wrap {
  background: rgba(255, 0, 0, 0.15) !important;
}
.yt-icon-wrap svg { width: 20px; height: 20px; }

/* Bouton Subscribe — pill rouge, count au même niveau, teinte plus claire */
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FF0000;
  color: #fff;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-subscribe:hover { opacity: 0.85; }
/* Le nombre — même ligne, juste légèrement transparent */
.btn-subscribe .sub-count {
  color: rgba(255,255,255,0.70);
  font-weight: 600;
}

/* Grille 2×2 — 16:9 */
.yt-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

/* Skeleton loader */
.yt-skeleton {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg2) 25%, var(--border2) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.5s infinite;
}

/* Thumbnail 16:9 */
.yt-thumb {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg2);
}
.yt-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}
.yt-thumb:hover img { transform: scale(1.07); }

/* Overlay play au hover */
.yt-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E")
    center/22px no-repeat;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
}
.yt-thumb:hover::after {
  background-color: rgba(0,0,0,0.32);
  opacity: 1;
}

/* ═════════════════════════════════════════════════════════════
   WIDGET INSTAGRAM [1×1]
   ═════════════════════════════════════════════════════════════ */
.widget--ig {
  background: linear-gradient(135deg,
    rgba(252,175,69,0.06),
    rgba(225,48,108,0.07),
    rgba(131,58,180,0.06));
}
[data-theme="dark"] .widget--ig {
  background: linear-gradient(135deg,
    rgba(252,175,69,0.07),
    rgba(225,48,108,0.09),
    rgba(131,58,180,0.07));
}
.ig-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}
.ig-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
/* Icône Instagram — fond gradient subtil comme les autres icônes */
.widget--ig .brand-tile__icon-wrap {
  background: linear-gradient(135deg,
    rgba(252,175,69,0.18),
    rgba(225,48,108,0.20),
    rgba(131,58,180,0.18));
}
[data-theme="dark"] .widget--ig .brand-tile__icon-wrap {
  background: linear-gradient(135deg,
    rgba(252,175,69,0.14),
    rgba(225,48,108,0.16),
    rgba(131,58,180,0.14));
}
.ig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  overflow: hidden;
}
.ig-placeholder {
  border-radius: 7px;
  background: rgba(225,48,108,0.11);
  aspect-ratio: 1;
}
[data-theme="dark"] .ig-placeholder {
  background: rgba(225,48,108,0.15);
}

/* Images dans Instagram doivent se comporter correctement */
.ig-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ═════════════════════════════════════════════════════════════
   BRAND TILES COMMUNS (Behance, LinkedIn, Website)
   ═════════════════════════════════════════════════════════════ */
.brand-tile {
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
}
.brand-tile__icon-wrap {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-tile__icon-wrap svg { width: 20px; height: 20px; }

.brand-tile__name { font-size: 0.86rem; font-weight: 700; line-height: 1.2; }
.brand-tile__sub  { font-size: 0.70rem; color: var(--muted2); margin-top: -3px; }

.brand-tile__cta {
  margin-top: auto;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 100px;
  align-self: flex-start;
  transition: opacity 0.2s, transform 0.2s;
}
.card:hover .brand-tile__cta { transform: translateY(-1px); opacity: 0.85; }

/* Instagram CTA */
.brand-tile__cta--ig {
  background: linear-gradient(135deg, #FCAF45, #E1306C, #833AB4);
  color: #fff;
}

/* Behance */
.widget--behance { background: rgba(23,105,255,0.04); }
[data-theme="dark"] .widget--behance { background: rgba(23,105,255,0.07); }
.widget--behance .brand-tile__icon-wrap { background: rgba(23,105,255,0.10); }
.brand-tile__cta--be { background: rgba(23,105,255,0.12); color: #1769FF; }

/* X (Twitter) — fond subtle, texte sombre */
.widget--x {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.06);
}
.widget--x .brand-tile__icon-wrap {
  background: rgba(0,0,0,0.08);
}
.widget--x .brand-tile__icon-wrap svg path { fill: #000; }
.brand-tile__cta--x {
  background: rgba(0,0,0,0.08);
  color: #000;
  font-weight: 700;
}
/* Dark mode — fond blanc subtil, texte clair */
[data-theme="dark"] .widget--x {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .widget--x .brand-tile__icon-wrap {
  background: rgba(255,255,255,0.08);
}
[data-theme="dark"] .widget--x .brand-tile__icon-wrap svg path { fill: #fff; }
[data-theme="dark"] .brand-tile__cta--x {
  background: rgba(255,255,255,0.10);
  color: #fff;
}

/* Website */
.widget--site { background: var(--accent-light); }
.widget--site .brand-tile__icon-wrap {
  background: var(--accent-light);
  border: 1.5px solid rgba(27,67,50,0.18);
}
[data-theme="dark"] .widget--site .brand-tile__icon-wrap {
  border-color: rgba(74,222,128,0.18);
}
/* Le globe utilise stroke, pas fill */
.widget--site .brand-tile__icon-wrap svg {
  stroke: var(--accent);
  fill: none;
  width: 17px; height: 17px;
}
.brand-tile__cta--site { background: var(--accent); color: var(--surface); }

/* ═════════════════════════════════════════════════════════════
   WIDGET CONTACT [span 2]
   ═════════════════════════════════════════════════════════════ */
.contact-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 11px;
}
.contact-inner__heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.3;
}
.contact-inner__email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
  word-break: break-all;
}
.contact-inner__email:hover { opacity: 0.7; }
.contact-inner__email svg { width: 14px; height: 14px; flex-shrink: 0; }
.contact-inner__note {
  font-size: 0.70rem;
  color: var(--muted2);
  margin-top: -4px;
}

/* ═════════════════════════════════════════════════════════════
   WIDGET SERVICES [span 3]
   ═════════════════════════════════════════════════════════════ */
.services-header {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 8px;
}
.services-header__title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}
.services-header__sub { font-size: 0.70rem; color: var(--muted2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.service-card {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.service-card:hover {
  background: var(--accent-light);
  border-color: var(--border2);
  transform: translateY(-2px);
}
.service-card__emoji { font-size: 0.95rem; margin-bottom: 2px; }
.service-card__title { font-size: 0.82rem; font-weight: 600; }
.service-card__desc  { font-size: 0.73rem; color: var(--muted); line-height: 1.5; flex: 1; }
.service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}
.service-card__cta:hover { background: var(--accent); color: var(--surface); }


/* ═════════════════════════════════════════════════════════════
   FLOATING THEME TOGGLE (FAB)
   ═════════════════════════════════════════════════════════════ */
.theme-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(0,0,0,0.18);
}
.theme-fab svg { width: 17px; height: 17px; pointer-events: none; }

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 900px
   ═════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "sidebar"
      "bento"
      "footer";
    padding: 28px 20px 24px;
  }

  .sidebar { position: static; }

  .bento-grid {
    grid-row: auto;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 6px;
  }
  .w-full   { grid-column: span 2; }
  .w-medium { grid-column: span 2; }

  .footer {
    padding-top: 16px;
    padding-bottom: 24px;
    text-align: center;
  }

  /* Profil horizontal sur tablette */
  .profile {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 4px;
  }
  .profile__avatar {
    width: 72px; height: 72px;
    font-size: 1.25rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .profile__details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
  }

  /* YouTube — aspect ratio géré automatiquement */

  /* Instagram — hauteur minimale garantie */
  .widget--ig { min-height: 200px; }
}

/* ── Mobile ≤ 600px ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .page-wrapper { padding: 18px 12px 20px; column-gap: 0; }

  /* Profil vertical sur mobile */
  .profile {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .profile__avatar { width: 80px; height: 80px; margin-bottom: 0; }
  .profile__details { gap: 3px; }

  /* Bento : 2 colonnes, gap réduit */
  .bento-grid { gap: 8px; }

  /* Services : 1 colonne sur petit mobile */
  .services-grid { grid-template-columns: 1fr; }

  /* YouTube — aspect ratio automatique */

  /* Instagram — min-height pour que la grille soit visible */
  .widget--ig { min-height: 190px; }

  .theme-fab { bottom: 14px; right: 14px; width: 38px; height: 38px; }
  .theme-fab svg { width: 15px; height: 15px; }
}

/* ── Très petit mobile ≤ 400px ───────────────────────────────── */
@media (max-width: 400px) {
  .page-wrapper { padding: 14px 10px 16px; }
  .bento-grid { gap: 7px; }
  .card { padding: 14px; }
  /* YouTube — aspect ratio automatique */
  .services-grid { grid-template-columns: 1fr; }
}

/* Thumb fallback (API indisponible) — icône play centrée */
.yt-thumb--fallback {
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.yt-thumb--fallback::before {
  content: '';
  width: 20px; height: 20px;
  background: var(--muted2);
  clip-path: polygon(20% 0%, 100% 50%, 20% 100%);
  opacity: 0.35;
  flex-shrink: 0;
}

/* ═════════════════════════════════════════════════════════════
   ACCESSIBILITÉ — focus-visible, touch-action, reduced-motion
   ═════════════════════════════════════════════════════════════ */

/* Focus visible — navigation clavier */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.card:focus-visible,
.theme-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Touch — désactiver le zoom double-tap sur les éléments interactifs */
a, button, .card, .theme-fab, .btn-subscribe, .brand-tile__cta, .service-card__cta {
  touch-action: manipulation;
}

/* Reduced motion — respecter les préférences système */
@media (prefers-reduced-motion: reduce) {
  /* Désactiver les cercles animés */
  .bg-circle { animation: none !important; }

  /* Désactiver shimmer et pulse */
  .yt-skeleton, .yt-thumb-skeleton { animation: none !important; }
  .badge-available__dot { animation: none !important; }

  /* Ralentir les transitions de cartes */
  .card { transition: none; }
  .widget { animation: none; opacity: 1; }
}
