* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.top-bar {
    background: #d93025;
    color: white;
    display: flex;
    justify-content: flex-end;
    padding: 8px 20px;
    font-size: 18px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: flex-end;
}

.logo .emd {
    font-size: 80px;
    font-weight: bold;
    line-height: 1;
}

.lettre-e {
    color: #d93025;
}

.lettres-md {
    color: #888;
}

.logo .slogan {
    font-size: 20px;
    margin-left: 10px;
    color: #333;
    padding-bottom: 7px;
}

nav a {
    margin: 0 15px;
    font-weight: bold;
    text-decoration: underline;
    font-size: 20px;
    color: black;
    transition: transform 0.1s ease, color 0.2s;
}

nav a:active {
    transform: scale(0.95);
    color: #d93025;
}

.hero {
    position: relative;
    height: 90vh;
    background: url('background-renovation.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.hero .overlay h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero .overlay h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
}

.prestations {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background: transparent;
    padding: 80px 20px 150px 20px;
}

.prestations::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: #444;
    transform: skewY(-6deg);
    transform-origin: top left;
    z-index: 0;
}

.card {
    position: relative;
    z-index: 2;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    text-align: center;
    margin: 20px;
    padding: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.card h3 {
    margin: 10px 0 5px 0;
    font-size: 16px;
}

.card button {
    padding: 6px 12px;
    background: linear-gradient(#ff5a5a, #cc0000);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}

.card button:hover {
    transform: scale(1.05);
}

.hero .overlay p {
    margin: 20px 0;
    max-width: 800px;
    font-size: 18px;
    line-height: 1.6;
}

.hero .overlay h3 {
    margin-top: 30px;
    font-size: 22px;
    text-decoration: underline;
}

.hero .overlay ul {
    margin-top: 15px;
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
    max-width: 800px;
    font-size: 18px;
    line-height: 1.6;
}

.hero .overlay li {
    margin-bottom: 10px;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

.avis-section {
    padding: 80px 20px;
    background: #f7f7f7;
    text-align: center;
}

.avis-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.avis-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.avis-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.avis-texte {
    font-size: 16px;
    margin-bottom: 10px;
    font-style: italic;
}

.avis-nom {
    font-weight: bold;
    margin-bottom: 5px;
}

.etoiles {
    color: #f5b400;
    font-size: 18px;
}

.partenaires {
    background-color: #d93025;
    padding: 15px 0 5px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.bandeau {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    padding: 0 50px;
}

.logos {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
}

.logos img {
    height: 80px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.logos img:hover {
    transform: scale(1.1);
}

.fleche {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

.fleche.gauche {
    left: 10px;
}

.fleche.droite {
    right: 10px;
}

.mention {
    font-size: 12px;
    margin-top: 10px;
    color: white;
    opacity: 0.8;
}

.appel-section {
    background-color: #d93025;
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.appel-section p {
    font-size: 20px;
    margin-bottom: 15px;
}

.appel-bouton {
    display: inline-block;
    background-color: white;
    color: #d93025;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.appel-bouton:hover {
    background-color: #fff0f0;
    color: #b51e1e;
}

.footer {
    background: #f0f0f0;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #333;
}

.footer a {
    color: #d93025;
    text-decoration: underline;
}

.recherche-frequente {
    background: #f7f7f7;
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    color: #555;
    border-top: 1px solid #eee;
}

.recherche-frequente h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
    font-weight: 600;
}

.mots-cles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px;
}

.mots-cles span {
    background: #eee;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: #444;
    opacity: 0.8;
}

.mots-cles a {
    background: #eee;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
}

.mots-cles a:hover {
    background: #d93025;
    color: white;
}

@media screen and (max-width: 768px) {

    /* Réduction des titres dans la section hero */
    .hero .overlay h1 {
        font-size: 32px;
    }

    .hero .overlay h2 {
        font-size: 20px;
    }

    .hero .overlay p,
    .hero .overlay ul {
        font-size: 16px;
        padding: 0 10px;
    }

    /* Menu et logo en colonne sur mobile */
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 20px;
    }

    nav a {
        margin: 8px 0;
        font-size: 18px;
    }

    .logo {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .logo .emd {
        font-size: 60px;
    }

    .logo .slogan {
        font-size: 14px;
    }

    /* Prestations : colonne unique */
    .prestations {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .card {
        width: 95%;
    }

    .top-bar {
        font-size: 13px;
        padding: 6px 10px;
        justify-content: center;
        text-align: center;
    }

    .hero {
        height: auto;
        padding: 60px 20px;
        background-position: center top;
    }

    .hero .overlay {
        position: relative;
        inset: unset;
        padding: 30px 15px;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .card {
        width: 90%;
        margin: 15px 0;
    }

    .avis-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .avis-card {
        width: 90%;
        padding: 15px;
    }

    .recherche-frequente {
        padding: 10px;
        margin: 20px 10px;
        background: #f5f5f5;
        border-radius: 8px;
    }

    .recherche-frequente h3 {
        font-size: 14px;
        margin-bottom: 10px;
        text-align: center;
    }

    .recherche-frequente .mots-cles {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .recherche-frequente .mots-cles a {
        font-size: 12px;
        padding: 6px 10px;
        width: auto;
        max-width: 90%;
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }
}