/* BRA – styles complémentaires des nouvelles pages (s'ajoute à main.css) */
:root { --bra-navy: #0e176a; --bra-navy-dark: #050824; --bra-gold: #b49f40; --bra-gold-light: #d4c062; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bra-navy); color: #fff; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Navbar pleine sur les pages intérieures */
.navbar.navbar-solid { background: #fff; box-shadow: 0 2px 12px rgba(14,23,106,.08); }
.navbar.navbar-solid .nav-link { color: var(--bra-navy); }

/* Hero des pages intérieures */
.page-hero { background: linear-gradient(135deg, var(--bra-navy-dark), var(--bra-navy)); background-size: cover; background-position: center; color: #fff; padding: calc(var(--header-height, 90px) + 3rem) 0 3.5rem; }
.page-hero h1 { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin: .4rem 0 1rem; color: #fff; max-width: 20ch; }
.page-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 62ch; opacity: .92; line-height: 1.6; }
.page-eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--bra-gold-light); margin-top: 1rem; }
.eyebrow-dark { color: var(--bra-gold); margin-top: 0; }
.breadcrumb { font-size: .875rem; opacity: .85; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .sep { margin: 0 .35rem; opacity: .6; }

/* Sections */
.section-plain, .section-tinted { padding: 4.5rem 0; }
.section-tinted { background: var(--color-light-gray, #f2f4f8); }
.section-tight { padding: 2rem 0; }
.container-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head p { color: var(--color-dark-gray, #4b5563); font-size: 1.1rem; max-width: 640px; margin: .5rem auto 0; }
.h-section { font-family: 'Cinzel', serif; font-weight: 700; color: var(--bra-navy); font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin-bottom: 1rem; }
.h-section::after { content: ''; display: block; width: 56px; height: 3px; background: var(--bra-gold); margin-top: .6rem; border-radius: 3px; }
.section-head .h-section::after { margin-left: auto; margin-right: auto; }
.center { text-align: center; margin-top: 2rem; }
.answer-first { font-size: 1.125rem; line-height: 1.75; color: var(--color-text, #1f2937); border-left: 4px solid var(--bra-gold); padding-left: 1.25rem; margin-bottom: 2rem; }

/* Prose */
.prose h2 { font-family: 'Cinzel', serif; color: var(--bra-navy); font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.prose h3 { color: var(--bra-navy); font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.prose p { line-height: 1.75; margin-bottom: 1rem; color: var(--color-text, #1f2937); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; line-height: 1.6; }
.check-list svg { flex: 0 0 auto; color: var(--bra-gold); margin-top: .25rem; }
.note-bre { background: #fff; border: 1px solid var(--color-gray, #e6e8ec); border-left: 4px solid var(--bra-navy); padding: 1rem 1.25rem; border-radius: 8px; margin-top: 2rem; line-height: 1.6; }
.quote { margin: 2rem 0; padding: 1.5rem 1.75rem; background: var(--bra-navy); color: #fff; border-radius: 12px; font-size: 1.15rem; line-height: 1.6; }
.quote cite { display: block; margin-top: .75rem; font-style: normal; color: var(--bra-gold-light); font-weight: 600; font-size: .95rem; }
.legal-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; }
.legal-list dt { font-weight: 700; color: var(--bra-navy); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--bra-navy); }
.link-arrow:hover { color: var(--bra-gold); }

/* Cartes prestations */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.svc-card { display: flex; flex-direction: column; background: #fff; border-radius: 14px; padding: 1.75rem 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-gray, #e6e8ec); color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--bra-gold); }
.svc-num { font-family: 'Cinzel', serif; color: var(--bra-gold); font-weight: 700; font-size: 1.1rem; }
.svc-card h3 { color: var(--bra-navy); font-size: 1.15rem; margin: .5rem 0; }
.svc-card p { color: var(--color-dark-gray, #4b5563); line-height: 1.55; flex: 1; }
.svc-more, .proj-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--bra-navy); margin-top: 1rem; font-size: .95rem; }

/* Valeurs */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.value-card { background: var(--bra-navy); color: #fff; border-radius: 14px; padding: 2rem 1.75rem; }
.value-card h3 { font-family: 'Cinzel', serif; color: var(--bra-gold-light); font-size: 1.25rem; margin-bottom: .75rem; }
.value-card p { line-height: 1.65; opacity: .92; }

/* Projets */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.proj-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-gray, #e6e8ec); transition: transform .25s, box-shadow .25s; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.proj-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.proj-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: #e6e8ec; }
.proj-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-card-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proj-meta { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bra-gold); font-weight: 700; margin-bottom: .4rem; }
.proj-card h3 { color: var(--bra-navy); font-size: 1.1rem; line-height: 1.35; margin-bottom: .5rem; }
.proj-card p { color: var(--color-dark-gray, #4b5563); line-height: 1.55; }
.proj-tag { display: inline-block; align-self: flex-start; margin-top: .75rem; font-size: .75rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(180,159,64,.15); color: #6b5b1e; font-weight: 600; }
.project-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 3rem; align-items: start; }
.project-facts { background: var(--color-light-gray, #f2f4f8); border-radius: 14px; padding: 1.75rem; position: sticky; top: calc(var(--header-height, 90px) + 1rem); }
.project-facts h2 { font-family: 'Cinzel', serif; color: var(--bra-navy); font-size: 1.3rem; margin-bottom: 1rem; }
.project-facts h3 { color: var(--bra-navy); font-size: 1rem; margin: 1.25rem 0 .5rem; }
.project-facts dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.project-facts dt { font-weight: 700; color: var(--bra-navy); }
.pilot-note { font-style: italic; color: var(--color-dark-gray, #4b5563); border-top: 1px solid var(--color-gray, #e6e8ec); padding-top: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.gallery-large { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* À propos (accueil) */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-split p { line-height: 1.75; margin-bottom: 1rem; }
.about-split-img img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-lg); display: block; }

/* Carte hero : faits */
.hcg-facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.hcg-facts li { display: flex; flex-direction: column; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: .75rem; }
.hcg-facts li:last-child { border-bottom: 0; }
.hcg-facts strong { font-size: 1.35rem; color: var(--bra-gold-light); }
.hcg-facts span { font-size: .9rem; opacity: .9; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--color-gray, #e6e8ec); border-radius: 10px; margin-bottom: .75rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--bra-gold); font-weight: 700; }
.faq-item[open] summary::after { content: '–'; }
.faq-item summary h3, .faq-item summary h4 { display: inline; font-size: 1.05rem; color: var(--bra-navy); font-weight: 700; }
.faq-item p { padding: 0 1.25rem 1.25rem; line-height: 1.7; color: var(--color-text, #1f2937); }
.section-tinted .faq-item { background: #fff; }

/* Bandeau CTA */
.cta-band { background: linear-gradient(135deg, var(--bra-navy-dark), var(--bra-navy)); color: #fff; padding: 3.5rem 0; }
.cta-band-inner { display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { font-family: 'Cinzel', serif; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; margin-bottom: .5rem; }
.cta-band p { opacity: .9; max-width: 56ch; line-height: 1.6; }
.cta-band-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-outline-light { border: 2px solid rgba(255,255,255,.7); color: #fff; background: transparent; display: inline-flex; align-items: center; gap: .5rem; }
.btn-outline-light:hover { background: #fff; color: var(--bra-navy); }
.btn-secondary-dark { border: 2px solid var(--bra-navy); color: var(--bra-navy); background: transparent; display: inline-flex; align-items: center; gap: .5rem; }
.btn-secondary-dark:hover { background: var(--bra-navy); color: #fff; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pill-list a { display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--color-gray, #e6e8ec); color: var(--bra-navy); font-weight: 600; background: #fff; }
.pill-list a:hover { border-color: var(--bra-gold); }

/* Bannière d'aperçu */
.preview-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #b49f40; color: #050824; text-align: center; font-weight: 700; padding: .5rem; z-index: 3000; font-size: .9rem; }

/* Les éléments .reveal sont gérés par main.js sur l'accueil ; on les rend visibles par défaut ailleurs */
.spn-step-inner.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .project-layout, .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .project-facts { position: static; }
  .section-plain, .section-tinted { padding: 3rem 0; }
  .legal-list, .project-facts dl { grid-template-columns: 1fr; }
  .legal-list dd, .project-facts dd { margin-bottom: .5rem; }
}

/* Lisibilité de la carte « BRA en bref » sur fond sombre */
.hero-card-glass .hcg-facts span { color: rgba(255,255,255,.88); opacity: 1; }

/* Formulaires enrichis */
.bra-form .form-group select { width: 100%; padding: 1rem; font-family: var(--font-primary); font-size: 1rem; color: var(--color-text); background: var(--color-off-white, #f8f9fa); border: 2px solid var(--color-gray, #e6e8ec); border-radius: var(--radius-md, 12px); appearance: none; background-image: linear-gradient(45deg, transparent 50%, #0e176a 50%), linear-gradient(135deg, #0e176a 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.bra-form .form-group select:focus { outline: none; border-color: var(--bra-gold); background-color: #fff; }
.bra-form .form-fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
.bra-form legend { font-weight: 600; color: var(--bra-navy); font-size: .9rem; margin-bottom: .5rem; }
.choice-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: .6rem 1rem; border: 2px solid var(--color-gray, #e6e8ec); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--bra-navy); background: #fff; transition: border-color .2s, background .2s, color .2s; }
.choice input:checked + span { background: var(--bra-navy); border-color: var(--bra-navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--bra-gold); outline-offset: 2px; }
.form-devis { border-left: 3px solid var(--bra-gold); padding-left: 1rem; margin-bottom: 1.5rem; }
.form-devis[hidden] { display: none; }
.form-hint { font-size: .9rem; color: var(--color-dark-gray, #4b5563); margin-bottom: 1rem; }
.form-privacy { font-size: .8rem; color: var(--color-dark-gray, #4b5563); margin-top: 1rem; line-height: 1.5; }
.form-privacy a, .form-intro a { color: var(--bra-navy); text-decoration: underline; }
.form-intro { margin: 0 0 1.5rem; line-height: 1.7; }
.bra-form .form-message { display: block; }
.bra-form .form-message:empty { display: none; }
.small-note { font-size: .85rem; margin-top: .35rem; }
.contact-info-recrut { border-left-color: var(--bra-gold) !important; }
.contact-info-recrut a { color: var(--bra-navy); font-weight: 700; text-decoration: underline; }
.proj-tag-live { background: rgba(14,23,106,.1); color: var(--bra-navy); }
.section-header.visible { opacity: 1; transform: none; }

/* Rubrique « Sur le chantier » */
.actu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.actu-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--color-gray, #e6e8ec); transition: transform .25s, box-shadow .25s; }
.actu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.actu-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.actu-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #e6e8ec; }
.actu-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actu-card-body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.actu-card h3 { color: var(--bra-navy); font-size: 1.05rem; line-height: 1.35; margin-bottom: .4rem; }
.actu-card p { color: var(--color-dark-gray, #4b5563); line-height: 1.55; font-size: .95rem; }
.actu-byline { font-size: .9rem; color: var(--color-dark-gray, #4b5563); margin-bottom: 1.5rem; }
.actu-byline a, .actu-links a, .answer-first a { color: var(--bra-navy); text-decoration: underline; text-underline-offset: 3px; }
.actu-gallery { margin: 1.5rem 0 1rem; }
.actu-links { padding-left: 1.2rem; line-height: 2; }
.actu-follow { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Mobile : le formulaire ne dépasse plus de l'écran */
.contact-content > * { min-width: 0; }
.contact-info-item, .contact-info-item > div { min-width: 0; }
.contact-info-item a { overflow-wrap: anywhere; }
@media (max-width: 600px) { .bra-form.contact-form { padding: 1.75rem 1.25rem; } }
