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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #020617;
    color: #e5e7eb;
    line-height: 1.6;
}

/* ---------- COULEURS ---------- */
:root {
    --bg-dark: #020617;
    --bg-section: #020924;
    --bg-card: rgba(15, 23, 42, 0.92);
    --green: #22c55e;
    --green-light: #a7f3d0;
    --text-main: #f9fafb;
    --text-muted: #cbd5f5;
}

/* ---------- HEADER / NAVBAR ---------- */
.navbar {
    background: #000000;
    color: #ffffff;
}

.navbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 0px 14px 10px;    /* un peu moins de padding pour rapprocher le logo du bord */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .brand img {
    height: 54px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-light);
}

/* Masquer l'ancien logo flottant qui traîne en haut à gauche */
.hero-logo-floating {
    display: none;
}

/* ---------- HERO GÉNÉRIQUE ---------- */
.hero {
    background-image: linear-gradient(
            to bottom,
            rgba(15, 23, 42, 0.4),
            rgba(15, 23, 42, 0.85)
        ),
        url("assets/fond-solaire.png");
    background-size: cover;
    background-position: center;
    padding: 60px 24px 80px;
}

.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

/* Bloc logo + titre */
.hero-heading {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

.hero-heading-logo {
    max-width: 260px; /* agrandit le logo intégré au fond */
    width: 260px;
    height: auto;
}

.hero-heading-text h1 {
    font-size: 40px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.hero-heading-text p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
}

/* ---------- SECTIONS / CARTES ---------- */
.section {
    background: var(--bg-dark);
    padding: 40px 24px 80px;
}

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

.card + .card {
    margin-top: 24px;
}

.card h2 {
    font-size: 24px;
    color: var(--green-light);
    margin-bottom: 14px;
}

.card p,
.card li {
    color: var(--text-main);
}

.card ul {
    margin-left: 20px;
    margin-top: 8px;
}

/* ---------- GRILLE MÉTIERS ---------- */
.metiers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.metier-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 22px 24px;
}

.metier-card h3 {
    color: var(--green-light);
    margin-bottom: 8px;
    font-size: 19px;
}

/* Les images à l'intérieur des blocs métiers suivent bien la carte */
.metier-card img,
.metier-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 12px;
}

/* ---------- FORMULAIRE CONTACT ---------- */
.contact-form {
    max-width: 640px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form label {
    font-weight: 600;
    color: var(--green-light);
}

.contact-form input,
.contact-form textarea {
    border-radius: 8px;
    border: none;
    padding: 10px 12px;
    font-size: 15px;
}

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

.contact-form button {
    margin-top: 12px;
    align-self: flex-start;
    background: var(--green);
    color: #022c22;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #16a34a;
}

/* ---------- IMAGES DE CONTENU GÉNÉRIQUES ---------- */
.page-photo {
    width: 100%;          /* prend la largeur du bloc parent */
    max-width: 420px;     /* limite la taille sur grand écran */
    height: auto;         /* pas de déformation */
    display: block;
    margin: 20px auto;    /* espace au-dessus / en dessous et centrée */
    border-radius: 12px;  /* coins arrondis pour faire pro */
}

/* ---------- RÉPONSIVE ---------- */
@media (max-width: 900px) {
    .hero-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-heading-logo {
        max-width: 180px;
        width: 180px;
    }

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

    .nav-links {
        gap: 16px;
        font-size: 14px;
    }
}

