@charset "UTF-8";
/* CSS Document */

/* Palette : Noir (#1a1a1a), Rouge (#e63946), Vert (#2a9d8f) */
:root {
    --black: #1a1a1a;
    --dark-grey: #333333;
    --red: #e63946;
    --green: #2a9d8f;
    --white: #ffffff;
    --light-grey: #f4f4f4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Header & Nav */
header {
    background: var(--black);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--green);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

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

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: 0.3s;
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--green);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/toiture-couvreur-cellier.jpg') center/cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 { font-size: 3rem; margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--green);
    transform: translateY(-3px);
}

/* Sections */
.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 20px;
}

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

.card {
    background: var(--light-grey);
    padding: 2rem;
    border-left: 5px solid var(--green);
    transition: 0.3s;
}

.card:hover { border-left-color: var(--red); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Information Bar */
.info-bar {
    background: var(--green);
    color: var(--white);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 5% 1rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    header { flex-direction: column; }
    .hero h1 { font-size: 2rem; }
    .info-bar { flex-direction: column; text-align: center; }
}