/* home-services.css — section « Nos services » (préfixe hs- pour éviter les collisions avec home.css) */

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* h1 de l'accueil : mêmes styles que l'ancien .hero h2 */
.hero h1 { font-family: var(--bFont); margin-bottom: .4em; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
@media (max-width: 1000px) { .hero h1 { font-size: 2.8em; } }
@media (max-width: 500px)  { .hero h1 { font-size: 1.8em; } }

/* ============ Base de la section ============ */
.hs {
    --hs-brand: hsl(221 100% 59%);
    --hs-gap: clamp(14px, 2vw, 24px);
    --hs-r-lg: 24px;
    --hs-r-md: 16px;
    --hs-r-sm: 10px;
    --hs-line: color-mix(in srgb, currentColor 12%, transparent);
    --hs-sticky: 96px;               /* hauteur de la barre collante + marge, pour le sticky et le scroll-margin */
    display: flex;
    flex-direction: column;
    width: 85%;
    max-width: 1200px;
    gap: var(--hs-gap);
    padding: clamp(8px, 2vw, 24px) 0;
    overflow: visible;
}
/* l'attribut hidden doit toujours gagner sur les display: flex / grid / block ci-dessous */
.hs [hidden] { display: none !important; }

.hs-head { margin: 0 0 8px; padding: clamp(24px, 4vw, 40px); background: var(--bgCard); border-radius: var(--radius); }
.hs-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.1; margin: 0 0 16px; text-wrap: balance; }
.hs-lead { max-width: 80ch; font-size: 1rem; line-height: 1.9; color: var(--muted); }
.hs-lead strong { font-size: inherit; color: var(--muted); }
.hs-lead a { display: inline-block; padding: 0 6px 2px; line-height: 1.6; background: var(--card); border: 1px solid var(--bgCard); border-radius: 6px; box-shadow: 0 0 2px #00000020; }

/* ============ Barre collante : navigation + recherche de services ============ */
.hs-tools {
    position: sticky;
    top: 0px;
    z-index: 3;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 8px 4vw;
    border-radius: var(--radiusM);
    background: var(--color);
    /* box-shadow: 0 2px 4px #0000001a; */
    width: 100VW;
}
.hs-nav ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hs-nav a {display: inline-flex;align-items: center;gap: 6px;padding: 8px 14px;border-radius: 8px;font-size: 13px;font-weight: 600;background: var(--card);color: var(--text);/* box-shadow: 0 4px 8px #0000001a; */transition: background .2s, color .2s;}
.hs-nav a span { font-size: 11px; opacity: .7; }
.hs-nav a:hover, .hs-nav a[aria-current="true"] { background: var(--act1); color: var(--actText1); }
.hs-empty { text-align: center; padding: 24px; }

/* ============ Champs de recherche (services + FAQ) ============ */
.hs-search, .hs-faq-search { position: relative; display: flex; align-items: center; color: var(--muted); }
.hs-search svg, .hs-faq-search svg { position: absolute; left: 12px; width: 18px; height: 18px; pointer-events: none; }
.hs-search input, .hs-faq-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--hs-line);
    border-radius: 10px;
    background: var(--card);
    color: var(--htext);
    font: inherit;
    font-size: 14px;
    box-shadow: 0 1px 2px #0000000f;
    transition: border-color .2s, box-shadow .2s;
}
.hs-search input { width: 280px; }
.hs-search input:focus-visible, .hs-faq-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

/* ============ Catégorie ============ */
.hs-cat {
    /* content-visibility: auto; */
    contain-intrinsic-size: auto 640px;
    scroll-margin-top: var(--hs-sticky);
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: clamp(16px, 3vw, 32px);
    border-radius: var(--hs-r-lg);
    width: stretch;
    overflow: visible;
}
.hs-cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.hs-cat-head h3 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; margin-bottom: 6px; }
.hs-cat-head p { max-width: 70ch; }
.hs-meta { margin-top: 6px; font-size: 13px; color: var(--muted); }
.hs-btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; background: var(--hs-brand); color: var(--actText1); transition: filter .2s, transform .2s; }
.hs-btn:hover { filter: brightness(.92); color: var(--actText1); }
.hs-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============ Cartes de services ============ */
.hs-grid {display: grid;grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));gap: 14px;margin: 0;padding: 0;/* list-style: none; *//* overflow: visible; */}
.hs-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px; border-radius: 18px; background: var(--color); border: var(--CardBorder); transition: transform .25s, box-shadow .25s; }
.hs-card:hover, .hs-card:focus-within {transform: translateY(-3px);box-shadow: 0 4px 10px #0000001f;}
.hs-ico { display: flex; align-items: center; width: 31px; height: 30px; color: var(--accent); }
.hs-ico svg { width: 22px; height: 22px; }
.hs-card h4 { display: flex; align-items: center; font-size: 1.05rem; }
.hs-card h4 a { color: var(--htext); }
.hs-card h4 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* carte entièrement cliquable */
.hs-card h4 a:focus-visible::after { outline: 2px solid var(--accent); }
.hs-price { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.hs-price strong { font-size: inherit; color: var(--htext); }

/* « Voir plus » : n'agit que si le JS est actif (sans JS tout est visible) ; pendant une recherche, tout ce qui correspond s'affiche */
.hs.is-js:not(.is-searching) .hs-cat:not(.is-open) .hs-card.is-extra { display: none; }

.hs-more {
    align-self: center;
    padding: 10px 20px;
    border: 1px solid var(--hs-line);
    border-radius: 999px;
    background: var(--color);
    color: var(--htext);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.hs-more:hover { background: var(--card); transform: translateY(-1px); }
.hs-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hs.is-js.is-searching .hs-cat > .hs-more { display: none; }

/* ============ FAQ : recherche + questions à gauche, image à droite ============ */
.hs-faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--hs-gap);
    padding: clamp(16px, 3vw, 28px);
    border-radius: var(--hs-r-lg);
    background: var(--card);
    border: var(--CardBorder, 1px solid var(--hs-line));
    width: stretch;
    margin: 0;
}
.hs-faq.has-media {grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr);align-items: start;}

.hs-faq-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hs-faq-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.hs-faq-head h4 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.2; }
.hs-faq-count { font-size: 13px; color: var(--muted); }

.hs-faq-list { display: flex; flex-direction: column; gap: 8px; }
.hs-faq-item { background: var(--color); border: 1px solid transparent; border-radius: var(--hs-r-md); scroll-margin-top: var(--hs-sticky); transition: border-color .2s, box-shadow .2s; }
.hs-faq-item[open] { border-color: var(--hs-line); box-shadow: 0 2px 8px #00000010; }
.hs-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    font-family: var(--hFont);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--htext);
}
.hs-faq-item summary::-webkit-details-marker { display: none; }
.hs-faq-item summary::after {                       /* chevron */
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .6;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s;
}
.hs-faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.hs-faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--hs-r-md); }
.hs-faq-item p { margin: 0; padding: 0 16px 16px; line-height: 1.75; }

.hs-faq-empty { padding: 16px; border-radius: var(--hs-r-md); background: var(--color); color: var(--muted); }
.hs-faq-empty a { color: var(--accent); text-decoration: underline; }

/* « Voir plus » de la FAQ (sans JS tout est visible ; pendant une recherche, tout ce qui correspond s'affiche) */
.hs.is-js .hs-faq:not(.is-open):not(.is-searching) .hs-faq-item.is-extra { display: none; }
.hs-faq.is-searching [data-faq-more] { display: none; }
.hs-faq [data-faq-more] { align-self: flex-start; }

/* Image de la catégorie (categories.img_banner) : collée en haut pendant le défilement de la FAQ */
.hs-faq-media {
    position: sticky;
    top: var(--hs-sticky);
    align-self: start;
    margin: 0;
    /* aspect-ratio: 4 / 5; */
    overflow: hidden;
    border-radius: var(--hs-r-md);
    background: var(--color);
    height: stretch;
}
.hs-faq-media img {display: block;width: 100%;height: 100%;object-fit: cover;}

/* ============ Responsive ============ */
@media (max-width: 1000px) {
    .hs-faq.has-media { grid-template-columns: minmax(0, 1fr) minmax(180px, 32%); }
}
@media (max-width: 700px) {
    .hs { width: 92%; }
    .hs-tools { flex-wrap: wrap; }
    .hs-nav { display: none; }
    .hs-search, .hs-search input { width: 100%; }
    .hs-cat { gap: 28px; padding: 12px 0; }
    .hs-faq { padding: 16px; border-radius: 20px; }
    /* mobile : une seule colonne, l'image de la catégorie n'est pas affichée (et, en lazy-loading, pas téléchargée) */
    .hs-faq.has-media { grid-template-columns: minmax(0, 1fr); }
    .hs-faq-media { display: none; }
    .hs-faq-item summary { padding: 12px 14px; }
    .hs-faq-item p { padding: 0 14px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hs-card, .hs-more, .hs-faq-item, .hs-faq-item summary::after { transition: none; }
    .hs-card:hover { transform: none; }
}
e; }
}
