/* ================= Reset & Base ================= */
body {
    font-family: "Roboto", sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #222;
    padding-top: calc(50px + 60px); /* topbar + navbar */
}

a {
    text-decoration: none;
    transition: 0.3s;
}

img {
    max-width: 100%;
}
.menu-container {
    width: 100%;
    overflow-x: auto; /* si le menu est large */
}

/* ================= Header Top Info ================= */
.topbar {
    background: #9BCF53; /* vert pistache */
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
    transition: all 0.3s ease;
}

.topbar i {
    margin-right: 6px;
    color: #fff;
}

.topbar a {
    color: #fff !important;
}

/* ================= Navbar ================= */
.navbar {
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    transition: filter 0.3s ease;
}

/* Menu links desktop */
.navbar-nav .nav-link {
    font-weight: 600;
    padding: 12px 15px;
    color: #222 !important;
    position: relative;
    transition: color 0.3s;
}

/* Hover effet soulignage */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #7ED957; /* vert pistache */
    transition: 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Dropdown desktop */
.dropdown-menu {
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.dropdown-menu a {
    padding: 8px 12px;
    font-size: 15px;
    color: #222;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background-color: #e0f2d8;
    color: #222;
}

/* Flèche rotation */
.navbar-nav .dropdown-toggle::after {
    transition: transform 0.3s;
}

.navbar-nav .show > .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ================= Sticky / Scroll Header ================= */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.header-scrolled {
    background: rgba(168, 214, 114, 0.92); /* pistache translucide */
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
}

.header-scrolled .nav-link {
    color: #1b1b1b !important;
}

.header-scrolled .navbar-brand img {
    filter: brightness(0.85);
}

.header-scrolled .topbar {
    height: 0;
    padding: 0;
    overflow: hidden;
}





/* ================= Mobile Adjustments ================= */
@media(max-width: 992px) {

    .navbar-brand img {
        height: 30px; /* réduction d'environ 20% */
        transition: height 0.3s ease;
    }
    /* Dropdown links mobile */
    .navbar-nav .dropdown-menu {
        padding: 10px 0;
        border-radius: 8px;
        background-color: #fff;
    }

    .navbar-nav .dropdown-menu a {
        display: block;
        padding: 10px 20px;
        color: #222;
        font-weight: 500;
        transition: background 0.2s, color 0.2s;
    }

    .navbar-nav .dropdown-menu a:hover,
    .navbar-nav .dropdown-menu a:active {
        background-color: #e0f2d8; /* pistache clair */
        color: #000;
    }

    /* Menu toggle (burger) */
    .navbar-toggler {
        border: none;
    }


    /* Espace entre les liens mobiles */
    .navbar-nav .nav-item {
        margin-bottom: 4px;
    }

    /* Icon dropdown rotation (optionnel si tu gardes bootstrap) */
    .navbar-nav .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }

    .navbar-nav .show > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

.btn-devis {
        background: #7ED957;
        color: #fff;
        padding: 10px 18px;
        border-radius: 25px;
        font-weight: 600;
        text-decoration: none;
        transition: 0.3s;
        border: 2px solid #7ED957;
        white-space: nowrap;
        box-shadow: 0 4px 10px rgba(126, 217, 87, 0.3);
    }

    .btn-devis:hover {
        background: transparent;
        color: #7ED957;
        box-shadow: none;
        transform: translateY(-2px);
    }

    /* Mobile tweaks */
    @media(max-width: 992px) {
        .btn-devis {
            padding: 8px 14px;
            font-size: 14px;
        }
    }

/* ================= Boutons ================= */
/* Call button */
.call-btn {
    background: #A8D672; /* vert pistache */
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.call-btn:hover {
    background: #7FB53D;
}

/* Floating contact buttons */
.floating-contact {
    position: fixed;
    bottom: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.float-btn {
    width: 52px;
    height: 52px;
    background: #a8d672; /* pistache */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* WhatsApp */
.whatsapp-btn {
    background: #25d366;
}

/* ================= Slider ================= */
#mainCarousel .carousel-item img {
    height: 500px; /* adapte selon ton besoin */
    object-fit: cover;
}

#mainCarousel .carousel-control-prev-icon,
#mainCarousel .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

/* ================= Footer ================= */
.footer {
    background: #A8D672; /* pistache */
    color: #000;
    padding: 50px 0;
    font-size: 15px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin: 6px 0;
}

.footer-col ul li a {
    color: #000;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-contact i {
    margin-right: 8px;
}

.footer-social a {
    display: inline-block;
    margin-right: 12px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.2s;
    color: #000;
}

.footer-social a:hover {
    transform: scale(1.2);
}

/* Footer bottom fixe */
.footer-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #A8D672;
    color: #000;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    border-top: 1px solid rgba(0,0,0,0.15);
    z-index: 999;
}

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


/* FORMULAIRE DEVIS */
.devis-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.devis-form .form-group {
    margin-bottom: 15px;
}

.devis-form input,
.devis-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 14px;
    transition: 0.3s;
}

.devis-form input:focus,
.devis-form textarea:focus {
    border-color: #7ED957; /* pistache */
    box-shadow: 0 0 8px rgba(126, 217, 87, 0.3);
    outline: none;
}

.devis-form textarea {
    min-height: 120px;
    resize: vertical;
}

.devis-form button.btn-devis {
    background: #7ED957;
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    padding: 12px;
    font-size: 16px;
    transition: 0.3s;
}

.devis-form button.btn-devis:hover {
    background: #6ea94d;
    transform: translateY(-2px);
}
@media(max-width: 991px) {
    .order-1 { order: 1 !important; }
    .order-2 { order: 2 !important; }
}

/* Containers cartes contact + formulaire */
.contact-card, .devis-card {
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

/* Contact info style */
.contact-card h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-card iframe.map-frame {
    width: 100%;
    height: 250px;
    border: 0;
}

/* Devis Formulaire */
.devis-card h1 {
    font-size: 28px;
}

.devis-card p {
    font-size: 16px;
}

/* Responsive spacing */
@media(max-width: 992px) {
    .contact-card, .devis-card {
        margin-bottom: 20px;
    }
}

/* ⚡ Ajustements pour iPhone SE / petits écrans ≤ 375px */
@media (max-width: 375px) {

  /* Réduire le padding et la taille du bouton Devis */
  .btn-devis {
    padding: 8px 12px;        /* moins large pour rentrer à l'écran */
    font-size: 0.85rem;       /* texte plus petit */
    white-space: normal;      /* permet le retour à la ligne si nécessaire */
    text-align: center;
  }

  /* Ajuster le header / navbar pour que le menu burger reste visible */
  header, .page-header, .navbar {
    overflow: visible;        /* éviter que le menu soit masqué */
  }

  /* Menu burger : réduire marges et padding */
  .page-header-menu .menu {
    padding-left: 5px;
    padding-right: 5px;
  }

  .page-header-menu .menu li a {
    font-size: 0.9rem;        /* texte des liens plus petit */
  }

  /* Ajustement du carousel / slider si texte trop grand */
  .carousel-caption h1 {
    font-size: 1.5rem;        /* réduire texte pour ne pas prendre tout l'écran */
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  /* Optionnel : réduire marges globales pour tout le contenu */
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}
