/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Thème enfant Hello Elementor avec template article SaaS
Author: Votre nom
Version: 1.0.0
Template: hello-elementor
Text Domain: hello-child
*/

/* ===== RESET LÉGER ===== */
.single-post-wrapper *,
.single-post-wrapper *::before,
.single-post-wrapper *::after {
    box-sizing: border-box;
}

/* ===== CONTAINER ===== */
.single-post-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #1f2937;
    line-height: 1.7;
    font-size: 17px;
}

/* ===== HERO ===== */
.single-hero {
    text-align: center;
    padding: 60px 20px 40px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 50px;
}

.single-hero__title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #111827;
    margin: 0 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.single-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    color: #6b7280;
    font-size: 15px;
}

.single-hero__meta span {
    display: inline-flex;
    align-items: center;
}

.single-hero__separator {
    color: #d1d5db;
}

/* ===== LAYOUT 2 COLONNES ===== */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding-bottom: 60px;
}

/* ===== ARTICLE ===== */
.single-article {
    min-width: 0;
}

.single-article__thumbnail {
    margin-bottom: 35px;
    border-radius: 12px;
    overflow: hidden;
}

.single-article__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-article__content {
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
}

.single-article__content p {
    margin: 0 0 20px;
}

.single-article__content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 40px 0 18px;
    line-height: 1.3;
}

.single-article__content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 14px;
    line-height: 1.35;
}

.single-article__content a {
    color: #16a34a;
    text-decoration: underline;
}

.single-article__content a:hover {
    color: #15803d;
}

.single-article__content ul,
.single-article__content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.single-article__content li {
    margin-bottom: 8px;
}

.single-article__content blockquote {
    border-left: 4px solid #16a34a;
    background: #f9fafb;
    padding: 18px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.single-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* ===== CTA ===== */
.single-cta {
    margin-top: 50px;
    padding: 40px 30px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    border-radius: 14px;
    text-align: center;
    color: #fff;
}

.single-cta__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}

.single-cta__text {
    font-size: 16px;
    color: #ecfdf5;
    margin: 0 0 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.single-cta__button {
    display: inline-block;
    padding: 14px 32px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.single-cta__button:hover {
    background: #ea580c;
    color: #fff;
}

/* ===== SIDEBAR ===== */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
}

.sidebar-widget__title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111827;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #16a34a;
}

/* Recherche */
.sidebar-search input[type="search"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #f9fafb;
    color: #111827;
    font-family: inherit;
}

.sidebar-search input[type="search"]:focus {
    outline: none;
    border-color: #16a34a;
    background: #fff;
}

.sidebar-search button {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.sidebar-search button:hover {
    background: #16a34a;
}

/* Articles récents */
.sidebar-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.sidebar-recent li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-recent li:first-child {
    padding-top: 0;
}

.sidebar-recent a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.sidebar-recent a:hover {
    color: #16a34a;
}

.sidebar-recent__date {
    font-size: 12px;
    color: #6b7280;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .single-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .single-hero {
        padding: 40px 15px 30px;
        margin-bottom: 35px;
    }

    .single-hero__title {
        font-size: 30px;
    }

    .single-hero__meta {
        gap: 12px;
        font-size: 14px;
    }

    .single-article__content {
        font-size: 16px;
    }

    .single-article__content h2 {
        font-size: 24px;
    }

    .single-article__content h3 {
        font-size: 20px;
    }

    .single-cta {
        padding: 30px 20px;
    }

    .single-cta__title {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .single-post-wrapper {
        padding: 0 15px;
    }

    .single-hero__title {
        font-size: 26px;
    }
}


/* ===== BLOG CUSTOM ===== */

.blog-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.blog-hero {
  margin-bottom: 30px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.blog-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.blog-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.blog-title a {
  text-decoration: none;
  color: #0E1130;
}

.blog-read {
  color: #ff6b00;
  font-weight: 600;
}

.blog-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* MOBILE */
@media(max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}