:root {
    --blue: #4ea8ed;
    --black: #000000;
    --light: #f9f9f9;
    --text: #111111;
    --white: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* Corps entier : utilise tout l’espace vertical */
html, body {
    height: 100%;
    margin: 0;
}

/* Le conteneur global devient une colonne flexible */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Le contenu principal prend tout l’espace dispo */
.content {
    flex: 1;
}

/* Le footer reste en bas */
.footer {
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
    background-color: #f7f7f7;
    border-top: 1px solid #ddd;
}
.footer a{
    text-decoration: none;
    color: var(--blue);;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    overflow: hidden;
}

.nav-content {
    max-width: 1100px;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
}

.burger {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--black);
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--blue);
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    clip-path: ellipse(100% 85% at 50% 15%);
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 60%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 1rem;
    width: 80%;
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.6;
}

/* SECTIONS */
section {
    padding: 2rem;
    position: relative;
    z-index: 0;
}

section::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 150px;
    height: 150px;
    background: var(--blue);
    opacity: 0.05;
    border-radius: 50%;
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: auto;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* SERVICES */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    position: relative;
    background: white;
    border: none;
    border-radius: 30px;
    padding: 2rem;
    flex: 1 1 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    transform: rotate(25deg);
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}




.card h3,
.card p {
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* CONTACT INFO */
.cta-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    transition: background 0.3s ease;
}

.whatsapp {
    background: #25D366;
}

.call {
    background: var(--blue);
}

.btn:hover {
    opacity: 0.9;
}

/* FORM */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

input,
textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

button[type='submit'] {
    background: var(--black);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

button[type='submit']:hover {
    background: var(--blue);
}

/* FOOTER */
.footer {
    background: var(--black);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer .legal {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-content p {
        font-size: 1rem;
    }

    .cards {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .nav-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .burger {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        background: var(--white);
        border-top: 1px solid #eee;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        padding: 1rem 0;
    }
}

@media (min-width: 768px) {
    .hero{
        height: 90vh;
    }
}
/* CARD IMAGES */
#card1 {
    background: url("../images/interieur.png") no-repeat center/cover;
    color: white;
}

#card2 {
    background: url("../images/exterieur1.png") no-repeat center/cover;
    color: white;
}

#card3 {
    background: url("../images/remise_en_etat.png") no-repeat center/cover;
    color: white;
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    animation: fadeSlideUp 1.2s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s;
}

.flash-message {
    position: relative;
    margin: 30px auto;
    padding: 14px 28px;
    max-width: 520px;
    border-radius: 12px;
    background: #ffffff;
    color: #222;
    font-size: 0.95rem;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    letter-spacing: 0.4px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: opacity 0.8s ease, transform 0.4s ease;
    opacity: 1;
}

/* ✅ Variantes douces et classe */

.alert-success {
    border: 1px solid #3fa96b;
    border-left-width: 4px;
    background: linear-gradient(135deg, #f9fffa, #ffffff);
    color: #2d5941;
}

.alert-danger {
    border: 1px solid #e65c5c;
    border-left-width: 4px;
    background: linear-gradient(135deg, #fff5f5, #ffffff);
    color: #832d2d;
}

.alert-info {
    border: 1px solid #5c9be6;
    border-left-width: 4px;
    background: linear-gradient(135deg, #f5f9ff, #ffffff);
    color: #2c4b72;
}

/* Disparition fluide */
.flash-message.fade-out {
    opacity: 0;
    transform: translateY(-6px);
}

.h80vh{
    height: 80vh;
}
.h100{
    height: 100%;
}
.m2{
    margin: 2rem;
}
