/* ==========================================================================
   RIMAUD ÉLECTRICITÉ — Feuille de styles principale
   Identité : sobre, professionnelle, accent vert électrique sur fond sombre
   ========================================================================== */

/* ==========================================================================
   0. POLICES (self-hosted — variable font, latin)
   ========================================================================== */

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/work-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */

:root {
    /* Couleurs — extraites du logo et du site actuel */
    --color-green: #00C853;
    --color-green-dark: #00A040;
    --color-green-light: #5EE08A;

    --color-bg: #ffffff;
    --color-bg-alt: #f5f6f8;
    --color-bg-dark: #1a1d24;
    --color-bg-darker: #14161c;

    --color-text: #2a2d36;
    --color-text-soft: #5e6276;
    --color-text-muted: #9fa0ab;
    --color-text-on-dark: #f5f6f8;

    --color-border: #e4e6ea;
    --color-border-dark: #2a2d36;

    /* Typographie */
    --font-display: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espacement */
    --container-max: 1180px;
    --container-padding: 1.5rem;

    /* Animations */
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(20, 22, 28, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 22, 28, 0.1);
    --shadow-lg: 0 20px 48px rgba(20, 22, 28, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-green-dark);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-green);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6em;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.75rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

/* ==========================================================================
   2. LAYOUT & UTILITAIRES
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 5rem 0;
}

.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--color-text-on-dark);
}

.section--alt {
    background: var(--color-bg-alt);
}

.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-green);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   3. BOUTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
}

.btn--primary {
    background: var(--color-green);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-green);
    border-color: var(--color-green);
}

.btn--outline:hover {
    background: var(--color-green);
    color: #fff;
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline-light:hover {
    background: #fff;
    color: var(--color-text);
    border-color: #fff;
}

.btn--lg {
    padding: 1.1rem 2.4rem;
    font-size: 1rem;
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background: var(--color-bg-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.site-logo {
    display: block;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 85px;
    width: auto;
    height: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-nav__link {
    color: var(--color-text-on-dark);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    transition: all var(--transition);
}

.site-nav__link:hover,
.site-nav__link--active {
    color: var(--color-green);
}

.site-nav__link.btn {
    color: #fff;
    margin-left: 0.5rem;
}

/* Burger menu mobile */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

@media (max-width: 880px) {
    .menu-toggle { display: block; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-darker);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-slow);
    }

    .site-nav--open {
        max-height: 500px;
    }

    .site-nav__link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .site-nav__link.btn {
        margin: 1rem 1.5rem;
    }
}

/* ==========================================================================
   5. HERO SECTION (HOME)
   ========================================================================== */

.hero {
    position: relative;
    min-height: calc(100vh - 102px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    overflow: hidden;
    background: var(--color-bg-darker);
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse 65% 50% at center, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.30) 45%, rgba(0, 0, 0, 0) 80%),
                      url('/assets/images/hero-electricien.webp');
    background-size: 100% 100%, cover;
    background-position: center;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero__badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(15, 18, 24, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--color-green);
    color: var(--color-green-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw + 1rem, 5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero__separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 200px;
}

.hero__separator::before,
.hero__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-green);
}

.hero__separator-icon {
    color: var(--color-green);
    font-size: 1.5rem;
}

.hero__lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 14px rgba(0, 0, 0, 0.5);
}

.hero__lead em {
    font-style: italic;
    color: var(--color-green-light);
}

/* ==========================================================================
   6. BARRE DE CONTACT (3 colonnes : tél / adresse / horaires)
   ========================================================================== */

.contact-bar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.contact-bar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.contact-bar__item {
    padding: 2rem 1.5rem;
    text-align: center;
    border-right: 1px solid var(--color-border);
}

.contact-bar__item:last-child {
    border-right: 0;
}

.contact-bar__label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-green-dark);
    margin-bottom: 0.5rem;
}

.contact-bar__value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-bar__value a {
    color: inherit;
}

@media (max-width: 720px) {
    .contact-bar__grid { grid-template-columns: 1fr; }
    .contact-bar__item {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
        padding: 1.2rem;
    }
    .contact-bar__item:last-child { border-bottom: 0; }
}

/* ==========================================================================
   7. SECTION "À PROPOS" / VALEURS (3 cartes)
   ========================================================================== */

.values-section {
    padding: 6rem 0;
    background: var(--color-bg-alt);
    background-image: linear-gradient(rgba(245, 246, 248, 0.95), rgba(245, 246, 248, 0.98));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--color-green);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-card--accent {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
}

.value-card--accent h3 { color: #fff; }

.value-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 200, 83, 0.12);
    color: var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.value-card--accent .value-card__icon {
    background: var(--color-green);
    color: #fff;
}

.value-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.value-card p {
    margin: 0.3rem 0;
    color: inherit;
    opacity: 0.9;
}

@media (max-width: 880px) {
    .values-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   8. SECTION SERVICES (3 cartes sur fond sombre)
   ========================================================================== */

.services-section {
    background: var(--color-bg-dark);
    color: var(--color-text-on-dark);
    padding: 6rem 0;
}

.services-section .section-title {
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
}

.service-card__icon-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-green);
    font-size: 2.2rem;
    transition: all var(--transition);
}

.service-card:hover .service-card__icon-wrap {
    background: var(--color-green);
    color: #fff;
    transform: scale(1.05);
}

.service-card h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 880px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   9. GALERIE RÉALISATIONS
   ========================================================================== */

.gallery-section {
    padding: 6rem 0;
    background: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

/* ==========================================================================
   10. TÉMOIGNAGES
   ========================================================================== */

.testimonials-section {
    padding: 6rem 0;
    background: var(--color-bg-darker);
    color: #fff;
    text-align: center;
}

.testimonials-section .section-title { color: #fff; }

.testimonial {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonial__quote {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial__quote::before { content: '« '; color: var(--color-green); }
.testimonial__quote::after { content: ' »'; color: var(--color-green); }

.testimonial__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-green-light);
    letter-spacing: 0.05em;
}

.testimonial__google {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.testimonial__name {
    font-size: 0.95rem;
}

.testimonials-pagination {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.testimonials-pagination button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}

.testimonials-pagination button.active,
.testimonials-pagination button:hover {
    background: var(--color-green);
}

/* ==========================================================================
   11. SECTION CTA / FORMULAIRE DE CONTACT
   ========================================================================== */

.cta-section {
    background: var(--color-bg-dark);
    padding: 5rem 0;
    color: #fff;
}

.cta-section__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
    text-align: left;
}

.cta-section h2::after { display: none; }

.cta-section__separator {
    width: 50px;
    height: 2px;
    background: var(--color-green);
    margin: 1rem 0;
}

.cta-section__lead {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 880px) {
    .cta-section__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Formulaire */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form__field {
    width: 100%;
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 0;
    border-color: var(--color-green);
    background: rgba(255, 255, 255, 0.12);
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form .btn {
    grid-column: 1 / -1;
    width: 100%;
}

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

.form-message {
    grid-column: 1 / -1;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message--success {
    background: rgba(0, 200, 83, 0.15);
    border: 1px solid var(--color-green);
    color: var(--color-green-light);
}

.form-message--error {
    background: rgba(207, 46, 46, 0.15);
    border: 1px solid #cf2e2e;
    color: #ff6b6b;
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.site-footer {
    background: var(--color-bg-darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer__col h3 {
    color: #fff;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.site-footer__col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-green);
}

.site-footer__logo img {
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: 0.6rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.site-footer__links a:hover {
    color: var(--color-green);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.site-footer__bottom a {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 720px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .site-footer__col h3::after { left: 50%; transform: translateX(-50%); }
}

/* ==========================================================================
   13. BOUTON APPEL FLOTTANT (MOBILE)
   ========================================================================== */

.floating-call {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 99;
    padding: 1rem;
    background: var(--color-green);
    color: #fff;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.4);
    transition: transform var(--transition);
}

.floating-call:hover {
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 720px) {
    .floating-call { display: block; }
    body { padding-bottom: 80px; }
}

/* ==========================================================================
   14. PAGES INTÉRIEURES (TEMPLATES A & B)
   ========================================================================== */

/* En-tête de page intérieure */
.page-hero {
    background: var(--color-bg-dark);
    color: #fff;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(26, 29, 36, 0.85), rgba(26, 29, 36, 0.95)),
                      url('/assets/images/realisation-cables-plafond.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.page-hero__lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto;
}

/* Fil d'Ariane */
.breadcrumb {
    padding: 1rem 0;
    background: var(--color-bg-alt);
    font-size: 0.9rem;
    color: var(--color-text-soft);
}

.breadcrumb a {
    color: var(--color-text-soft);
}

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

.breadcrumb__sep {
    margin: 0 0.5rem;
    color: var(--color-text-muted);
}

/* Contenu de la page (Markdown rendu) */
.page-content {
    padding: 4rem 0;
}

.page-content__layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 320px;
    gap: 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    align-items: start;
}

.page-content__main h2 {
    font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content__main h2:first-child {
    margin-top: 0;
}

.page-content__main h3 {
    font-size: 1.3rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
}

.page-content__main p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.page-content__main ul,
.page-content__main ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.page-content__main li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.page-content__main blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.8rem;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-green);
    border-radius: 0 6px 6px 0;
    font-style: normal;
}

.page-content__main blockquote p {
    margin: 0;
}

.page-content__main blockquote p:not(:last-child) {
    margin-bottom: 0.8rem;
}

/* CTA inline dans le contenu */
.page-content__cta-inline {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--color-bg-dark);
    color: #fff;
    border-radius: 8px;
    text-align: center;
}

.page-content__cta-inline p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Sidebar (sticky CTA + infos) */
.page-sidebar {
    position: sticky;
    top: 110px;
}

.sidebar-card {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-card--accent {
    background: var(--color-bg-dark);
    color: #fff;
}

.sidebar-card--accent h4 { color: #fff; }

.sidebar-card h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-card .btn {
    width: 100%;
    margin-bottom: 0.6rem;
}

.sidebar-card__phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green-light);
    text-align: center;
    margin: 1rem 0;
    display: block;
}

.sidebar-card__info {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.4rem 0;
    opacity: 0.9;
}

@media (max-width: 980px) {
    .page-content__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .page-sidebar { position: static; }
}

/* Image inline dans contenu */
.content-figure {
    margin: 2rem 0;
}

.content-figure img {
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.content-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--color-text-soft);
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   15. TARIFS
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-green);
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card--featured {
    background: var(--color-bg-dark);
    color: #fff;
}

.pricing-card--featured h3 { color: #fff; }
.pricing-card--featured .pricing-card__price { color: var(--color-green-light); }

.pricing-card__icon {
    color: var(--color-green);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pricing-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.pricing-card__price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-green-dark);
    margin-bottom: 1.2rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.pricing-card li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.pricing-card--featured li {
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.pricing-card li:last-child { border-bottom: 0; }

@media (max-width: 880px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   16. PAGE CONTACT
   ========================================================================== */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.contact-info-item {
    text-align: center;
    padding: 1.5rem;
}

.contact-info-item__icon {
    color: var(--color-green);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info-item h4 {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-green-dark);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.contact-info-item__value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
}

.contact-info-item__value a {
    color: inherit;
}

.map-wrapper {
    margin: 3rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

@media (max-width: 720px) {
    .contact-info-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   17. ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.fade-in-up--delay-1 { animation-delay: 0.15s; }
.fade-in-up--delay-2 { animation-delay: 0.3s; }
.fade-in-up--delay-3 { animation-delay: 0.45s; }

/* ==========================================================================
   16. LIGHTBOX GALERIE
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(10, 12, 16, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lightbox--open {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox__figure {
    margin: 0;
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.lightbox__img {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__caption {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    text-align: center;
    max-width: 600px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--color-green);
    border-color: var(--color-green);
    transform: scale(1.05);
}

.lightbox__close {
    top: 1.2rem;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    padding-bottom: 4px;
}

.lightbox__prev,
.lightbox__next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 2.2rem;
    padding-bottom: 4px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
    transform: translateY(-50%) scale(1.05);
}

.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }

.lightbox__counter {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

@media (max-width: 600px) {
    .lightbox__close { top: 0.8rem; right: 0.8rem; width: 38px; height: 38px; font-size: 1.5rem; }
    .lightbox__prev,
    .lightbox__next { width: 42px; height: 42px; font-size: 1.8rem; }
    .lightbox__prev { left: 0.5rem; }
    .lightbox__next { right: 0.5rem; }
}

/* Petit raffinement : les items de la galerie ont déjà un cursor:pointer naturel via <a>,
   mais on rend le hover plus net pour signaler que ça s'ouvre */
.gallery-item {
    cursor: zoom-in;
}
