﻿/* ====== BOX SIZING GLOBAL ====== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #e0f7fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ====== HEADER ====== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    z-index: 1000;
}

.logo {
    flex: 1;
    text-align: left;
    height: 55px; /* garde la hauteur du header */
    display: flex;
    align-items: center;
    overflow: visible; /* autorise le logo à dépasser sans agrandir le header */
}

/* ====== LOGO ====== */
.site-logo {
    height: 55px; /* taille "layout" */
    width: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s ease, filter 0.25s ease;
    transform-origin: left center;
    transform: scale(1.35); /* agrandissement visuel */
    display: inline-block;
    vertical-align: middle;
}

    .site-logo:hover {
        transform: scale(1);
    }

/* Responsive : réduire le scale sur mobile */
@media (max-width: 768px) {
    .logo {
        height: 38px;
    }

    /*.site-logo {
        height: 38px;
        transform: scale(1);
        
    }*/
}

/* Mode sombre automatique */
@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #eee;
    }

    .header {
        background: rgba(0,0,0,0.7);
    }

    .contact-header, .menu a, .language-selector a {
        color: #eee;
    }

    /*.site-logo {
        content: url('../img/logo-sun_trans.png');  version blanche du logo 
        transform: scale(1);
        height: 40px;*/ /* s’adapte parfaitement au header */
        /*width: auto;
    }*/
    .site-logo {
        height: 45px;
        width: auto;
        transform: scale(1.2);
    }
}

.contact-header {
    flex: 1;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.menu {
    flex: 1;
    text-align: right;
}

    .menu a {
        color: white;
        margin: 0 10px;
        text-decoration: none;
        font-weight: bold;
    }

        .menu a:hover {
            text-decoration: underline;
        }

.language-selector {
    color: white;
    font-weight: bold;
    margin-left: 20px;
}

    .language-selector a {
        color: white;
        text-decoration: none;
        margin: 0 5px;
    }

        .language-selector a:hover {
            text-decoration: underline;
        }

/* ====== HERO ====== */
.hero {
    position: relative;
    background: url('../img/background.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh; /* couvre tout l’écran */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 0;
    padding: 40px;
    padding-top: 0;
}

    .hero .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 119, 182, 0.6);
    }

.hero-text {
    position: relative;
    z-index: 3;
    max-width: 610px;
    padding: 0;
}

    .hero-text h2 {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .hero-text .btn {
        background: #ffdd00;
        color: #333;
        padding: 12px 25px;
        font-size: 18px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        margin: 5px;
        display: inline-block;
    }

        .hero-text .btn:hover {
            background: #e6c900;
        }

    .hero-text .btn-secondary {
        background: #0077b6;
        color: white;
        width: 175px;
    }

        .hero-text .btn-secondary:hover {
            background: #005f87;
        }

/* ====== INTRO ====== */
.intro {
    padding: 50px 20px;
   
    background: #e0f7fa;
}

    .intro h3 {
        color: #0077b6;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .intro p {
        font-size: 18px;
        line-height: 1.6;
        max-width: 800px;
        margin: 0 auto;
        text-align: left;
    }

/* ====== SERVICES ====== */
.services {
    /*background-color: #e6f9ff;*/
    /*background: url('../img/background.jpg') no-repeat center center;
    padding: 40px;
    text-align: center;*/
    /*position: relative;*/
    background: url('../img/background.jpg') no-repeat center;
    background-size: cover;
    /*min-height: 100vh;*/ /* couvre tout l’écran */
    /*display: flex;*/
    /*align-items: center;
    justify-content: center;*/
    text-align: center;
   /* color: white;
    margin: 0;*/
    padding: 60px;
}

    .services h2 {
        font-size: 2rem;
        margin-bottom: 10px;
        color: white;
    }

    .services p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        color: white;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .service-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
        color: #006699;
    }

    .service-card p {
        font-size: 1rem;
        color: #444;
    }

/* ====== FORMULAIRE DEVIS ====== */
.devis-section {
    /*background: #e6f7fa;*/
    /*padding: 40px;*/
    height:100%;
}

.devis-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: space-between;
}

.form-left {
    flex: 1 1 48%;
    min-width: 300px;
}

.map-right {
    flex: 1 1 48%;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
}

    .map-right h4 {
        color: #0077b6;
        margin-bottom: 10px;
    }

    .map-right p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .map-right iframe {
        border-radius: 8px;
        width: 100%;
        height: 300px;
    }

.form-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px rgba(0,0,0,0.1);
}

.form-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.input, .textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.btn {
    background: #0078d7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .btn:hover {
        background: #005a9e;
    }

.success-msg {
    margin-top: 10px;
    color: green;
    font-weight: bold;
}

/* ====== FOOTER ====== */
.footer {
    margin-top: 0; /* supprime l’espace vide entre body et footer */
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
    flex-shrink: 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .header {
        padding: 15px;
    }
}
/*@media (prefers-color-scheme: dark) {
    .site-logo {
        filter: brightness(0) invert(1);
    }
}*/


@media (max-width: 800px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .logo, .contact-header, .menu {
        flex: none;
        margin: 5px 0;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .menu a {
        margin: 0 8px;
        font-size: 14px;
    }

    .devis-container {
        flex-direction: column;
    }

    .form-left, .map-right {
        flex: 1 1 100%;
    }
}

/* ====== MOBILE : page Services - 1 service par ligne ====== */
@media (max-width: 600px) {
    .services .services-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .services .service-card {
        width: 100%;
        margin: 0 auto;
    }

        .services .service-card img {
            height: auto;
        }
}

/* Header compact sur mobile */
@media (max-width: 768px) {
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .logo {
        margin-bottom: 5px;
    }

    .contact-header {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

        .menu a {
            font-size: 14px;
        }

    .language-selector {
        margin-top: 5px;
    }
}
.quote-form {
    padding: 60px 20px;
}

@media (max-width: 768px) {
    .quote-form {
        padding: 30px 15px;
    }
}
