 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #F2F4F0;
      --ink: #1A1F18;
      --ink-soft: #5F6B5A;
      --accent: #2D6A3F;
      --accent-light: #E2EDE5;
      --border: #CDD4C8;
      --white: #F8FAF6;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--ink);
      font-family: 'Source Serif 4', Georgia, serif;
      font-weight: 300;
      line-height: 1.6;
      min-height: 100vh;
    }

  /* ══ NAVBAR FUSIONNÉE ══ */

    .navbar {
      position: sticky;
      top: 0;
      z-index: 100;

      background: var(--white);
      border-bottom: 3px solid var(--accent);

      display: flex;
      align-items: center;

      padding: 0 1.5rem;
      gap: 1rem;

      min-height: 50px;
 
      box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    }

  /* LOGO intégré */
    .logo {
      font-family: 'Unbounded', sans-serif;
      font-weight: 900;
      font-size: 0.92rem;
      letter-spacing: -0.02em;

      color: var(--ink);
      text-decoration: none;

      display: flex;
      align-items: center;
      gap: 10px;

      cursor: pointer;

      margin-right: 1rem;
      flex-shrink: 0;
    }

    .logo-icon {
      width: 70px;
      height: 70px;

      background: var(--accent);

      display: flex;
      align-items: center;
      justify-content: center;

      flex-shrink: 0;
    }

    .logo-sub {
      display: block;

      font-size: 0.45rem;
      font-weight: 400;

      letter-spacing: 0.14em;
      text-transform: uppercase;

      color: var(--ink-soft);

      margin-top: 2px;
    }

  

  /* Onglets */
    .nav-item {
      font-family: 'Unbounded', sans-serif;
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;

      background: transparent;
      border: none;
      border-bottom: 3px solid transparent;

      color: var(--ink-soft);

      padding: 0 1rem;
      height: 50px;

      cursor: pointer;

      display: flex;
      align-items: center;
      gap: 6px;

      white-space: nowrap;

      transition: color 0.2s, background 0.2s;

      margin-bottom: -3px;
    }

    .nav-item:hover {
      color: var(--accent);
      background: var(--accent-light);
    }

    .nav-item.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
      background: var(--accent-light);
    }

    .nav-item svg {
      opacity: 0.5;
      transition: opacity 0.2s;
      flex-shrink: 0;
    }

    .nav-item:hover svg,
    .nav-item.active svg {
       opacity: 1;
    }

   /* Réseaux sociaux */
    .nav-socials {

       display: flex;
       align-items: center;
       gap: 0.7rem;
       padding-left: 1rem;
       flex-shrink: 0;
    }

    .social-link {
      color: var(--ink-soft);
      display: flex;
      align-items: center;
      transition: color 0.2s;
    }

    .social-link:hover {
      color: var(--accent);
    }


    /* ══ BOUTON RECHERCHE ══ */

    .search-btn {
      flex-shrink: 0;
      color: var(--accent);
      background: transparent;
      border: 2px solid var(--accent);
      border-radius: 6px;
      cursor: pointer;
      margin-left: 0.8rem;
    
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    
      padding: 0.5rem 0.7rem;
      transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .search-btn:hover {
      background: transparent !important;
      color: var(--accent);
      opacity: 0.7;
      transform: translateY(-1px);
    }

    .search-btn svg {
      flex-shrink: 0;
    }

    

    /* ══ FENÊTRE RECHERCHE ══ */

    .search-overlay{

      position:fixed;

      inset:0;

      z-index:10000;

      background:rgba(26,31,24,0.35);

      backdrop-filter:blur(7px);

      -webkit-backdrop-filter:blur(7px);

      display:none;

      align-items:flex-start;
      justify-content:center;

      padding-top:12vh;

    }

    .search-overlay.active{

      display:flex;

    }

    

    .search-box{

      position:relative;

      width:min(700px,90%);

      background:var(--white);

      border:1px solid var(--border);

      box-shadow:0 15px 50px rgba(0,0,0,0.2);

      padding:2rem;

    }

    .search-box h2{

      font-family:'Unbounded', sans-serif;

      font-size:1.1rem;

      margin-bottom:1.2rem;

      color:var(--ink);

    }

    #article-search{

      width:100%;

      padding:1rem 1.2rem;

      font-size:1rem;

      border:1px solid var(--border);

      border-radius:6px;

      background:white;

      color:var(--ink);

    }

    #article-search:focus{

      outline:none;

      border-color:var(--accent);

    }

    .close-search{

      position:absolute;

      top:1rem;
      right:1rem;

      background:none;

      border:none;

      color:var(--ink-soft);

      font-size:1.2rem;

      cursor:pointer;

      padding:0.3rem;

    }

    .close-search:hover{

      color:var(--accent);

    }

    #search-results{

      margin-top:1.5rem;

      max-height:60vh;

      overflow-y:auto;

    }
    
    /* ══ PANELS ══ */
    .tab-panel { display: none; }
    .tab-panel.active { display: block; animation: fadeUp 0.3s ease both; }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ══ HERO (Articles) ══ */
    .hero {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      padding: 3.5rem 3rem 2.5rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      align-items: end;
    }

    .hero-eyebrow {
      font-family: 'Unbounded', sans-serif;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.9rem;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .hero-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); }

    .hero-title {
      font-family: 'Unbounded', sans-serif;
      font-size: clamp(2.4rem, 4.5vw, 4.2rem);
      font-weight: 900;
      line-height: 0.92;
      letter-spacing: -0.04em;
      color: var(--ink);
    }
    .hero-title em { color: var(--accent); font-style: normal; }

    .hero-desc {
      font-size: 1rem;
      color: var(--ink-soft);
      line-height: 1.75;
      font-style: italic;
      max-width: 400px;
      margin-bottom: 1.5rem;
    }

    .hero-stats { display: flex; gap: 2.5rem; }
    .stat { display: flex; flex-direction: column; gap: 3px; }
    .stat-num { font-family: 'Unbounded', sans-serif; font-size: 1.4rem; font-weight: 700; line-height: 1; color: var(--ink); }
    .stat-lbl { font-family: 'Unbounded', sans-serif; font-size: 0.57rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }



    .search-container{

    margin-bottom:2rem;

    }

    #article-search{

    width:100%;

    padding:1rem;

    font-size:1rem;

    border:1px solid var(--border);

    border-radius:8px;

    background:white;

    color:var(--ink);

   }

   #article-search:focus{

    outline:none;

    border-color:var(--accent);

   }

    /* ══ GRILLE ARTICLES ══ */
    .articles-section { padding: 2.5rem 3rem 4rem; }

    .section-label {
      font-family: 'Unbounded', sans-serif;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--ink-soft);
      margin-bottom: 1.6rem;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

    .articles-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
    }

    .placeholder {
      grid-column: span 12;
      background: var(--white);
      padding: 5rem 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1rem;
      text-align: center;
    }

    .placeholder-ring {
      width: 54px; height: 54px;
      border: 2px dashed var(--border);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--border);
    }

    .placeholder h3 { font-family: 'Unbounded', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--ink); }
    .placeholder p { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; max-width: 340px; line-height: 1.65; }

    /* ══ PAGE HERO (autres onglets) ══ */
    .page-hero {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      padding: 3.5rem 3rem 2.5rem;
    }

    .page-eyebrow {
      font-family: 'Unbounded', sans-serif;
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 0.8rem;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .page-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); }

    .page-hero h2 {
      font-family: 'Unbounded', sans-serif;
      font-size: clamp(1.8rem, 3.5vw, 3rem);
      font-weight: 900;
      letter-spacing: -0.03em;
      line-height: 1.05;
      color: var(--ink);
      margin-bottom: 0.9rem;
    }

    .page-hero p { font-size: 1rem; color: var(--ink-soft); font-style: italic; max-width: 540px; line-height: 1.7; }


    .articles-sort{

    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:0.5rem;

    margin-bottom:1.5rem;

    }

   .articles-sort select{

    width: 140px;
    
    padding:0.5rem;

    border:1px solid var(--border);

    border-radius:6px;

    background:white;

    cursor:pointer;

    }

    /* ══ LIENS ══ */
    .links-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      margin: 2.5rem 3rem 4rem;
    }

    .link-card {
      background: var(--white);
      padding: 1.8rem 2rem;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      text-decoration: none;
      transition: background 0.2s;
    }
    .link-card:hover { background: var(--accent-light); }

    .link-card-icon {
      width: 38px; height: 38px;
      background: var(--accent-light);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-top: 2px;
    }

    .link-card-title { font-family: 'Unbounded', sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 4px; }
    .link-card-desc { font-size: 0.85rem; color: var(--ink-soft); font-style: italic; line-height: 1.55; display: block; margin-bottom: 6px; }
    .link-card-url { font-family: 'Unbounded', sans-serif; font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }

    /* ══ FOOTER ══ */
    footer {
      border-top: 1px solid var(--border);
      padding: 1.8rem 3rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--white);
    }

    .footer-brand { font-family: 'Unbounded', sans-serif; font-size: 0.85rem; font-weight: 900; color: var(--ink); }
    .footer-copy { font-family: 'Unbounded', sans-serif; font-size: 0.55rem; color: var(--ink-soft); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px; }
    .footer-links { display: flex; gap: 2rem; list-style: none; }
    .footer-links a { font-family: 'Unbounded', sans-serif; font-size: 0.6rem; color: var(--ink-soft); text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s; }
    .footer-links a:hover { color: var(--accent); }

    /* ══ RESPONSIVE ══ */
    @media (max-width: 860px) {
      .site-header, footer { padding: 0 1.5rem; }
      .navbar { padding: 0 0.5rem; }
      .nav-item { padding: 0 0.9rem; font-size: 0.62rem; }
      .hero { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
      .articles-section, .page-hero { padding-left: 1.5rem; padding-right: 1.5rem; }
      .links-grid { grid-template-columns: 1fr; margin: 1.5rem 1.5rem 3rem; }
      footer { flex-direction: column; gap: 1rem; height: auto; padding: 1.5rem; text-align: center; }
    }

    /* ══ CONTENU TEXTUEL ══ */
.contenu {
  max-width: 740px;
  padding: 3rem 3rem 5rem;
}

.contenu h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.contenu p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.contenu p + p {
  margin-top: 0;
}

.concept-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 3rem;
  padding: 2.5rem 3rem 5rem;
  align-items: start;
}

.concept-images {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.concept-images img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  padding: 4px;
  background: var(--white)
}

.concept-layout .contenu {
  max-width: none;
  padding: 0;
}

/* ══ CARDS ARTICLES ══ */
.article-card {
  grid-column: span 4;
  background: var(--white);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.article-card:hover { background: var(--accent-light); }
.article-card:hover::after { width: 100%; }

.article-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.article-badge {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.article-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.6;
  flex: 1;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-family: 'Unbounded', sans-serif;
  font-size: 0.58rem;
  color: var(--ink-soft);
}

.article-lire {
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 860px) {
  .article-card { grid-column: span 12; }
}

/* ══ PAGE ARTICLE ══ */
#page-article {
  display: none;
}

#page-article.active {
  display: block;
  animation: fadeUp 0.3s ease both;
}

.article-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 3rem 2.5rem;
}

.article-retour {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2rem;
  padding: 0;
}

.article-retour:hover { opacity: 0.7; }

.article-header h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1rem;
}

.article-meta {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  display: flex;
  gap: 1.5rem;
}

.article-img {
  display: block;
  max-width: 740px;
  width: 100%;
  margin: 2rem auto;
  object-fit: contain;
}

.article-contenu {
  max-width: 850px;
  margin: 0 auto; /* 🔥 centre */
  padding: 3rem 1.5rem 5rem;
  font-size: 1.3rem;
  line-height: 1.85;
}

.article-contenu p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.article-contenu a {
  color: var(--accent);
  text-decoration: underline;
}

.nav-socials {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1.5rem;
}

.social-link {
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.social-link:hover { color: var(--accent); }

.article-contenu strong {
  font-weight: 700;
  color: var(--ink);
}

.article-contenu em {
  font-style: italic;
}

.img-gauche {
  float: left;
  width: 280px;
  margin: 0 2rem 1.5rem 0;
}

.img-droite-article {
  float: right;
  width: 280px;
  margin: 0 0 1.5rem 2rem;
}

.article-contenu::after {
  content: '';
  display: table;
  clear: both;
}

.video-wrap{
    width:100%;
    max-width:700px;

    margin:2rem auto;

    aspect-ratio:16/9;

    overflow:hidden;

    border-radius:12px;
}

.video-wrap iframe{
    width:100%;
    height:100%;
    border:none;
    display:block;
}

.article-contenu{
    overflow:hidden;
}

/* ══ ADMIN PANEL ══ */
.hidden { display: none; }

#admin-panel {
  padding: 2rem;
  background: #fff;
  border: 1px solid #ccc;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

#admin-panel input, #admin-panel textarea {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.4rem;
}

.hidden-btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  opacity: 0.1;
  z-index: 10000;
}

/* Bloc général d'image + texte */

/* ══ BLOCS IMAGE — remplace toutes les anciennes règles ══ */

.bi-droite{
  float:right;
  width:320px;
  margin:0 0 1rem 2rem;
}

.bi-gauche{
  float:left;
  width:320px;
  margin:0 2rem 1rem 0;
}

.bi-center{
  display:block;
  width:100%;
  margin:1.5rem auto;
}

.bf{
  clear:both;
}

/* Bloc 2 images côte à côte */
.bloc-2img {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1rem 0;
}

.bloc-2img-item {
  width: calc(50% - 0.5rem);
  border: 1px solid var(--border);
  padding: 4px;
  background: var(--white);
  object-fit: cover;
}

/* Texte dans article — ne pas affecter les blocs */
.article-contenu > p {
  font-size: 1rem;
  color: #000;
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.art-intro {
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 1.5rem;
}

#article-texte{
  max-width:1100px;
  margin:1px auto;
  padding:30px;

  border:1px solid #e5e5e5;   /* encadré fin */
  background:#fff;

  font-size:18px;
  line-height:1.7;
  color:#000;

  text-align:justify; /* texte aligné */
}

/* Optionnel : encadrer chaque bloc pour admin */
.bloc-admin {
  border: 1px solid #cdd4c8;
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.article-intro {
  font-weight: bold;
  margin-bottom: 1.5rem; /* garde un espace après l’intro */
  font-size: 1.1rem;     /* optionnel : légèrement plus grand */
}

.editor{
  min-height:140px;
  background:white;
  border:1px solid #cdd4c8;
  border-radius:4px;
  padding:0.8rem;
  font-family:Georgia, serif;
  line-height:1.7;
}

.editor:focus{
  outline:none;
  border-color:#2d6a3f;
}

.article-video{
    display:block;
    width:80%;
    max-width:700px;
    margin:1.5rem auto;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.15);
}


#mobile-menu-btn{
    display:none;
}

.nav-links{
    display:flex;

    flex:1;

    justify-content:center;

    align-items:center;

}



.nav-links .nav-item{
    flex-shrink:0;
}

@media (max-width:768px){

    /* Affiche le bouton hamburger */
    #mobile-menu-btn{
        display:block;
        background:none;
        border:none;
        font-size:2rem;
        color:#2d6a3f;
        cursor:pointer;
    }

    /* Cache les onglets */
    .nav-links{
        display:none;
        flex-direction:column;
        width:100%;
        gap:1rem;
        margin-top:1rem;
    }

    /* Affiche les onglets quand le menu est ouvert */
    .nav-links.active{
        display:flex;
    }

    /* Navbar sur mobile */
    .navbar{
        display:flex;
        justify-content:space-between;
        align-items:center;
        flex-wrap:wrap;
    }

    @media (max-width: 768px) {
     .search-btn {
        display: none !important;
     }
    }

    .page-article{

        width:100%;

        max-width:100%;

        padding:0;

    }

    

    .article-contenu{

        width:100%;

        max-width:100%;

        margin:0;

        border-radius:0;

        padding:1rem;

        box-sizing:border-box;

    }


    .bi-gauche,
    .bi-droite,
    .bi-center{

        width:100%;

        max-width:100%;

        float:none;

        margin:1rem 0;

    }

    
}

/* interface admin  */
    body{ font-family: 'Unbounded', sans-serif; padding: 2rem; background: #f8faf6; color: #1a1f18; }
    h1 { margin-bottom: 2rem; }
    #login-box { max-width: 300px; margin-bottom: 2rem; }
    input, textarea, select { padding: 0.6rem; font-size: 1rem; border: 1px solid #cdd4c8; border-radius: 4px; width: 100%; }
    textarea { min-height: 120px; }
    button { padding: 0.8rem; font-weight: 700; background: #2d6a3f; color: white; border: none; cursor: pointer; border-radius: 4px; }
    button:hover { background: #24532f; }
    form { display: flex; flex-direction: column; gap: 1rem; max-width: 600px; }
    .hidden { display: none; }

    /* Blocs image + texte */
    .bloc-admin { border: 1px solid #cdd4c8; padding: 0.5rem; border-radius: 4px; margin-bottom: 1rem; }
    .bloc-image { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
    .bloc-image img { max-width: 40%; height: auto; }
    .bloc-image.droite { flex-direction: row-reverse; }
    

    /* Bloc introduction */
    .article-intro { font-weight: 500; margin-bottom: 1.5rem; font-size: 1.1rem; }

    .editor-toolbar {
      display: flex;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
    }

    .editor-toolbar button {
      padding: 0.45rem 0.7rem;
      background: #fff;
      color: #1a1f18;
      border: 1px solid #cdd4c8;
      border-radius: 4px;
      cursor: pointer;
      font-size: 0.8rem;
    }

    .editor-toolbar button:hover {
      background: #e2ede5;
    }

    .tab-panel{
      display:none;
    }

    .tab-panel.active{
      display:block;
    }

    #preview-modal{
      position:fixed;
      inset:0;
      background:rgba(0,0,0,.7);
      display:flex;
      justify-content:center;
      align-items:center;
      z-index:9999;
    }

    #preview-content{
      width:min(900px,90%);
      max-height:90vh;
      overflow:auto;
      background:white;
      padding:30px;
      border-radius:12px;
    }

    #preview-modal:not(.hidden){
      display:flex;
    }

    .hidden{
      display:none !important;
    }

    .drag-handle{

      cursor:grab;

      background:#f4f4f4;

      padding:8px;

      border-radius:6px;

      margin-bottom:10px;

      font-weight:bold;

      user-select:none;

    }

    .drag-handle:active{

      cursor:grabbing;

    }

    .drag-ghost{
      opacity:0.4;
    }

    .drop-zone{

      margin-top:10px;
      padding:20px;
      border:2px dashed #7da27d;
      border-radius:8px;
      text-align:center;
      cursor:pointer;
      transition:.2s;
      color:#4d644d;
      background:#f8faf6;

      }

      .drop-zone.dragover{

      background:#dff3df;
      border-color:#2d6a3f;
      color:#2d6a3f;

      }

      .image-preview{

      margin-top:12px;
      text-align:center;

      }

      .image-preview img{

      max-width:100%;
      max-height:250px;
      border-radius:8px;
      border:1px solid #ddd;

      }

      .youtube-preview{
      position:relative;

      max-width:700px;

      min-height: 250px;

      margin:2rem auto;

      cursor:pointer;
      }

      .youtube-preview img{

      width:100%;

      height:100%;

      object-fit: cover;

      display:block;

      border-radius:12px;
      }

      .play-btn{

      position:absolute;

      top:50%;
      left:50%;

      transform:
          translate(-50%,-50%);

      font-size:4rem;

      color:white;

      text-shadow:
         0 0 10px black;
      }

      #video-lightbox{

      position:fixed;

      inset:0;

      background:rgba(0,0,0,.9);

      z-index:99999;

      display:flex;

      justify-content:center;

      align-items:center;
      }

      .video-overlay{

      width:90vw;

      max-width:1200px;
      }

      #video-container iframe{

      width:100%;

      aspect-ratio:16/9;

      border:none;
      }

      #close-video{

      position:fixed;

      top:20px;

      right:20px;

      z-index:100000;

      width:50px;
      height:50px;

      border:none;

      border-radius:50%;

      background:rgba(0,0,0,.7);

      color:white;

      font-size:2rem;

      cursor:pointer;
      }

      #publish-article{
      background:#c62828;
      color:white;
      }

      #publish-article:hover{
      background:#a61f1f;
      }  