/*
Theme Name: Domaine Tour Saint Michel Child
Template: hello-elementor
Description: Thème enfant pour le Domaine Tour Saint Michel (base Hello Elementor)
Author: B+ Consulting
Version: 1.0
*/

/* ═══════════════════════════════════════════
   DTSM — BLOG (catégorie, article, shortcode)
═══════════════════════════════════════════ */

/* ── HEADER CATÉGORIE ── */
.dtsm-cat-header{ background:#2d2b2b; padding:50px 30px; box-sizing:border-box; }
.dtsm-cat-header-inner{ max-width:1440px; width:100%; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:10px; text-align:center; }
.dtsm-breadcrumb{ font-family:'Lora',serif; font-size:13px; color:rgba(255,255,255,.6); display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.dtsm-breadcrumb a{ color:rgba(255,255,255,.6); text-decoration:none; }
.dtsm-breadcrumb a:hover{ color:#fcc96e; }
.dtsm-breadcrumb-current{ color:#fcc96e; }
.dtsm-cat-badge-label{ font-family:'Cormorant Garamond',serif; font-weight:600; font-style:italic; font-size:14px; letter-spacing:.14em; text-transform:uppercase; color:#fcc96e; }
.dtsm-cat-title{ font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic; text-transform:uppercase; font-size:clamp(32px,4vw,50px); color:#fcc96e; margin:0; line-height:1.15; }
.dtsm-cat-desc{ font-family:'Lora',serif; font-size:16px; color:rgba(255,255,255,.75); margin:0; line-height:1.6; max-width:640px; text-align:center; }
.dtsm-cat-count{ font-family:'Lora',serif; font-size:14px; color:rgba(255,255,255,.5); font-weight:500; }

/* ── ARCHIVE WRAP + GRILLE (catégorie & shortcode) ── */
.dtsm-archive-wrap{ max-width:100%; background:#ffffff; box-sizing:border-box; padding:50px 30px; }
.dtsm-blog-shortcode{ width:100%; }
.dtsm-archive-grid{ max-width:1440px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }

/* ── CARDS ── */
.dtsm-post-card{ background:#ffffff; overflow:hidden; border:1px solid rgba(64,48,31,.16); display:flex; flex-direction:column; transition:box-shadow .3s ease, transform .3s ease; }
.dtsm-post-card:hover{ box-shadow:0 8px 32px rgba(45,43,43,.10); transform:translateY(-3px); }
.dtsm-card-img{ display:block; width:100%; aspect-ratio:16/9; overflow:hidden; }
.dtsm-card-img img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.dtsm-post-card:hover .dtsm-card-img img{ transform:scale(1.04); }
.dtsm-card-body{ padding:22px 24px 24px; display:flex; flex-direction:column; flex:1; }
.dtsm-card-title{ font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:.01em; font-size:24px !important; color:#2d2b2b; margin:0 0 10px; line-height:1.3; }
.dtsm-card-title a{ color:#2d2b2b !important; text-decoration:none; }
.dtsm-card-title a:hover{ color:#fcc96e !important; }
.dtsm-card-excerpt{ font-family:'Lora',serif; font-size:14px; color:rgba(45,43,43,.7); line-height:1.6; margin:0 0 16px; flex:1; }
.dtsm-card-meta{ display:flex; align-items:center; gap:10px; margin-top:auto; padding-top:14px; margin-bottom:14px; border-top:1px solid rgba(64,48,31,.14); }
.dtsm-card-date{ font-family:'Lora',serif; font-size:13px; color:rgba(45,43,43,.55); }
.dtsm-card-author{ font-family:'Lora',serif; font-size:12px; color:#2d2b2b; background:#fdf1d8; padding:3px 10px; font-weight:500; }
.dtsm-card-link{ display:inline-flex; align-items:center; gap:6px; font-family:'Lora',serif; font-weight:600; font-size:14px; letter-spacing:.06em; text-transform:uppercase; color:#2d2b2b !important; text-decoration:none; border:none; align-self:flex-start; transition:color .2s ease; }
.dtsm-card-link::after{ content:'→'; display:inline-block; transition:transform .25s ease; }
.dtsm-card-link:hover{ color:#fcc96e !important; }
.dtsm-card-link:hover::after{ transform:translateX(4px); }

/* ── PAGINATION ── */
.dtsm-pagination{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:48px; flex-wrap:wrap; max-width:1440px; margin-left:auto; margin-right:auto; }
.dtsm-pagination span a, .dtsm-pagination span{ font-family:'Lora',serif; font-size:14px; font-weight:500; color:#2d2b2b !important; text-decoration:none; padding:8px 16px; border:1px solid rgba(64,48,31,.2); background:#ffffff; transition:all .2s ease; display:inline-flex; align-items:center; }
.dtsm-pagination span a:hover{ background:#fcc96e; color:#2d2b2b !important; border-color:#fcc96e; }
.dtsm-pagination .current{ background:#2d2b2b; color:#ffffff !important; border-color:#2d2b2b; }

/* ── NO POSTS ── */
.dtsm-no-posts{ font-family:'Lora',serif; font-size:15px; color:rgba(45,43,43,.6); text-align:center; padding:60px 0; }

/* ── SINGLE : HERO ── */
#dtsm-single{ margin-top:0 !important; padding-top:0 !important; }
.dtsm-hero{ position:relative; width:100%; height:560px; margin:-160px 0 0; overflow:hidden; background:#2d2b2b; }
.dtsm-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
.dtsm-hero-overlay{ position:absolute; inset:0; background:linear-gradient(to top, rgba(45,43,43,.92), rgba(45,43,43,.35)); }
.dtsm-hero-content{ position:absolute; bottom:60px; left:0; right:0; padding:0 30px; max-width:1440px; margin:0 auto; text-align:center; }
.dtsm-hero-cats{ display:flex; justify-content:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.dtsm-cat-badge{ font-family:'Lora',serif; font-size:12px; color:#2d2b2b; background:#fcc96e; padding:4px 12px; text-decoration:none; font-weight:500; }
.dtsm-hero-title{ font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic; font-size:clamp(36px,4.5vw,58px); color:#fcc96e; margin:0 0 14px; line-height:1.2; }
.dtsm-hero-meta{ font-family:'Lora',serif; font-size:14px; color:rgba(255,255,255,.75); }
.dtsm-hero-sep{ margin:0 8px; color:#fcc96e; }

/* ── SINGLE : ARTICLE ── */
.dtsm-article-wrap{ background:#ffffff; padding:60px 30px; }
.dtsm-article-inner{ max-width:1440px; margin:0 auto; }
.dtsm-toc{ background:#2d2b2b; border:1px solid #FFFFFF1C; padding:22px 26px; margin-bottom:44px; }
.dtsm-toc-header{ display:flex; align-items:center; gap:8px; margin-bottom:14px; }
.dtsm-toc-label{ font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic; font-size:22px; color:#fcc96e; flex:1; text-transform:uppercase; letter-spacing:.04em; }
.dtsm-toc-toggle{ background:none !important; border:none !important; box-shadow:none !important; color:#ffffff !important; font-size:22px; cursor:pointer; line-height:1; }
.dtsm-toc-toggle:hover{ color:#fcc96e !important; }
.dtsm-toc-nav{ overflow:hidden; transition:max-height .35s ease, opacity .35s ease; max-height:1000px; opacity:1; }
.dtsm-toc-nav.collapsed{ max-height:0; opacity:0; }
.dtsm-toc-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.dtsm-toc-link{ font-family:'Lora',serif; font-size:14px; color:rgba(255,255,255,.8); text-decoration:none; display:flex; gap:10px; }
.dtsm-toc-link:hover{ color:#fcc96e; }
.dtsm-toc-num{ color:#fcc96e; font-weight:600; min-width:16px; }

.dtsm-article-content{ font-family:'Lora',serif; font-size:16px; line-height:1.85; color:#2d2b2b; }
.dtsm-article-content h2{ font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic; font-size:32px; color:#2d2b2b; margin:44px 0 18px; }
.dtsm-article-content h3{ font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic; font-size:26px; color:#2d2b2b; margin:32px 0 14px; }
.dtsm-article-content p{ margin:0 0 20px; }
.dtsm-article-content a{ color:#c99a3d; }
.dtsm-article-content blockquote{ background:#f7f2e7; border-left:3px solid #fcc96e; padding:18px 24px; margin:28px 0; font-style:italic; }
.dtsm-article-content img{ width:100%; height:auto; margin:24px 0; }

/* ── SINGLE : ARTICLES SIMILAIRES ── */
.dtsm-related-wrap{ background:#fef5e5; padding:60px 30px; }
.dtsm-related-inner{ max-width:1440px; margin:0 auto; }
.dtsm-related-title{ font-family:'Cormorant Garamond',serif; font-weight:700; font-style:italic; text-transform:uppercase; font-size:32px; color:#2d2b2b; margin:0 0 28px; text-align:center; }

/* ── RESPONSIVE ── */

/* Tablette large */
@media (max-width:1024px){
  .dtsm-archive-grid{ grid-template-columns:repeat(2,1fr); }
  .dtsm-related-wrap .dtsm-archive-grid{ grid-template-columns:repeat(2,1fr); }
  .dtsm-hero{ height:480px; margin-top:-110px; }
}

/* Tablette / petit portrait */
@media (max-width:900px){
  .dtsm-archive-wrap, .dtsm-related-wrap{ padding:40px 24px; }
  .dtsm-cat-header{ padding:40px 24px; }
  .dtsm-article-wrap{ padding:50px 24px; }
  .dtsm-hero-content{ bottom:36px; padding:0 24px; }
}

/* Mobile */
@media (max-width:768px){
  .dtsm-cat-header{ padding:30px 20px; }
  .dtsm-cat-title{ font-size:28px; }
  .dtsm-cat-desc{ font-size:14px; }
  .dtsm-breadcrumb{ font-size:11px; flex-wrap:wrap; }

  .dtsm-archive-wrap{ padding:30px 20px; }
  .dtsm-archive-grid{ grid-template-columns:1fr; gap:20px; }

  .dtsm-hero{ height:380px; margin-top:-70px; }
  .dtsm-hero-content{ bottom:24px; padding:0 20px; }
  .dtsm-hero-title{ font-size:30px; }
  .dtsm-hero-meta{ font-size:12px; }
  .dtsm-hero-cats{ gap:6px; margin-bottom:10px; }

  .dtsm-article-wrap, .dtsm-related-wrap{ padding:40px 20px; }
  .dtsm-toc{ padding:18px 20px; margin-bottom:32px; }
  .dtsm-toc-label{ font-size:18px; }
  .dtsm-article-content{ font-size:15px; }
  .dtsm-article-content h2{ font-size:24px; margin:32px 0 14px; }
  .dtsm-article-content h3{ font-size:20px; margin:24px 0 12px; }

  .dtsm-related-wrap .dtsm-archive-grid{ grid-template-columns:1fr; }
  .dtsm-related-title{ font-size:24px; }

  .dtsm-pagination{ gap:6px; }
  .dtsm-pagination span a, .dtsm-pagination span{ padding:6px 12px; font-size:13px; }
}

/* Petit mobile */
@media (max-width:420px){
  .dtsm-hero{ height:340px; margin-top:-50px; }
  .dtsm-hero-title{ font-size:26px; }
  .dtsm-cat-title{ font-size:24px; }
  .dtsm-card-title{ font-size:19px !important; }
  .dtsm-article-content h2{ font-size:21px; }
}
