/* =========================================================
   Eco Renovôm - Feuille de style principale
   =========================================================
   Ce fichier gère toute l'apparence du site.
   Il est séparé du PHP pour garder une structure propre.
   Plus tard, on pourra ajouter :
   - responsive plus avancé
   - menu mobile
   - thème multilingue
   - animations JS
========================================================= */

/* ---------- VARIABLES GLOBALES ---------- */
:root {
    --green-dark: #045b36;
    --green-main: #0d6b3d;
    --green-light: #7dcd3d;
    --bg-soft: #f4f7f3;
    --white: #ffffff;
    --text: #203028;
    --muted: #5f786b;
    --shadow: 0 12px 32px rgba(4, 91, 54, 0.12);
    --radius: 22px;
}

/* ---------- RÉGLAGES DE BASE ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* ---------- BARRE DU HAUT ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(4, 91, 54, 0.08);
}

.topbar-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    box-shadow: var(--shadow);
    font-weight: bold;
}

.job-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.16);
    border-radius: 8px;
}

.top-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(4, 91, 54, 0.08);
    cursor: pointer;
    font-size: 18px;
}

/* ---------- BANNIÈRE PRINCIPALE ---------- */
.hero {
    padding: 28px 0 20px;
}

.hero-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 52vh;
    background: linear-gradient(120deg, rgba(255,255,255,0.96), rgba(234,245,237,0.96));
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-content,
.hero-side {
    padding: 40px;
}

.brand-logo {
    width: 280px;
    margin-bottom: 18px;
}

.hero-content h1 {
    margin: 0 0 14px;
    color: var(--green-dark);
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.08;
}

.hero-text {
    font-size: 18px;
    color: #3b5548;
}

.hero-list {
    margin: 24px 0 0;
    padding-left: 20px;
}

.hero-list li {
    margin-bottom: 10px;
}

.hero-side {
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, var(--green-main), var(--green-dark));
    color: var(--white);
}

.hero-side-box {
    width: 100%;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
}

.hero-side-box h2 {
    margin-top: 0;
}

.service-tags {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tags span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 14px;
}

/* ---------- NAVIGATION RAPIDE ---------- */
.quick-nav {
    padding: 10px 0 26px;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.nav-card {
    background: var(--white);
    border-radius: 24px;
    padding: 22px 14px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(4, 91, 54, 0.16);
}

.nav-circle {
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 30px;
    background: linear-gradient(145deg, var(--green-light), var(--green-main));
}

.nav-card h3 {
    margin: 0 0 6px;
    color: var(--green-dark);
}

.nav-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- BLOCS GÉNÉRAUX ---------- */
.section-block {
    padding: 34px 0;
}

.card-block {
    background: var(--white);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
}

.section-title {
    margin-bottom: 24px;
}

.badge-title {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(125,205,61,0.14);
    color: var(--green-main);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.section-title h2 {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: clamp(28px, 3vw, 42px);
}

.section-title p {
    margin: 0;
    color: #4d675a;
    max-width: 760px;
}

/* ---------- SERVICES ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card,
.gallery-card,
.hours-card,
.contact-card {
    background: #f7faf7;
    border: 1px solid rgba(4, 91, 54, 0.08);
    border-radius: 20px;
    padding: 22px;
}

.emoji {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 28px;
}

.service-card h3,
.gallery-card h3,
.contact-card h3,
.info-card h3 {
    margin: 0 0 10px;
    color: var(--green-dark);
}

.service-card p,
.gallery-card p,
.contact-card p,
.info-card p {
    margin: 0;
    color: #4e665a;
}

/* ---------- GALERIE ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.gallery-placeholder {
    height: 190px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(125,205,61,0.34), rgba(4,91,54,0.92));
}

/* ---------- HORAIRES ---------- */
.hours-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(4, 91, 54, 0.08);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--green-main);
    font-weight: bold;
}

/* ---------- CONTACT ---------- */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    padding: 8px 0;
    color: #486256;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid rgba(4, 91, 54, 0.15);
    border-radius: 14px;
    font: inherit;
    background: var(--white);
}

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

.btn-main {
    border: none;
    border-radius: 14px;
    padding: 15px 18px;
    background: linear-gradient(145deg, var(--green-light), var(--green-main));
    color: var(--white);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

/* ---------- PIED DE PAGE ---------- */
.footer {
    padding: 24px 0 50px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-card,
    .hours-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .quick-nav-grid,
    .services-grid,
    .gallery-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-content,
    .hero-side,
    .card-block {
        padding: 24px;
    }

    .brand-logo {
        width: 210px;
    }

    .topbar-inner {
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
    }
}
