/*=====================================================================
  GUIDES, INFOS & CONSEILS TECHNIQUES — Mise en page des pages article
  Réutilise les variables de style.css (--yellow, --black, fonts...).
=====================================================================*/

/*=============== En-tête de l'article (bandeau gris + fil d'Ariane) ===============*/
.guide-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--grey);
    padding: 40px 0;
}

.guide-header .wrapper {
    max-width: 1212px;
    margin: 0 auto;
    padding: 0 20px;
}

.guide-title {
    font-family: var(--title-font);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    text-align: left;
    margin-bottom: 16px;
}

.guide-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--text-font);
    font-size: 0.9rem;
    color: #555;
}

.guide-breadcrumb a {
    color: #555;
    transition: color 0.3s ease;
}

.guide-breadcrumb a:hover {
    color: var(--black);
}

.guide-breadcrumb .sep {
    color: var(--grey);
}

.guide-breadcrumb .current {
    color: var(--black);
    font-weight: 700;
}

/*=============== Structure deux colonnes (article + sidebar) ===============*/
.guide-layout {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    padding: 56px 0;
}

.guide-main {
    flex: 1 1 0;
    min-width: 0;
}

.guide-aside {
    flex: 0 0 340px;
    max-width: 340px;
    position: sticky;
    top: 32px;
    align-self: flex-start;
}

/* Sticky de la sidebar : neutralise l'overflow-x:hidden global (qui casse
   position:sticky) — scopé aux pages guides via overflow-x:clip (rendu
   identique, sans barre de défilement horizontale). */
html,
body {
    overflow-x: clip;
}

/*=============== Contenu rédactionnel (rich text) ===============*/
/* Le chapô reprend la même police, taille et couleur que les paragraphes
   courants (hérités de .guide-content p) — seul l'espacement diffère. */
.guide-content .lead {
    margin-bottom: 24px;
}

.guide-content h2 {
    font-family: var(--title-font);
    font-size: var(--h2-font-size);
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--yellow);
    display: inline-block;
}

.guide-content h3 {
    font-family: var(--title-font);
    font-size: var(--h3-font-size);
    font-weight: 700;
    color: var(--black);
    text-align: left;
    margin-top: 32px;
    margin-bottom: 12px;
}

.guide-content p {
    font-family: var(--text-font);
    font-size: var(--size-normal);
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

.guide-content ul {
    margin: 0 0 20px 22px;
    list-style: disc;
}

.guide-content ul li {
    list-style: disc;
    font-family: var(--text-font);
    line-height: 1.7;
    color: #333;
    margin-bottom: 10px;
}

.guide-content a {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.guide-content a:hover {
    color: #b8860b;
}

.guide-content strong {
    color: var(--black);
}

/*=============== Image avec cadre jaune décalé ===============*/
.guide-figure {
    position: relative;
    z-index: 1;
    margin: 32px 20px 40px 0;
}

.guide-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.guide-figure::after {
    content: "";
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 8px solid var(--yellow);
    z-index: -1;
}

.guide-figure figcaption {
    margin-top: 14px;
    font-family: var(--text-font);
    font-size: 0.85rem;
    font-style: italic;
    color: #777;
}

/*=============== Encart « L'avis de l'expert » ===============*/
.guide-expert {
    background-color: #fff9e6;
    border-left: 4px solid var(--yellow);
    padding: 24px 28px;
    margin: 36px 0;
}

.guide-expert .expert-title {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--black);
    margin-bottom: 8px;
}

.guide-expert p {
    font-style: italic;
    margin-bottom: 0;
    color: var(--black);
}

/*=============== Sidebar : carte devis (fond sombre) ===============*/
.guide-aside .sticky-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guide-cta-card {
    background-color: var(--black);
    color: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.guide-cta-card h2 {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yellow);
    margin-bottom: 16px;
}

.guide-cta-card p {
    font-family: var(--text-font);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d4d4d4;
    margin-bottom: 24px;
}

.guide-cta-card ul {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guide-cta-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--text-font);
    font-size: 0.9rem;
    color: #f0f0f0;
}

.guide-cta-card ul li .fa,
.guide-cta-card ul li .fas {
    color: var(--yellow);
}

.guide-cta-card .btn-devis {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--yellow);
    color: var(--black);
    font-family: var(--text-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 14px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.guide-cta-card .btn-devis:hover {
    background-color: #fff;
    color: var(--black);
    transform: translateY(-2px);
}

/*=============== Sidebar : autres guides (maillage interne) ===============*/
.guide-related {
    background-color: #fff;
    border: 2px solid var(--yellow);
    border-radius: 12px;
    padding: 32px;
}

.guide-related h2 {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 24px;
}

.guide-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-related ul li {
    list-style: none;
}

.guide-related ul li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--text-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.guide-related ul li a .fa,
.guide-related ul li a .fas {
    color: var(--yellow);
    margin-top: 3px;
    flex-shrink: 0;
}

.guide-related ul li a:hover {
    color: #b8860b;
}

/*=============== Responsive ===============*/
@media screen and (max-width: 1000px) {
    .guide-layout {
        flex-direction: column;
        gap: 40px;
        padding: 40px 0;
    }

    .guide-aside {
        flex: none;
        max-width: 100%;
        width: 100%;
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .guide-header {
        padding: 28px 0;
    }

    .guide-figure {
        margin-right: 10px;
    }

    .guide-figure::after {
        inset: 10px -10px -10px 10px;
        border-width: 4px;
    }
}
