/* ─── Pages intérieures — Nature & Bois ─────────────────────────────────────
   Toutes les pages intérieures : hero banners, blocs, contact, activités.
   Zéro CSS inline dans les templates — tout passe par ces classes.
   La seule exception acceptable : style="--hero-img: url('...')" pour passer
   l'URL de l'image au pseudo-élément ::before via custom property CSS.
────────────────────────────────────────────────────────────────────────────── */

/* ════════════════════════════════════════════════════════════════════════════
   1. HERO BANNER (pages + archives)
   ════════════════════════════════════════════════════════════════════════════ */

.nb-page-hero {
    position: relative;
    padding: 6rem var(--padding-x) 5rem;
    background: #1a2e1a;
    overflow: hidden;
}

/* Version compacte — archives, taxonomy */
.nb-page-hero--compact {
    padding: 4.5rem var(--padding-x) 3.5rem;
}

/* Photo de fond via CSS custom property */
.nb-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-img, none);
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: 0;
}

/* Contenu au-dessus de l'overlay */
.nb-page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Eyebrow (label au-dessus du titre) */
.nb-page-hero .nb-eyebrow {
    color: #a8d870;
    margin-bottom: 1rem;
}

/* Titre H1 */
.nb-page-h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin: 0 0 1.25rem;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #fff;
}

/* Lead sous le titre */
.nb-page-lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    line-height: 1.8;
    margin: 0;
    max-width: 560px;
}

/* Description courte (taxonomy) */
.nb-page-hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.8);
    margin: 1rem 0 0;
    max-width: 560px;
    line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════════════════
   2. SECTION WRAPPER
   ════════════════════════════════════════════════════════════════════════════ */

.nb-page-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem var(--padding-x);
}

/* ════════════════════════════════════════════════════════════════════════════
   3. BLOCS LABEL/TEXTE (page Approche)
   ════════════════════════════════════════════════════════════════════════════ */

.nb-bloc {
    border-top: 1px solid var(--color-bordure);
    padding: 3.5rem 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.nb-bloc:last-child {
    border-bottom: 1px solid var(--color-bordure);
}

.nb-bloc h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-texte);
}

.nb-bloc p {
    font-size: 1.05rem;
    color: var(--color-gris);
    line-height: 1.85;
    margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   4. DARK CTA (bas de page Approche + Activités)
   ════════════════════════════════════════════════════════════════════════════ */

.nb-dark-cta {
    background: #1a2e1a;
    color: #fff;
    padding: 6rem var(--padding-x);
    text-align: center;
}

/* Variante avec photo de fond via --cta-img */
.nb-dark-cta--photo {
    position: relative;
    background: transparent;
}

.nb-dark-cta--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--cta-img);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.nb-dark-cta--photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 46, 26, 0.84);
    z-index: 1;
}

.nb-dark-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
}

.nb-dark-cta blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}

.nb-dark-cta cite {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 2.5rem;
    font-style: normal;
}

.nb-dark-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.nb-dark-cta p {
    color: rgba(255,255,255,0.75);
    margin: 0 0 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ════════════════════════════════════════════════════════════════════════════
   5. ACTIVITÉS — alternance image/texte
   ════════════════════════════════════════════════════════════════════════════ */

.nb-activite {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-bordure);
}

.nb-activite:first-child { border-top: 1px solid var(--color-bordure); }
.nb-activite:last-child  { border-bottom: none; }

/* Inverser photo/texte sur les items pairs */
.nb-activite--inverse {
    direction: rtl;
}
.nb-activite--inverse > * {
    direction: ltr;
}

.nb-activite-photo {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.nb-activite-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nb-activite-photo:hover img {
    transform: scale(1.03);
}

.nb-activite-texte h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--color-texte);
}

.nb-activite-texte > p {
    font-size: 1.05rem;
    color: var(--color-gris);
    line-height: 1.85;
    margin: 0 0 1.5rem;
}

/* Liste avec flèche (→) */
.nb-activite-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nb-activite-list li {
    font-size: 0.95rem;
    color: #444;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.nb-activite-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-vert);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════════════════
   6. PAGE CONTACT
   ════════════════════════════════════════════════════════════════════════════ */

.nb-contact-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem var(--padding-x) 6rem;
}

/* Grille 2 colonnes */
.nb-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

/* Colonne gauche : coordonnées */
.nb-contact-coords {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nb-contact-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.nb-contact-company {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* Chaque item de coordonnée */
.nb-coord-item {}

.nb-coord-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #bbb;
    margin: 0 0 0.35rem;
    display: block;
}

.nb-coord-value {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.nb-coord-link {
    font-weight: 600;
    color: #1a1a1a;
    border-bottom: 1.5px solid var(--color-vert);
    padding-bottom: 1px;
    transition: color 0.15s;
}

.nb-coord-link:hover {
    color: var(--color-vert-dark);
}

.nb-coord-tel {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}

.nb-coord-tel:hover {
    color: var(--color-vert-dark);
}

address.nb-coord-address {
    font-style: normal;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.nb-coord-tva {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
    font-family: monospace;
    letter-spacing: 0.04em;
}

/* Réseaux sociaux — pills */
.nb-coord-socials {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.nb-social-pill {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: #1a1a1a;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    transition: background 0.15s;
    line-height: 1;
}

.nb-social-pill:hover {
    background: var(--color-vert-dark);
    color: #fff;
}

/* Colonne droite */
.nb-contact-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Encart CTA email */
.nb-contact-cta-box {
    background: var(--color-fond);
    border-left: 3px solid var(--color-vert);
    padding: 2rem 2rem 2rem;
    border-radius: 0 4px 4px 0;
}

.nb-contact-cta-box .nb-eyebrow {
    color: var(--color-vert);
    margin-bottom: 0.75rem;
}

.nb-contact-cta-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin: 0 0 1.5rem;
}

/* Photo ambiance */
.nb-contact-photo {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.nb-contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge BoisLocal */
.nb-boislocal-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-bordure);
    border-radius: 4px;
}

.nb-boislocal-badge img {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.nb-boislocal-badge p {
    font-size: 0.82rem;
    color: #666;
    margin: 0;
    line-height: 1.55;
}

/* Bloc Bois Local (page Approche) */
.nb-boislocal-bloc {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.nb-boislocal-bloc p { flex: 1; margin: 0; }
.nb-boislocal-logo-link {
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.nb-boislocal-logo-link:hover { opacity: 1; }
.nb-boislocal-logo-link img   { display: block; }

/* ════════════════════════════════════════════════════════════════════════════
   7. RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {

    .nb-page-hero        { padding: 4rem var(--padding-x) 3.5rem; }
    .nb-page-hero--compact { padding: 3rem var(--padding-x) 2.5rem; }
    .nb-page-h1          { font-size: clamp(2rem, 8vw, 2.8rem); }

    .nb-bloc             { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem 0; }
    .nb-bloc h2          { font-size: 1.1rem; }

    .nb-activite         { grid-template-columns: 1fr; gap: 2rem; direction: ltr; padding: 3rem 0; }
    .nb-activite--inverse { direction: ltr; }
    .nb-activite-photo   { aspect-ratio: 16 / 9; }

    .nb-contact-grid     { grid-template-columns: 1fr; gap: 3rem; }
    .nb-contact-section  { padding: 3rem var(--padding-x) 4rem; }

    .nb-dark-cta         { padding: 4rem var(--padding-x); }
    .nb-page-section     { padding: 3rem var(--padding-x); }
}

/* ════════════════════════════════════════════════════════════════════════════
   8. PROSE (pages légales, contenu WP)
   ════════════════════════════════════════════════════════════════════════════ */

.nb-prose h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--color-texte);
    letter-spacing: -0.01em;
}

.nb-prose p,
.nb-prose li {
    font-size: 1rem;
    color: var(--color-gris);
    line-height: 1.85;
    margin: 0 0 0.75rem;
}

.nb-prose ul {
    padding-left: 1.5rem;
    margin: 0 0 1rem;
}

.nb-prose a {
    color: var(--color-vert-dark);
    border-bottom: 1px solid currentColor;
}

.nb-prose strong {
    color: var(--color-texte);
    font-weight: 600;
}

@media (max-width: 480px) {
    .nb-page-h1  { font-size: 2rem; }
    .nb-page-lead { font-size: 1rem; }
    .nb-activite-texte h2 { font-size: 1.3rem; }
    .nb-coord-socials { gap: 0.5rem; }
    .nb-boislocal-badge { flex-direction: column; text-align: center; }
}
