/* =========================================================
   Académie de Marcy l'Étoile - Aïkido
   Feuille de style globale
   Style : moderne, épuré, accent rouge de la marque
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #faf8f4;
  --bg-dark: #111111;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --text-light: #ffffff;
  --brand: #c5161c;
  --brand-dark: #8e0d12;
  --brand-soft: #fbeaea;
  --border: #ececec;
  --border-strong: #d8d8d8;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 18px 50px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-w: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --transition: 200ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em 0;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 600; }
p  { margin: 0 0 1rem 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Navigation ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-brand img { height: 44px; width: 44px; object-fit: contain; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.nav-brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); }
.nav-cta.is-active::after { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--text);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
  .nav-links li:first-child a { border-top: 0; }
  .nav-cta { margin: 12px 24px; text-align: center; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

/* ----- Hero ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  background:
    radial-gradient(1200px 600px at 100% 0%, rgba(197,22,28,0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0,0,0,0.04), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 span { color: var(--brand); }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  justify-self: end;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -8% auto auto;
  width: 70%;
  height: 70%;
  background: var(--brand-soft);
  border-radius: 50%;
  z-index: 0;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12));
}

@media (max-width: 880px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: center; max-width: 320px; }
}

/* ----- Page header (interior pages) ----- */
.page-header {
  padding: 80px 0 40px;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 12px; }
.page-header p {
  color: var(--text-muted);
  max-width: 720px;
  font-size: 1.08rem;
}

/* ----- Sections ----- */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
section.dark h1, section.dark h2, section.dark h3 { color: var(--text-light); }
section.dark .eyebrow { color: #ff8a8f; }
section.dark p { color: rgba(255,255,255,0.78); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px auto; }
.section-head p { color: var(--text-muted); }

/* ----- Grid utilities ----- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ----- Cards ----- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; }

/* ----- Feature row ----- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }
.feature .feature-visual {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feature .feature-visual img { width: 80%; max-height: 80%; object-fit: contain; }
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse { direction: ltr; }
}

/* ----- Schedule table ----- */
.schedule {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.schedule th, .schedule td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.schedule th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.schedule tr:last-child td { border-bottom: 0; }
.schedule .tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
}
.schedule .tag.adult { background: #eef2ff; color: #4338ca; }
.schedule .tag.kid   { background: #ecfdf5; color: #047857; }
.schedule .tag.all   { background: #fef3c7; color: #92400e; }

/* ----- Price cards ----- */
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: left;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
/* Class .featured retirée : plus de badge "Recommandé" — les deux cartes
   réagissent à l'identique au hover (cf. règles .price-card:hover plus bas). */
.price-card .price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.price-card .price small {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 4px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px 0;
}
.price-card li {
  padding: 8px 0 8px 26px;
  color: var(--text);
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ----- Gallery (techniques) ----- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.tech-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tech-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.tech-card .thumb img { width: 90%; height: 90%; object-fit: contain; }
.tech-card .meta {
  padding: 14px 16px 18px;
}
.tech-card h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}
.tech-card .meta p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ----- Articles (actu/lecture) ----- */
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card .article-cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 22px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.article-card .article-cover .tag {
  display: inline-block;
  align-self: flex-start;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.article-card .article-cover.alt-1 { background: linear-gradient(135deg,#0f172a,#1f2937); }
.article-card .article-cover.alt-2 { background: linear-gradient(135deg,#1d4ed8,#312e81); }
.article-card .article-cover.alt-3 { background: linear-gradient(135deg,#0f766e,#064e3b); }
.article-card .article-cover.alt-4 { background: linear-gradient(135deg,#92400e,#451a03); }
.article-card .body {
  padding: 22px;
}
.article-card .body h3 { margin-bottom: 8px; font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; }
.article-card .body p { color: var(--text-muted); margin: 0 0 14px 0; font-size: 0.95rem; }
.article-card .meta-row {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-muted);
}

/* ----- Book card ----- */
.book {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.book .cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #1a1a1a, #3d3d3d);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  line-height: 1.1;
}
.book .cover.b2 { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.book .cover.b3 { background: linear-gradient(135deg, #0f172a, #475569); }
.book .cover.b4 { background: linear-gradient(135deg, #92400e, #c2410c); }
.book h4 { margin: 0 0 4px 0; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; }
.book .author { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.book p { margin: 0; font-size: 0.95rem; }

/* Carte livre cliquable : aperçu sur 3 lignes avec fondu en bas */
.book.is-clickable {
  cursor: pointer;
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 250ms ease,
              border-color 250ms ease;
}
.book.is-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.10);
  border-color: var(--brand);
}
.book.is-clickable:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.book-body { min-width: 0; }
.book-desc {
  position: relative;
  max-height: calc(0.95rem * 1.5 * 3); /* font-size × line-height × 3 lignes */
  overflow: hidden;
  margin-bottom: 10px;
}
.book-desc p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.book-desc::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.6em;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 95%);
}
.book-more {
  display: inline-block;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 200ms ease;
}
.book.is-clickable:hover .book-more { transform: translateX(4px); }

/* ====== Popup détail d'un livre ====== */
.lecture-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
  font-family: var(--font-sans);
}
.lecture-modal.is-open { opacity: 1; }
.lecture-modal.is-closing { opacity: 0; }
.lecture-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.lecture-modal-dialog {
  position: relative;
  width: min(820px, 94vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: translateY(20px) scale(0.97);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.lecture-modal.is-open .lecture-modal-dialog {
  transform: translateY(0) scale(1);
}
.lecture-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: background 200ms ease, transform 200ms ease;
}
.lecture-modal-close:hover { background: var(--brand); color: #fff; transform: scale(1.08); }
.lecture-modal-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 36px 36px 36px 32px;
  overflow-y: auto;
}
@media (max-width: 680px) {
  .lecture-modal-body { grid-template-columns: 1fr; padding: 28px 22px; gap: 22px; }
}
.lecture-modal-cover {
  align-self: start;
}
.lecture-modal-cover img,
.lecture-modal-cover-fallback {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  display: block;
}
.lecture-modal-cover-fallback {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}
.lecture-modal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin: 0 0 4px 0;
  color: var(--text);
  line-height: 1.15;
}
.lecture-modal-author {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0 0 20px 0;
  font-style: italic;
}
.lecture-modal-desc {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 24px;
}
.lecture-modal-desc p { margin: 0 0 12px 0; }
.lecture-modal-desc p:last-child { margin-bottom: 0; }
.lecture-modal-cta {
  display: inline-flex;
  align-items: center;
}

/* ----- Forms ----- */
.form-grid {
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(197,22,28,0.10);
}
textarea { min-height: 140px; resize: vertical; }

/* ----- CTA banner ----- */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn-primary { background: #fff; color: var(--brand); }
.cta-banner .btn-primary:hover { background: rgba(255,255,255,0.92); color: var(--brand-dark); }
@media (max-width: 880px) {
  .cta-banner { grid-template-columns: 1fr; padding: 36px; text-align: center; }
  .cta-banner .actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.78);
  padding: 60px 0 28px;
  margin-top: 80px;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid a { color: rgba(255,255,255,0.78); display: block; padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; }
.footer-brand strong { color: #fff; font-family: var(--font-serif); font-size: 1.1rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----- Utility ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.muted { color: var(--text-muted); }
.divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}
.badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================================================
   SLIDER (Carousel d'actualités)
   ========================================================= */
.slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  aspect-ratio: 16 / 8;
  max-height: 540px;
}
@media (max-width: 700px) { .slider { aspect-ratio: 4 / 5; max-height: 600px; } }
.slider-track {
  display: flex;
  height: 100%;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slider-slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-dark);
  color: #fff;
}
.slider-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}
.slider-slide .slide-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 40px;
  z-index: 1;
}
.slider-slide .slide-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.slider-slide h3 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin: 0 0 8px 0;
  max-width: 700px;
}
.slider-slide p {
  color: rgba(255,255,255,0.88);
  margin: 0;
  max-width: 600px;
  font-size: 0.95rem;
}
.slider-slide .slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: #fff;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.slider-slide .slide-cta:hover { background: rgba(255,255,255,0.88); color: var(--brand); }
.slider-controls {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  padding: 16px;
  pointer-events: none;
  z-index: 2;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: auto;
  font-size: 1.2rem;
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
.slider-btn:hover { background: #fff; transform: scale(1.05); }
.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  border: 0;
  transition: width var(--transition), background var(--transition);
}
.slider-dot.is-active { width: 26px; border-radius: 999px; background: #fff; }

/* =========================================================
   ARTICLE PAGE (lecture d'un article)
   ========================================================= */
.article-hero {
  padding: 60px 0 30px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.article-hero .meta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.92rem;
  margin-bottom: 18px;
}
.article-hero .meta-row .tag {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.article-hero h1 { margin-bottom: 14px; }
.article-cover-large {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}
.article-cover-large img { width: 100%; height: 100%; object-fit: cover; }
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 50px 24px 30px;
  font-size: 1.08rem;
  line-height: 1.75;
}
.article-content p { margin: 0 0 1.2em 0; }
.article-content h2 {
  margin-top: 1.8em;
  font-size: 1.6rem;
}
.article-content img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 28px 0;
}
.article-content blockquote {
  border-left: 4px solid var(--brand);
  padding: 6px 22px;
  margin: 28px 0;
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0 30px;
  flex-wrap: wrap;
}
.share-bar strong { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.share-btn:hover { background: var(--text); color: #fff; border-color: var(--text); }
.share-btn.fb:hover    { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-btn.ig:hover    { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); border-color: transparent; color: #fff; }
.share-btn.link:hover  { background: var(--brand); border-color: var(--brand); color: #fff; }

.related {
  background: var(--bg-soft);
  padding: 60px 0;
}

/* =========================================================
   FOOTER DISCREET MEMBER ACCESS
   ========================================================= */
.footer-bottom .member-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-serif);
  font-size: 1rem;
  text-decoration: none;
  margin-left: 12px;
  transition: all var(--transition);
}
.footer-bottom .member-glyph:hover {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

/* =========================================================
   WYSIWYG EDITOR
   ========================================================= */
body.edit-mode { padding-top: 56px; }
.editor-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: #111;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  font-size: 0.92rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.editor-bar .editor-actions { flex-shrink: 0; flex-wrap: nowrap; }
@media (max-width: 700px) {
  body.edit-mode { padding-top: 0; }
  .editor-bar {
    position: sticky;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .editor-bar .editor-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .editor-bar button { font-size: 0.78rem; padding: 6px 10px; }
}
body.edit-mode .editor-bar { display: flex; }
.editor-bar .editor-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.editor-bar .editor-status::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; transform: scale(1.2); }
}
.editor-bar .editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.editor-bar button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}
.editor-bar button:hover { background: rgba(255,255,255,0.08); border-color: #fff; }
.editor-bar button.primary { background: var(--brand); border-color: var(--brand); }
.editor-bar button.primary:hover { background: var(--brand-dark); }
.editor-bar button.danger:hover { background: var(--brand); border-color: var(--brand); }

/* Indicateurs d'édition très discrets : pas de bordure dashed permanente
   (qui faisait des "carrés rouges" autour des cellules de tableau).
   Au survol : surlignage très léger. En focus : trait sous le bloc, façon
   éditeur de texte. */
body.edit-mode [data-editable] {
  outline: none;
  border-radius: 4px;
  transition: background 150ms ease, box-shadow 150ms ease;
}
body.edit-mode [data-editable]:hover {
  background: rgba(197,22,28,0.04);
  box-shadow: inset 0 0 0 1px rgba(197,22,28,0.18);
}
body.edit-mode [data-editable]:focus {
  outline: none;
  background: rgba(197,22,28,0.06);
  box-shadow: inset 0 0 0 1.5px rgba(197,22,28,0.55);
}

/* Cas particulier : un <th> éditable doit garder ses dimensions de
   cellule sans déborder. */
body.edit-mode th[data-editable] {
  cursor: text;
}

body.edit-mode [data-editable-img] {
  position: relative;
  cursor: pointer;
  outline: 1.5px dashed rgba(197,22,28,0.3);
  outline-offset: 4px;
  border-radius: 6px;
}
body.edit-mode [data-editable-img]::after {
  content: "📷 Cliquer pour remplacer";
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(17,17,17,0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 5;
}
body.edit-mode [data-editable-img]:hover::after { opacity: 1; }

body.edit-mode [data-sortable] {
  outline: 1px dashed rgba(0,0,0,0.08);
  outline-offset: 6px;
  position: relative;
  border-radius: 4px;
  transition: outline-color var(--transition);
}
body.edit-mode [data-sortable]:hover { outline-color: rgba(197,22,28,0.25); }
body.edit-mode [data-sortable]::before {
  content: "⠿";
  position: absolute;
  top: 4px; left: -28px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: #111;
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: grab;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 10;
}
body.edit-mode [data-sortable]:hover::before { opacity: 1; }

/* Sections déplaçables : la poignée est plus grosse et visible en permanence */
body.edit-mode main > section[data-sortable] {
  outline: 1px dashed rgba(197,22,28,0.20);
  outline-offset: -4px;
}
body.edit-mode main > section[data-sortable]:hover {
  outline-color: var(--brand);
}
body.edit-mode main > section[data-sortable]::before {
  content: "⠿ Déplacer la section";
  width: auto;
  height: auto;
  top: 8px; left: 8px;
  padding: 6px 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.4;
  cursor: grab;
}
body.edit-mode main > section[data-sortable]:hover::before {
  opacity: 1;
}

body.edit-mode .sortable-ghost {
  opacity: 0.4;
  background: var(--brand-soft);
}

/* ----- Listes dynamiques (ajout / suppression) ----- */
body.edit-mode [data-list-item] {
  position: relative;
  min-height: 24px; /* garantit la zone cliquable même pour un item vide */
}
.list-remove-btn {
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(197,22,28,0.35);
  font-family: inherit;
  padding: 0;
}
body.edit-mode .list-remove-btn { display: inline-flex; }
.list-remove-btn:hover {
  background: var(--brand-dark);
  transform: translateY(-50%) scale(1.15);
}

/* Pour les LI dans une UL : le bouton ne doit pas être coupé par overflow */
body.edit-mode ul[data-list-container] {
  overflow: visible !important;
}
body.edit-mode ul[data-list-container] [data-list-item] {
  padding-right: 28px !important;
}

.list-add-btn {
  display: none;
  background: transparent;
  border: 1.5px dashed var(--brand);
  color: var(--brand);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 14px auto;
  font-family: inherit;
  transition: all var(--transition);
}
body.edit-mode .list-add-btn { display: inline-block; }
.list-add-btn:hover {
  background: var(--brand);
  color: #fff;
  border-style: solid;
}

/* Pour les tables : le list-remove-btn doit rester dans la cellule */
body.edit-mode tbody[data-list-container] tr[data-list-item] {
  /* td contiendra le bouton — on le rend visible */
}
body.edit-mode tbody[data-list-container] .list-remove-btn {
  position: static;
  margin-left: 6px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 200ms ease;
  z-index: 2000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Auth modal for editor */
.editor-auth {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  padding: 20px;
}
.editor-auth.show { display: flex; }
.editor-auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.editor-auth-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 8px 0;
}
.editor-auth-card p { color: var(--text-muted); margin-bottom: 22px; }
.editor-auth-card input {
  text-align: center;
  letter-spacing: 0.1em;
}
.editor-auth-card .actions {
  display: flex; gap: 10px;
  justify-content: center; margin-top: 16px;
}

/* =========================================================
   MAINTENANCE OVERLAY
   ========================================================= */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #1a0606 0%, #000 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.maintenance-card {
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: var(--radius-lg);
  padding: 56px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  color: #fff;
  position: relative;
  box-shadow: 0 30px 80px rgba(220, 38, 38, 0.2);
}
.maintenance-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.4));
}
.maintenance-card h1 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0 0 14px 0;
  font-family: var(--font-serif);
}
.maintenance-card p {
  color: rgba(255,255,255,0.78);
  margin: 0 0 14px 0;
  white-space: pre-line;
}
.maintenance-card .maintenance-contact {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  margin-top: 22px;
}
.maintenance-card .maintenance-contact a { color: var(--brand); }
.maintenance-bypass {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  font-family: var(--font-serif);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: all var(--transition);
}
.maintenance-bypass:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 800;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 18px 22px;
  max-width: 760px;
  margin: 0 auto;
}
.cookie-banner-inner {
  display: flex;
  gap: 20px;
  align-items: center;
}
.cookie-text { flex: 1; font-size: 0.92rem; line-height: 1.5; }
.cookie-text strong { display: block; margin-bottom: 4px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn { padding: 9px 16px; font-size: 0.88rem; }
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column-reverse; }
  .cookie-actions .btn { width: 100%; }
}

/* =========================================================
   MODAL admin (maintenance / membres)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.modal-card h3 {
  margin: 0 0 16px 0;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.modal-card .modal-body { font-size: 0.95rem; }
.modal-card .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* =========================================================
   TOGGLE Membre / Admin (utilisé sur membres.html et popup admin)
   ========================================================= */
.login-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
  max-width: 360px;
  margin: 0 auto 22px auto;
}
.login-toggle label {
  flex: 1;
  text-align: center;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  margin-bottom: 0;
}
.login-toggle input[type="radio"] { display: none; }
.login-toggle input[type="radio"]:checked + span {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(197,22,28,0.25);
}
.login-toggle label span {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all var(--transition);
}

/* =========================================================
   LOGIN MEMBRES
   ========================================================= */
.member-login {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 460px;
  margin: 0 auto;
}
.member-login h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 8px 0;
}
.member-dashboard {
  max-width: 760px;
  margin: 0 auto;
}

/* =========================================================
   ANIMATIONS DÉCORATIVES SUBTILES
   Touches japonisantes discrètes : tirets d'encre, pulsations,
   réactions au hover qui rappellent le geste martial.
   ========================================================= */

/* Logo Kobayashi : présentation sobre, légère respiration */
.kobayashi-visual {
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.kobayashi-logo {
  max-width: 320px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(197,22,28,0.20));
  animation: kobayashi-breathe 6s ease-in-out infinite;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.kobayashi-logo:hover {
  transform: rotate(6deg) scale(1.04);
}
@keyframes kobayashi-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
  .kobayashi-logo { animation: none; }
}

/* Trait d'encre qui se dessine sous les eyebrows au hover */
.section-head .eyebrow,
.page-header .eyebrow,
.hero .eyebrow,
.feature .eyebrow {
  position: relative;
  display: inline-block;
}
.section-head .eyebrow::after,
.page-header .eyebrow::after,
.hero .eyebrow::after,
.feature .eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 400ms cubic-bezier(0.2, 0.8, 0.2, 1), left 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.section-head:hover .eyebrow::after,
.page-header:hover .eyebrow::after,
.hero:hover .eyebrow::after,
.feature:hover .eyebrow::after {
  width: 48px;
  left: calc(50% - 24px);
}
/* Eyebrows alignés à gauche (dans .feature) : trait à gauche */
.feature .eyebrow::after { left: 0; }
.feature:hover .eyebrow::after { left: 0; width: 48px; }

/* Icones kanji des cartes : rotation/pulsation discrète au hover */
.card .icon {
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background 300ms ease;
}
.card:hover .icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--brand);
  color: #fff;
}

/* Boutons primary : effet de "vague" au hover */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(100%); }

/* Cards de prix : ombre brand au hover + léger soulèvement */
.price-card {
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 400ms ease,
              border-color 300ms ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(197,22,28,0.18);
  border-color: var(--brand);
}

/* Tech-cards (galerie de saisies) : effet doux */
.tech-card .thumb img {
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tech-card:hover .thumb img {
  transform: scale(1.06);
}

/* Article cards : élévation + cover qui zoome */
.article-card .article-cover {
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.article-card:hover .article-cover {
  transform: scale(1.04);
}

/* Logo du nav : très léger sursaut quand on passe la souris */
.nav-brand img {
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-brand:hover img {
  transform: rotate(-4deg) scale(1.06);
}

/* 弟 du footer : frémit au hover (clin d'œil sympa pour les admins) */
.member-glyph {
  transition: all 250ms ease;
}
.member-glyph:hover {
  animation: deshi-shake 0.5s ease;
}
@keyframes deshi-shake {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg) scale(1.1); }
  75%      { transform: rotate(8deg) scale(1.1); }
}

/* Slider dots : effet de respiration sur l'actif */
.slider-dot.is-active {
  animation: dot-breath 2s ease-in-out infinite;
}
@keyframes dot-breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0.15); }
}

/* Icônes des cours-tarifs (étapes 1/2/3/4) : numéro qui "pulse" au hover */
.grid-4 .card .icon {
  transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.grid-4 .card:hover .icon {
  transform: scale(1.15);
}

/* Slide-in subtile pour les sections au scroll (CSS-only, sans JS) */
@media (prefers-reduced-motion: no-preference) {
  main > section {
    animation: fadeUp 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Désactiver toutes les animations pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   SECTION INSTAGRAM (homepage)
   Grille de 3 vignettes éditables — capture/photo + légende +
   date + lien direct vers le compte Instagram.
   ========================================================= */

/* Garde-fou GLOBAL : tous les SVG inline ont une taille max raisonnable */
svg { max-width: 100%; height: auto; }
.btn svg, a svg, button svg { width: 1em; height: 1em; flex-shrink: 0; }
.btn svg { width: 18px; height: 18px; }

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .instagram-grid { grid-template-columns: 1fr; }
}

.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #111;
  border: 1px solid var(--border);
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 350ms ease;
  isolation: isolate;
}
.ig-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

/* Backdrop flou : duplique l'image en fond, agrandie + floutée, pour
   éviter les bandes noires quand l'image ne fait pas le ratio 4:5.
   Le JS pose la variable --ig-bg sur .ig-post au moment du rendu. */
.ig-post::before {
  content: '';
  position: absolute;
  inset: -10px;
  background-image: var(--ig-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(28px) saturate(1.3);
  opacity: 0.55;
  z-index: 0;
  transition: opacity 400ms ease;
}
.ig-post:hover::before { opacity: 0.7; }

/* L'image principale, en entier (contain), centrée par-dessus le backdrop. */
.ig-post-cover {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.ig-post:hover .ig-post-cover { transform: scale(1.04); }

.ig-post-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.85) 100%);
}

.ig-post-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.ig-post-icon svg { width: 18px; height: 18px; }

.ig-post-caption {
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ig-post-date {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* Bouton CTA "voir tous les posts" sous la grille */
.ig-follow-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(221,42,123,0.25);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.ig-follow-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(221,42,123,0.35);
}
.ig-follow-cta svg { width: 20px; height: 20px; }

/* Filter chips & pagination */
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all var(--transition);
}
.filter-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.filter-chip.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.articles-pager,
.articles-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Articles list */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.article-card-link {
  text-decoration: none;
  color: inherit;
}
.article-card-link .article-card { height: 100%; cursor: pointer; }
.article-card .article-cover {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.article-card .article-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.article-card .article-cover .tag { position: relative; z-index: 1; }
.article-card .article-cover h3 { position: relative; z-index: 1; }

/* =========================================================
   VISUALISEUR DE MÉDIA (modale ouverte au clic sur une image
   en mode édition)
   ========================================================= */
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}
.media-modal.is-open { display: flex; }
.media-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.media-modal-dialog {
  position: relative;
  width: min(960px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  animation: media-pop 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes media-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.media-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.media-modal-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
}
.media-modal-close {
  width: 32px; height: 32px;
  border: 0;
  background: var(--bg-soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: background 200ms ease;
}
.media-modal-close:hover { background: var(--border); }

.media-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 22px 0;
  border-bottom: 1px solid var(--border);
}
.media-tab {
  border: 0;
  background: transparent;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.media-tab:hover { color: var(--text); }
.media-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.media-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  background: #fafafa;
}
.media-pane[hidden] { display: none; }

.media-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.media-search {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}
.media-search:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.media-filter {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.92rem;
  background: #fff;
  font-family: inherit;
}
.media-reload {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 300ms ease;
}
.media-reload:hover { transform: rotate(180deg); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.media-empty,
.media-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.media-error strong { display: block; color: var(--brand); margin-bottom: 6px; }
.media-error p { margin-bottom: 14px; font-size: 0.92rem; }

.media-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: var(--brand);
}
.media-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  cursor: pointer;
  overflow: hidden;
}
.media-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.media-card:hover .media-card-thumb img { transform: scale(1.05); }
.media-card-thumb--broken {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px;
}
.media-card-info {
  padding: 8px 10px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.media-card-info strong {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}
.media-card-info span { color: var(--text-muted); }
.media-card-delete {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border: 0;
  background: rgba(197,22,28,0.9);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}
.media-card:hover .media-card-delete { opacity: 1; }
.media-card-delete:hover { transform: scale(1.15); }

.media-dropzone {
  display: block;
  cursor: pointer;
  border: 2.5px dashed var(--border-strong);
  border-radius: 14px;
  background: #fff;
  transition: border-color 200ms ease, background 200ms ease;
}
.media-dropzone:hover,
.media-dropzone.is-drag {
  border-color: var(--brand);
  background: rgba(197,22,28,0.04);
}
.media-dropzone-inner {
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.media-dropzone-icon {
  font-size: 2.4rem;
  color: var(--brand);
  margin-bottom: 4px;
}
.media-dropzone-inner strong {
  font-size: 1.05rem;
  color: var(--text);
}
.media-dropzone-inner span {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.media-dropzone-inner code {
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.media-upload-progress {
  margin-top: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.media-upload-bar {
  height: 6px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.media-upload-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #f06a6f);
  width: 0;
  transition: width 200ms ease;
}
.media-upload-status {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.media-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.media-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.media-cancel {
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 200ms ease;
}
.media-cancel:hover { background: var(--bg-soft); }

@media (max-width: 600px) {
  .media-modal-dialog { max-height: 96vh; }
  .media-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .media-toolbar { flex-wrap: wrap; }
  .media-search { width: 100%; }
}

/* =========================================================
   REDIMENSIONNEMENT DES COLONNES DE TABLEAUX (mode édition)
   ========================================================= */
.col-resize-handle {
  display: none;
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
  user-select: none;
}
body.edit-mode th[data-editable] .col-resize-handle,
body.edit-mode table[data-edit-key] th .col-resize-handle {
  display: block;
}
body.edit-mode .col-resize-handle::after {
  content: '';
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 3px;
  width: 2px;
  background: rgba(197,22,28,0.18);
  border-radius: 2px;
  transition: background 150ms ease;
}
body.edit-mode .col-resize-handle:hover::after,
body.col-resizing .col-resize-handle::after {
  background: var(--brand);
}
body.col-resizing {
  cursor: col-resize !important;
  user-select: none;
}
body.col-resizing * {
  pointer-events: none;
}

/* =========================================================
   COLONNE "LIEN" SUR LES TABLEAUX
   ========================================================= */
.schedule th.th-link {
  width: 56px;
  text-align: center;
  padding: 12px 8px;
}
.schedule th.th-link svg {
  display: inline-block;
  vertical-align: middle;
  color: var(--text-muted);
}

.schedule td[data-link-cell] {
  text-align: center;
  vertical-align: middle;
  position: relative;
  padding: 12px 8px;
  width: 56px;
}

/* Pictogramme cliquable quand un URL est défini */
.link-cell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--brand);
  background: rgba(197,22,28,0.08);
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}
.link-cell-icon:hover {
  background: var(--brand);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(197,22,28,0.30);
}
.link-cell-icon svg { display: block; }

/* État vide : tiret discret */
.link-cell-empty {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 1rem;
  font-weight: 400;
}

/* ----- Mode édition : bouton "+ Lien" affiché à la place du tiret ----- */
.link-cell-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px dashed var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
}
.link-cell-add:hover {
  background: var(--brand);
  color: #fff;
  border-style: solid;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(197,22,28,0.30);
}
.link-cell-add svg { display: block; }
.link-cell-add span { line-height: 1; }

/* Bouton ✏️ pour MODIFIER un lien existant en mode édition */
.link-cell-edit {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.72rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: background 200ms ease, transform 200ms ease;
}
.link-cell-edit:hover { background: var(--brand); color: #fff; transform: scale(1.15); }

/* En édition, surligne la colonne pour rappeler à l'admin où mettre un lien */
body.edit-mode .schedule td[data-link-cell] {
  background: rgba(197,22,28,0.025);
}
body.edit-mode .schedule td[data-link-cell]:hover {
  background: rgba(197,22,28,0.07);
}

/* =========================================================
   INSTAGRAM CARDS — mode édition + popup détail
   ========================================================= */

/* Bouton "🔗 Lier au post" : visible uniquement en mode édition */
.ig-post-edit-link {
  display: none;
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 10;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.edit-mode .ig-post-edit-link {
  display: inline-flex;
}
.ig-post-edit-link:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(221,42,123,0.45);
}

/* En édition, .ig-post n'est plus cliquable (pas de popup) */
body.edit-mode .ig-post { cursor: default; }
body:not(.edit-mode) .ig-post { cursor: pointer; }
.ig-post:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ====== Popup détail d'un post Instagram ====== */
.ig-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease;
  font-family: var(--font-sans);
}
.ig-modal.is-open { opacity: 1; }
.ig-modal.is-closing { opacity: 0; }
.ig-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.ig-modal-dialog {
  position: relative;
  width: min(540px, 94vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform: translateY(20px) scale(0.97);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.ig-modal.is-open .ig-modal-dialog {
  transform: translateY(0) scale(1);
}
.ig-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: background 200ms ease, transform 200ms ease;
}
.ig-modal-close:hover {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  color: #fff;
  transform: scale(1.08);
}

.ig-modal-body {
  overflow-y: auto;
  background: #fafafa;
}
.ig-modal-embed {
  background: #fafafa;
  padding: 12px 12px 0;
}
.ig-modal-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.ig-modal-fallback {
  padding: 20px;
}
.ig-modal-fallback img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.ig-modal-fallback-text {
  padding-top: 16px;
}
.ig-modal-caption {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 8px 0;
  color: var(--text);
}
.ig-modal-date {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 14px 0;
}
.ig-modal-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 12px 0 0 0;
}
.ig-modal-footer {
  padding: 16px 20px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
.ig-modal-cta {
  /* hérite de .ig-follow-cta */
}
