/*
Theme Name: Escale MJC
Description: Thème minimaliste sur mesure pour L'Escale MJC Ile aux trésors
Version: 1.0
Author: L'Escale MJC
*/

:root{
  --teal:#1f9c86;
  --teal-dark:#157a68;
  --orange:#e07b39;
  --cream:#faf6ef;
  --ink:#20302c;
  --ink-soft:#4c5c57;
  --white:#ffffff;
  --radius:18px;
  --shadow:0 8px 24px rgba(32,48,44,.08);
  font-family:"Poppins","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--cream);color:var(--ink);line-height:1.6;font-size:16px;}
img{max-width:100%;height:auto;display:block;}
a{text-decoration:none;color:inherit;}
ul{list-style:none;}
.mjc-wrap{max-width:1120px;margin:0 auto;padding:0 24px;}

/* HEADER */
.mjc-header{background:var(--white);border-bottom:1px solid #eee;position:sticky;top:0;z-index:50;}
.mjc-header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 24px;max-width:1120px;margin:0 auto;}
.mjc-logo img, .mjc-logo .custom-logo, .mjc-header-inner img.custom-logo{height:48px!important;width:auto!important;max-height:48px!important;}
.mjc-logo .custom-logo-link{display:flex;align-items:center;}
.mjc-nav ul{display:flex;gap:28px;font-weight:600;font-size:.95rem;color:var(--ink-soft);}
.mjc-nav a:hover{color:var(--teal);}
.mjc-nav{position:relative;}
.mjc-nav li{position:relative;}
.mjc-nav ul ul{display:none;position:absolute;top:100%;left:0;background:var(--white);box-shadow:var(--shadow);border-radius:12px;padding:10px;min-width:200px;flex-direction:column;gap:4px;z-index:60;}
.mjc-nav li:hover > ul{display:flex;}
.mjc-nav ul ul a{display:block;padding:8px 12px;border-radius:8px;}
.mjc-nav ul ul a:hover{background:var(--cream);}
.mjc-cta{background:var(--orange);color:#fff;padding:10px 22px;border-radius:999px;font-weight:700;font-size:.9rem;white-space:nowrap;}
.mjc-cta:hover{background:#c96a2e;}
.mjc-burger{display:none;background:none;border:none;font-size:1.6rem;cursor:pointer;}

/* PAGE CONTENT WRAPPER (for pages using custom HTML block) */
.mjc-page-content{min-height:40vh;}

/* generic content typography fallback (for native WP posts) */
.mjc-content{max-width:760px;margin:0 auto;padding:48px 24px;}
.mjc-content h1{font-size:2.2rem;margin-bottom:18px;}
.mjc-content h2{font-size:1.6rem;margin:32px 0 14px;color:var(--teal-dark);}
.mjc-content p{color:var(--ink-soft);margin-bottom:16px;}
.mjc-content img{border-radius:var(--radius);margin:20px 0;}
.mjc-content a{color:var(--teal);text-decoration:underline;}

/* NEWS / ACTUALITES */
.mjc-section{padding:60px 24px;}
.mjc-section-head{text-align:center;max-width:640px;margin:0 auto 40px;}
.mjc-eyebrow{color:var(--teal);font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.8rem;margin-bottom:14px;}
.mjc-section-head h1, .mjc-section-head h2{font-size:2rem;margin-bottom:12px;}
.mjc-section-head p{color:var(--ink-soft);}

.mjc-news{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1120px;margin:0 auto;}
.mjc-news-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .15s ease;display:flex;flex-direction:column;}
.mjc-news-card:hover{transform:translateY(-4px);}
.mjc-news-img{height:180px;background:linear-gradient(135deg,var(--teal),var(--teal-dark));background-size:cover;background-position:center;position:relative;}
.mjc-news-body{padding:20px;display:flex;flex-direction:column;flex:1;}
.mjc-news-date{color:var(--ink-soft);font-weight:600;font-size:.8rem;margin-bottom:8px;}
.mjc-news-body h3{font-size:1.08rem;margin-bottom:10px;line-height:1.3;}
.mjc-news-body h3 a{color:var(--ink);}
.mjc-news-body p{color:var(--ink-soft);font-size:.9rem;flex:1;margin-bottom:14px;}
.mjc-news-more{color:var(--orange);font-weight:700;font-size:.85rem;display:inline-block;margin-top:auto;}

/* CATEGORY BADGES */
.mjc-cat-badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px;}
.mjc-cat-badge{background:rgba(31,156,134,.12);color:var(--teal-dark);font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:4px 10px;border-radius:999px;}
.mjc-news-img .mjc-cat-badges{position:absolute;top:12px;left:12px;margin-bottom:0;}
.mjc-news-img .mjc-cat-badge{background:rgba(255,255,255,.92);color:var(--teal-dark);}

.mjc-pagination{display:flex;justify-content:center;gap:10px;margin-top:40px;}
.mjc-pagination a, .mjc-pagination span{padding:8px 16px;border-radius:999px;background:var(--white);box-shadow:var(--shadow);font-weight:600;font-size:.9rem;}
.mjc-pagination .current{background:var(--teal);color:#fff;}

/* SINGLE POST */
.mjc-single-header{max-width:760px;margin:0 auto;padding:48px 24px 0;}
.mjc-single-header .mjc-eyebrow{display:block;}
.mjc-single-header h1{font-size:2.1rem;margin-bottom:10px;}
.mjc-single-meta{color:var(--ink-soft);font-size:.9rem;margin-bottom:24px;}
.mjc-single-cover{max-width:1120px;margin:0 auto 32px;padding:0 24px;}
.mjc-single-cover img{border-radius:var(--radius);width:100%;}
.mjc-back-link{display:inline-block;margin:0 auto 20px;color:var(--teal);font-weight:700;font-size:.9rem;}
.mjc-single-header .mjc-cat-badges{margin-bottom:14px;}

.mjc-post-nav{max-width:760px;margin:40px auto 60px;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.mjc-post-nav-item{background:var(--white);border-radius:16px;box-shadow:var(--shadow);padding:18px 20px;}
.mjc-post-nav-item.next{text-align:right;}
.mjc-post-nav-label{color:var(--ink-soft);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;font-weight:700;margin-bottom:6px;}
.mjc-post-nav-title{color:var(--ink);font-weight:700;font-size:.92rem;}
@media (max-width:600px){
  .mjc-post-nav{grid-template-columns:1fr;}
  .mjc-post-nav-item.next{text-align:left;}
}

/* FOOTER */
.mjc-footer{background:var(--ink);color:#dfe8e5;padding:56px 24px 24px;}
.mjc-footer-inner{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:32px;}
.mjc-footer h4{color:#fff;font-size:.95rem;margin-bottom:16px;}
.mjc-footer p, .mjc-footer a{color:#b7c4c0;font-size:.88rem;line-height:1.9;}
.mjc-footer a:hover{color:#fff;}
.mjc-footer-bottom{max-width:1120px;margin:32px auto 0;padding-top:20px;border-top:1px solid #33413c;font-size:.8rem;color:#8a9793;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}

@media (max-width:860px){
  .mjc-nav{display:none;}
  .mjc-burger{display:block;}
  .mjc-news{grid-template-columns:1fr;}
  .mjc-footer-inner{grid-template-columns:1fr;}
}
