/* =========================================================================
   QHSE 360 . Version révisée du template ISIT V1 (HTML Codex, Bootstrap 5)
   Même ADN : Ubuntu + Open Sans, section-title barre + point, service-item
   à bascule pleine couleur, boutons pilule, topbar sombre, retour en haut.
   Palette adaptée à l'identité verte du produit.
   ========================================================================= */
:root {
    --primary:   #1B7A4E;
    --secondary: #16A34A;
    --light:     #F2F8F5;
    --dark:      #0E2F22;
}

body { font-family: "Open Sans", sans-serif; color: #5B6B63; }
h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, .fw-bold { font-family: "Ubuntu", sans-serif; }
h1, h2, h3, .fw-bold { font-weight: 700 !important; color: var(--dark); }
h4, h5, h6, .fw-medium { font-weight: 500 !important; color: var(--dark); }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }
.text-primary { color: var(--primary) !important; }

/*** Boutons, pilule comme sur l'ancien site ***/
.btn { font-weight: 500; transition: .5s; }
.btn-primary {
    --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--secondary); --bs-btn-hover-border-color: var(--secondary);
    --bs-btn-active-bg: var(--secondary); --bs-btn-active-border-color: var(--secondary);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary); --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary);
    --bs-btn-active-bg: var(--primary); --bs-btn-active-border-color: var(--primary);
}
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-square, .btn-sm-square {
    padding: 0; display: inline-flex; align-items: center; justify-content: center;
    font-weight: normal;
}

/*** Topbar ***/
.topbar { background: var(--dark); font-size: .8125rem; }
.topbar, .topbar a { color: rgba(255,255,255,.7); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar i.lead-ico { color: var(--secondary); }
.topbar .btn-sm-square { background: rgba(255,255,255,.08); color: #fff; border-radius: 50%; }
.topbar .btn-sm-square:hover { background: var(--primary); }

/*** Navbar, sombre comme sur l'ancien site ***/
.navbar { padding: 0; }
.navbar.bg-primary { background: var(--primary) !important; }
.navbar .navbar-brand {
    display: flex; align-items: center; gap: .6rem;
    color: #fff; font-size: 1.4rem; font-weight: 700; padding: 14px 0;
}
.navbar .navbar-brand img { border-radius: 8px; background: #fff; }
.navbar .navbar-nav .nav-link {
    padding: 22px 15px; color: rgba(255,255,255,.75);
    font-family: "Ubuntu", sans-serif; font-weight: 500;
    text-transform: uppercase; font-size: .8125rem; letter-spacing: .05em;
    transition: .5s;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active { color: #fff; }
.navbar .navbar-toggler { color: #fff; border-color: rgba(255,255,255,.4); }
.navbar .navbar-toggler-icon { filter: invert(1); }
@media (max-width: 991.98px) {
    .navbar .navbar-nav { padding: 0 15px 12px; background: var(--primary); }
    .navbar .navbar-nav .nav-link { padding: 10px 0; }
    .navbar .nav-cta { margin: 0 15px 15px; }
}

/*** Héro ***/
.hero-header { background: var(--dark); padding: 4.5rem 0; }
.hero-header .badge-iso {
    display: inline-block; font-size: .8125rem; color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.3); border-radius: 50rem; padding: .4rem .95rem;
}
.hero-eyebrow {
    display: inline-block; font-family: "Ubuntu", sans-serif; font-size: .8125rem;
    font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
    color: var(--secondary); margin-bottom: 1rem;
}

/*** Cadre navigateur ***/
.browser-frame { border-radius: 10px; overflow: hidden; background: #fff; }
.browser-frame-bar {
    display: flex; align-items: center; gap: .35rem;
    background: #E7F0EB; padding: .5rem .9rem; border-bottom: 1px solid #D5E3DB;
}
.browser-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: #A9BFB3; }
.browser-frame-bar small { margin-left: .5rem; color: #6B7F75; font-size: .75rem; }

/*** Bandeau chiffres ***/
.facts { background: var(--primary); padding: 2.6rem 0; }
.fact-num { font-family: "Ubuntu", sans-serif; font-size: 2.6rem; font-weight: 700; color: #fff; }
.fact p { color: rgba(255,255,255,.85); margin: 0; font-size: .9375rem; }

/*** Titres de section : barre + point, repris de l'ancien site ***/
.section-title { position: relative; display: inline-block; padding-bottom: 12px; margin-bottom: 0; }
.section-title::before {
    position: absolute; content: ""; width: 45px; height: 4px;
    bottom: 0; left: 0; background: var(--primary); border-radius: 2px;
}
.section-title::after {
    position: absolute; content: ""; width: 4px; height: 4px;
    bottom: 0; left: 50px; background: var(--primary); border-radius: 2px;
}
.section-title.text-center::before { left: 50%; margin-left: -25px; }
.section-title.text-center::after { left: 50%; margin-left: 25px; }
.section-eyebrow {
    font-family: "Ubuntu", sans-serif; font-weight: 500; font-size: .8125rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--primary);
    margin-bottom: .5rem;
}

/*** Listes cochées ***/
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding-block: .45rem; color: var(--dark); font-weight: 600; font-size: .9375rem; }
.list-check i { color: var(--primary); margin-right: .7rem; }

.phone-shot { max-width: 300px; border-radius: 24px; box-shadow: 0 20px 45px -18px rgba(14,47,34,.45); }

/*** Cartes modules : bascule pleine couleur au survol, comme l'ancien site ***/
.service-item {
    position: relative; padding: 40px 28px; background: #fff;
    border: 1px solid #E3EDE7; border-radius: 8px; height: 100%;
    text-align: center; transition: .5s;
}
.service-item:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-6px); }
.service-icon {
    margin: 0 auto 20px; width: 90px; height: 90px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: var(--light); font-size: 2.1rem; transition: .5s;
}
.service-item:hover .service-icon { background: #fff; }
.service-item h5, .service-item p { transition: .5s; }
.service-item p { font-size: .9rem; margin: 0; }
.service-item:hover h5, .service-item:hover p { color: #fff; }

/*** Tableau des offres ***/
.pricing-item {
    position: relative; background: #fff; border: 1px solid #E3EDE7; border-radius: 8px;
    padding: 2rem 1.7rem; height: 100%; display: flex; flex-direction: column; transition: .5s;
}
.pricing-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(14,47,34,.25); }
.pricing-item.featured { border: 2px solid var(--primary); box-shadow: 0 18px 45px -18px rgba(27,122,78,.4); }
.pricing-flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-family: "Ubuntu", sans-serif;
    font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem 1.1rem; border-radius: 50rem;
}
.pricing-head { text-align: center; border-bottom: 1px dashed #D5E3DB; padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
.pricing-price { font-family: "Ubuntu", sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.pricing-head p { font-size: .875rem; margin: .3rem 0 0; }
.pricing-item ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.pricing-item ul li { padding-block: .42rem; font-size: .9rem; color: var(--dark); }
.pricing-item ul li i { color: var(--primary); margin-right: .6rem; }
.pricing-item ul li.off { color: #A9B6B0; text-decoration: line-through; }
.pricing-item ul li.off i { color: #C7D2CC; }
.pricing-item .btn { border-radius: 50rem; }

.note-box {
    background: var(--light); border-left: 4px solid var(--primary); border-radius: 0 6px 6px 0;
    padding: 1rem 1.3rem; font-size: .9rem; max-width: 860px; margin-inline: auto;
}

/*** Étapes du parcours ***/
.step-item {
    background: #fff; border: 1px solid #E3EDE7; border-radius: 8px;
    padding: 1.2rem .9rem; text-align: center; height: 100%;
    font-family: "Ubuntu", sans-serif; font-weight: 500; font-size: .875rem; color: var(--dark);
    transition: .5s;
}
.step-item:hover { transform: translateY(-4px); border-color: var(--primary); }
.step-item span { display: block; font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: .3rem; }

/*** Accordéon ***/
.accordion-item { border-color: #E3EDE7; }
.accordion-button { font-family: "Ubuntu", sans-serif; font-weight: 500; color: var(--dark); }
.accordion-button:not(.collapsed) { background: var(--light); color: var(--primary); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(27,122,78,.15); }

/*** Bandeau final ***/
.cta-strip { background: var(--primary); padding: 4rem 0; }
.cta-strip .btn { border-radius: 50rem; }

/*** Formulaires démo et devis ***/
#contact .form-control, #contact .form-select {
    font-size: 1rem;           /* 16px : évite le zoom automatique sur iPhone */
    padding: .8rem 1rem; border-radius: 8px; border-color: #D5E3DB;
}
#contact .form-control:focus, #contact .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(27,122,78,.15);
}
#contact .form-label { font-family: "Ubuntu", sans-serif; font-weight: 500; color: var(--dark); margin-bottom: .35rem; }
#contact .form-check-label { font-size: .875rem; }
#contact .form-check-label a { color: var(--primary); }
#formTabs { gap: .5rem; }
#formTabs .nav-link {
    font-family: "Ubuntu", sans-serif; font-weight: 500; color: var(--dark);
    border: 1px solid #D5E3DB; border-radius: 50rem; background: #fff; padding: .8rem 1rem;
}
#formTabs .nav-link.active { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 575.98px) { #formTabs { flex-direction: column; } }

/*** Pied de page ***/
.footer { background: var(--dark); color: rgba(255,255,255,.65); font-size: .9rem; }
.footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding-block: .3rem; }
.footer-links a { color: rgba(255,255,255,.65); text-decoration: none; transition: .3s; }
.footer-links a:hover { color: #7ED9A9; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .8125rem; }
.footer-bottom a { color: #7ED9A9; text-decoration: none; }

/*** Retour en haut, comme l'ancien site ***/
.back-to-top {
    position: fixed; right: 30px; bottom: 30px; z-index: 99;
    display: none; width: 44px; height: 44px; border-radius: 8px;
    align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-size: 1.2rem; text-decoration: none;
    transition: .5s;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { background: var(--secondary); color: #fff; }

/*** Apparition au défilement, version légère et moderne ***/
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
