/* =====================================================
   MEYRAND TP - Terrassement VRD Démolition
   Palette : Jaune #F5C200 / Noir #1a1a1a / Gris #4A4A4A
   Fonts : Oswald (titres) + Source Sans Pro (corps)
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette principale Meyrand TP */
    --yellow:        #F5C200;
    --yellow-dark:   #D4A800;
    --yellow-light:  #FFD740;
    --yellow-gradient: linear-gradient(135deg, #D4A800 0%, #F5C200 50%, #FFD740 100%);
    --black:         #1a1a1a;
    --black-soft:    #222222;
    --dark:          #2e2e2e;
    --gray-dark:     #4A4A4A;
    --gray-medium:   #6B6B6B;
    --gray-light:    #e8e8e8;
    --color-text:    #3e3e3e;
    --color-text-main: #2e2e2e;
    --color-text-light: #6B6B6B;
    --color-white:   #ffffff;
    --color-bg-light: #f7f7f5;
    --color-border:  #e0ddd8;
    /* UI */
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:  0 5px 20px rgba(0,0,0,0.12);
    --shadow-lg:  0 10px 40px rgba(0,0,0,0.18);
    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --transition-fast:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Oswald', 'Segoe UI', system-ui, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.7;
    background-color: var(--color-bg-light);
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* =====================================================
   TOP BAR
   ===================================================== */
.top-bar {
    background: var(--black);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--yellow);
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-contact a,
.top-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition-fast);
}
.top-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 0;
}
.top-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.85);
    transition: var(--transition-fast);
    white-space: nowrap;
}
.top-link:hover { color: var(--yellow); }
.top-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
}
.top-location { margin-left: 0; }
.top-contact a:hover { color: var(--yellow); }
.top-bar i { color: var(--yellow); }
.separator { margin: 0 12px; opacity: 0.35; }

/* =====================================================
   MAIN HEADER
   ===================================================== */
.main-header {
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
}
.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    min-height: 80px;
}
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-img {
    height: 58px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.logo-container:hover .logo-img { opacity: 0.85; }

/* Navigation */
.nav-wrapper { display: flex; align-items: center; }
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0; padding: 0;
}
.main-nav > ul > li > a {
    color: rgba(255,255,255,0.88);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 0;
    position: relative;
    transition: color 0.25s ease;
}
.main-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--yellow);
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li > a.active::after { width: 100%; }

/* CTA Button */
.cta-item { margin-left: 10px; }
.btn-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--yellow);
    color: var(--black) !important;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(245,194,0,0.3);
    transition: all 0.3s ease !important;
    white-space: nowrap;
}
.btn-header-cta:hover {
    background: var(--yellow-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,194,0,0.45);
}
.btn-header-cta::after { display: none !important; }

/* Dropdown */
.dropdown { position: relative; cursor: pointer; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    background: var(--color-white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 100;
    border-top: 3px solid var(--yellow);
}
@media (min-width: 969px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1; visibility: visible;
        transform: translateY(5px);
    }
}
.dropdown.active .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(10px);
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover {
    background: #fffbe6;
    color: var(--yellow-dark);
    padding-left: 26px;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 21px;
    background: none; border: none;
    cursor: pointer; z-index: 1001; padding: 0;
}
.mobile-menu-toggle span {
    display: block; width: 100%; height: 3px;
    background: var(--yellow);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    position: relative;
    height: 88vh;
    min-height: 600px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}
.hero-slider, .hero-slide {
    width: 100%; height: 100%;
}
.hero-slide {
    position: absolute; top: 0; left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.08);
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 7s ease-out;
}
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.15) 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    color: var(--color-white);
}
.hero-content {
    max-width: 950px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}
.hero-badge {
    display: inline-block;
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 3px;
    margin-bottom: 1.5rem;
}
.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
    line-height: 1.1;
}
.hero-content h1 span { color: var(--yellow); }
.hero-content p {
    font-size: 1.35rem;
    font-weight: 300;
    opacity: 0.92;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto; margin-right: auto;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   BOUTONS GLOBAUX
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 28px;
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 2px solid var(--yellow);
    cursor: pointer;
}
.btn:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,194,0,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--yellow);
    color: var(--yellow);
}
.btn-dark {
    background: var(--black);
    color: var(--yellow);
    border-color: var(--black);
}
.btn-dark:hover {
    background: var(--dark);
    border-color: var(--dark);
    transform: translateY(-2px);
}

/* =====================================================
   SECTIONS GLOBALES
   ===================================================== */
.section { padding: 6rem 0; }
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
}
.section-title::after {
    content: '';
    display: block;
    width: 70px; height: 4px;
    margin: 1rem auto;
    background: var(--yellow);
    border-radius: 2px;
}
.section-title.light { color: var(--color-white); }
.section-title.light::after { background: var(--yellow); }

/* Intro block */
.intro-block {
    max-width: 860px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.08rem;
    color: var(--color-text-light);
    line-height: 1.8;
}
.intro-block strong { color: var(--color-text-main); }

/* =====================================================
   SECTION SERVICES (CARDS)
   ===================================================== */
.section-services {
    background: #fff;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .cards-grid-3 { grid-template-columns: 1fr; }
}
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}
.card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}
.card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card:hover .card-image img { transform: scale(1.06); }
.card-icon-overlay {
    position: absolute;
    bottom: 12px; right: 12px;
    width: 44px; height: 44px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--black);
    font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.card-content { padding: 1.8rem; }
.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.card-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* =====================================================
   SECTION VALEURS
   ===================================================== */
.valeurs-section {
    background: var(--color-bg-light);
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
}
.valeurs-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}
.valeur-item {
    padding: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--color-white);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
}
.valeur-item:nth-child(1),
.valeur-item:nth-child(2),
.valeur-item:nth-child(3) { grid-column: span 4; }
.valeur-item:nth-child(4),
.valeur-item:nth-child(5) { grid-column: span 6; }
@media (max-width: 968px) {
    .valeurs-grid { display: flex; flex-direction: column; }
    .valeur-item { width: 100%; }
}
.valeur-item:hover {
    background: var(--color-white);
    border-color: var(--yellow);
    border-bottom-color: var(--yellow);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.valeur-item i {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--yellow-dark);
}
.valeur-item h3 {
    font-size: 1.15rem;
    color: var(--black);
    margin-bottom: 0.75rem;
}
.valeur-item p {
    font-size: 0.93rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

/* =====================================================
   SECTION CHIFFRES CLÉS
   ===================================================== */
.chiffres-section {
    background: var(--black);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.chiffres-section::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(245,194,0,0.03) 10px,
        rgba(245,194,0,0.03) 20px
    );
}
.chiffres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .chiffres-grid { grid-template-columns: 1fr; }
}
.chiffre-item {
    text-align: center;
    padding: 2rem;
    border: 1px solid rgba(245,194,0,0.2);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}
.chiffre-item:hover {
    border-color: var(--yellow);
    background: rgba(245,194,0,0.05);
}
.chiffre-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.chiffre-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =====================================================
   SECTION CTA CONTACT
   ===================================================== */
.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--yellow);
    border-radius: var(--radius-lg);
    margin-top: 4rem;
}
.cta-section h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1.1rem;
    color: rgba(0,0,0,0.7);
    margin-bottom: 2rem;
}
.btn-cta {
    background: var(--black);
    color: var(--yellow);
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-cta:hover {
    background: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* =====================================================
   PAGE HERO (pages internes)
   ===================================================== */
.page-hero {
    background: var(--black);
    color: var(--color-white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 12px,
        rgba(245,194,0,0.04) 12px,
        rgba(245,194,0,0.04) 24px
    );
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
.page-hero h1 span { color: var(--yellow); }
.page-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
}
.breadcrumb-hero {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
}
.breadcrumb-hero a { color: var(--yellow); }
.breadcrumb-hero a:hover { text-decoration: underline; }
.breadcrumb-hero i { font-size: 0.7rem; }

/* =====================================================
   PAGES SERVICES (terrassement, démolition, TP)
   ===================================================== */
.service-page { padding: 5rem 0; background: #fff; }
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--color-border);
}
.service-block:last-of-type { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-block-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}
.service-block-image img {
    width: 100%; height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.service-block-image:hover img { transform: scale(1.04); }
.service-block-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--yellow);
}
.service-section-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--black);
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.75rem;
}
.service-section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--yellow);
    border-radius: 2px;
}
.service-block-content p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}
.service-list {
    list-style: none;
    margin: 1rem 0;
}
.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.97rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.service-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    background: var(--yellow);
    border-radius: 50%;
}

/* Materiel grid */
.materiel-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}
.materiel-grid-4 { grid-template-columns: repeat(4, 1fr); }
.materiel-grid-3 { grid-template-columns: repeat(3, 1fr); }
.materiel-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    position: relative;
    overflow: hidden;
}
.materiel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--yellow-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}
.materiel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(245, 194, 0, 0.45);
}
.materiel-item:hover::before { opacity: 1; }
.materiel-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(145deg, #fffdf5 0%, #fff4cc 100%);
    border: 2px solid rgba(245, 194, 0, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.materiel-item:hover .materiel-icon {
    background: var(--yellow);
    border-color: var(--yellow-dark);
    transform: scale(1.08);
}
.materiel-icon i {
    color: var(--yellow-dark);
    font-size: 1.15rem;
    transition: color var(--transition-fast);
}
.materiel-item:hover .materiel-icon i { color: var(--black); }
.materiel-item > span:last-child { line-height: 1.35; }

/* Garanties box */
.garanties-box {
    background: var(--black);
    color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.garanties-box i {
    font-size: 2.5rem;
    color: var(--yellow);
    flex-shrink: 0;
}
.garanties-box h4 {
    font-size: 1.2rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}
.garanties-box p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* =====================================================
   PAGE RÉALISATIONS
   ===================================================== */
.realisations-page {
    padding: 5rem 0;
    background: #fff;
    overflow: hidden;
    width: 100%;
}
.page-header-public {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-top: 0.75rem;
    line-height: 1.65;
}
.photo-gallery-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    aspect-ratio: 4 / 3;
    background: var(--gray-light);
    min-width: 0;
    width: 100%;
    contain: layout style paint;
    transform: none;
}
.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.gallery-item.fade-in,
.gallery-item.fade-in.visible {
    opacity: 1;
    transform: none;
    transition: none;
}
@media (hover: hover) {
    .gallery-item:hover img { transform: scale(1.07); }
}
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s ease;
}
.gallery-overlay i {
    color: var(--color-white);
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.45); }
.gallery-item:hover .gallery-overlay i { opacity: 1; transform: scale(1); }
.gallery-category-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 auto 2rem;
    max-width: 1000px;
}
.category-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-main);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
.category-filter:hover,
.category-filter.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}
.category-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
}
.category-filter.active .category-filter-count {
    background: rgba(0, 0, 0, 0.12);
}
.pagination-info {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-top: 1.5rem;
}
/* Lightbox / Modal */
.gallery-modal {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}
.gallery-modal.open {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
}
.modal-img-wrap {
    position: relative;
    max-width: 92vw; max-height: 90vh;
    display: flex; align-items: center; justify-content: center;
}
.modal-img-wrap img {
    max-width: 92vw; max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-close {
    position: fixed; top: 20px; right: 24px;
    background: var(--yellow); color: var(--black);
    border: none; border-radius: 50%;
    width: 44px; height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}
.modal-close:hover { background: var(--yellow-dark); transform: scale(1.1); }
.modal-prev, .modal-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(245,194,0,0.9); color: var(--black);
    border: none; border-radius: 50%;
    width: 50px; height: 50px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}
.modal-prev { left: 16px; }
.modal-next { right: 16px; }
.modal-prev:hover, .modal-next:hover { background: var(--yellow); transform: translateY(-50%) scale(1.1); }
.modal-counter {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    z-index: 10001;
}

/* =====================================================
   PAGE CONTACT
   ===================================================== */
.contact-page { padding: 5rem 0; background: #fff; }
.contact-wrapper { display: flex; flex-direction: column; gap: 3rem; }
.contact-info {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 0 3rem 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.contact-logo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    margin: 0 -3rem 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff9e0 45%, #fffdf5 100%);
    border-bottom: 4px solid var(--yellow);
}
.contact-logo-img {
    width: 100%;
    max-width: 460px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
}
.contact-section-title {
    text-align: left;
    width: auto;
    display: inline-block;
    margin-bottom: 0;
}
.contact-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 1.5rem;
}
.contact-list-detailed { list-style: none; padding: 0; }
.contact-list-detailed li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.icon-box {
    width: 50px; height: 50px;
    background: #fffbe6;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--yellow-dark);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--yellow);
}
.contact-list-detailed li:hover .icon-box {
    background: var(--yellow);
    color: var(--black);
    transform: scale(1.1);
}
.contact-list-detailed h4 {
    margin-bottom: 0.4rem;
    color: var(--gray-dark);
    font-size: 1rem;
}
.contact-list-detailed p,
.contact-list-detailed a {
    color: var(--color-text-light);
    font-size: 0.97rem;
}
.contact-list-detailed a:hover { color: var(--yellow-dark); }
.full-width-map {
    width: 100%; height: 420px;
    padding: 0; overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--yellow);
}
.full-width-map iframe { width: 100%; height: 100%; border: 0; }
.cta-box {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 3rem;
    background: var(--black);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    color: white;
    border-bottom: 4px solid var(--yellow);
}
.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--yellow);
}
.cta-box p { font-size: 1.05rem; margin-bottom: 2rem; opacity: 0.85; }
.cta-buttons {
    display: flex; gap: 1.2rem;
    justify-content: center; flex-wrap: wrap;
}
.cta-buttons .btn {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}
.cta-buttons .btn:hover { background: var(--yellow-dark); }
.cta-buttons .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.cta-buttons .btn-secondary:hover { background: rgba(255,255,255,0.2); }

/* =====================================================
   FOOTER
   ===================================================== */
.main-footer {
    background: var(--black);
    color: #a0a0a0;
    position: relative;
    padding-top: 0;
    margin-top: 5rem;
}
.footer-wave {
    position: absolute; top: -100px; left: 0;
    width: 100%; overflow: hidden;
    line-height: 0; z-index: 1;
}
.footer-wave svg {
    position: relative; display: block;
    width: calc(100% + 1.3px); height: 100px;
    transform: rotateY(180deg);
}
.main-footer .container {
    position: relative; z-index: 2;
    padding-top: 4rem; padding-bottom: 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-logo-link { display: inline-block; margin-bottom: 1.5rem; }
.footer-logo-img {
    height: 58px; width: auto;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity 0.3s ease;
    filter: brightness(1.1);
}
.footer-logo-link:hover .footer-logo-img { opacity: 1; }
.footer-desc {
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 0.94rem;
}
.footer-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.badge {
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.82rem;
    border: 1px solid rgba(245,194,0,0.25);
    display: flex; align-items: center; gap: 0.5rem;
    transition: var(--transition-fast);
}
.badge i { color: var(--yellow); }
.badge:hover { background: rgba(245,194,0,0.08); border-color: var(--yellow); }
.footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--yellow);
    display: inline-block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a {
    display: flex; align-items: center; gap: 0.75rem;
    transition: var(--transition-fast);
    padding: 4px 0;
    font-size: 0.93rem;
}
.footer-links i { font-size: 0.65rem; color: var(--yellow); transition: transform 0.3s ease; }
.footer-links a:hover { color: var(--color-white); padding-left: 5px; }
.footer-links a:hover i { transform: translateX(3px); }
.contact-list li {
    display: flex; align-items: flex-start;
    gap: 1rem; margin-bottom: 1.1rem;
    font-size: 0.93rem;
}
.contact-list i { margin-top: 4px; color: var(--yellow); font-size: 1rem; }
.contact-list a:hover { color: var(--color-white); text-decoration: underline; }
.working-hours {
    margin-top: 1.5rem;
    background: rgba(255,255,255,0.03);
    padding: 1.1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--yellow);
}
.working-hours h4 {
    color: var(--color-white);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 2rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.88rem;
}
.copyright { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-separator { color: rgba(255,255,255,0.25); }
.footer-agencia-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #FFD740 0%, #F5C200 35%, #fff8dc 50%, #F5C200 65%, #D4A800 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: agenciaShine 4s linear infinite;
    transition: transform 0.25s ease, filter 0.25s ease;
    text-shadow: none;
    filter: drop-shadow(0 0 6px rgba(245, 194, 0, 0.35));
}
.footer-agencia-link i {
    font-size: 0.75rem;
    -webkit-text-fill-color: #F5C200;
    color: #F5C200;
    filter: drop-shadow(0 0 4px rgba(245, 194, 0, 0.6));
}
.footer-agencia-link:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 10px rgba(245, 194, 0, 0.55));
    animation-duration: 2s;
}
/* @keyframes agenciaShine {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
} */
.legal-links { display: flex; gap: 1rem; align-items: center; }
.legal-links a:hover { color: var(--color-white); }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablette */
@media (max-width: 968px) {
    .hidden-tablet { display: none !important; }
    .top-bar { padding: 10px 0; font-size: 0.82rem; }
    .top-bar-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    .top-contact {
        justify-content: center;
        gap: 6px 10px;
    }
    .top-link .top-email-text {
        max-width: 220px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
@media (min-width: 641px) and (max-width: 968px) {
    .hidden-tablet-only { display: none !important; }
}

/* Mobile */
@media (max-width: 640px) {
    .hidden-phone { display: none !important; }
    .top-bar { padding: 8px 0; font-size: 0.78rem; }
    .top-contact {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .top-link span { font-size: 0.85rem; }
    .top-link .top-email-text {
        max-width: min(100%, 200px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .separator { margin: 0 8px; }
    .contact-info { padding: 0 1.5rem 2rem; }
    .contact-logo-banner {
        margin: 0 -1.5rem 2rem;
        padding: 1.75rem 1.25rem;
    }
    .contact-logo-img { max-width: 100%; }
}

@media (max-width: 968px) {
    .header-layout { min-height: 60px; }
    .top-bar-content { justify-content: center; }
    .mobile-menu-toggle { display: flex; }
    .nav-wrapper { margin-left: auto; }
    .main-nav {
        position: fixed; top: 0; right: -100%;
        width: 85%; height: 100vh;
        background: var(--black-soft);
        box-shadow: -5px 0 25px rgba(0,0,0,0.5);
        padding: 5rem 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000; display: block !important;
    }
    .main-nav.active { right: 0; }
    .main-nav > ul {
        flex-direction: column; align-items: flex-start;
        gap: 18px; width: 100%;
    }
    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .main-nav > ul > li > a {
        display: block; padding: 12px 0;
        font-size: 1.1rem; color: rgba(255,255,255,0.9);
    }
    .dropdown-menu {
        position: static; box-shadow: none;
        background: rgba(255,255,255,0.06);
        display: none; opacity: 1; visibility: visible;
        transform: none; padding: 0; margin-top: 5px;
        border: none; border-radius: 4px;
        border-top: 2px solid var(--yellow);
    }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown-menu a {
        padding: 11px 18px; font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: rgba(255,255,255,0.8) !important;
    }
    .dropdown > a {
        display: flex; justify-content: space-between; align-items: center;
    }
    .dropdown > a::after {
        content: '+'; position: static; width: auto; height: auto;
        background: none; font-size: 1.2rem; color: var(--yellow);
    }
    .dropdown.active > a::after { content: '-'; }
    .cta-item { margin-top: 20px; border: none !important; }
    .btn-header-cta { display: block; text-align: center; width: 100%; }
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-wave { display: none; }
    .main-footer { margin-top: 0; padding-top: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .service-block { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
    .service-block.reverse { direction: ltr; }
    .contact-columns { grid-template-columns: 1fr; gap: 2rem; }
    .chiffres-grid { grid-template-columns: repeat(2, 1fr); }
    .materiel-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .materiel-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
    .section { padding: 4rem 0; }
    .container { padding: 0 1.2rem; }
    .chiffres-grid { grid-template-columns: 1fr; }
    .materiel-grid-4,
    .materiel-grid-3 { grid-template-columns: 1fr; }
    .page-hero { padding: 3rem 0 2.5rem; }
    .page-hero h1 { font-size: 2rem; }
    .realisations-page { padding: 3rem 0; }
    .photo-gallery-modern {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .gallery-item {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    .category-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    .category-filter {
        font-size: 0.82rem;
        padding: 0.45rem 0.85rem;
    }
}

/* =====================================================
   MENTIONS LÉGALES
   ===================================================== */
.mentions-page { padding: 5rem 0; background: #fff; }
.mentions-content {
    max-width: 860px; margin: 0 auto;
    line-height: 1.8; color: var(--color-text-light);
}
.mentions-content h2 {
    font-size: 1.5rem; color: var(--black);
    margin-top: 2.5rem; margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--yellow);
    display: inline-block;
}
.mentions-content p { margin-bottom: 1rem; }

/* =====================================================
   SECTION PRÉSENTATION ACCUEIL
   ===================================================== */
.section-presentation {
    background: #fff;
    padding: 6rem 0;
}
.presentation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}
@media (max-width: 968px) {
    .presentation-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.presentation-text p {
    color: var(--color-text-light);
    line-height: 1.85;
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
}
.presentation-text strong { color: var(--black); }
.presentation-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.presentation-image img {
    width: 100%; height: 420px;
    object-fit: cover;
}
.presentation-image::before {
    content: '';
    position: absolute;
    top: -12px; left: -12px;
    width: 80px; height: 80px;
    background: var(--yellow);
    border-radius: var(--radius-sm);
    z-index: -1;
}
.presentation-image::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 5px;
    background: var(--yellow);
}

/* Section certifications / garanties */
.certif-section {
    background: var(--black);
    padding: 5rem 0;
}
.certif-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.certif-badge {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(245,194,0,0.25);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}
.certif-badge:hover {
    border-color: var(--yellow);
    background: rgba(245,194,0,0.05);
    transform: translateY(-4px);
}
.certif-badge i {
    font-size: 2.2rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}
.certif-badge h4 {
    font-size: 1.05rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
.certif-badge p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* =====================================================
   PAGE AVIS CLIENTS
   ===================================================== */
.avis-page {
    padding: 5rem 0;
    background: #fff;
}

.avis-detail-page {
    padding-top: 3rem;
}

.avis-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
    border: 1px solid var(--color-border);
}

.avis-stats-value {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.avis-stats-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.5rem;
    color: var(--yellow);
    font-size: 1.1rem;
}

.avis-stats-item p {
    color: var(--gray-medium);
    font-size: 0.92rem;
    margin: 0;
}

.avis-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.75rem;
}

.avis-stars i {
    color: var(--yellow);
    font-size: 0.9rem;
}

.avis-breakdown {
    max-width: 700px;
    margin: 3rem auto 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.avis-breakdown h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.avis-breakdown-row {
    display: grid;
    grid-template-columns: 70px 1fr 36px 56px;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.avis-breakdown-label {
    font-weight: 600;
    color: var(--black);
    white-space: nowrap;
}

.avis-breakdown-label i {
    color: var(--yellow);
}

.avis-breakdown-bar {
    height: 10px;
    background: var(--color-bg-light);
    border-radius: 50px;
    overflow: hidden;
}

.avis-breakdown-bar span {
    display: block;
    height: 100%;
    background: var(--yellow-gradient);
    border-radius: 50px;
    transition: width 0.4s ease;
}

.avis-breakdown-count {
    font-weight: 600;
    text-align: right;
}

.avis-breakdown-percent {
    font-size: 0.82rem;
    color: var(--gray-medium);
}

.avis-form-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 760px;
    margin: 4rem auto 0;
    border: 1px solid var(--color-border);
}

.avis-form-section .section-title {
    margin-bottom: 0.75rem;
}

.avis-form-section .section-subtitle {
    margin-bottom: 2rem;
}

.avis-pagesjaunes-hint {
    text-align: center;
    margin-top: 2rem;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.avis-pagesjaunes-hint i {
    color: var(--yellow-dark);
    margin-right: 6px;
}

.avis-pagesjaunes-hint a {
    color: var(--black);
    font-weight: 600;
    text-decoration: underline;
}

.rating-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.rating-star {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.75rem;
    color: var(--color-border);
    transition: color 0.2s ease, transform 0.2s ease;
}

.rating-star:hover,
.rating-star.active {
    color: var(--yellow);
    transform: scale(1.08);
}

.rating-text,
.form-hint {
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.review-message {
    margin-top: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.form-group label span {
    color: #c0392b;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text-main);
    background: var(--color-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(245, 194, 0, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #166534;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #991b1b;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.realisations-grid--compact {
    margin-top: 2.5rem;
}

.realisation-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.realisation-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.realisation-card-img {
    position: relative;
    display: block;
    height: 240px;
    overflow: hidden;
}

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

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

.realisation-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,0.8) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
}

.realisation-card:hover .realisation-card-overlay {
    opacity: 1;
}

.realisation-card-overlay span {
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.realisation-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.realisation-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.realisation-card-body p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.realisation-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.realisation-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-medium);
}

.realisation-card-date i {
    color: var(--yellow-dark);
}

.realisation-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--yellow-dark);
}

.realisation-card-link:hover {
    color: var(--black);
    gap: 10px;
}

.realisation-card--clickable {
    cursor: pointer;
}

.realisation-card--gallery {
    border: none;
    background: var(--color-white);
    text-align: left;
    width: 100%;
    font: inherit;
    padding: 0;
}

.modal-title {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.realisation-card-count {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(26, 26, 26, 0.75);
    color: var(--color-white);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    z-index: 2;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.empty-state i {
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--color-text-light);
    max-width: 480px;
    margin: 0 auto;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination a {
    background: var(--color-white);
    color: var(--color-text-main);
    border: 1.5px solid var(--color-border);
}

.pagination a:hover,
.pagination span.current {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

.pagination--ellipsis {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pagination-arrow {
    width: 40px;
    height: 40px;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 40px;
    padding: 0 4px;
    color: var(--gray-medium);
    font-size: 1.1rem;
    font-weight: 600;
    user-select: none;
}

.pagination-info i {
    color: var(--yellow-dark);
    margin-right: 6px;
}

.realisation-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-text-light);
}

.realisation-meta-item > i {
    color: var(--yellow-dark);
    font-size: 1rem;
}

.realisation-description-body {
    max-width: 800px;
    color: var(--color-text-light);
    line-height: 1.9;
    font-size: 1rem;
}

.realisation-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--yellow-gradient);
    color: var(--black);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 25px rgba(245, 194, 0, 0.35);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 194, 0, 0.5);
    color: var(--black);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    color: var(--color-text-main);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--yellow);
    color: var(--black);
    transform: translateY(-2px);
}

.avis-detail-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.avis-detail-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.avis-detail-header h2 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.avis-detail-note {
    margin-left: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.avis-detail-gallery {
    position: relative;
    background: var(--black);
}

.avis-detail-slide {
    display: none;
}

.avis-detail-slide.is-active {
    display: block;
}

.avis-detail-slide img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.avis-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    color: var(--color-white);
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.avis-gallery-nav:hover {
    background: var(--yellow);
    color: var(--black);
}

.avis-gallery-prev { left: 16px; }
.avis-gallery-next { right: 16px; }

.avis-gallery-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.avis-detail-video {
    padding: 0 2.5rem;
    margin-top: 1.5rem;
}

.avis-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--black);
}

.avis-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.avis-detail-content {
    padding: 2rem 2.5rem;
}

.avis-detail-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.avis-detail-card .realisation-detail-actions {
    padding: 0 2.5rem 2.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .avis-form-section {
        padding: 2rem 1.5rem;
    }

    .avis-breakdown-row {
        grid-template-columns: 60px 1fr 28px;
    }

    .avis-breakdown-percent {
        display: none;
    }

    .avis-detail-header,
    .avis-detail-content,
    .avis-detail-video,
    .avis-detail-card .realisation-detail-actions {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

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

    .realisation-detail-actions .btn-hero-secondary,
    .realisation-detail-actions .btn-hero-primary,
    .realisation-detail-actions .btn-cta {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   PAGE ACTUALITÉS
   ===================================================== */
.actualites-page {
    padding: 5rem 0;
    background: #fff;
    overflow: hidden;
    width: 100%;
}

.actualite-detail-content {
    padding-top: 2.5rem;
}

.actualite-rich-text {
    max-width: none;
}

.actualite-rich-text h2,
.actualite-rich-text h3,
.actualite-rich-text h4 {
    color: var(--black);
    margin: 1.75rem 0 0.85rem;
    line-height: 1.3;
}

.actualite-rich-text h2 { font-size: 1.5rem; }
.actualite-rich-text h3 { font-size: 1.25rem; }
.actualite-rich-text h4 { font-size: 1.1rem; }

.actualite-rich-text p {
    margin-bottom: 1.15rem;
}

.actualite-rich-text ul,
.actualite-rich-text ol {
    margin: 0 0 1.15rem 1.5rem;
    padding: 0;
}

.actualite-rich-text li {
    margin-bottom: 0.5rem;
}

.actualite-rich-text a {
    color: var(--yellow-dark);
    text-decoration: underline;
    font-weight: 600;
}

.actualite-rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

.actualite-rich-text iframe {
    max-width: 100%;
    border-radius: 10px;
}

.actualite-rich-text blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 4px solid var(--yellow);
    background: var(--color-bg-light, #f7f7f7);
    color: var(--color-text-light);
    font-style: italic;
}

@media (max-width: 768px) {
    .actualites-page { padding: 3rem 0; }
}
