/* Module Formation initiale — CFC AURA. Couleur principale : bleu foncé charte #066286.
   Le bleu région #2492d1 reste la couleur de la famille « lycées » et des grappes de la carte. */
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url(fonts/Montserrat-700.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url(fonts/Montserrat-800.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-display: swap; src: url(fonts/SourceSans3-400.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/SourceSans3-400i.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-display: swap; src: url(fonts/SourceSans3-600.woff2) format('woff2'); }

:root {
  --bleu: #066286; --bleu-fonce: #04455f; --bleu-region: #2492d1; --bleu-clair: #6dbdeb; --bleu-pale: #e7f1f6; --bleu-brume: #f4f9fc;
  --vert: #73b72b; --jaune: #ebac02; --rouge: #e52317; --orange: #ed6b1f; --violet: #5c4495;
  --gris: #353d4d; --texte: #353d4d; --texte-doux: #667082; --texte-leger: #98a0ad;
  --blanc: #fff; --fond: #f3f4f6; --ligne: #e1e4e9; --ligne-forte: #cfd4dc;
  /* Arrondis alignés sur le site principal : pilules pour les éléments cliquables,
     courbure identique (32px) pour les grands contenants. */
  --pilule: 999px; --rayon-xl: 32px; --rayon: 18px; --rayon-s: 12px;
  --police-titre: 'Montserrat', sans-serif; --police-texte: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --doux: cubic-bezier(.2,.8,.2,1);
  --c: var(--bleu);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--fond); color: var(--texte); font-family: var(--police-texte); font-size: 1.0625rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.15rem); color: var(--bleu-region); }
p { margin: 0; }
a { color: var(--bleu-fonce); }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; height: auto; }
.conteneur { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lien-discret { background: none; border: 0; padding: 0; color: var(--bleu-fonce); font-weight: 600; border-bottom: 1.5px solid var(--bleu-clair); transition: border-color .15s, color .15s; }
.lien-discret:hover { color: var(--bleu); border-color: var(--bleu); }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 3px; }


/* ---------- Barre de recherche unifiée ---------- */
.outils-recherche { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); padding: 1rem 0 .9rem; }
.embed .outils-recherche { position: static; border-top: 0; border-bottom: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 2rem; }
#reinit[hidden] { display: none; }
.ligne-familles > * { min-width: 0; }
.titre-module { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.9rem); margin-bottom: 1.4rem; }
.resume { font-size: .95rem; color: var(--texte-doux); margin-bottom: .8rem; }
.resume strong { color: var(--bleu-fonce); font-family: var(--police-titre); font-weight: 800; }
.barre { display: grid; grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(150px, 1fr)); border: 1px solid var(--ligne-forte); border-radius: var(--pilule); background: var(--blanc); overflow: visible; }
.barre__cellule { position: relative; padding: .55rem 1rem .5rem; min-width: 0; }
.barre__cellule + .barre__cellule { border-left: 1px solid var(--ligne); }
.barre__cellule--recherche { padding-left: 1.9rem; }
.barre__cellule:last-child { padding-right: 1.6rem; }
.barre__libelle { display: block; font-family: var(--police-titre); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texte-leger); margin-bottom: .1rem; }
.barre__saisie { position: relative; }
.barre__icone { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--bleu); pointer-events: none; }
.barre input { width: 100%; height: 28px; padding: 0 0 0 1.6rem; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--texte); }
.barre input::placeholder { color: var(--texte-leger); }
.barre input:focus { outline: 0; }
.barre__cellule:focus-within { background: var(--bleu-brume); }
.barre__cellule:first-child:focus-within { border-radius: var(--pilule) 0 0 var(--pilule); }
.barre__cellule:last-child:focus-within { border-radius: 0 var(--pilule) var(--pilule) 0; }
.barre select { width: 100%; height: 28px; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--texte); padding: 0; appearance: none; -webkit-appearance: none; }
@media (min-width: 721px) { .barre select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; } }

/* Menu déroulant sur mesure */
.menu { position: relative; }
.menu__btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; height: 28px; padding: 0; border: 0; background: none; text-align: left; font-size: 1rem; color: var(--texte); }
.menu__valeur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__btn--choisi .menu__valeur { color: var(--bleu-fonce); font-weight: 600; }
.menu__fleche { flex: none; width: 16px; height: 16px; color: var(--texte-leger); transition: transform .2s var(--doux), color .15s; }
.menu--ouvert .menu__fleche { transform: rotate(180deg); color: var(--bleu); }
.menu__panneau { position: absolute; left: -1rem; right: -1rem; top: calc(100% + .7rem); z-index: 30; min-width: 260px; background: var(--blanc); border: 1px solid var(--ligne-forte); border-radius: var(--rayon-s); padding: .4rem; animation: menu-apparition .16s var(--doux) both; }
.menu__panneau[hidden] { display: none; }
@keyframes menu-apparition { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu__recherche { width: 100%; height: 36px; margin-bottom: .35rem; padding: 0 .75rem; border: 1px solid var(--ligne); border-radius: 8px; font: inherit; font-size: .95rem; background: var(--fond); }
.menu__recherche:focus { outline: 0; border-color: var(--bleu); background: var(--blanc); }
.menu__liste { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
.menu__option { display: flex; align-items: center; gap: .6rem; padding: .48rem .65rem; border-radius: 8px; font-size: .97rem; cursor: pointer; color: var(--texte); }
.menu__option[hidden] { display: none; }
.menu__option:hover, .menu__option--focus { background: var(--bleu-pale); }
.menu__option[aria-selected="true"] { color: var(--bleu-fonce); font-weight: 600; }
.menu__coche { flex: none; width: 16px; height: 16px; color: var(--bleu); visibility: hidden; }
.menu__option[aria-selected="true"] .menu__coche { visibility: visible; }
.menu__code { flex: none; font-family: var(--police-titre); font-weight: 700; font-size: .78rem; color: var(--bleu); min-width: 2ch; }
.menu__texte { flex: 1; min-width: 0; }
.menu__nb { flex: none; font-size: .8rem; color: var(--texte-leger); font-variant-numeric: tabular-nums; }
.menu__vide { padding: .6rem .65rem; color: var(--texte-leger); font-size: .92rem; }

/* Familles : légende à souligné coloré */
.ligne-familles { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.familles { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; }
.famille { display: inline-flex; align-items: center; gap: .45rem; padding: .34rem .8rem; border: 1px solid var(--ligne-forte); border-radius: var(--pilule); background: var(--blanc); font-size: .85rem; white-space: nowrap; font-weight: 600; color: var(--texte-leger); transition: all .18s var(--doux); }
.famille__swatch { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c); opacity: .35; transition: opacity .18s; }
.famille__nb { font-size: .76rem; color: var(--texte-leger); font-variant-numeric: tabular-nums; }
.famille:hover { border-color: color-mix(in srgb, var(--c) 50%, white); color: var(--texte); }
.famille--active { background: color-mix(in srgb, var(--c) 9%, white); border-color: color-mix(in srgb, var(--c) 45%, white); color: color-mix(in srgb, var(--c) 72%, black); }
.famille--active .famille__swatch { opacity: 1; }
.famille--active .famille__nb { color: var(--texte-leger); }
.barre-resultats { display: flex; align-items: center; gap: .9rem; flex: none; }
.compteur { font-size: .92rem; color: var(--texte-doux); white-space: nowrap; }
.compteur strong { color: var(--texte); font-family: var(--police-titre); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Explorateur ---------- */
.explorateur { display: grid; grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr); gap: 1.5rem; padding: 1.5rem 0 3rem; align-items: start; }
.carte-bloc { position: relative; }
.carte { height: min(78vh, 720px); min-height: 460px; border-radius: var(--rayon-xl); background: #f2f3f0; overflow: hidden; border: 1px solid var(--ligne); }
.carte--chargement { position: relative; }
.carte--chargement::before { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(100deg, #f2f3f5 30%, #fafbfc 50%, #f2f3f5 70%); background-size: 220% 100%; animation: miroitement 1.6s linear infinite; }
.carte--chargement::after { content: "Chargement de la carte…"; position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font-family: var(--police-titre); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-leger); }
@keyframes miroitement { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.carte--indisponible { display: grid; place-items: center; padding: 2rem; text-align: center; color: var(--texte-doux); }

/* Liste façon annuaire */
.liste { display: flex; flex-direction: column; gap: .6rem; position: relative; padding: 2px 4px; }
@media (min-width: 1024px) {
  .liste { max-height: min(78vh, 720px); min-height: 460px; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: #c3c9d2 transparent; overscroll-behavior: contain; }
  }
.liste__vide { padding: 2.5rem 1rem; text-align: center; color: var(--texte-doux); line-height: 1.9; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-xl); }
/* Au survol, la ligne se détache : un liseré complet à la couleur de la famille
   remplace le filet de séparation (box-shadow interne, donc sans décaler la mise en page). */
.ligne { position: relative; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon); transition: background .26s var(--doux), box-shadow .26s var(--doux), border-color .26s; }
.ligne:hover, .ligne--survol { background: color-mix(in srgb, var(--c) 5%, white); border-color: color-mix(in srgb, var(--c) 45%, white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, white); }
.ligne--actif { background: color-mix(in srgb, var(--c) 10%, white); border-color: color-mix(in srgb, var(--c) 62%, white); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 62%, white); }
.ligne--actif .ligne__dept { color: var(--c); }
.ligne--actif .ligne__chevron { color: var(--bleu); }
.ligne[hidden] { display: none; }
.ligne.anim { animation: apparition .4s var(--doux) both; animation-delay: calc(var(--i, 0) * 28ms); }
.ligne__btn { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto 20px; gap: .8rem; align-items: center; width: 100%; padding: 1.05rem .7rem 1.05rem .9rem; background: none; border: 0; text-align: left; color: inherit; }
.ligne__logo { width: 60px; height: 46px; display: grid; place-items: center; background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-s); padding: 4px; overflow: hidden; }
.ligne__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .3s var(--doux); }
.ligne:hover .ligne__logo img { transform: scale(1.07); }
.ligne__initiale { font-family: var(--police-titre); font-weight: 800; font-size: 1.3rem; color: var(--c); }
.ligne__corps { display: grid; gap: 0; min-width: 0; }
.ligne__nom { font-family: var(--police-titre); font-weight: 700; font-size: 1.06rem; line-height: 1.28; letter-spacing: -.01em; color: var(--texte); }
.ligne__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .7rem; margin-top: .3rem; font-size: .82rem; color: var(--texte-leger); }
.ligne__famille { display: inline-flex; align-items: center; gap: .48rem; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--c); filter: saturate(.95) brightness(.8); }
.ligne__pastille { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--c) 18%, transparent); }
.ligne__info { display: inline-flex; align-items: center; gap: .34rem; white-space: nowrap; }
.ligne__info svg { width: 14px; height: 14px; flex: none; color: var(--texte-leger); }
.ligne__nb { white-space: nowrap; }
.ligne__dept { font-family: var(--police-titre); font-weight: 800; font-size: 1.15rem; color: var(--ligne-forte); letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .15s; }
.ligne:hover .ligne__dept { color: var(--c); }
.ligne__chevron { width: 22px; height: 22px; color: var(--texte-leger); transition: transform .28s var(--doux), color .2s; }
.ligne__chevron svg { width: 22px; height: 22px; }
.ligne:hover .ligne__chevron { color: var(--bleu); transform: translateX(4px); }
@keyframes apparition { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- MapLibre ---------- */
.maplibregl-ctrl-group { border-radius: var(--rayon-s) !important; box-shadow: none !important; border: 1px solid var(--ligne-forte) !important; background: var(--blanc) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 38px !important; height: 38px !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--ligne) !important; }
.maplibregl-ctrl-group button:hover { background: var(--bleu-pale) !important; }
.maplibregl-ctrl-top-right { top: 14px !important; right: 14px !important; }
.maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 0 0 10px 0 !important; }
.ctrl-recentrer svg { width: 20px; height: 20px; display: block; margin: auto; color: var(--bleu-fonce); }
.maplibregl-ctrl-attrib { font-family: var(--police-texte); font-size: .7rem !important; background: rgba(255,255,255,.75) !important; }
.maplibregl-ctrl-attrib a { color: var(--texte-doux); }
.maplibregl-canvas:focus { outline: 0; }
.maplibregl-cooperative-gesture-screen { font-family: var(--police-texte); font-size: 1rem; background: rgba(53,61,77,.55) !important; }
.maplibregl-popup { max-width: 280px !important; font-family: var(--police-texte); z-index: 5; }
.maplibregl-popup-content { padding: 0 !important; border-radius: var(--rayon) !important; box-shadow: none !important; overflow: hidden; border: 1.5px solid var(--ligne-forte); }
.maplibregl-popup-tip { display: none; }
.popup-nom .maplibregl-popup-content { padding: .38rem .8rem !important; border-radius: var(--pilule) !important; background: var(--gris); color: var(--blanc); font-size: .85rem; font-weight: 600; border: 0; white-space: nowrap; }
.popup-fiche__corps { padding: .85rem 1rem .95rem; }
.popup-fiche__bande { height: 5px; background: var(--c); }
.popup__type { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texte-leger); display: flex; gap: .35rem; align-items: center; }
.popup__nom { font-family: var(--police-titre); font-weight: 800; font-size: .98rem; line-height: 1.25; margin: .25rem 0 .1rem; color: var(--texte); }
.popup__lieu { font-size: .88rem; color: var(--texte-doux); }
.popup__btn { display: inline-flex; align-items: center; gap: .35rem; margin-top: .6rem; padding: .42rem 1rem; border-radius: var(--pilule); background: var(--bleu); color: var(--blanc); border: 0; font-weight: 600; font-size: .86rem; transition: background .15s; }
.popup__btn:hover { background: var(--bleu-fonce); }

/* ---------- Fiche ---------- */
.voile { position: fixed; inset: 0; background: rgba(53,61,77,.5); z-index: 40; animation: fondu .25s ease both; }
.voile[hidden] { display: none; }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.fiche { position: fixed; top: 0; right: 0; bottom: 0; width: min(100%, 540px); background: var(--blanc); z-index: 50; border-left: 1px solid var(--ligne-forte); overflow-y: auto; overscroll-behavior: contain; transform: translateX(104%); transition: transform .34s var(--doux); }
.fiche[hidden] { display: none; }
.fiche--ouverte { transform: none; }
.fiche__fermer { position: absolute; top: 16px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: var(--rayon-s); border: 0; background: rgba(255,255,255,.95); color: var(--texte); display: grid; place-items: center; transition: background .15s; }
.fiche__fermer svg { width: 18px; height: 18px; }
.fiche__fermer:hover { background: var(--blanc); }
.fiche__contenu { padding-bottom: 2.5rem; }
.fiche__bandeau { height: 132px; background: var(--c); }
.fiche__tete { position: relative; padding: 0 2rem; margin-top: -56px; }
.fiche__logo { width: 160px; height: 106px; display: grid; place-items: center; padding: 10px; border-radius: var(--rayon); background: var(--blanc); border: 1px solid var(--ligne-forte); }
.fiche__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.fiche__logo--vide { font-family: var(--police-titre); font-weight: 800; font-size: 2rem; color: var(--c); }
.fiche__type { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; padding: .34rem .9rem; border-radius: var(--pilule); background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 72%, black); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fiche h2 { font-size: 1.8rem; margin: .7rem 0 .35rem; }
.fiche__sous { color: var(--texte-doux); }
.fiche__corps { padding: 0 2rem; }
.fiche__section { margin-top: 1.75rem; }
.fiche__section h3 { font-family: var(--police-titre); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-fonce, var(--bleu-fonce)); font-weight: 700; margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--gris); }
.coordonnees { list-style: none; margin: 0; padding: 0; }
.coordonnees li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; padding: .5rem 0; border-bottom: 1px solid var(--ligne); }
.coordonnees__icone { width: 22px; height: 22px; color: var(--c-fonce, var(--bleu)); display: grid; place-items: center; margin-top: 2px; }
.coordonnees__icone svg { width: 18px; height: 18px; }
.coordonnees a { word-break: break-word; text-decoration: none; font-weight: 600; color: var(--c-fonce, var(--bleu-fonce)); }
.coordonnees a:hover { text-decoration: underline; text-underline-offset: 3px; }
.formations { list-style: none; margin: 0; padding: 0; }
.formations li { padding: .65rem 0; border-bottom: 1px solid var(--ligne); display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; }
.formations__nom { font-weight: 600; }
.voies { display: flex; gap: .3rem; flex-wrap: wrap; }
.voie { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .24rem .65rem; border-radius: var(--pilule); background: var(--bleu-pale); color: var(--bleu-fonce); }
.voie--apprentissage { background: #eaf6dc; color: #487d10; }
.voie--formation-continue { background: #fff3d1; color: #8f6300; }
.voie--alternance { background: #efeaf8; color: var(--violet); }
.voie--college, .voie--lycee { background: #fde9dc; color: #b04a0c; }
.fiche__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.75rem; }
.btn { --btn: var(--c-fonce, var(--bleu)); display: inline-flex; align-items: center; gap: .5rem; padding: .72rem 1.4rem; border-radius: var(--pilule); font-weight: 600; text-decoration: none; border: 1.5px solid var(--btn); background: var(--btn); color: var(--blanc); transition: all .18s var(--doux); }
.btn:hover { background: color-mix(in srgb, var(--btn) 82%, black); border-color: color-mix(in srgb, var(--btn) 82%, black); }
.btn--secondaire { background: var(--blanc); color: var(--btn); border-color: color-mix(in srgb, var(--btn) 40%, white); }
.btn--secondaire:hover { background: var(--btn); color: var(--blanc); border-color: var(--btn); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Boîte à outils ---------- */
.boite-outils { padding: 3rem 0 3.5rem; }
.boite-outils .conteneur { background: var(--blanc); border: 1px solid var(--ligne); border-radius: var(--rayon-xl); padding: 2.5rem 2.25rem; }
.boite-outils__entete { max-width: 62ch; }
.boite-outils__intro { margin-top: .75rem; color: var(--texte-doux); }
.outils-grille { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.outil a { display: grid; grid-template-columns: 44px 1fr; gap: .25rem 1rem; align-items: start; height: 100%; padding: 1.25rem; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--blanc); text-decoration: none; color: var(--texte); transition: border-color .2s, transform .2s var(--doux); }
.outil a:hover { border-color: var(--bleu); transform: translateY(-2px); }
.outil__icone { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: var(--rayon-s); background: var(--bleu-pale); color: var(--bleu-fonce); display: grid; place-items: center; }
.outil__icone svg { width: 22px; height: 22px; }
.outil__type { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bleu); }
.outil__titre { display: block; font-family: var(--police-titre); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.outil__desc { display: block; margin-top: .25rem; font-size: .93rem; color: var(--texte-doux); }
.outils-vide { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 1.75rem; border: 1px solid var(--ligne); border-left: 5px solid var(--bleu); border-radius: 0 var(--rayon-s) var(--rayon-s) 0; background: var(--blanc); color: var(--texte-doux); }
.outils-vide img { flex: none; width: 64px; opacity: .8; }

/* Les compteurs par famille tiennent jusqu'à ~1100 px ; en dessous ils cèdent la place pour garder une seule ligne. */
@media (min-width: 721px) and (max-width: 1100px) {
  .familles { gap: .1rem .8rem; }
  .famille { font-size: .84rem; }
  .famille__nb { display: none; }
  .barre-resultats { gap: .75rem; }
}
/* Sous 1000 px, on resserre encore. */
@media (min-width: 721px) and (max-width: 999px) {
  .familles { gap: .1rem .6rem; }
  .famille { font-size: .8rem; gap: .35rem; }
  .famille__swatch { width: 10px; height: 10px; }
  .compteur { font-size: .86rem; }
  .barre-resultats { gap: .6rem; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  /* Une seule colonne : la liste se déroule sous la carte. */
  .explorateur { grid-template-columns: 1fr; gap: 1.5rem; }
  .carte { height: min(60vh, 520px); }
}
@media (max-width: 720px) {
  .barre { grid-template-columns: 1fr 1fr; border-radius: 26px; }
  .barre__cellule--recherche { padding-left: 1.4rem; }
  .barre__cellule:last-child { padding-right: 1rem; }
  .barre__cellule--recherche { grid-column: 1 / -1; border-bottom: 1px solid var(--ligne); }
  .barre__cellule:nth-child(3) { border-left: 0; }
  .barre__cellule:nth-child(4) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ligne); }
  .menu { display: none; }
  .barre select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%23066286' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 16px; padding-right: 1.4rem; }
  .ligne-familles { flex-direction: column; align-items: stretch; }
  .familles { gap: .1rem 1rem; }
  .barre-resultats { justify-content: space-between; flex-wrap: wrap; gap: .5rem .75rem; }
  .ligne__btn { grid-template-columns: 52px minmax(0, 1fr) auto 18px; gap: .7rem; padding-left: .75rem; }
  .ligne__logo { width: 52px; height: 40px; }
  .fiche__tete, .fiche__corps { padding-inline: 1.25rem; }
  .fiche__bandeau { height: 110px; }
  .fiche__logo { width: 130px; height: 88px; }
  .outils-vide { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
