/* =====================================================================
   HETERACTIS-CMS — Thème DÉFI Services et Travaux
   Palette : orange #f68e1f (primaire) · vert #abcb42 (secondaire)
   Titres : Roboto Slab (substitut Museo Slab) · Texte : PT Sans
   Préfixe : he-
   ===================================================================== */

:root {
    --he-orange: #f68e1f;
    --he-orange-d: #e07a0c;
    --he-vert: #abcb42;
    --he-vert-d: #8aa830;
    --he-dark: #1f2933;
    --he-dark-2: #2c3a47;
    --he-gray: #6c757d;
    --he-light: #f7f5f2;
    --he-line: #e6e2db;
    --he-white: #ffffff;
    --he-radius: 12px;
    --he-shadow: 0 8px 30px rgba(31, 41, 51, .10);
    --he-shadow-sm: 0 3px 12px rgba(31, 41, 51, .08);
    --he-max: 1180px;
    --he-head: 'Roboto Slab', Georgia, serif;
    --he-body: 'PT Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--he-body);
    color: var(--he-dark);
    line-height: 1.65;
    background: var(--he-white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--he-orange); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--he-orange-d); }
h1, h2, h3, h4, h5 { font-family: var(--he-head); color: var(--he-dark); line-height: 1.2; font-weight: 700; }
ul { list-style: none; }

.he-container { width: 100%; max-width: var(--he-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Boutons ---------- */
.he-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--he-head); font-weight: 600; font-size: .95rem;
    padding: 13px 26px; border-radius: 50px; border: 2px solid transparent;
    cursor: pointer; transition: all .2s ease; text-align: center; line-height: 1;
}
.he-btn-primary { background: var(--he-orange); color: #fff; border-color: var(--he-orange); }
.he-btn-primary:hover { background: var(--he-orange-d); border-color: var(--he-orange-d); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(246,142,31,.35); }
.he-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.he-btn-ghost:hover { background: #fff; color: var(--he-dark); border-color: #fff; }
.he-btn-dark { background: var(--he-dark); color: #fff; border-color: var(--he-dark); }
.he-btn-dark:hover { background: var(--he-dark-2); color: #fff; transform: translateY(-2px); }
.he-btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- Topbar ---------- */
.he-topbar { background: var(--he-dark); color: #cfd8e0; font-size: .82rem; }
.he-topbar-inner { display: flex; gap: 26px; align-items: center; height: 40px; flex-wrap: wrap; }
.he-topbar-item { display: inline-flex; align-items: center; gap: 7px; color: #cfd8e0; }
.he-topbar-item svg { color: var(--he-orange); flex-shrink: 0; }
.he-topbar-item:hover { color: #fff; }
.he-topbar-zone { margin-left: auto; }

/* ---------- Header / Nav ---------- */
.he-header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: var(--he-shadow-sm); }
.he-header-main { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.he-logo img { height: 56px; width: auto; }
.he-nav { margin-left: auto; }
.he-nav-list { display: flex; align-items: center; gap: 4px; }
.he-nav-link {
    display: block; padding: 12px 14px; color: var(--he-dark); font-weight: 700;
    font-family: var(--he-head); font-size: .92rem; border-radius: 8px; position: relative;
}
.he-nav-link:hover, .he-nav-link.is-active { color: var(--he-orange); }
.he-nav-link.is-active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
    background: var(--he-orange); border-radius: 3px;
}
.he-caret { font-size: .7rem; }

/* Sous-menu */
.he-has-sub { position: relative; }
.he-submenu {
    position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
    border-radius: var(--he-radius); box-shadow: var(--he-shadow); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease;
    border-top: 3px solid var(--he-orange);
}
.he-has-sub:hover .he-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.he-submenu li a {
    display: block; padding: 10px 14px; color: var(--he-dark); border-radius: 8px;
    font-weight: 400; font-size: .92rem;
}
.he-submenu li a:hover { background: var(--he-light); color: var(--he-orange); padding-left: 18px; }

.he-header-actions { display: flex; align-items: center; }
.he-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.he-burger span { width: 26px; height: 3px; background: var(--he-dark); border-radius: 3px; transition: all .25s ease; }
.he-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.he-burger.is-open span:nth-child(2) { opacity: 0; }
.he-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections génériques ---------- */
.he-section { padding: 80px 0; }
.he-section-light { background: var(--he-light); }
.he-section-dark { background: var(--he-dark); color: #d5dce2; }
.he-section-dark h2, .he-section-dark h3 { color: #fff; }
.he-eyebrow {
    display: inline-block; font-family: var(--he-head); font-weight: 700; font-size: .8rem;
    letter-spacing: .12em; text-transform: uppercase; color: var(--he-orange); margin-bottom: 12px;
}
.he-section-title { font-size: 2.1rem; margin-bottom: 14px; }
.he-section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.he-section-head p { color: var(--he-gray); font-size: 1.05rem; }
.he-lead { font-size: 1.12rem; color: var(--he-gray); }
.he-deco-bar { width: 64px; height: 4px; background: var(--he-vert); border-radius: 4px; margin: 0 auto 22px; }

/* ---------- Hero accueil ---------- */
.he-hero {
    position: relative; min-height: 78vh; display: flex; align-items: center;
    color: #fff; text-align: center; overflow: hidden;
}
.he-hero-bg { position: absolute; inset: 0; z-index: -2; }
.he-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.he-hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(31,41,51,.62) 0%, rgba(31,41,51,.78) 100%);
}
.he-hero-content { max-width: 820px; margin: 0 auto; padding: 90px 20px; }
.he-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; margin-bottom: 18px; }
.he-hero h1 .he-accent { color: var(--he-orange); }
.he-hero-sub { font-size: 1.2rem; margin-bottom: 32px; color: #eef1f3; font-weight: 400; }
.he-hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero secondaire (pages internes) */
.he-pagehero {
    position: relative; color: #fff; padding: 70px 0; text-align: center; overflow: hidden;
    background: var(--he-dark);
}
.he-pagehero-bg { position: absolute; inset: 0; z-index: 0; opacity: .28; }
.he-pagehero-bg img { width: 100%; height: 100%; object-fit: cover; }
.he-pagehero .he-container { position: relative; z-index: 1; }
.he-pagehero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 10px; }
.he-pagehero p { color: #e2e7eb; max-width: 680px; margin: 0 auto; font-size: 1.08rem; }
.he-breadcrumb { font-size: .85rem; color: #b7c0c8; margin-bottom: 16px; }
.he-breadcrumb a { color: var(--he-orange); }

/* ---------- Présentation (accueil) ---------- */
.he-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.he-split img { border-radius: var(--he-radius); box-shadow: var(--he-shadow); }
.he-split h2 { font-size: 2rem; margin-bottom: 18px; }
.he-split p { color: var(--he-gray); margin-bottom: 16px; }
.he-check { margin: 18px 0 26px; }
.he-check li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.he-check li::before { content: '✓'; color: var(--he-vert-d); font-weight: 700; flex-shrink: 0; }

/* ---------- Grille prestations (cards) ---------- */
.he-grid { display: grid; gap: 26px; }
.he-grid-3 { grid-template-columns: repeat(3, 1fr); }
.he-grid-4 { grid-template-columns: repeat(4, 1fr); }
.he-card {
    background: #fff; border-radius: var(--he-radius); overflow: hidden;
    box-shadow: var(--he-shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column;
}
.he-card:hover { transform: translateY(-6px); box-shadow: var(--he-shadow); }
.he-card-media { aspect-ratio: 4/3; overflow: hidden; }
.he-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.he-card:hover .he-card-media img { transform: scale(1.06); }
.he-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.he-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.he-card-body p { color: var(--he-gray); font-size: .94rem; margin-bottom: 16px; flex: 1; }
.he-card-link { font-family: var(--he-head); font-weight: 600; color: var(--he-orange); display: inline-flex; align-items: center; gap: 6px; }
.he-card-link::after { content: '→'; transition: transform .2s ease; }
.he-card:hover .he-card-link::after { transform: translateX(4px); }
.he-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--he-vert-d); background: rgba(171,203,66,.15); padding: 4px 10px; border-radius: 20px; margin-bottom: 10px; align-self: flex-start; }

/* ---------- Stats / chiffres ---------- */
.he-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.he-stat-num { font-family: var(--he-head); font-size: 2.6rem; font-weight: 800; color: var(--he-orange); }
.he-stat-label { color: var(--he-gray); font-size: .95rem; }

/* ---------- Galerie réalisations ---------- */
.he-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.he-gallery-item { position: relative; border-radius: var(--he-radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--he-shadow-sm); }
.he-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.he-gallery-item:hover img { transform: scale(1.07); }
.he-gallery-caption {
    position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff;
    background: linear-gradient(transparent, rgba(31,41,51,.88));
}
.he-gallery-caption .he-tag { color: #fff; background: var(--he-orange); }
.he-gallery-caption h3 { color: #fff; font-size: 1.1rem; }

/* ---------- Témoignage ---------- */
.he-quote { max-width: 800px; margin: 0 auto; text-align: center; }
.he-quote-mark { font-family: var(--he-head); font-size: 4rem; color: var(--he-orange); line-height: .6; }
.he-quote p { font-size: 1.35rem; font-style: italic; color: var(--he-dark); margin: 18px 0; }
.he-quote-author { font-family: var(--he-head); font-weight: 700; color: var(--he-orange); }

/* ---------- Zone d'intervention ---------- */
.he-zone { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.he-zone img { border-radius: var(--he-radius); box-shadow: var(--he-shadow); }

/* ---------- Bande CTA ---------- */
.he-cta-band {
    background: linear-gradient(120deg, var(--he-orange), var(--he-orange-d));
    color: #fff; text-align: center; padding: 64px 0;
}
.he-cta-band h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.he-cta-band p { color: #fff6ec; margin-bottom: 26px; font-size: 1.1rem; }
.he-cta-band .he-btn-dark { background: var(--he-dark); border-color: var(--he-dark); }

/* ---------- Contenu prose (prestations, légales) ---------- */
.he-prose { max-width: 820px; margin: 0 auto; }
.he-prose h2 { font-size: 1.7rem; margin: 36px 0 14px; }
.he-prose h3 { font-size: 1.3rem; margin: 28px 0 10px; color: var(--he-orange); }
.he-prose p { margin-bottom: 16px; color: #3a444d; }
.he-prose ul.he-bullets { margin: 0 0 20px 0; }
.he-prose ul.he-bullets li { position: relative; padding-left: 28px; margin-bottom: 10px; color: #3a444d; }
.he-prose ul.he-bullets li::before { content: '✓'; position: absolute; left: 0; color: var(--he-vert-d); font-weight: 700; }
.he-steps { counter-reset: step; margin: 24px 0; }
.he-step { position: relative; padding: 0 0 24px 64px; }
.he-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 0; top: 0; width: 44px; height: 44px;
    background: var(--he-orange); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--he-head); font-weight: 700; font-size: 1.2rem;
}
.he-step:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--he-line); }
.he-step h3 { margin: 6px 0 6px; color: var(--he-dark); }

/* ---------- Formulaires ---------- */
.he-form { max-width: 720px; margin: 0 auto; background: #fff; padding: 36px; border-radius: var(--he-radius); box-shadow: var(--he-shadow); }
.he-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.he-field { margin-bottom: 18px; }
.he-field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--he-dark); }
.he-field .req { color: var(--he-orange); }
.he-field input, .he-field select, .he-field textarea {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--he-line); border-radius: 8px;
    font-family: var(--he-body); font-size: .98rem; background: var(--he-light); transition: border-color .2s, background .2s;
}
.he-field input:focus, .he-field select:focus, .he-field textarea:focus {
    outline: none; border-color: var(--he-orange); background: #fff;
}
.he-field textarea { resize: vertical; min-height: 130px; }
.he-form-note { font-size: .82rem; color: var(--he-gray); margin-top: 4px; }
.he-form-msg { padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 700; display: none; }
.he-form-msg.ok { display: block; background: rgba(171,203,66,.18); color: var(--he-vert-d); }
.he-form-msg.err { display: block; background: #fde8e8; color: #c0392b; }

/* Bloc coordonnées contact */
.he-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.he-contact-box { background: #fff; border-radius: var(--he-radius); padding: 30px 24px; text-align: center; box-shadow: var(--he-shadow-sm); }
.he-contact-box .he-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: rgba(246,142,31,.12); display: flex; align-items: center; justify-content: center; color: var(--he-orange); }
.he-contact-box h3 { font-size: 1.1rem; margin-bottom: 6px; }
.he-contact-box a, .he-contact-box p { color: var(--he-gray); }

/* ---------- Footer ---------- */
.he-footer { background: var(--he-dark); color: #aeb8c2; padding: 64px 0 0; }
.he-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 44px; }
.he-footer-logo { background: #fff; padding: 8px 12px; border-radius: 8px; margin-bottom: 18px; height: 62px; width: auto; }
.he-footer-desc { font-size: .92rem; line-height: 1.7; }
.he-footer-social { display: flex; gap: 12px; margin-top: 18px; }
.he-footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.he-footer-social a:hover { background: var(--he-orange); }
.he-footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.he-footer-links li, .he-footer-contact li { margin-bottom: 11px; }
.he-footer-links a { color: #aeb8c2; font-size: .92rem; }
.he-footer-links a:hover { color: var(--he-orange); padding-left: 4px; }
.he-footer-contact li { display: flex; gap: 10px; font-size: .9rem; line-height: 1.5; }
.he-footer-contact svg { flex-shrink: 0; margin-top: 3px; }
.he-footer-contact a { color: #aeb8c2; }
.he-footer-contact a:hover { color: var(--he-orange); }
.he-footer-cta { margin-top: 18px; }
.he-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.he-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.he-footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.he-footer-legal a { color: #aeb8c2; }
.he-footer-legal a:hover { color: var(--he-orange); }

/* ---------- Back to top ---------- */
.he-back-to-top {
    position: fixed; bottom: 26px; right: 26px; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; background: var(--he-orange); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease;
    box-shadow: 0 6px 18px rgba(246,142,31,.4);
}
.he-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.he-back-to-top:hover { background: var(--he-orange-d); color: #fff; }

/* ---------- Bandeau cookies ---------- */
.he-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100;
    background: #fff; border-radius: var(--he-radius); box-shadow: 0 12px 40px rgba(0,0,0,.22);
    padding: 22px 24px; display: none; border-top: 4px solid var(--he-orange);
    max-width: 1100px; margin: 0 auto;
}
.he-cookie.is-shown { display: block; }
.he-cookie-inner { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.he-cookie-text { flex: 1; min-width: 260px; font-size: .9rem; color: #3a444d; }
.he-cookie-text strong { color: var(--he-dark); }
.he-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.he-cookie .he-btn { padding: 10px 20px; font-size: .85rem; }
.he-btn-outline { background: transparent; color: var(--he-dark); border-color: var(--he-line); }
.he-btn-outline:hover { border-color: var(--he-dark); }

/* ---------- Utilitaires ---------- */
.he-text-center { text-align: center; }
.he-mt-40 { margin-top: 40px; }
.he-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.he-reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .he-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .he-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .he-split, .he-zone { grid-template-columns: 1fr; gap: 32px; }
    .he-split-rev .he-split-media { order: -1; }
    .he-topbar-mail { display: none; }
}
@media (max-width: 860px) {
    .he-burger { display: flex; }
    .he-nav {
        position: fixed; top: 0; right: -100%; width: min(82%, 340px); height: 100vh;
        background: #fff; box-shadow: -6px 0 30px rgba(0,0,0,.15); padding: 90px 24px 24px;
        margin: 0; transition: right .3s ease; overflow-y: auto;
    }
    .he-nav.is-open { right: 0; }
    .he-nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .he-nav-link { padding: 14px 12px; border-bottom: 1px solid var(--he-line); }
    .he-nav-link.is-active::after { display: none; }
    .he-submenu {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        background: var(--he-light); border-top: 0; max-height: 0; overflow: hidden; padding: 0 8px;
        transition: max-height .3s ease;
    }
    .he-has-sub.is-open .he-submenu { max-height: 600px; padding: 8px; }
    .he-header-actions { display: none; }
}
@media (max-width: 680px) {
    .he-grid-3, .he-grid-4, .he-gallery, .he-contact-grid { grid-template-columns: 1fr; }
    .he-form-row { grid-template-columns: 1fr; }
    .he-section { padding: 56px 0; }
    .he-footer-grid { grid-template-columns: 1fr 1fr; }
    .he-topbar-zone { display: none; }
    .he-form { padding: 24px; }
}
@media (max-width: 460px) {
    .he-footer-grid { grid-template-columns: 1fr; }
    .he-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Moteur de recherche ---------- */
.he-search-toggle { background: none; border: 0; cursor: pointer; color: var(--he-dark); padding: 9px; display: flex; border-radius: 8px; transition: all .2s; }
.he-search-toggle:hover { color: var(--he-orange); background: var(--he-light); }
.he-search-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(31,41,51,.55); opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.he-search-overlay.is-open { opacity: 1; visibility: visible; }
.he-search-panel { position: absolute; top: 0; right: 0; width: min(460px, 92%); height: 100%; background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,.2); padding: 30px 28px; transform: translateX(40px); transition: transform .3s ease; overflow-y: auto; }
.he-search-overlay.is-open .he-search-panel { transform: translateX(0); }
.he-search-panel h3 { font-size: 1.25rem; margin-bottom: 16px; }
.he-search-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--he-gray); }
.he-search-close:hover { color: var(--he-orange); }
#searchInput { width: 100%; padding: 13px 16px; border: 1.5px solid var(--he-line); border-radius: 10px; font-size: 1rem; font-family: var(--he-body); background: var(--he-light); }
#searchInput:focus { outline: none; border-color: var(--he-orange); background: #fff; }
.he-search-results { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.he-search-results li a { display: block; padding: 12px 14px; border-radius: 10px; }
.he-search-results li a:hover { background: var(--he-light); }
.he-search-results .sr-cat { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--he-orange); font-weight: 700; }
.he-search-results .sr-title { font-family: var(--he-head); font-weight: 600; color: var(--he-dark); }
.he-search-results .sr-desc { font-size: .84rem; color: var(--he-gray); }
.he-search-empty { color: var(--he-gray); padding: 14px 4px; font-size: .92rem; }

/* ---------- Témoignages (cartes) ---------- */
.he-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.he-testi-card { background: #fff; border-radius: var(--he-radius); padding: 26px; box-shadow: var(--he-shadow-sm); display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--he-orange); text-align: left; }
.he-testi-mark { font-family: var(--he-head); font-size: 2.4rem; line-height: .4; color: var(--he-orange); }
.he-testi-quote { font-style: italic; color: #3a444d; line-height: 1.65; flex: 1; font-size: .95rem; }
.he-testi-author { font-family: var(--he-head); font-weight: 700; color: var(--he-orange); }
.he-testi-author small { display: block; color: var(--he-gray); font-weight: 400; font-size: .8rem; font-family: var(--he-body); margin-top: 2px; }
@media (max-width: 860px) { .he-testi-grid { grid-template-columns: 1fr; } }

/* ---------- Avis Google ---------- */
.he-gnote { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; background: #fff; border-radius: var(--he-radius); box-shadow: var(--he-shadow-sm); padding: 20px 28px; max-width: 640px; margin: 0 auto 38px; }
.he-gnote-score { font-family: var(--he-head); font-size: 2.8rem; font-weight: 800; color: var(--he-dark); line-height: 1; }
.he-stars { color: var(--he-orange); letter-spacing: 2px; font-size: 1.15rem; }
.he-testi-stars { color: var(--he-orange); letter-spacing: 2px; font-size: .95rem; }
.he-gnote-meta { color: var(--he-gray); font-size: .9rem; margin-top: 4px; }
.he-gnote-g { font-weight: 700; }
.he-gnote-g .b { color: #4285F4; } .he-gnote-g .r { color: #EA4335; } .he-gnote-g .y { color: #FBBC05; } .he-gnote-g .g { color: #34A853; }
a.he-testi-card { text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
a.he-testi-card:hover { transform: translateY(-4px); box-shadow: var(--he-shadow); }
.he-testi-source { font-size: .78rem; color: var(--he-gray); margin-top: 6px; }

/* ---------- Bulles d'avis façon Google ---------- */
.he-gheader { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; background: #fff; border: 1px solid var(--he-line); border-radius: 14px; padding: 18px 26px; max-width: 600px; margin: 0 auto 38px; box-shadow: var(--he-shadow-sm); }
.he-gheader-title { font-weight: 700; color: #202124; font-size: 1.05rem; }
.he-gheader-row { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.he-gscore { font-family: var(--he-head); font-weight: 800; font-size: 1.5rem; color: #202124; }
.he-gcount { color: #70757a; font-size: .85rem; }
.he-stars { color: #fbbc04; letter-spacing: 1px; }
.he-greviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.he-gcard { position: relative; background: #fff; border: 1px solid var(--he-line); border-radius: 14px; padding: 22px; box-shadow: var(--he-shadow-sm); display: flex; flex-direction: column; gap: 10px; }
a.he-gcard { text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
a.he-gcard:hover { box-shadow: var(--he-shadow); transform: translateY(-3px); }
.he-gcard-head { display: flex; align-items: center; gap: 12px; }
.he-gcard-av { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.he-gcard-name { font-weight: 700; color: #202124; font-size: .95rem; line-height: 1.2; }
.he-gcard-date { color: #70757a; font-size: .8rem; }
.he-gcard-glogo { position: absolute; top: 18px; right: 18px; }
.he-gcard-stars { color: #fbbc04; letter-spacing: 1px; font-size: 1rem; }
.he-gcard-text { color: #3c4043; font-size: .9rem; line-height: 1.6; }
@media (max-width: 860px) { .he-greviews { grid-template-columns: 1fr; } }

/* ---------- Avis en bulles de chat (alternées G/D) ---------- */
.he-chat { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.he-chatmsg { display: flex; gap: 14px; align-items: flex-end; max-width: 78%; }
.he-chatmsg.left { align-self: flex-start; }
.he-chatmsg.right { align-self: flex-end; flex-direction: row-reverse; }
.he-chat-av { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--he-head); font-size: 1.15rem; flex-shrink: 0; box-shadow: var(--he-shadow-sm); }
.he-bubble { position: relative; background: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: 0 6px 22px rgba(31,41,51,.10); text-decoration: none; color: inherit; display: block; transition: transform .2s, box-shadow .2s; }
.he-bubble:hover { transform: translateY(-2px); box-shadow: var(--he-shadow); }
.he-bubble-glogo { position: absolute; top: 15px; right: 16px; }
.he-bubble-stars { color: #fbbc04; letter-spacing: 1px; font-size: .95rem; }
.he-bubble-text { color: #3c4043; font-size: .92rem; line-height: 1.6; margin: 7px 0 9px; }
.he-bubble-meta { font-size: .82rem; color: #202124; font-weight: 700; }
.he-bubble-meta small { font-weight: 400; color: #70757a; }
.he-chatmsg.left .he-bubble::before { content: ""; position: absolute; left: -8px; bottom: 16px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); box-shadow: -3px 3px 6px rgba(31,41,51,.05); }
.he-chatmsg.right .he-bubble::before { content: ""; position: absolute; right: -8px; bottom: 16px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); box-shadow: 3px -3px 6px rgba(31,41,51,.04); }
@media (max-width: 680px) { .he-chatmsg { max-width: 100%; } }

/* ---------- En-tete : de la place pour le menu ---------- */
/* Le gabarit plafonnait TOUT a 1180px, contenu comme en-tete. Avec sept entrees
   de menu, la barre n'avait plus que 60px de marge alors que l'ecran en offrait
   encore 400 : un lien de plus la faisait casser. L'en-tete peut desormais
   s'elargir plus que le contenu ; la bande du haut suit la meme regle pour
   rester alignee avec le logo. Le corps du site garde sa largeur de lecture. */
.he-header .he-container,
.he-topbar .he-container { max-width: min(1400px, 100%); }

/* Entre le grand ecran et le passage au menu burger (860px), on resserre
   progressivement les liens plutot que de les laisser se chevaucher. */
@media (max-width: 1280px) {
    .he-header-main { gap: 16px; }
    .he-nav-link { padding: 12px 10px; font-size: .88rem; }
}
@media (max-width: 1080px) {
    .he-header-main { gap: 12px; }
    .he-nav-list { gap: 0; }
    .he-nav-link { padding: 10px 8px; font-size: .84rem; }
    .he-logo img { height: 46px; }
    .he-header-actions .he-btn { padding: 10px 14px; font-size: .82rem; }
}

/* ---------- Sections du SaaS posees dans le gabarit ---------- */
/* Les formulaires de contact et de devis viennent desormais d'une section du
   SaaS : leurs champs sont configurables, les demandes sont enregistrees, et
   l'envoi passe par le circuit de la plateforme au lieu d'un mail() depuis une
   IP absente du SPF. Reste a leur donner l'allure du gabarit — les couleurs
   arrivent deja par --color-primary, renseigne dans le theme du site ; ici on
   aligne les formes et la typographie.
   Les selecteurs restent volontairement larges (classes utilitaires de la
   plateforme) : le gabarit n'utilise aucune de ces classes, donc rien d'autre
   n'est touche. */

/* Titres de section : meme police et meme graisse que le reste du site. */
.he-saas-form h2,
section[id^="defi_form_"] h2 { font-family: var(--he-head); color: var(--he-dark); }

/* Carte du formulaire : rayon et ombre du gabarit plutot que ceux par defaut. */
section[id^="defi_form_"] .rounded-2xl {
    border-radius: var(--he-radius);
    border-color: var(--he-line);
    box-shadow: var(--he-shadow-sm);
}

/* Champs : meme rayon, et surlignage orange a la saisie. */
section[id^="defi_form_"] input,
section[id^="defi_form_"] select,
section[id^="defi_form_"] textarea {
    border-radius: 8px;
    font-family: var(--he-body);
}
section[id^="defi_form_"] input:focus,
section[id^="defi_form_"] select:focus,
section[id^="defi_form_"] textarea:focus {
    outline: none;
    border-color: var(--he-orange);
    box-shadow: 0 0 0 3px rgba(246, 142, 31, .18);
}

/* Bouton d'envoi : la pilule orange du gabarit, avec son relevement au survol. */
/* La couleur et le RAYON du bouton viennent du theme du site (primary_color et
   btn_radius = "pill") : la plateforme les genere elle-meme, inutile de les
   redefinir ici et de se retrouver avec deux sources qui divergent. On n'ajoute
   que ce que le theme ne sait pas faire : la police de titre et le relevement
   au survol, deux signatures du gabarit. */
section[id^="defi_form_"] button[type="submit"],
section[id^="defi_form_"] .btn-primary {
    font-family: var(--he-head);
    font-weight: 600;
    transition: all .2s ease;
}
section[id^="defi_form_"] button[type="submit"]:hover,
section[id^="defi_form_"] .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 142, 31, .35);
    opacity: 1;
}

/* ---------- FAQ en accordéon (ajout 30/09/2026) ---------- */
.he-faq { margin-top: 10px; }
.he-faq details { border-bottom: 1px solid rgba(31,41,51,.12); }
.he-faq details:first-child { border-top: 1px solid rgba(31,41,51,.12); }
.he-faq summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 18px 44px 18px 0; font-family: var(--he-head); font-weight: 700;
    font-size: 1.1rem; line-height: 1.4; color: var(--he-dark);
    transition: color .2s ease;
}
.he-faq summary::-webkit-details-marker { display: none; }
.he-faq summary::after {
    content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--he-orange); color: #fff; font-size: 1.3rem; font-weight: 400; line-height: 1;
    transition: transform .25s ease;
}
.he-faq details[open] summary { color: var(--he-orange); }
.he-faq details[open] summary::after { content: '−'; }
.he-faq summary:hover { color: var(--he-orange); }
.he-faq summary:focus-visible { outline: 2px solid var(--he-orange); outline-offset: 4px; border-radius: 4px; }
.he-faq .he-faq-a { padding: 0 0 18px; }
.he-faq .he-faq-a p { margin-bottom: 10px; }

/* ---------- Visionneuse photo (ajout 30/09/2026) ---------- */
a.he-gallery-item[href*="/uploads/"] { cursor: zoom-in; }
.he-lb {
    position: fixed; inset: 0; z-index: 10000; display: none;
    align-items: center; justify-content: center;
    background: rgba(17,22,28,.94); height: 100dvh;
}
.he-lb.is-open { display: flex; }
.he-lb-img {
    max-width: calc(100vw - 140px); max-height: calc(100dvh - 120px);
    object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
    user-select: none; -webkit-user-drag: none;
}
.he-lb-btn {
    position: absolute; border: 0; cursor: pointer; color: #fff;
    background: rgba(255,255,255,.12); width: 52px; height: 52px; border-radius: 50%;
    font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.he-lb-btn:hover, .he-lb-btn:focus-visible { background: var(--he-orange); outline: none; }
.he-lb-close { top: 18px; right: 18px; }
.he-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.he-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.he-lb-count {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.8); font-size: .95rem; letter-spacing: .05em;
}
.he-lb.is-single .he-lb-prev, .he-lb.is-single .he-lb-next, .he-lb.is-single .he-lb-count { display: none; }
@media (max-width: 860px) {
    .he-lb-img { max-width: 100vw; max-height: calc(100dvh - 140px); border-radius: 0; }
    .he-lb-prev, .he-lb-next { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
    .he-lb-count { bottom: 28px; }
}

/* ---------- Lieu + partage (ajout 30/09/2026 bis) ---------- */
.he-lieu { display: inline-flex; align-items: center; gap: 6px; }
.he-lieu svg { color: var(--he-orange); flex: none; }
.he-card { position: relative; }
.he-share {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; font-family: var(--he-head); font-weight: 600; font-size: .95rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.he-share svg { flex: none; }
.he-share:focus-visible { outline: 2px solid var(--he-orange); outline-offset: 3px; }
/* sur la vignette : pastille ronde en haut a droite de la photo */
.he-share-card {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,.94); color: var(--he-dark); box-shadow: var(--he-shadow-sm);
}
.he-share-card:hover { background: var(--he-orange); color: #fff; }
/* dans le bandeau de la page */
.he-share-hero {
    margin-top: 18px; padding: 10px 20px; border-radius: 999px;
    background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55);
}
.he-share-hero:hover { background: var(--he-orange); border-color: var(--he-orange); }
/* menu de partage (ordinateur) */
.he-share-menu {
    position: fixed; z-index: 10001; min-width: 220px; padding: 8px;
    background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(17,22,28,.22);
    display: none;
}
.he-share-menu.is-open { display: block; }
.he-share-menu a, .he-share-menu button {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 10px 12px; border: 0; background: none; border-radius: 8px; cursor: pointer;
    font: inherit; font-size: .95rem; color: var(--he-dark); text-align: left; text-decoration: none;
}
.he-share-menu a:hover, .he-share-menu button:hover, .he-share-menu a:focus-visible, .he-share-menu button:focus-visible {
    background: rgba(246,142,31,.1); color: var(--he-orange); outline: none;
}
.he-share-menu svg { flex: none; color: var(--he-orange); }

/* ---------- Tuile-lien avec bouton de partage (ajout 30/09/2026 ter) ---------- */
.he-tile { position: relative; }
.he-tile > .he-gallery-item { display: block; height: 100%; }

/* ---------- En-tête mobile (ajout 30/09/2026 quater) ---------- */
.he-nav-cta { display: none; }
@media (max-width: 860px) {
    /* le menu sort du flux en mobile : sans ça, loupe et bouton restaient collés au logo
       et la croix de fermeture tombait au milieu du panneau */
    .he-search-toggle { margin-left: auto; }
    .he-burger { position: relative; z-index: 2; }
    .he-nav-cta { display: block; margin-top: 22px; }
    .he-nav-cta .he-btn { display: flex; justify-content: center; width: 100%; }
}
.he-search-results .sr-title, .he-search-results .sr-desc { display: block; }
.he-search-results .sr-desc { margin-top: 2px; }

/* ---------- Signature du site en pied de page (ajout 30/09/2026) ---------- */
.he-footer-signature { color: rgba(255,255,255,.45); font-size: .8rem; }
.he-footer-signature:hover { color: var(--he-orange); }

/* ---------- Carrousel d'accueil + voile allégé des bandeaux (ajout 30/09/2026) ---------- */
.he-hero-slide { position: absolute; inset: 0; }
.he-hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1.2s ease; }
.he-hero-slide.is-active img { opacity: 1; animation: he-kenburns 6.4s ease-out forwards; }
@keyframes he-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.he-hero::after { background: linear-gradient(180deg, rgba(31,41,51,.42) 0%, rgba(31,41,51,.30) 45%, rgba(31,41,51,.62) 100%); }
.he-hero h1, .he-hero-sub { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.he-hero-controls { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.he-slide-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: #fff;
    background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.45); transition: background .25s, border-color .25s, transform .25s; }
.he-slide-btn:hover, .he-slide-btn:focus-visible { background: var(--he-orange); border-color: var(--he-orange); transform: scale(1.06); outline: none; }
.he-slide-dots { display: flex; gap: 8px; align-items: center; }
.he-slide-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.he-slide-dot:hover { background: #fff; }
.he-slide-dot.is-active { width: 30px; border-radius: 99px; background: var(--he-orange); }
@media (prefers-reduced-motion: reduce) { .he-hero-slide.is-active img { animation: none; } .he-hero-slide img { transition: none; } }
@media (max-width: 680px) { .he-hero-controls { bottom: 16px; } .he-slide-btn { width: 38px; height: 38px; } }
/* Bandeaux des pages : la photo se voit, le texte reste lisible grâce à un dégradé et une ombre */
.he-pagehero-bg { opacity: 1; }
.he-pagehero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(31,41,51,.50) 0%, rgba(31,41,51,.38) 50%, rgba(31,41,51,.58) 100%); }
.he-pagehero h1, .he-pagehero p, .he-pagehero .he-breadcrumb { text-shadow: 0 2px 14px rgba(0,0,0,.45); }
