/* css/style.css */

/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #333;
    --accent-color: #555;
    --bg-color: #fff;
    --bg-alt: #f9f9f9;
    --text-color: #333;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 { margin-bottom: 1rem; color: #222; }
p { margin-bottom: 1rem; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- COMPOSANTS --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover { background-color: var(--accent-color); }

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER / HERO (Index) --- */
.hero {
    position: relative;
    background-image: url('../images/hero-bg.jpg'); /* Image locale */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 { font-size: 2.5rem; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

/* --- SERVICES (Index) --- */
.intro-services { padding: 60px 20px 20px; text-align: center; max-width: 900px; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0 60px;
}

.service-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background: #fff;
}

.service-image { height: 250px; width: 100%; object-fit: cover; }
.service-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.service-content .btn { margin-top: auto; text-align: center; }

/* --- PAGES DE DETAILS (Services) --- */
.page-header { background: var(--primary-color); color: white; padding: 20px; text-align: center; }
.page-header a { color: white; text-decoration: none; font-weight: bold; }

.service-detail-block {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.service-detail-block li { padding-left: 20px; position: relative; margin-bottom: 5px; }
.service-detail-block li::before { content: "•"; position: absolute; left: 0; font-weight: bold; }

.warning-block {
    background: var(--warning-bg);
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.warning-block h3 { color: var(--warning-text); font-size: 1.2rem; }

/* --- FOOTER / CONTACT --- */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-alt);
    margin-top: auto;
}

.contact-image {
    flex: 1 1 400px;
    background-image: url('../images/contact-bg.jpg'); /* Image locale */
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.contact-info {
    flex: 1 1 400px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details div { margin-bottom: 20px; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.label { font-weight: bold; display: block; margin-bottom: 5px; color: var(--accent-color); font-size: 0.9rem; text-transform: uppercase; }

footer {
    background: #222;
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .contact-section { flex-direction: column; }
    .contact-image { min-height: 250px; flex: none; }
}