/*
Theme Name: Ritmo Communication
Theme URI: https://ritmo-communication.fr
Author: Ritmo Communication
Author URI: https://ritmo-communication.fr
Description: Thème sur mesure pour Les Ouvertures de Demain — menuiseries alu, bois & PVC sur le Bassin d'Arcachon. Page d'accueil pilotée par ACF, contenus en CPT (produits, matériaux, réalisations, avis, FAQ, zones).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ritmo
*/

:root {
    --gold: #E6C068;
    --bronze: #97753C;
    --black: #0a0a0a;
    --dark: #141414;
    --white: #ffffff;
    --light: #f8f6f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sans JS : tout reste visible. Avec JS : révélation au scroll. */
html.js .fade-up {
    opacity: 0;
}

/* Longhands (pas de raccourci animation:) pour ne pas écraser les .delay-N. */
html.js .fade-up.in-view {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== ELEMENTS COMMUNS ===== */
.section-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bronze);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: currentColor;
}

.section-label.is-centered {
    justify-content: center;
}

.section-label.is-centered::before {
    display: none;
}

.section-label.is-gold {
    color: var(--gold);
}

.section-divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 24px;
}

.section-divider.is-centered {
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    padding: 15px 32px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s, color 0.3s;
    border: 2px solid var(--gold);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 15px 32px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===== HEADER / MENU ARBORESCENCE ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s;
}

.admin-bar .site-header {
    top: 32px;
}

/* Breakpoints alignés sur l'admin-bar de WP core (46px sous 782px, absolute sous 600px). */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        position: absolute;
    }

    body.menu-open.admin-bar .site-header {
        top: 0;
    }
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.logo {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.logo img {
    max-height: 64px;
    width: auto;
    flex: 0 0 auto;
}

.logo-name {
    font-weight: 700;
    letter-spacing: 0.5px;
}


.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 30px 10px;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-item > a:hover {
    color: var(--gold);
}

.nav-item > a svg {
    transition: transform 0.3s;
    width: 10px;
    height: 10px;
}

.nav-item:hover > a svg {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    min-width: 260px;
    border-top: 2px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    padding: 12px 0;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
    background: rgba(230, 192, 104, 0.08);
    color: var(--gold);
}

.dropdown a small {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-header-call {
    background: var(--gold);
    color: var(--black);
    padding: 11px 22px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--gold);
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

.btn-header-call:hover {
    background: transparent;
    color: var(--gold);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 6px 2px;
}

.burger span {
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile ouvert : on efface le logo et le bouton d'appel pour ne laisser
   que la croix. */
body.menu-open {
    overflow: hidden;
}

/* Le header reste fixe et opaque : la croix ne part pas quand on fait défiler
   le menu. WP core repasse l'admin-bar (et donc le header) en absolute sous
   600px — d'où le rappel de position: fixed. */
body.menu-open .site-header {
    position: fixed;
    background: var(--black);
    border-bottom-color: transparent;
}

body.menu-open .site-header .logo,
body.menu-open .site-header .btn-header-call {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-header .logo,
.site-header .btn-header-call {
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.3s, color 0.3s;
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 110px 40px 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a.is-child {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 18px;
}

/* ===== HERO / SLIDER ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--black);
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 7s linear;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.85) 30%, rgba(10,10,10,0.40) 65%, rgba(10,10,10,0.00) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 84px 7% 60px;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}

/* En desktop, la colonne de contenu occupe la moitié gauche du slider. */
@media (min-width: 1280px) {
    .hero-content {
        max-width: 50%;
        padding-right: 50px;
    }
}

.hero-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--gold);
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 16px;
    font-style: italic;
}

.hero-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-badges {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-badge {
    display: flex;
    flex-direction: column;
}

.hero-badge strong {
    font-size: 1.6rem;
    color: var(--gold);
    font-weight: 700;
}

.hero-badge span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    bottom: 28px;
    right: 40px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.hero-dots button.active {
    background: var(--gold);
}

/* ===== INTRO ===== */
.section-intro {
    padding: 100px 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.intro-text h2 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.intro-text p {
    font-size: 0.95rem;
    color: #555;
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.9;
}

.intro-quote {
    font-style: italic;
    font-size: 1rem;
    color: var(--bronze);
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin: 30px 0;
    line-height: 1.7;
}

.intro-text .btn-primary {
    margin-top: 10px;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.intro-image-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--gold);
    color: var(--black);
    padding: 20px 28px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== PRODUITS ===== */
.section-produits {
    padding: 100px 0;
    background: var(--light);
}

.produits-header {
    text-align: center;
    margin-bottom: 60px;
}

.produits-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
}

.produits-header h2 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.produits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.produit-card {
    position: relative;
    height: 340px;
    overflow: hidden;
    display: block;
}

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

.produit-card:hover img {
    transform: scale(1.05);
}

.produit-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.2) 60%, transparent 100%);
}

.produit-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
}

.produit-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.produit-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
}

.produit-content span.link-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== MATERIAUX ===== */
.section-materiaux {
    padding: 100px 0;
    background: var(--black);
}

.materiaux-header {
    text-align: center;
    margin-bottom: 60px;
}

.materiaux-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.materiaux-header h2 span {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.materiaux-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.materiau-card {
    position: relative;
    overflow: hidden;
    height: 420px;
    display: block;
}

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

.materiau-card:hover img {
    transform: scale(1.05);
}

.materiau-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.2) 60%, transparent 100%);
    transition: background 0.4s;
}

.materiau-card:hover .materiau-overlay {
    background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.1) 100%);
}

.materiau-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}

.materiau-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.materiau-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.materiau-content p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    font-weight: 300;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s;
    opacity: 0;
}

.materiau-card:hover .materiau-content p {
    max-height: 100px;
    opacity: 1;
}

/* ===== GALERIE ===== */
.section-galerie {
    padding: 100px 0;
    background: var(--light);
}

.galerie-header {
    margin-bottom: 50px;
}

.galerie-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.galerie-header h2 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.galerie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 280px 280px;
    gap: 8px;
}

.galerie-item {
    overflow: hidden;
    position: relative;
    display: block;
}

.galerie-item:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.galerie-item:hover img {
    transform: scale(1.04);
}

.galerie-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 18px 14px;
    background: linear-gradient(to top, rgba(10,10,10,0.75), transparent);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    opacity: 0;
    transition: opacity 0.4s;
}

.galerie-item:hover figcaption {
    opacity: 1;
}

/* ===== AVANTAGES ===== */
.section-advantages {
    padding: 100px 0;
    background: var(--white);
}

.advantages-header {
    text-align: center;
    margin-bottom: 60px;
}

.advantages-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.3px;
}

.advantages-header h2 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid rgba(0,0,0,0.07);
    transition: border-color 0.3s;
}

.advantage-item:hover {
    border-color: var(--gold);
}

.advantage-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bronze);
}

.advantage-icon svg {
    width: 52px;
    height: 52px;
}

.advantage-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.advantage-item p {
    font-size: 0.88rem;
    color: #666;
    font-weight: 300;
    line-height: 1.8;
}

/* ===== PROCESSUS ===== */
.section-processus {
    padding: 100px 0;
    background: var(--black);
}

.processus-header {
    text-align: center;
    margin-bottom: 60px;
}

.processus-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
}

.processus-header h2 span {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.processus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.processus-card {
    background: var(--gold);
    padding: 40px 28px;
    position: relative;
}

.processus-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(0,0,0,0.12);
    line-height: 1;
    margin-bottom: 16px;
    font-style: italic;
}

.processus-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.processus-card p {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.7);
    font-weight: 400;
    line-height: 1.7;
}

/* ===== CITATION ===== */
.section-citation {
    padding: 100px 0;
    background: var(--dark);
}

.citation-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.citation-mark {
    font-size: 6rem;
    color: var(--gold);
    line-height: 0.5;
    margin-bottom: 30px;
    font-family: Georgia, serif;
}

.citation-text {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 30px;
}

.citation-author {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}

/* ===== AVIS ===== */
.section-avis {
    padding: 100px 0;
    background: var(--light);
}

.avis-header {
    margin-bottom: 50px;
}

.avis-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
}

.avis-header h2 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.avis-card {
    background: var(--gold);
    padding: 36px 30px;
}

.avis-stars {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--black);
    letter-spacing: 2px;
}

.avis-text {
    font-size: 0.88rem;
    color: var(--black);
    font-weight: 400;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 20px;
}

.avis-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.avis-author strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.avis-author span {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.6);
}

/* ===== FAQ ===== */
.section-faq {
    padding: 100px 0;
    background: var(--black);
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header .section-divider {
    background: var(--gold);
}

.faq-header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
}

.faq-header h2 span {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 26px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 20px;
    font-family: inherit;
}

.faq-question h3 {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.2px;
    line-height: 1.5;
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s, background 0.3s;
}

.faq-item.active .faq-icon {
    background: var(--gold);
    color: var(--black);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 10px;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 10px 26px;
}

.faq-answer p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-answer a {
    color: var(--gold);
    text-decoration: underline;
}

/* ===== ZONES ===== */
.section-zones {
    padding: 100px 0;
    background: var(--white);
}

.zones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.zones-text h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.zones-text h2 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.zones-text p {
    font-size: 0.92rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.8;
}

.zones-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.zone-tag {
    background: var(--light);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 7px 16px;
    letter-spacing: 0.5px;
}

.zones-image {
    position: relative;
}

.zones-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.zones-image-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 24px;
}

/* ===== CTA FINAL ===== */
.cta-final {
    padding: 120px 0;
    background: var(--black);
    text-align: center;
}

.cta-final .section-divider {
    margin-bottom: 30px;
    background: var(--gold);
}

.cta-final h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-final h2 span {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.cta-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.footer-brand {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 18px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a,
.footer-col ul li {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.78rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
    color: var(--gold);
}

/* ===== PAGES INTERNES (gabarits par défaut) ===== */
.page-hero {
    background: var(--black);
    padding: 170px 0 70px;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.page-hero h1 span {
    color: var(--gold);
    font-style: italic;
    font-weight: 300;
}

.page-content {
    padding: 80px 0;
}

.page-content p,
.page-content ul,
.page-content ol {
    font-size: 0.95rem;
    color: #555;
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.9;
}

.page-content ul,
.page-content ol {
    padding-left: 22px;
}

.page-content h2,
.page-content h3 {
    color: var(--dark);
    margin: 30px 0 14px;
    line-height: 1.3;
}

.page-content a {
    color: var(--bronze);
    text-decoration: underline;
}

.page-content img {
    height: auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 80px 0;
}

/* En-tête des fiches produit et des articles (sur-titre + sous-titre). */
.page-hero .section-label {
    margin-bottom: 16px;
}

.page-hero-sub {
    margin-top: 14px;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
}

.page-content h2 {
    font-size: 1.6rem;
}

.page-content h3 {
    font-size: 1.15rem;
}

.page-content h2 span,
.page-content h3 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.page-content li {
    margin-bottom: 6px;
}

.page-content .btn-primary {
    text-decoration: none;
}

.entry-back {
    margin-top: 40px;
}

/* Image à la une des articles et réalisations : bandeau recadré, jamais une photo de 2000 px de haut. */
.entry-thumbnail {
    margin: 0 0 40px;
}

.entry-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}


.section-intro + .section-texte {
    padding-top: 0;
}

.page-content .image-centered {
    text-align: center;
    margin: 10px 0 30px;
}

/* ===== BLOG ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid #ececec;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(10, 10, 10, 0.08);
}

.blog-card-image {
    display: block;
    overflow: hidden;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-body {
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bronze);
}

.blog-card h2 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 10px 0 12px;
}

.blog-card h2 a {
    color: var(--dark);
}

.blog-card h2 a:hover {
    color: var(--bronze);
}

.blog-card p {
    margin-bottom: 18px;
    flex: 1;
}

.blog-card .link-more {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bronze);
    text-decoration: none;
}

.page-content .pagination {
    margin-top: 56px;
}

.page-content .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.page-content .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
}

.page-content .page-numbers.current,
.page-content .page-numbers:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--gold);
}

.page-content .page-numbers.dots {
    border: 0;
}

/* ===== PAGE CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-form > p:first-child {
    font-size: 1.02rem;
}

.contact-aside {
    position: sticky;
    top: 96px;
    background: var(--black);
    padding: 44px 40px 36px;
    color: var(--white);
}

.contact-aside h2 {
    color: var(--white);
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-item-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(230, 192, 104, 0.35);
    color: var(--gold);
}

.contact-item strong {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-item > div {
    min-width: 0;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-item .contact-item-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--gold);
}

.contact-notes {
    list-style: none;
    padding: 22px 0 0;
    margin: 0;
}

.contact-notes li {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    padding: 5px 0 5px 26px;
    position: relative;
}

.contact-notes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* Formulaire Gravity Forms accordé au thème. */
.contact-page .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 22px;
}

.contact-page .gform_wrapper.gravity-theme .gfield_label,
.contact-page .gform_wrapper.gravity-theme legend.gfield_label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-page .gform_wrapper.gravity-theme .gfield_required {
    color: var(--bronze);
}

.contact-page .gform_wrapper.gravity-theme input[type='text'],
.contact-page .gform_wrapper.gravity-theme input[type='email'],
.contact-page .gform_wrapper.gravity-theme input[type='tel'],
.contact-page .gform_wrapper.gravity-theme select,
.contact-page .gform_wrapper.gravity-theme textarea {
    border: 1px solid #ddd;
    border-radius: 0;
    background: var(--white);
    padding: 13px 15px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--dark);
}

.contact-page .gform_wrapper.gravity-theme input:focus,
.contact-page .gform_wrapper.gravity-theme select:focus,
.contact-page .gform_wrapper.gravity-theme textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}

.contact-page .gform_wrapper.gravity-theme .gfield_checkbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 18px;
}

.contact-page .gform_wrapper.gravity-theme .gfield_checkbox label,
.contact-page .gform_wrapper.gravity-theme .ginput_container_consent label {
    font-size: 0.88rem;
    font-weight: 300;
    color: #444;
    text-transform: none;
    letter-spacing: 0;
}

.contact-page .gform_wrapper.gravity-theme input[type='checkbox'] {
    accent-color: var(--bronze);
    width: 16px;
    height: 16px;
}

.contact-page .gform_wrapper.gravity-theme .gform_footer {
    margin-top: 10px;
    padding: 0;
}

.contact-page .gform_wrapper.gravity-theme .gform_footer input[type='submit'],
.contact-page .gform_wrapper.gravity-theme .gform_footer button {
    background: var(--gold);
    color: var(--black);
    border: 0;
    border-radius: 0;
    padding: 16px 36px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.contact-page .gform_wrapper.gravity-theme .gform_footer input[type='submit']:hover,
.contact-page .gform_wrapper.gravity-theme .gform_footer button:hover {
    background: var(--bronze);
    transform: translateY(-2px);
}

.contact-page .gform_confirmation_message {
    background: var(--light);
    border-left: 3px solid var(--gold);
    padding: 24px 28px;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
/* Le menu desktop (7 entrées) a besoin de ~1200px : burger en dessous de 1280px. */
@media (max-width: 1279px) {
    .main-nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 1024px) {
    .intro-grid,
    .zones-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-aside {
        position: static;
    }

    .produits-grid,
    .materiaux-grid,
    .processus-grid,
    .archive-grid,
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .avis-grid {
        grid-template-columns: 1fr;
    }

    .galerie-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .galerie-item {
        height: 260px;
    }

    .galerie-item:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
        height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .hero-content {
        padding: 100px 24px 60px;
        max-width: 100%;
    }

    .hero-overlay {
        background: rgba(10, 10, 10, 0.75);
    }

    .hero-dots {
        right: 24px;
    }

    .produits-grid,
    .materiaux-grid,
    .processus-grid,
    .archive-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .galerie-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .galerie-item:first-child {
        grid-column: auto;
        height: 260px;
    }

    .galerie-item {
        height: 220px;
    }

    .hero-badges {
        gap: 20px;
    }

    .intro-image img {
        height: 380px;
    }

    .intro-image-badge {
        left: 0;
    }

    .zones-image img {
        height: 360px;
    }

    .zones-image-badge {
        right: 0;
    }

    .faq-question h3 {
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .contact-page .gform_wrapper.gravity-theme .gfield_checkbox {
        grid-template-columns: 1fr;
    }

    .contact-aside {
        padding: 34px 26px 28px;
    }

    /* Le nom passe sur deux lignes à côté du logo : sur une seule il glissait
       sous le bouton d'appel dès 375 px. */
    .logo {
        font-size: 0.82rem;
        white-space: normal;
        gap: 12px;
    }

    .logo img {
        max-height: 46px;
    }

    .logo-name {
        max-width: 9.5em;
        line-height: 1.2;
    }

    /* Bouton d'appel réduit à l'icône pour laisser la place au burger. */
    .site-header .btn-header-call {
        padding: 10px 12px;
    }

    .site-header .btn-header-call .call-label {
        display: none;
    }

    .header-actions {
        gap: 14px;
    }
}

/* Sous 360 px, le nom passait sur trois lignes : logo et texte resserrés. */
@media (max-width: 360px) {
    .logo {
        font-size: 0.74rem;
        gap: 9px;
    }

    .logo img {
        max-height: 38px;
    }
}

/* ===== RÉALISATIONS : photos du chantier + avis client ===== */
.page-content .realisation-galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 24px 0 40px;
}

.page-content .realisation-galerie figure {
    margin: 0;
}

.page-content .realisation-galerie img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.page-content blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 24px;
    border-left: 3px solid var(--bronze);
}

.page-content blockquote p {
    font-style: italic;
}

/* Titres des cartes : interlignage serré (l'héritage 1.7 du body étirait les titres sur 3-4 lignes). */
.produit-content h3,
.materiau-content h3 {
    line-height: 1.25;
}

/* ===== RÉALISATIONS : fil d'Ariane, filtres, cartes, fiche ===== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.realisations-archive {
    padding: 70px 0 90px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 44px;
}

.filter {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dark);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.filter:hover,
.filter.is-active {
    background: var(--dark);
    color: var(--gold);
}

.filters-select {
    display: none;
    max-width: 420px;
    margin: 0 auto 32px;
}

.filters-select label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bronze);
}

.filters-select select {
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 1px solid var(--dark);
    border-radius: 0;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23141414'%3E%3Cpath d='M8 11.5 2.5 6l1.4-1.4L8 8.7l4.1-4.1L13.5 6z'/%3E%3C/svg%3E") no-repeat right 16px center / 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--dark);
    appearance: none;
    -webkit-appearance: none;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
}

.realisation-card {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.realisation-card__link {
    display: block;
    height: 100%;
}

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

.realisation-card:hover img {
    transform: scale(1.05);
}

.realisation-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 60px 24px 22px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 60%, transparent 100%);
}

.realisation-card__overlay h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
}

.realisation-card__type {
    display: block;
    margin-bottom: 8px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.realisation-card__lieu {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.realisation-single {
    padding: 60px 0 90px;
}

.realisation-single__cover {
    margin: 0 0 50px;
}

.realisation-single__cover img {
    display: block;
    width: 100%;
    height: clamp(260px, 42vw, 560px);
    object-fit: cover;
}

.realisation-single__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 55px;
    align-items: start;
}

.realisation-single__content.page-content {
    padding: 0;
}

.realisation-single__content > :first-child {
    margin-top: 0;
}

.realisation-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
    padding: 0;
    list-style: none;
}

.page-content .realisation-gallery li {
    margin: 0;
}

.realisation-gallery a {
    display: block;
    overflow: hidden;
}

.realisation-gallery img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.realisation-gallery a:hover img {
    transform: scale(1.04);
}

.realisation-single__meta {
    position: sticky;
    top: 120px;
    padding: 30px;
    background: var(--light);
    border-top: 3px solid var(--gold);
}

.realisation-single__meta h2 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.realisation-single__meta dl {
    margin: 0 0 26px;
}

.realisation-single__meta dt {
    margin-top: 16px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bronze);
}

.realisation-single__meta dd {
    margin: 4px 0 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.realisation-single__types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.realisation-single__types a {
    color: var(--dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.realisation-single__types a:hover {
    color: var(--bronze);
}

.realisation-single__meta .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 15px 18px;
    letter-spacing: 1px;
}

.realisation-single__related {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #e6e2da;
}

.realisation-single__related h2 {
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.realisations-archive .empty-state {
    text-align: center;
    color: #555;
}

@media (max-width: 1024px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .realisation-single__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .realisation-single__meta {
        position: static;
    }
}

@media (max-width: 640px) {
    .js .filters {
        display: none;
    }

    .js .filters-select {
        display: block;
    }

    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .realisation-card {
        height: 280px;
    }

    .realisation-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .realisation-gallery img {
        height: 140px;
    }
}

/*
 * Pages à sections (Garanties…) : deux sections blanches qui se suivent cumulaient
 * leurs marges (100 + 100 px). Les engagements passent sur fond clair pour rythmer,
 * et le texte libre qui les suit garde une respiration régulière.
 */
.section-intro + .section-advantages {
    background: var(--light);
}

.section-advantages + .section-texte {
    padding: 90px 0;
}

.section-texte .container > :first-child {
    margin-top: 0;
}

.section-texte h2 {
    margin-top: 56px;
}

.section-texte h3 {
    margin-top: 32px;
}

.section-texte .image-centered {
    margin: 24px 0 36px;
}

.section-intro + .section-advantages .advantage-item {
    background: var(--white);
}

/*
 * Titres : interlignage serré partout. Sans règle, h2/h3 héritaient du 1.7 du body
 * (« On intervient près de chez vous » sur deux lignes très espacées). Sélecteur
 * d'élément : les règles de classe qui fixent déjà leur line-height restent prioritaires.
 */
h1,
h2,
h3 {
    line-height: 1.2;
}

/* ===== FICHE PRODUIT : carrousel « Nos réalisations » ===== */
.section-realisations-slider {
    padding: 100px 0;
    background: var(--light);
}

.realisations-slider__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.realisations-slider__header h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
}

.realisations-slider__header h2 span {
    color: var(--bronze);
    font-style: italic;
    font-weight: 300;
}

.realisations-slider__nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.realisations-slider__btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--dark);
    border-radius: 50%;
    background: transparent;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, opacity 0.25s;
}

.realisations-slider__btn:hover:not(:disabled) {
    background: var(--dark);
    color: var(--gold);
}

.realisations-slider__btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.realisations-slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    list-style: none;
    padding: 0;
}

.realisations-slider__track::-webkit-scrollbar {
    display: none;
}

.realisations-slider__track > li {
    scroll-snap-align: start;
}

.realisations-slider__all {
    margin-top: 28px;
    text-align: right;
}

.realisations-slider__all a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bronze);
}

@media (max-width: 1024px) {
    .realisations-slider__track {
        grid-auto-columns: calc((100% - 24px) / 2);
    }
}

@media (max-width: 640px) {
    .realisations-slider__track {
        grid-auto-columns: 85%;
        gap: 16px;
    }

    .realisations-slider__btn {
        width: 42px;
        height: 42px;
    }
}

/* « Voir plus » : les cartes au-delà de 12 ne sont masquées que si JavaScript peut les révéler. */
.js .realisation-card.is-hidden {
    display: none;
}

.realisations-more {
    display: none;
    margin-top: 44px;
    text-align: center;
}

.js .realisations-more {
    display: block;
}

.realisations-more .btn-primary {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
