/*!
 * gs-sect-home 1.0.1 — Section « Nos secteurs d'intervention » de l'accueil · GEOSYSTEMS France · SITE-SECT-FIN (production 02/12/2026)
 * Remplace 1.0.0 (charger l'une OU l'autre). Périmètre : .gsf-sectors.gs-sect-home uniquement.
 * 1.0.1 : (1) titre et lien « Découvrir tous nos secteurs d'activité » lisibles sur le fond sombre de la section (suppression des styles en ligne) ;
 *         (2) carte en deux zones sans lien imbriqué ni zone superposée : .gsf-card__main (hub) + .gs-sect-fams (familles) ;
 *         (3) effet de survol (photo en couleur, zoom) conservé ;
 *         (4) familles en étiquettes (variante B validée, sans pastille) ; grille 3 colonnes (ordinateur) / 2 (tablette) ; dégradé sombre du bas de vignette identique à la version publiée.
 */
.gsf-sectors.gs-sect-home { --gs-sect-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E"); --gs-sect-c3d: #8CC63F; --gs-sect-topo: #FF7B70; --gs-sect-carto: #8DB4E2; }

/* En-tête : fond sombre de la section d'accueil (#333) */
.gsf-sectors.gs-sect-home .gsf-sectors__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: 0 0 clamp(20px, 2.4vw, 28px); }
.gsf-sectors.gs-sect-home .gsf-sectors__title { margin: 0; color: #fff; font-family: Roboto, Arial, sans-serif; font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.15; }
.gsf-sectors.gs-sect-home .gsf-sectors__all { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 2px; border-bottom: 2px solid #ECB300; color: #fff; font-family: Roboto, Arial, sans-serif; font-weight: 500; text-decoration: none; }
.gsf-sectors.gs-sect-home .gsf-sectors__all:hover { color: #ECB300; }
.gsf-sectors.gs-sect-home .gsf-sectors__all:focus-visible { outline: 3px solid #ECB300; outline-offset: 3px; }

/* Grille (inchangée) */
.gsf-sectors.gs-sect-home .gsf-sectors__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gsf-sectors.gs-sect-home .gsf-card { min-height: 340px; }
/* Dégradé du bas de vignette : identique à la version publiée (gs-home .gsf-card::before), rappelé ici pour qu’aucune règle ne le neutralise */
.gsf-sectors.gs-sect-home .gsf-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(rgba(3,14,23,.1) 0, rgba(3,14,23,.38) 43%, rgba(3,14,23,.94) 100%); pointer-events: none; }

/* Zone principale : lien vers le hub (image, titre, enjeu) */
.gsf-sectors.gs-sect-home .gsf-card__main > picture { z-index: 0; overflow: hidden; pointer-events: none; position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; }
.gsf-sectors.gs-sect-home .gsf-card__main > picture > img { pointer-events: none; filter: grayscale(100%); transform: scale(1.005); transition: filter .7s ease, transform .85s cubic-bezier(.22,1,.36,1); position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover !important; }
.gsf-sectors.gs-sect-home .gsf-card__main { position: static; z-index: auto; display: flex; flex: 1 1 auto; flex-direction: column; justify-content: flex-end; min-height: 0; color: #fff; text-decoration: none; }
.gsf-sectors.gs-sect-home .gsf-card__main:focus-visible { outline: 0; }
.gsf-sectors.gs-sect-home .gsf-card:has(.gsf-card__main:focus-visible) { outline: 3px solid #ECB300; outline-offset: 3px; }
.gsf-sectors.gs-sect-home .gsf-card__title a { color: inherit; text-decoration: none; } /* carte contact (inchangée) */
.gsf-sectors.gs-sect-home .gsf-card--cta .gsf-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: 18px; }
.gsf-sectors.gs-sect-home .gsf-card--cta .gsf-card__title a:focus-visible { outline: 0; }
.gsf-sectors.gs-sect-home .gsf-card--cta:has(.gsf-card__title a:focus-visible) { outline: 3px solid #ECB300; outline-offset: 3px; }
.gsf-sectors.gs-sect-home .gsf-card__issue { position: relative; z-index: 2; margin: 10px 0 0; color: rgba(255,255,255,.86); font-family: Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.45; }
.gsf-sectors.gs-sect-home .gsf-card__go { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); }
.gsf-sectors.gs-sect-home .gsf-card__go::before { content: ""; width: 18px; height: 18px; background: #1D1D1B; -webkit-mask: var(--gs-sect-arrow) center/contain no-repeat; mask: var(--gs-sect-arrow) center/contain no-repeat; transition: transform .25s; }
@media (hover: hover) and (pointer: fine) { .gsf-sectors.gs-sect-home .gsf-card__main:hover .gsf-card__go::before { transform: translateX(3px); } .gsf-sectors.gs-sect-home .gsf-card__main:hover .gsf-card__title { text-decoration: underline; text-decoration-color: #ECB300; text-underline-offset: 4px; } }

/* Effet de survol publié (gs-home) : photo en couleur et léger zoom — repris pour la photo placée dans la zone principale */
.gsf-sectors.gs-sect-home .gsf-card:is(:hover, :focus-within) .gsf-card__main > picture > img { filter: grayscale(0%) saturate(1.03); transform: scale(1.055); }

/* Zone secondaire : familles (commun) */
.gsf-sectors.gs-sect-home .gs-sect-fams { position: relative; z-index: 3; margin: 12px 0 0; padding: 0; list-style: none; font-family: Roboto, Arial, sans-serif; }
.gsf-sectors.gs-sect-home .gs-sect-fams li { margin: 0; padding: 0; }
.gsf-sectors.gs-sect-home .gs-sect-fam { --t: #fff; color: #fff; }
.gsf-sectors.gs-sect-home .gs-sect-fam--c3d { --t: var(--gs-sect-c3d); }
.gsf-sectors.gs-sect-home .gs-sect-fam--topo { --t: var(--gs-sect-topo); }
.gsf-sectors.gs-sect-home .gs-sect-fam--carto { --t: var(--gs-sect-carto); }
.gsf-sectors.gs-sect-home .gs-sect-fam:focus-visible { outline: 2px solid #ECB300; outline-offset: 2px; border-radius: 3px; }

/* Étiquettes (variante B retenue le 02/12/2026, sans pastille) : liseré à la couleur de l’univers au survol et au focus */
.gsf-sectors.gs-sect-home .gs-sect-fams { display: flex; flex-wrap: wrap; gap: 6px; }
.gsf-sectors.gs-sect-home .gs-sect-fam { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(8,18,26,.55); font-size: 12px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.gsf-sectors.gs-sect-home .gs-sect-fam:hover { border-color: var(--t); background: rgba(8,18,26,.8); }

/* Responsive (grille inchangée ; mobile ≤ 480 px : vignette + texte, familles sous la ligne) */
@media (max-width: 1199px) { .gsf-sectors.gs-sect-home .gsf-sectors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .gsf-sectors.gs-sect-home .gsf-sectors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gsf-sectors.gs-sect-home .gsf-card { min-height: 240px; } }
@media (max-width: 480px) {
	.gsf-sectors.gs-sect-home .gsf-sectors__grid { grid-template-columns: minmax(0, 1fr); }
	.gsf-sectors.gs-sect-home .gsf-card { display: block; min-height: 0; padding: 12px 14px; background: #1F2A33; }
	.gsf-sectors.gs-sect-home .gsf-card::before, .gsf-sectors.gs-sect-home .gsf-card__go { display: none; }
	.gsf-sectors.gs-sect-home .gsf-card__main { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 4px 14px; }
	.gsf-sectors.gs-sect-home .gsf-card__main > picture { grid-row: span 2; border-radius: 10px; position: relative !important; inset: auto !important; width: 84px !important; height: 84px !important; }
	.gsf-sectors.gs-sect-home .gsf-card__issue { margin: 0; font-size: 13px; }
	.gsf-sectors.gs-sect-home .gs-sect-fams { margin-top: 10px; }
	.gsf-sectors.gs-sect-home .gsf-card--cta { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .gsf-sectors.gs-sect-home .gsf-card__go::before { transition: none; } }
