/* Explain: Styles for blog articles, including layout and typography. */
/* ---------- Navigation dropdown ---------- */
.nav-drop { position: relative; }
.nav-drop-toggle { display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: 0; }
.nav-drop-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 16rem;
    max-height: 70vh;
    overflow-y: auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-deep);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 80;
}
.nav-drop-panel::before { content: ""; position: absolute; top: -0.85rem; left: 0; right: 0; height: 0.85rem; }
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel,
.nav-drop.is-open .nav-drop-panel { opacity: 1; visibility: visible; }
.nav-drop-link { display: block; padding: 0.55rem 1.35rem; font-size: 0.92rem; color: var(--text-color); white-space: nowrap; transition: all 0.25s ease; }
.nav-drop-link:hover, .nav-drop-link:focus-visible { color: var(--primary-color); background: rgba(212, 43, 32, 0.08); }
.nav-drop-toggle .fa-chevron-down { transition: transform 0.25s ease; }
.nav-drop.is-open .fa-chevron-down, .nav-drop:hover .fa-chevron-down { transform: rotate(180deg); }

/* ---------- About: secondary portrait ---------- */
.about-portrait-extra {
    position: absolute;
    right: -1.5rem;
    bottom: -2.5rem;
    width: 55%;
    max-width: 16rem;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 4px solid var(--background-color);
    box-shadow: var(--shadow-deep);
}
.about-portrait-extra img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 1023px) {
    .about-portrait-extra {
        right: 0.5rem;
        bottom: -2rem;
    }
}

/* ---------- Prestation cards ---------- */
.presta-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #FFFFFF; border: 1px solid var(--line-soft); overflow: hidden; transition: all 0.35s ease; }
.presta-card:hover { border-color: var(--border-color); transform: translateY(-4px); }
.presta-media { aspect-ratio: 4 / 3; overflow: hidden; }
.presta-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.presta-card:hover .presta-media img { transform: scale(1.05); }
.presta-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.presta-more { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--primary-color); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-strong); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Formulas ---------- */
.formule-card { display: flex; flex-direction: column; height: 100%; background: #FFFFFF; border: 1px solid var(--border-color); padding: 1.75rem; transition: all 0.3s ease; }
.formule-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.formule-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }

/* ---------- Steps ---------- */
.step-item { position: relative; padding-left: 3.5rem; }
.step-num { position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--primary-color); color: var(--primary-color); font-family: var(--font-heading); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line-soft); padding: 1.25rem 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-color); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .fa-chevron-down { transition: transform 0.3s ease; color: var(--primary-color); }
.faq-item[open] summary .fa-chevron-down { transform: rotate(180deg); }
.faq-item p { margin-top: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; background: #FFFFFF; border: 1px solid var(--line-soft); overflow: hidden; transition: all 0.35s ease; }
.post-card:hover { border-color: var(--border-color); transform: translateY(-4px); }
.post-media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* ---------- Reviews ---------- */
.quote-card { display: flex; flex-direction: column; height: 100%; background: #FFFFFF; border: 1px solid var(--line-soft); padding: 1.75rem; }

/* ---------- Filter buttons ---------- */
.filter-btn { border: 1px solid var(--line-soft); padding: 0.5rem 1.1rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--text-muted); cursor: pointer; background: transparent; transition: all 0.3s ease; }
.filter-btn:hover { color: var(--primary-color); border-color: var(--border-color); }
.filter-btn.is-active { background: var(--primary-color); color: var(--on-primary); border-color: var(--primary-color); }

/* ---------- SEO kit ---------- */
.seo-item { background: #FFFFFF; border: 1px solid var(--line-soft); padding: 1.5rem; }
.seo-field { margin-top: 1rem; }
.seo-label { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--text-muted); }
.seo-count { font-variant-numeric: tabular-nums; }
.seo-count.is-ok { color: var(--primary-color); }
.seo-count.is-over { color: var(--error-color); }
.seo-value { margin-top: 0.4rem; font-size: 0.92rem; color: var(--text-color); line-height: 1.6; word-break: break-word; }
.copy-btn { margin-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border-color); padding: 0.4rem 0.9rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary-color); cursor: pointer; background: transparent; transition: all 0.3s ease; }
.copy-btn:hover { background: var(--primary-color); color: var(--on-primary); }

/* ---------- Formulas: prices & badges ---------- */
.formule-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    background: var(--primary-color);
    color: var(--on-primary);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.3rem 0.7rem;
}

.formule-price {
    margin-top: 0.6rem;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--primary-color);
}

/* ---------- Livres photo d'auteur ---------- */
.book-cover {
    display: block;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-deep);
    transition: all 0.35s ease;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-cover:hover {
    transform: translateY(-4px);
}

.book-cover:hover img {
    transform: scale(1.04);
}

/* ---------- Page auteur mise en avant dans la navigation ---------- */
.nav-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-feature:hover,
.nav-feature:focus-visible {
    background: var(--primary-color);
    color: var(--on-primary);
    box-shadow: var(--shadow-brass);
}

.nav-feature i {
    font-size: 0.8rem;
}

.mobile-feature {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--primary-color);
    border-bottom-color: var(--border-color);
}

.mobile-feature i {
    color: var(--primary-color);
}

/* ---------- Corps d'article de blog ---------- */
.article-content {
    font-size: 1.06rem;
    line-height: 1.85;
    color: var(--text-color);
}

.article-content > p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    margin-top: 2.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--text-color);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.2rem;
    color: var(--text-color);
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.article-content ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.7rem;
    color: var(--text-muted);
}

.article-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 0.65rem;
    height: 1px;
    background: var(--primary-color);
}

.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.4rem;
    list-style: decimal;
}

.article-content ol li {
    margin-bottom: 0.7rem;
    padding-left: 0.4rem;
    color: var(--text-muted);
}

.article-content ol li::marker {
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.article-content strong {
    color: var(--text-color);
}

.article-content blockquote {
    margin: 2rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--primary-color);
    font-size: 1.15rem;
    color: var(--text-color);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content img {
    width: 100%;
    margin: 2rem 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.article-content th,
.article-content td {
    border: 1px solid var(--line-soft);
    padding: 0.7rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.article-content th {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--text-color);
    background: var(--surface-color);
}

.article-content td {
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .article-content table {
        display: block;
        overflow-x: auto;
    }
}