/* ================================================================
   blog_style.css — Blog Villa Giovanna
   #3874ab | Open Sans | Bootstrap 5
   ================================================================ */

/* ── Hero liste ── */

/* ── Hero liste ── */
.blog-page-hero {
    position: relative;
    background-image: url('../../images/blog_background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 110px 0 50px;
    text-align: center;
}

/* Overlay couleur #3873AA avec opacité */
.blog-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(56, 115, 170, 0.82);
    z-index: 0;
}

/* Le contenu passe au-dessus de l'overlay */
.blog-page-hero .container {
    position: relative;
    z-index: 1;
}


.blog-hero-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 36px; font-weight: 700; color: #fff;
    margin-bottom: 10px; text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.blog-hero-sub { font-size: 16px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* ── Recherche ── */
.blog-search-form { max-width: 560px; margin: 0 auto; }
.blog-search-group { border-radius: 6px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.blog-search-input {
    border: none !important; padding: 14px 18px !important;
    font-size: 15px !important; color: #333 !important;
    background: #fff !important; box-shadow: none !important;
}
.blog-search-btn {
    background: #c0a16b !important; color: #fff !important;
    border: none !important; padding: 14px 22px !important;
    font-weight: 600; font-size: 14px; transition: background 0.2s; white-space: nowrap;
}
.blog-search-btn:hover { background: #a8895a !important; }

/* ── Layout principal ── */
.blog-main-container { padding-top: 50px; padding-bottom: 70px; }
.blog-section-title {
    font-family: 'Open Sans', sans-serif; font-size: 22px; font-weight: 700;
    color: #333; margin-bottom: 28px; padding-bottom: 12px;
    border-bottom: 3px solid #3874ab; display: inline-block;
}

/* ── Cards ── */
.blog-card {
    background: #fff; border-radius: 10px;
    overflow: hidden; box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    border: 1px solid #eef1f5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.blog-card-img-wrap { overflow: hidden; height: 190px; }
.blog-card-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.06); }
.blog-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 14px; font-size: 11px; color: #999; margin-bottom: 10px; }
.blog-card-meta i { margin-right: 3px; color: #3874ab; }
.blog-card-title { font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 700; color: #333; margin-bottom: 10px; line-height: 1.4; }
.blog-card-title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.blog-card-title a:hover { color: #3874ab; }
.blog-card-chapeau {
    font-size: 13px; color: #666; line-height: 1.6; flex: 1; margin-bottom: 16px;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.blog-read-more {
    font-size: 13px; font-weight: 600; color: #3874ab; text-decoration: none;
    display: inline-flex; align-items: center; gap: 5px; margin-top: auto; transition: gap 0.2s;
}
.blog-read-more:hover { color: #2a5a8a; gap: 8px; }

/* ── Pas de résultats ── */
.blog-no-results { text-align: center; padding: 60px 20px; color: #aaa; }
.blog-no-results p { margin-top: 12px; font-size: 15px; }

/* ── Lien retour ── */
.blog-back-link {
    font-size: 13px; color: #3874ab; text-decoration: none;
    font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s;
}
.blog-back-link:hover { color: #2a5a8a; }

/* ── Pagination ── */
.blog-pagination { margin-top: 40px; }
.blog-pagination .page-link { color: #3874ab; border-color: #d0dce8; }
.blog-pagination .page-item.active .page-link { background: #3874ab; border-color: #3874ab; color: #fff; }
.blog-pagination .page-link:hover { background: #eef3f8; color: #2a5a8a; }

/* ── Sidebar ── */
.blog-sidebar { position: sticky; top: 85px; }
.blog-sidebar-title {
    font-family: 'Open Sans', sans-serif; font-size: 17px; font-weight: 700;
    color: #333; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid #3874ab;
}
.blog-popular-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f0f0f0;
    text-decoration: none; transition: opacity 0.2s;
}
.blog-popular-item:last-of-type { border-bottom: none; }
.blog-popular-item:hover { opacity: 0.8; }
.blog-popular-item img { width: 60px; height: 45px; object-fit: cover; border-radius: 5px; flex-shrink: 0; }
.blog-popular-no-img {
    width: 60px; height: 45px; background: #eef3f8; border-radius: 5px;
    display: flex; align-items: center; justify-content: center; color: #3874ab; flex-shrink: 0;
}
.blog-popular-info { display: flex; flex-direction: column; gap: 3px; }
.blog-popular-title {
    font-size: 13px; font-weight: 600; color: #333; line-height: 1.4;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.blog-popular-views { font-size: 11px; color: #999; }
.blog-popular-views i { color: #3874ab; margin-right: 3px; }

/* ── Sidebar CTA ── */
.blog-sidebar-cta {
    background: #f1f6fa; border: 1px solid #d0dce8; border-radius: 8px;
    padding: 20px; margin-top: 28px; text-align: center;
}
.blog-sidebar-cta h4 { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 8px; }
.blog-sidebar-cta p { font-size: 13px; color: #666; margin-bottom: 14px; line-height: 1.5; }

/* ── Boutons CTA ── */
.blog-cta-btn {
    background: #3874ab !important; color: #fff !important; border: none !important;
    padding: 10px 20px; border-radius: 5px; font-weight: 600;
    font-size: 13px; transition: background 0.2s; text-decoration: none;
}
.blog-cta-btn:hover { background: #2a5a8a !important; color: #fff !important; }
.blog-cta-btn-outline {
    background: transparent !important; color: #fff !important;
    border: 2px solid rgba(255,255,255,0.6) !important; padding: 10px 20px;
    border-radius: 5px; font-weight: 600; font-size: 13px; transition: all 0.2s; text-decoration: none;
}
.blog-cta-btn-outline:hover { border-color: #fff !important; background: rgba(255,255,255,0.1) !important; }

/* ================================================================
   PAGE ARTICLE
   ================================================================ */

.blog-breadcrumb .breadcrumb { font-size: 12px; margin: 0; }
.blog-breadcrumb .breadcrumb-item a { color: #3874ab; text-decoration: none; }
.blog-breadcrumb .breadcrumb-item.active { color: #888; }

.blog-article-hero {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    margin-top: 0;      /* commence tout en haut, sous la navbar transparente */
}

.blog-breadcrumb {
    background: #f7f9fb;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
}


.blog-article-container { padding-top: 40px; padding-bottom: 70px; }

.blog-article-header { margin-bottom: 32px; }
.blog-article-title {
    font-family: 'Open Sans', sans-serif; font-size: 30px; font-weight: 700;
    color: #222; line-height: 1.3; margin-bottom: 14px;
}
.blog-article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #999; margin-bottom: 18px; }
.blog-article-meta i { color: #3874ab; margin-right: 4px; }
.blog-article-chapeau {
    font-size: 16px; color: #555; line-height: 1.7; font-style: italic;
    border-left: 4px solid #3874ab; padding-left: 16px; margin: 0;
}

/* Contenu article */
.blog-article-content { font-size: 15px; line-height: 1.8; color: #333; padding: 32px 0; border-top: 1px solid #eef1f5; }
.blog-article-content h2 {
    font-family: 'Open Sans', sans-serif; font-size: 22px; font-weight: 700;
    color: #222; margin-top: 36px; margin-bottom: 14px;
    padding-bottom: 8px; border-bottom: 2px solid #eef1f5;
}
.blog-article-content h3 { font-size: 18px; font-weight: 700; color: #333; margin-top: 28px; margin-bottom: 10px; }
.blog-article-content p { margin-bottom: 16px; }
.blog-article-content ul, .blog-article-content ol { margin-bottom: 16px; padding-left: 22px; }
.blog-article-content li { margin-bottom: 6px; }
.blog-article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }
.blog-article-content a { color: #3874ab; }
.blog-article-content blockquote {
    border-left: 4px solid #3874ab; padding-left: 16px;
    color: #555; font-style: italic; margin: 24px 0;
}
.blog-article-back { padding: 16px 0 32px; border-top: 1px solid #eef1f5; }

/* CTA Box bas d'article */
.blog-cta-box {
    background: linear-gradient(135deg, #3874ab 0%, #2a5a8a 100%);
    border-radius: 12px; padding: 32px 36px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; color: #fff; margin-top: 8px;
}
.blog-cta-content h3 { font-family: 'Open Sans', sans-serif; font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.blog-cta-content p { font-size: 14px; color: rgba(255,255,255,0.88); margin-bottom: 18px; line-height: 1.6; }
.blog-cta-img { 
    flex-shrink: 0;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    
    
     }

     .blog-cta-content .d-flex {
    justify-content: center;
}

/* ── Responsive ── */
@media (max-width: 991px) { .blog-sidebar { position: static; margin-top: 50px; } }
@media (max-width: 767px) {
    .blog-hero-title { font-size: 26px; }
    .blog-article-title { font-size: 22px; }
    .blog-article-hero { height: 220px; }
    .blog-cta-box { flex-direction: column; text-align: center; padding: 24px 20px; }
    .blog-cta-img { display: none; }
    .blog-cta-content .d-flex { justify-content: center; }
}

.alignleft {
    float: left;
    margin: 4px 10px 0px 0;
    display: block;
    position: relative;
}

/* Style global de la section FAQ */
.faq-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Style de la boîte rétractable */
details {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

/* Changement de bordure quand c'est ouvert */
details[open] {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

/* Style de la question (le titre cliquable) */
summary {
    list-style: none; /* Supprime la flèche par défaut */
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: background-color 0.2s;
}

/* Supprime la flèche sur Safari */
summary::-webkit-details-marker {
    display: none;
}

/* Effet au survol de la question */
summary:hover {
    background-color: #f8fbff;
    color: #007bff;
}

/* Ajout d'une icône personnalisée (+) */
summary::after {
    content: "＋";
    font-size: 1.2rem;
    color: #007bff;
    transition: transform 0.3s ease;
}

/* Rotation de l'icône quand c'est ouvert (devient un x ou tourne) */
details[open] summary::after {
    transform: rotate(45deg);
    color: #e74c3c;
}

/* Style du contenu de la réponse */
.answer-content {
    padding: 0 20px 20px 20px;
    color: #5d6d7e;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
    animation: slideDown 0.4s ease-out;
}

/* Petite animation d'apparition */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Texte justifié pour tous les paragraphes d'articles */
.article-text {
    text-align: justify;
    line-height: 1.6; /* améliore la lisibilité */
}

/* Image flottante à droite avec marge et responsive */
.article-image-right {
    float: right;
    margin: 0 0 15px 25px; /* bas et gauche */
    max-width: 300px;
    height: auto;
}

/* Image flottante à gauche avec marge et responsive */
.article-image-left {
    float: left;
    margin: 0 25px 15px 0; /* bas et droite */
    max-width: 300px;
    height: auto;
}

/* Nettoie les floats après chaque paragraphe contenant une image */
.clear-float {
    clear: both;
}

/* Image flottante à droite avec marge et responsive */
.blog-article-content img.article-image-right {
    float: right;                 /* force le float à droite */
    margin: 0 0 15px 25px;        /* marge en bas + gauche */
    max-width: 300px;             /* limite la largeur */
    width: 100%;                  /* responsive dans max-width */
    height: auto;                 /* garde les proportions */
}

/* Image flottante à gauche avec marge et responsive */
.blog-article-content img.article-image-left {
    float: left;                  /* float à gauche */
    margin: 0 25px 15px 0;        /* marge en bas + droite */
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Responsive mobile : centre les images flottantes */
@media (max-width: 768px) {
    .blog-article-content img.article-image-right,
    .blog-article-content img.article-image-left {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
        max-width: 90%;
    }
}/* ================================================================
   newsletter/css/newsletter.css — Widget Newsletter Villa Giovanna
   Utilisé dans : style.css (main) + blog_style.css
   Version 1.0
   ================================================================ */

/* ── BOÎTE NEWSLETTER ── */
.nl-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #eaf2fb 0%, #ddeaf7 100%);
    border: 1px solid #b8d4ee;
    border-left: 5px solid #3874ab;
    border-radius: 10px;
    padding: 22px 26px;
    margin: 30px 0 0 0;
    flex-wrap: wrap;
}

.nl-box-icon {
    font-size: 34px;
    color: #3874ab;
    flex-shrink: 0;
    line-height: 1;
}

.nl-box-content {
    flex: 1;
    min-width: 160px;
}

.nl-box-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2a4d6e;
    margin-bottom: 4px;
}

.nl-box-sub {
    font-size: 13px;
    color: #4a6a8a;
    line-height: 1.5;
}

.nl-box-action {
    flex-shrink: 0;
    min-width: 260px;
}

.nl-input-group {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(56,116,171,0.15);
}

.nl-email-input {
    border: none !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    background: #fff !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.nl-box-btn {
    background: #3874ab !important;
    color: #fff !important;
    border: none !important;
    padding: 11px 18px !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background 0.2s;
}
.nl-box-btn:hover { background: #2a5a8a !important; }

/* ── MODAL ── */
.nl-modal .modal-dialog { max-width: 480px; }

.nl-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

.nl-modal-header {
    background: linear-gradient(135deg, #3874ab 0%, #2a5a8a 100%);
    color: #fff;
    padding: 22px 24px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.nl-modal-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.nl-modal-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.82);
}

.nl-modal-body {
    padding: 24px;
    background: #fafcff;
}

.nl-modal-footer {
    padding: 16px 24px;
    background: #f4f8fc;
    border-top: 1px solid #e0eaf4;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.nl-label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 4px;
}

.nl-input {
    border: 1px solid #c9d9ea !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    padding: 10px 13px !important;
    transition: border-color 0.2s !important;
}
.nl-input:focus {
    border-color: #3874ab !important;
    box-shadow: 0 0 0 3px rgba(56,116,171,0.12) !important;
}

.nl-rgpd {
    font-size: 11px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.nl-btn-cancel {
    background: transparent;
    color: #777;
    border: 1px solid #ccc;
    padding: 9px 20px;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.2s;
}
.nl-btn-cancel:hover { background: #f0f0f0; }

.nl-btn-submit {
    background: #3874ab;
    color: #fff !important;
    border: none;
    padding: 9px 24px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    min-width: 110px;
}
.nl-btn-submit:hover { background: #2a5a8a; }
.nl-btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── ALERTES MODAL ── */
.nl-alert {
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.nl-alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.nl-alert-error   { background: #fdecea; color: #b71c1c; border: 1px solid #ef9a9a; }
.nl-alert-info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ── SIDEBAR BLOG (variante compacte) ── */
.nl-sidebar-box {
    background: linear-gradient(135deg, #eaf2fb 0%, #ddeaf7 100%);
    border: 1px solid #b8d4ee;
    border-left: 5px solid #3874ab;
    border-radius: 10px;
    padding: 20px;
    margin-top: 24px;
    text-align: center;
}
.nl-sidebar-box .nl-box-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.nl-sidebar-box .nl-box-title { font-size: 14px; margin-bottom: 6px; text-align: center; }
.nl-sidebar-box .nl-box-sub { font-size: 12px; text-align: center; margin-bottom: 14px; }
.nl-sidebar-box .nl-email-input { font-size: 13px !important; }
.nl-sidebar-box .nl-box-btn { font-size: 12px; padding: 9px 14px !important; }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
    .nl-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        gap: 12px;
    }
    .nl-box-action { width: 100%; min-width: unset; }
    .nl-box-icon { font-size: 26px; }
    .nl-modal .modal-dialog { margin: 10px; }
}

/* blog_style.css — Version 1.1 — Ajout newsletter */

/* Newsletter bas d'article */
.blog-article-newsletter {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #eef1f5;
}

/* blog_style.css — Version 1.2 — Newsletter inline CTA article */

/* Groupe newsletter dans le CTA article */
.blog-cta-nl-group {
    margin-top: 18px;
}

.blog-cta-nl-input-group {
    max-width: 380px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.blog-cta-nl-input {
    border: none !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.blog-cta-nl-input::placeholder {
    color: rgba(255,255,255,0.75) !important;
}

.blog-cta-nl-input:focus {
    background: rgba(255,255,255,0.25) !important;
    outline: none !important;
}

@media (max-width: 767px) {
    .blog-cta-nl-input-group { max-width: 100%; }
}

/* blog_style.css — Version 1.3 — Newsletter sidebar compact + bouton CTA article */

/* Sidebar newsletter compacte */
.nl-sidebar-compact {
    background: linear-gradient(135deg, #eaf2fb 0%, #ddeaf7 100%);
    border: 1px solid #b8d4ee;
    border-left: 5px solid #3874ab;
    border-radius: 10px;
    padding: 18px;
    margin-top: 24px;
    text-align: center;
}
.nl-sidebar-compact-icon {
    font-size: 28px;
    color: #3874ab;
    margin-bottom: 8px;
}
.nl-sidebar-compact-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2a4d6e;
    margin-bottom: 6px;
}
.nl-sidebar-compact-sub {
    font-size: 12px;
    color: #4a6a8a;
    margin-bottom: 14px;
    line-height: 1.5;
}
.nl-sidebar-compact-btn {
    background: #3874ab !important;
    color: #fff !important;
    border: none !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.2s;
}
.nl-sidebar-compact-btn:hover { background: #2a5a8a !important; }
