/* ==========================================================================
   SARL Thermoservices - Styles
   Chauffage, Climatisation, Plomberie - Lot-et-Garonne (47)
   ========================================================================== */

/* --- Variables --- */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #2dd4bf;
    --secondary: #0369a1;
    --secondary-dark: #0c4a6e;
    --accent: #0ea5e9;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-light);
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Navbar fixe --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
}

.navbar-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.logo-text {
    color: var(--text);
}

.logo-accent {
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.navbar-menu a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

.navbar-menu a:hover {
    color: var(--primary);
}

.nav-cta {
    color: var(--primary) !important;
    font-weight: 600;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
}

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

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

.navbar-phone {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
    white-space: nowrap;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.navbar-phone:hover {
    color: var(--primary-dark);
    background: rgba(13, 148, 136, 0.08);
}

@media (max-width: 768px) {
    .navbar-phone {
        font-size: 0.95rem;
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* --- Main content (padding pour navbar fixe) --- */
.main-content {
    padding-top: 60px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    box-shadow: 0 4px 14px rgba(3, 105, 161, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

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

.btn-block {
    width: 100%;
}

/* --- Hero --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.95;
    margin: 0 0 2rem;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-dark);
}

.hero-buttons .btn-primary:hover {
    background: var(--bg-light);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--secondary);
}

.hero-buttons .btn-call {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #22c55e;
    color: white !important;
    border: 2px solid #22c55e;
}

.hero-buttons .btn-call:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: white !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45);
}

.hero-buttons .btn-call svg {
    flex-shrink: 0;
}

.hero-cta-line {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 1rem;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.hero-phone-block {
    margin: 0 0 1.75rem;
    text-align: center;
}

.hero-phone-headline {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-phone {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(34, 197, 94, 0.4);
    transition: all 0.25s ease;
    cursor: pointer;
}

.hero-phone:hover {
    background: white;
    color: var(--primary-dark);
    border-color: #22c55e;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .hero-phone {
        font-size: 1.3rem;
        padding: 0.7rem 1.25rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
}

.hero-badge {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.98;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

@media (max-width: 480px) {
    .hero-badges {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-badge {
        justify-content: center;
    }
}

/* --- Animations --- */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Sections communes --- */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 2rem;
    color: var(--text);
}

/* --- Points forts --- */
.points-forts {
    padding: 4rem 0;
    background: var(--bg-white);
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.point-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.point-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.point-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.point-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Services preview --- */
.services-preview {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: block;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    color: var(--text);
    position: relative;
}

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

.service-card.service-featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.service-card.service-featured:hover {
    box-shadow: 0 10px 25px rgba(13, 148, 136, 0.35);
}

.badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: var(--accent);
    color: white;
    border-radius: 4px;
    font-weight: 600;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.service-card p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-card.service-featured p {
    opacity: 0.95;
}

.service-card-cta {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.service-card:hover .service-card-cta {
    text-decoration: underline;
}

/* --- Réalisations preview --- */
.realisations-preview {
    padding: 4rem 0;
    background: var(--bg-white);
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.realisation-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.realisation-card:hover {
    box-shadow: var(--shadow-lg);
}

.realisation-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    position: relative;
}

.realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.placeholder-img span {
    margin-right: 0.5rem;
}

.realisation-content {
    padding: 1.25rem;
}

.realisation-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--text);
}

.realisation-content p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-arrow {
    font-weight: 600;
    font-size: 0.9rem;
}

.link-arrow:hover {
    text-decoration: underline;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* --- Avis clients --- */
.avis {
    padding: 4rem 0;
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.avis-card {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s;
}

.avis-card:hover {
    transform: translateY(-2px);
}

.avis-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.avis-text {
    font-style: italic;
    margin: 0 0 1rem;
    color: var(--text);
}

.avis-author {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.avis-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
}

.avis-empty-text {
    margin: 0 0 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.avis-cta {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-google-avis {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-white);
    color: var(--primary-dark);
    border: 2px solid #f59e0b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-google-avis:hover {
    background: #fef3c7;
    border-color: #f59e0b;
    transform: translateY(-2px);
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937 !important;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-review:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* --- CTA final --- */
.cta-final {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta-final h2 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.cta-final p {
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.seo-local {
    padding: 2rem 1.5rem;
    background: var(--bg-light);
}

.seo-local-text {
    margin: 0;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-dark);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--secondary);
}

/* --- Page hero (pages internes) --- */
.page-hero {
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.page-hero p {
    margin: 0;
    opacity: 0.95;
}

/* --- Services détaillés --- */
.service-detail {
    padding: 3rem 0;
}

.service-detail.service-alt {
    background: var(--bg-white);
}

.service-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.service-detail-content.featured {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(3, 105, 161, 0.08) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--primary);
}

.service-detail-content.featured .badge {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
}

.service-detail-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.service-detail h2 {
    margin: 0 0 1rem;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.service-problem {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem;
}

.service-problem-featured {
    font-size: 1.1rem;
    color: inherit;
}

.service-detail .lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.service-benefit {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.service-benefit-featured {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: white;
}

.service-list {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.service-list li {
    margin-bottom: 0.5rem;
}

.service-detail .btn {
    margin-top: 1rem;
}

/* --- Réalisations page --- */
.realisations-page {
    padding: 3rem 0;
}

.realisations-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background: var(--bg-white);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

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

.realisation-item {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s;
}

.realisation-item:hover {
    box-shadow: var(--shadow-lg);
}

.realisation-item.filter-hidden {
    display: none;
}

.realisation-item .realisation-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
}

.realisation-item .realisation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.realisation-info {
    padding: 1.5rem;
}

.realisation-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.realisation-info h2 {
    margin: 0 0 0.25rem;
    font-size: 1.2rem;
}

.realisation-location {
    margin: 0 0 0.5rem !important;
    font-size: 0.85rem;
    color: var(--primary) !important;
    font-weight: 600;
}

.realisation-summary {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.realisation-info .btn {
    margin-top: 0;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-title {
    margin: 1rem 0 0;
    color: white;
    font-size: 1.1rem;
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.9;
}

.lightbox-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .realisations-filters {
        gap: 0.4rem;
    }
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    .realisations-grid-full {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .realisation-item .realisation-image {
        height: 260px;
    }

    .realisations-page .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (min-width: 769px) {
    .realisation-item .realisation-image {
        height: 320px;
    }
}

.no-realisations {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.cta-section {
    padding: 4rem 1.5rem;
    background: var(--bg-white);
    text-align: center;
}

.cta-section h2 {
    margin: 0 0 0.5rem;
}

.cta-section p {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

/* --- Contact --- */
.contact-section {
    padding: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.contact-phone,
.contact-email,
.contact-address,
.contact-hours,
.contact-zone {
    margin-bottom: 1.5rem;
}

.contact-review-cta {
    margin-top: 1.5rem;
}

.phone-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.contact-info ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

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

/* --- Flash messages --- */
.flash-container {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.flash-success {
    background: #10b981;
    color: white;
}

.flash-error {
    background: #ef4444;
    color: white;
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

@keyframes slideOut {
    to { transform: translateX(100%); opacity: 0; }
}

/* --- Footer --- */
.footer {
    background: var(--secondary-dark);
    color: white;
    padding: 2.5rem 1.5rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer h3,
.footer h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer a {
    color: var(--primary-light);
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Bouton téléphone flottant --- */
.floating-phone {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.5);
    transition: transform 0.2s;
}

.floating-phone:hover {
    transform: scale(1.1);
    color: white;
}

@media (max-width: 768px) {
    .floating-phone {
        display: flex;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .navbar-toggle {
        display: flex;
    }

    .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

    .points-forts,
    .services-preview,
    .realisations-preview,
    .avis {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
