/* ============================================
   Propre Nickel - Site Statique
   Charbonné Propre Nickel, Lausanne
   ============================================ */

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

:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0e2f44;
    --accent: #27ae60;
    --accent-light: #2ecc71;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

h1, h2, h3, h4 { line-height: 1.3; color: var(--primary-dark); }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }

ul { list-style: none; }

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

/* --- Header / Navigation --- */
.site-header {
    background: var(--bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

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

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

/* Desktop Navigation */
.main-nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-light);
    background: var(--bg-light);
}

/* Dropdown */
.has-dropdown > a::after {
    content: ' ▾';
    font-size: 0.7em;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    min-width: 280px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 8px 0;
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    display: block;
}

.dropdown a {
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.9rem;
}

.dropdown a:hover {
    background: var(--bg-light);
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero / Slider --- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    color: #fff;
}

.hero-slides {
    display: flex;
    transition: transform 0.6s ease;
}

.hero-slide {
    min-width: 100%;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 700px;
}

.hero-content h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
}

.hero-dot.active {
    background: #fff;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

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

/* --- Page Banner --- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}

.page-banner h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Section --- */
.section {
    padding: 60px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

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

/* --- Services Cards (Home) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-light);
}

.service-card-body {
    padding: 25px;
}

.service-card-body h3 {
    margin-bottom: 10px;
}

.service-card-body p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-card-body .btn {
    margin-top: 15px;
}

/* --- Content Sections (Service detail pages) --- */
.content-section {
    padding: 50px 0;
}

.content-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-text h2 {
    margin-bottom: 1rem;
}

.content-text ul {
    list-style: disc;
    padding-left: 20px;
    margin: 15px 0;
}

.content-text ul li {
    margin-bottom: 8px;
    color: var(--text);
}

.content-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.content-image img,
.content-image .img-placeholder {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
}

/* --- Info Box (shared material section) --- */
.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 30px 0;
}

.info-box h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.material-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.material-list h4 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1rem;
}

.material-list ul {
    list-style: disc;
    padding-left: 20px;
}

.material-list ul li {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-align: center;
    padding: 50px 0;
}

.cta-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.cta-section .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}

.cta-section .btn:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* --- Languages Badge --- */
.languages {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.lang-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
}

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg-light);
    box-shadow: var(--shadow);
    transition: transform var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #e8ecef, #d5dce3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
}

.contact-info-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-detail .icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-detail a { color: var(--text); }
.contact-detail a:hover { color: var(--primary-light); }

.whatsapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Contact Form */
.contact-form {
    background: var(--bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

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

/* --- Footer --- */
.site-footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col a:hover { color: var(--accent-light); }

.footer-links { display: flex; flex-direction: column; gap: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hamburger { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        box-shadow: var(--shadow);
        padding: 20px;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--bg-light);
    }

    .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        min-width: auto;
    }

    .has-dropdown:hover .dropdown,
    .has-dropdown.open .dropdown {
        display: block;
    }

    .hero-slide { height: 350px; }
    .hero-content h2 { font-size: 1.3rem; }

    .content-two-col,
    .contact-grid,
    .material-lists,
    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .page-banner { padding: 40px 0 30px; }
    .page-banner h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    .hero-slide { height: 280px; }
    .section { padding: 40px 0; }
}
