/*
Theme Name: Angeloz Paysagiste
Theme URI: https://angeloz-paysagiste.ch
Author: Alexandre Angeloz
Author URI: https://angeloz-paysagiste.ch
Description: Thème WordPress sur mesure pour Alexandre Angeloz, Jardinier-Paysagiste diplômé CFC. Design vert moderne avec sections services, réalisations, et formulaire de contact.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angeloz
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ─── RESET & BASE ─── */
:root {
    --green-dark: #2d5016;
    --green-mid: #4a7c25;
    --green-bright: #6aaf2b;
    --green-light: #8bc34a;
    --green-pale: #e8f5e0;
    --earth-brown: #5d4037;
    --earth-light: #8d6e63;
    --cream: #faf8f2;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-mid: #555;
    --text-light: #888;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-card: 0 8px 32px rgba(45,80,22,0.12);
    --radius: 12px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

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

/* ─── HEADER / NAV ─── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(106,175,43,0.15);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--green-dark);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--green-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg { width: 24px; height: 24px; fill: white; }

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-mid);
    display: block;
    margin-top: -2px;
}

/* WordPress Menu Styling */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li { list-style: none; }

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: color var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-bright);
    transition: width var(--transition);
}

.nav-menu a:hover { color: var(--green-mid); }
.nav-menu a:hover::after { width: 100%; }

.nav-menu .menu-item-cta a {
    background: var(--green-bright);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all var(--transition);
}

.nav-menu .menu-item-cta a:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
}

.nav-menu .menu-item-cta a::after { display: none; }

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--green-dark);
    transition: var(--transition);
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-dark) 0%, #1a3a0a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(106,175,43,0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(139,195,74,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(74,124,37,0.25) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-8 0-15 12-15 25s7 25 15 25 15-12 15-25S38 5 30 5z' fill='%23fff' fill-opacity='0.4'/%3E%3C/svg%3E");
    background-size: 80px 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-text h1 span { color: var(--green-light); }

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 8px 18px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-badge svg {
    width: 18px; height: 18px;
    fill: var(--green-light);
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--green-bright);
    color: white;
    box-shadow: 0 4px 16px rgba(106,175,43,0.4);
}

.btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(106,175,43,0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.1);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    text-align: center;
    max-width: 380px;
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-card-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--green-light);
    line-height: 1;
}

.hero-card-label {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
    font-weight: 600;
}

.hero-card-divider {
    width: 60px; height: 3px;
    background: var(--green-bright);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.hero-card-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
}

.hero-card-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 0.5rem;
}

/* ─── SECTIONS COMMON ─── */
.section-padding { padding: 6rem 2rem; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--green-bright);
    background: var(--green-pale);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--green-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-mid);
    line-height: 1.7;
    font-weight: 300;
}

/* ─── ABOUT ─── */
.about { background: white; }

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image { position: relative; }

.about-image-box {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.about-image-box svg {
    width: 120px; height: 120px;
    fill: rgba(255,255,255,0.15);
}

.about-image-overlay {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--green-bright);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

.about-image-overlay strong {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    display: block;
    line-height: 1;
}

.about-image-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-mid);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--green-dark);
}

.about-feature-icon {
    width: 32px; height: 32px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 16px; height: 16px;
    fill: var(--green-bright);
}

/* ─── SERVICES ─── */
.services { background: var(--cream); }

.services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(145deg, var(--green-mid), var(--green-bright));
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), transparent);
    border-radius: var(--radius);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(45,80,22,0.25);
}

.service-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon svg {
    width: 56px; height: 56px;
    stroke: white;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-icon-filled {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
}

.service-icon-filled img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    position: relative;
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.6;
    font-weight: 300;
    position: relative;
}

/* ─── RÉALISATIONS ─── */
.portfolio { background: white; }

.portfolio-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8f5e0, #c8e6c9);
    cursor: pointer;
    transition: all var(--transition);
}

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

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45,80,22,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.portfolio-card-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: white;
    font-weight: 700;
}

.portfolio-card-overlay p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

.portfolio-placeholder-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.portfolio-placeholder-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(106,175,43,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.portfolio-placeholder-icon svg {
    width: 28px; height: 28px;
    fill: var(--green-mid);
}

.portfolio-placeholder-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--green-dark);
    font-weight: 700;
}

.portfolio-placeholder-card p {
    font-size: 0.85rem;
    color: var(--text-mid);
}

.portfolio-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
    grid-column: 1 / -1;
}

/* ─── CONTACT ─── */
.contact { background: var(--cream); }

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

.contact-info { padding: 2rem 0; }

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.contact-detail-icon {
    width: 44px; height: 44px;
    background: var(--green-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 20px; height: 20px;
    fill: var(--green-bright);
}

.contact-detail-text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contact-detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
}

.contact-form-box {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
}

/* Contact Form 7 Styling */
.contact-form-box .wpcf7 { width: 100%; }

.contact-form-box .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1.2rem;
}

.contact-form-box label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.contact-form-box input[type="text"],
.contact-form-box input[type="email"],
.contact-form-box input[type="tel"],
.contact-form-box textarea,
.contact-form-box select,
.contact-form-box .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: border-color var(--transition);
    background: var(--cream);
    outline: none;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus,
.contact-form-box select:focus {
    border-color: var(--green-bright);
}

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

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

.contact-form-box .wpcf7-submit,
.contact-form-box input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--green-bright);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 0.5rem;
}

.contact-form-box .wpcf7-submit:hover,
.contact-form-box input[type="submit"]:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(106,175,43,0.3);
}

/* ─── FOOTER ─── */
.site-footer {
    background: var(--green-dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--green-light);
    margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: white; }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── SINGLE REALISATION ─── */
.single-realisation {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

.single-realisation h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.single-realisation .post-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.single-realisation .post-thumbnail {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.single-realisation .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-realisation .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-mid);
}

.single-realisation .post-content p {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-bright);
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: color var(--transition);
}

.back-link:hover { color: var(--green-mid); }

/* ─── ADMIN BAR FIX ─── */
.admin-bar .site-header { top: 32px; }

@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
    }
    .hero-text p { margin: 0 auto 2rem; }
    .hero-badges { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { order: -1; max-width: 400px; margin: 0 auto; }

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

    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: white;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-soft);
    }

    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .contact-form-box .form-row { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
}
