/*
 * 2roues Genève — feuille de style du site public.
 * Smartphone d'abord ; les règles @media élargissent pour la tablette et l'ordinateur.
 * Couleurs : encre #111214, gris #5b5e66 (texte secondaire, 6,4:1 sur blanc), rouge d'action #c11f29 (5,9:1).
 * Logos des marques : SVG de 270 × 190 ; leurs cadres gardent ce rapport (76 × 54, 86 × 61, 64 × 45, 88 × 62, 120 × 84, 52 × 37).
 * Police : Instrument Sans (SIL OFL), auto-hébergée dans /assets/fonts.
 * Surfaces : les pages de liste ont un fond doux (.fond-liste) et chaque objet (commerce, marque) sa carte blanche
 * (bordure filet + ombre légère) ; le rouge sert à agir et à signaler, jamais à décorer.
 */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --encre: #111214;
  --gris: #5b5e66;
  --gris-clair: #8a8d94;
  --filet: #e3e3e6;
  --fond-doux: #f4f4f5;
  --rouge: #c11f29;
  --rouge-fonce: #8e141c;
  --rouge-clair: #ff7a80;
  --vert: #1f7a45;
  --bleu: #2463d6;
  --ombre: 0 1px 2px rgba(17, 18, 20, 0.06);
  --marge: 16px;
  --largeur: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--encre);
  background: #ffffff;
  font-variant-numeric: tabular-nums;
}

img { max-width: 100%; height: auto; }

a { color: var(--rouge); }
a:hover { color: var(--rouge-fonce); }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }

h1, h2, h3, p, ul, ol { margin: 0; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.evitement {
  position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--encre); color: #ffffff;
}
.evitement:focus { top: 8px; color: #ffffff; }

.cadre { max-width: var(--largeur); margin: 0 auto; padding-left: var(--marge); padding-right: var(--marge); }

/* ---------- Typographie ---------- */

.titre-1 {
  font-weight: 600; font-size: clamp(34px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; max-width: 13em;
}
.titre-2 {
  font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.025em; max-width: 18em;
}
.titre-3 { font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.surtitre {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rouge); margin-bottom: 10px;
}
.chapeau { color: var(--gris); max-width: 34em; margin-top: 12px; }

.texte { max-width: 42em; }
.texte > * + * { margin-top: 16px; }
.texte h2 { margin-top: 40px; font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.texte ul { padding-left: 1.2em; }
.texte li + li { margin-top: 6px; }
.texte strong { font-weight: 600; }

/* ---------- En-tête ---------- */

.entete {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--filet); background: #ffffff;
}
.entete-logo { display: flex; padding: 14px var(--marge) 10px; }
.entete-logo img { height: 36px; width: auto; }
.entete-nav { flex: 1 1 560px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.entete-nav::-webkit-scrollbar { display: none; }
.entete-nav ul { display: flex; width: max-content; margin-left: auto; padding: 0 4px; list-style: none; }
.entete-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 12px;
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.entete-nav a:hover { color: var(--rouge); }
.entete-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--rouge); font-weight: 700; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px;
  border: 1.5px solid var(--encre); background: #ffffff; color: var(--encre); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.bouton:hover { color: var(--encre); background: var(--fond-doux); }
.bouton svg { flex: 0 0 auto; }
.bouton-rouge { background: var(--rouge); border-color: var(--rouge); color: #ffffff; }
.bouton-rouge:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: #ffffff; }
.bouton-noir { background: var(--encre); color: #ffffff; }
.bouton-noir:hover { background: #2a2c31; color: #ffffff; }
.bouton[aria-pressed="true"] { background: var(--encre); color: #ffffff; }

/* ---------- Recherche et filtres ---------- */

.recherche { display: flex; flex-wrap: wrap; gap: 8px; max-width: 720px; margin-top: 22px; }
.champ-recherche {
  flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1.5px solid var(--encre); background: #ffffff;
}
.champ-recherche input {
  flex: 1; min-width: 0; height: 54px; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 17px; color: var(--encre);
}
.champ-recherche:focus-within { outline: 3px solid var(--bleu); outline-offset: 2px; }
.recherche .bouton { flex: 1 0 auto; min-height: 57px; }
.zone-recherche { position: relative; flex: 1 1 200px; min-width: 0; display: flex; }
.zone-recherche .champ-recherche { flex: 1 1 auto; }
.suggestions {
  position: absolute; z-index: 1000; top: 100%; left: 0; right: 0; max-height: min(60vh, 420px); overflow-y: auto;
  margin-top: -1.5px; padding: 0 0 6px; list-style: none; background: #ffffff; border: 1.5px solid var(--encre);
  box-shadow: 0 8px 24px rgba(17, 18, 20, 0.14);
}
.suggestions-groupe {
  padding: 10px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris);
}
.suggestion { display: block; min-height: 48px; padding: 7px 14px; cursor: pointer; }
.suggestion:hover, .suggestion[aria-selected="true"] { background: var(--fond-doux); }
.suggestion-l1 { display: block; font-weight: 600; font-size: 16px; line-height: 1.25; }
.suggestion-l2 { display: block; color: var(--gris); font-size: 14px; }

.onglets {
  display: flex; gap: 4px; max-width: 720px; margin-top: 14px; overflow-x: auto; scrollbar-width: none;
  box-shadow: inset 0 -1px 0 var(--filet);
}
.onglets::-webkit-scrollbar { display: none; }
.onglets button {
  flex: 0 0 auto; min-height: 46px; padding: 0 12px; border: 0; background: transparent; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--gris); white-space: nowrap;
}
.onglets button[aria-pressed="true"] { color: var(--encre); font-weight: 700; box-shadow: inset 0 -3px 0 var(--rouge); }

.filtres-actifs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.etiquette-filtre {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px 0 12px; border: 0;
  background: var(--encre); color: #ffffff; font-weight: 700; font-size: 15px; cursor: pointer;
}
.etiquette-filtre:hover { background: #2a2c31; }
.etiquette-filtre svg { flex: 0 0 auto; margin: 0 4px; }
.suggestion-marque { display: flex; align-items: center; gap: 12px; }
.suggestion-logo {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 37px; padding: 1px;
  border: 1px solid var(--filet); background: #ffffff; font-size: 10px; font-weight: 700; overflow: hidden;
}
.suggestion-logo img { width: 100%; height: 100%; object-fit: contain; }
.statut-geo { margin-top: 10px; font-size: 15px; color: var(--gris); }
.statut-geo:empty { display: none; }

/* ---------- Accueil : carte et liste ---------- */

.accueil-tete { padding-top: 32px; padding-bottom: 20px; }

.carte-liste { max-width: var(--largeur); margin: 0 auto; display: flex; flex-direction: column; }
.carte-colonne { display: flex; flex-direction: column; }
.carte { position: relative; z-index: 0; height: 380px; background: #f2f2f0; }
.fond-carte { filter: grayscale(1) brightness(1.06) contrast(0.82); }
.liste-colonne { min-width: 0; }

.fiche { padding: 16px var(--marge) 18px; border-bottom: 1px solid var(--filet); box-shadow: inset 0 3px 0 var(--rouge); }
.fiche-tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fiche-nom { font-weight: 600; font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.fiche-adresse { color: var(--gris); font-size: 15px; }
.fiche-formateur { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--rouge); }
.fiche-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-top: 2px; font-size: 15px; }
.fiche-etat span:last-child { color: var(--gris); }
.fiche-fermer {
  flex: 0 0 auto; width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.fiche-actions { display: flex; gap: 8px; margin-top: 12px; }
.fiche-actions .bouton { flex: 1 1 0; }
.fiche-marques-carte { margin-top: 12px; }
.fiche-marques-carte .fiche-marques-titre { margin-bottom: 8px; font-size: 12px; }
.logos-compacts { gap: 6px; }
.logos-compacts .logo-marque, .logos-compacts .logos-plus { width: 64px; height: 45px; }
.logos-compacts .logo-marque span { font-size: 10px; }
.fiche-lien { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; font-size: 15px; text-decoration: none; }

.point { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gris-clair); }
.point-ouvert { background: var(--vert); }

.liste-resume { padding: 16px var(--marge) 10px; font-size: 14px; font-weight: 600; color: var(--gris); border-bottom: 1px solid var(--filet); }
.liste-membres { list-style: none; padding: 0; }
.membre-ligne { border-bottom: 1px solid var(--filet); }
.membre-bouton {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px var(--marge);
  color: var(--encre); text-decoration: none; text-align: left; background: transparent; border: 0; cursor: pointer;
}
.membre-bouton:hover { color: var(--encre); background: var(--fond-doux); }
.membre-texte { flex: 1 1 auto; min-width: 0; }
.membre-nom { display: block; font-weight: 600; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.membre-meta { display: block; color: var(--gris); font-size: 14px; }
.membre-droite { flex: 0 0 auto; min-width: 3.6em; text-align: right; font-size: 14px; font-weight: 700; }
.label-formateur { flex: 0 0 auto; width: 38px; height: 38px; }

.pastille-numero {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--encre); color: #ffffff; font-size: 12px; font-weight: 700;
}
.membre-ligne.est-actif .pastille-numero { background: var(--rouge); }

.membre-adresses { list-style: none; padding: 0 var(--marge) 10px 56px; }
.adresse-bouton {
  display: block; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.adresse-bouton:hover { background: var(--fond-doux); }
.adresse-bouton[aria-pressed="true"] { background: var(--fond-doux); box-shadow: inset 0 0 0 1.5px var(--encre); }
.adresse-l1 { display: block; font-weight: 700; font-size: 15px; }
.adresse-l2 { display: block; color: var(--gris); font-size: 14px; }

.liste-vide { padding: 20px var(--marge); color: var(--gris); }
.liste-suite { padding: 16px var(--marge); }
.liste-suite .bouton { width: 100%; justify-content: space-between; }

/* Repères de la carte (Leaflet) */
.repere { background: transparent; border: 0; }
.repere span {
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 9px; border-radius: 50%;
  background: var(--encre); color: #ffffff; border: 2px solid #ffffff; font: 700 12px "Instrument Sans", system-ui, sans-serif;
  box-shadow: 0 1px 3px rgba(17, 18, 20, 0.35);
}
.repere-formateur span { box-shadow: 0 0 0 2px var(--rouge), 0 1px 3px rgba(17, 18, 20, 0.35); }
.repere-actif span { width: 34px; height: 34px; margin: 5px; background: var(--rouge); font-size: 14px; }
.carte-loin .repere:not(.repere-actif) span { width: 14px; height: 14px; margin: 15px; font-size: 0; border-width: 2px; }
.repere-ici { width: 18px; height: 18px; border-radius: 50%; background: var(--bleu); border: 3px solid #ffffff; box-shadow: 0 0 0 6px rgba(36, 99, 214, 0.2); }
.legende-carte {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(255, 255, 255, 0.92);
  font: 600 13px "Instrument Sans", system-ui, sans-serif; color: var(--encre);
}
.legende-carte i { width: 14px; height: 14px; border-radius: 50%; background: var(--encre); border: 2px solid #ffffff; box-shadow: 0 0 0 2px var(--rouge); }
.leaflet-container { font-family: "Instrument Sans", system-ui, sans-serif; }
.leaflet-tooltip.etiquette-repere {
  padding: 4px 8px; border: 0; border-radius: 0; background: var(--encre); color: #ffffff; font-weight: 700; font-size: 13px; box-shadow: none;
}
.leaflet-tooltip.etiquette-repere::before { display: none; }

/* ---------- Blocs de l'accueil ---------- */

.bloc { padding-top: 56px; padding-bottom: 24px; }
.bloc-noir { position: relative; overflow: hidden; margin-top: 48px; padding-top: 56px; padding-bottom: 64px; background: var(--encre); color: #ffffff; }
.bloc-noir .surtitre { color: var(--rouge-clair); }
.bloc-noir .cadre { position: relative; z-index: 1; }
.bloc-noir-pastille { position: absolute; z-index: 0; right: -110px; bottom: -120px; width: 260px; height: 260px; opacity: 0.9; }
.citation { font-weight: 500; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -0.02em; max-width: 19em; margin-bottom: 40px; }

.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.grille-large { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.engagement { border-top: 1px solid #3a3c42; padding: 16px 0 24px; }
.engagement h3 { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.engagement p { color: #b9bcc3; font-size: 16px; }

.encadre-formateur {
  display: flex; align-items: center; gap: 16px; max-width: 640px; margin: 20px 0 28px; padding: 14px 16px;
  background: var(--fond-doux); color: var(--encre); text-decoration: none;
}
.encadre-formateur:hover { color: var(--encre); background: #ebebed; }
.encadre-formateur img { flex: 0 0 auto; width: 76px; height: 76px; }
.encadre-formateur strong { display: block; font-size: 17px; font-weight: 600; }
.encadre-formateur span span { display: block; color: var(--gris); font-size: 15px; }

.lien-rang {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
  border-top: 1.5px solid var(--encre); color: var(--encre); text-decoration: none;
}
.lien-rang:hover { color: var(--rouge); }
.lien-rang strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lien-rang span span { display: block; color: var(--gris); font-size: 15px; }
.lien-rang svg { flex: 0 0 auto; }

.evenements { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.evenement {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 200px; padding: 22px 20px;
  background: var(--fond-doux); color: var(--encre); text-decoration: none;
}
.evenement:hover { color: var(--encre); background: #ebebed; }
.evenement-rouge { background: var(--rouge); color: #ffffff; }
.evenement-rouge:hover { background: var(--rouge-fonce); color: #ffffff; }
.evenement-titre { display: block; font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.evenement-texte { display: block; margin-top: 8px; font-size: 16px; }
.evenement small { font-size: 14px; font-weight: 600; }

/* ---------- Pages intérieures ---------- */

.page-tete { padding-top: 32px; padding-bottom: 8px; }
.page-corps { padding-top: 24px; padding-bottom: 64px; }
.fond-liste { background: var(--fond-doux); }
.fond-liste .page-corps { padding-top: 16px; }
.surface { border: 1px solid var(--filet); background: #ffffff; box-shadow: var(--ombre); }

.barre-outils { position: sticky; top: 0; z-index: 20; background: #ffffff; box-shadow: 0 1px 0 var(--filet); }
.barre-outils .cadre { padding-top: 12px; }
.barre-outils .recherche { margin-top: 0; }
.barre-outils .onglets { margin-top: 6px; box-shadow: none; }
.index-lettres { display: flex; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--filet); font-weight: 700; font-size: 15px; }
.index-lettres::-webkit-scrollbar { display: none; }
.index-lettres a, .index-lettres span { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 44px; }
.index-lettres a { color: var(--encre); text-decoration: none; }
.index-lettres a:hover { color: var(--rouge); }
.index-lettres span { color: #c9cbd0; }
.index-lettres a.inactif { color: #c9cbd0; pointer-events: none; }

.groupe-lettre { scroll-margin-top: 190px; }
.groupe-lettre + .groupe-lettre { margin-top: 28px; }
.lettre { padding: 8px 0 10px; font-weight: 600; font-size: 30px; line-height: 1; color: var(--rouge); }
/* Une fiche par rangée, dans l'ordre alphabétique ; sur grand écran, identité à gauche et adresses côte à côte à droite. */
.annuaire { display: grid; gap: 12px; }

.fiche-membre {
  padding: 16px 16px 6px; border: 1px solid var(--filet); background: #ffffff; box-shadow: var(--ombre); scroll-margin-top: 190px;
}
.fiche-membre:target { border-color: var(--encre); box-shadow: inset 0 3px 0 var(--rouge), var(--ombre); }
.fiche-membre-tete { display: flex; align-items: flex-start; gap: 14px; }
.fiche-membre-titre { flex: 1 1 auto; min-width: 0; }
/* Logo du commerce : nettement plus grand que les tuiles des marques (même rapport 270 × 190). */
.fiche-membre-logo {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 64px; height: 45px; padding: 1px;
  border: 1px solid var(--filet); background: #ffffff;
}
.fiche-membre-logo img { width: 100%; height: 100%; object-fit: contain; }
.fiche-membre h3 { font-weight: 600; font-size: 24px; line-height: 1.12; letter-spacing: -0.015em; }
.fiche-membre-meta { margin-top: 2px; font-size: 15px; color: var(--gris); }
.fiche-membre-formateur { margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--rouge); }
.fiche-membre-label { flex: 0 0 auto; width: 48px; height: 48px; margin-top: -2px; }
.lien-web { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; font-size: 15px; font-weight: 500; color: var(--gris); text-decoration: none; white-space: nowrap; }
.lien-web svg { flex: 0 0 auto; }
.lien-web:hover { color: var(--rouge); text-decoration: underline; }

.adresses { list-style: none; padding: 0; margin-top: 4px; }
.adresse { padding: 12px 0 10px; border-top: 1px solid #ececee; scroll-margin-top: 190px; }
.adresse-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.adresse-tete strong { font-size: 17px; font-weight: 600; }
.adresse-rue { display: block; color: var(--gris); font-size: 15px; }
.adresse-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adresse-actions .bouton { white-space: nowrap; }
.adresse-actions .bouton { min-height: 46px; font-size: 15px; }
.adresse-actions .bouton-rouge { flex: 1 1 0; }
.adresse-courriel { display: inline-flex; align-items: center; min-height: 40px; margin-top: 2px; font-size: 15px; overflow-wrap: anywhere; }

.adresse-etat { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-top: 6px; font-size: 15px; }
.adresse-etat strong { font-weight: 700; }
.adresse-etat > span:last-child:not(.point) { color: var(--gris); }
/* Semaine regroupée, toujours visible (lundi à samedi) ; le jour en cours en gras. */
.horaires { border-collapse: collapse; width: 100%; margin: 8px 0 4px; background: var(--fond-doux); font-size: 15px; }
.horaires th { text-align: left; font-weight: inherit; padding: 4px 12px; width: 7.5em; white-space: nowrap; vertical-align: top; }
.horaires td { padding: 4px 12px 4px 0; }
.horaires tr { color: var(--gris); }
.horaires tr:first-child > * { padding-top: 8px; }
.horaires tr:last-child > * { padding-bottom: 8px; }
.horaires tr.aujourdhui { color: var(--encre); font-weight: 700; }
.horaires-remarque { color: var(--gris); font-size: 15px; padding-bottom: 6px; }

/* Marques représentées (fiche de l'annuaire) */
.fiche-marques { margin-top: 6px; padding: 12px 0 14px; border-top: 1px solid #ececee; }
.fiche-marques-titre { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gris); }
.logos-marques { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.logo-marque {
  display: flex; align-items: center; justify-content: center; width: 76px; height: 54px; padding: 1px;
  border: 1px solid var(--filet); background: #ffffff; color: var(--encre); text-decoration: none;
}
.logo-marque:hover { border-color: var(--encre); color: var(--encre); }
.logo-marque img { width: 100%; height: 100%; object-fit: contain; }
.logo-marque span { font-size: 11px; font-weight: 700; line-height: 1.1; text-align: center; hyphens: auto; }
.logos-plus {
  width: 76px; height: 54px; border: 1px dashed #b9bcc3; background: transparent; font-size: 14px; font-weight: 700; color: var(--rouge); cursor: pointer;
}

/* Marques : une carte par marque (en-tête, commerces, action en pied) */
.marques { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; list-style: none; padding: 0; }
.marque { display: flex; flex-direction: column; border: 1px solid var(--filet); background: #ffffff; box-shadow: var(--ombre); scroll-margin-top: 150px; }
.marque:target { border-color: var(--encre); box-shadow: inset 0 3px 0 var(--rouge), var(--ombre); }
.marque-tete { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--filet); }
.marque-logo { flex: 0 0 88px; height: 62px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--filet); padding: 1px; background: #ffffff; }
.marque-logo img { width: 100%; height: 100%; object-fit: contain; }
.marque-sans-logo { color: var(--gris); font-weight: 700; font-size: 20px; }
.marque-titre { min-width: 0; }
.marque h3 { font-weight: 600; font-size: 22px; line-height: 1.12; letter-spacing: -0.01em; }
.marque-meta { margin-top: 2px; font-size: 14px; color: var(--gris); }
.marque-membres { list-style: none; padding: 0 16px; }
.marque-membres li + li { border-top: 1px solid #ececee; }
.marque-membres a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 0; color: var(--encre); text-decoration: none; }
.marque-membres a:hover .marque-membre-nom { color: var(--rouge); }
.marque-membres a > svg { flex: 0 0 auto; color: var(--rouge); }
.marque-membres img { flex: 0 0 auto; }
.marque-membre { flex: 1 1 auto; min-width: 0; }
.marque-membre-nom { display: block; font-weight: 600; font-size: 17px; line-height: 1.2; }
.marque-membre-lieu { display: block; font-size: 14px; color: var(--gris); }
.marque-pied { margin-top: auto; padding: 10px 16px 14px; border-top: 1px solid var(--filet); background: #fafafa; }
.marque-pied .bouton { width: 100%; min-height: 46px; font-size: 15px; }

/* Liste des entreprises formatrices (données de l'OFPC) */
.tableau-defilant { overflow-x: auto; margin-top: 16px; }
.tableau-defilant.surface { padding: 4px 16px 8px; }
.tableau { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.tableau th { text-align: left; font-weight: 700; padding: 10px 12px 10px 0; border-bottom: 1.5px solid var(--encre); }
.tableau td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--filet); vertical-align: top; }

.coordonnees { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; margin-top: 24px; }
.coordonnees > div { border-top: 1.5px solid var(--encre); padding: 16px 0 24px; }
.coordonnees h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rouge); margin-bottom: 8px; }
.coordonnees p { font-size: 18px; }

/* ---------- Pages de texte ---------- */

.surtitre a { color: inherit; text-decoration: none; }
.surtitre a:hover { text-decoration: underline; }

.avis { max-width: 42em; margin-bottom: 32px; padding: 16px 18px; background: var(--fond-doux); box-shadow: inset 4px 0 0 var(--rouge); }
.avis strong { display: block; font-weight: 600; font-size: 18px; }
.avis p, .avis ul { margin-top: 6px; }
.avis ul { padding-left: 1.2em; }
.avis-neutre { box-shadow: inset 4px 0 0 var(--encre); }

.etapes { list-style: none; padding: 0; max-width: 760px; margin-bottom: 8px; }
.etapes li:last-child .lien-rang { border-bottom: 1.5px solid var(--encre); }

.boutons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pied ---------- */

.pied { background: var(--encre); color: #b9bcc3; font-size: 16px; }
.pied a { color: #ffffff; }
.pied-colonnes { display: flex; flex-wrap: wrap; gap: 28px 56px; padding-top: 40px; padding-bottom: 24px; }
.pied-colonnes > div { flex: 1 1 240px; }
.pied-colonnes p + p { margin-top: 8px; }
.pied-nom { color: #ffffff; font-weight: 600; font-size: 20px; }
.pied-courriel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 18px; }
.pied-liens { list-style: none; padding: 0; }
.pied-liens a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 600; }
.pied-mentions { padding-bottom: 32px; font-size: 14px; }

/* ---------- Écrans plus larges ---------- */

@media (min-width: 900px) {
  :root { --marge: 32px; }
  .accueil-tete { padding-top: 56px; padding-bottom: 32px; }
  .carte-liste { flex-direction: row; align-items: flex-start; border-top: 1px solid var(--filet); }
  .carte-colonne { position: sticky; top: 0; flex: 3 1 0; height: 100vh; max-height: 860px; }
  .carte { flex: 1 1 auto; height: auto; }
  .liste-colonne { flex: 2 1 0; border-left: 1px solid var(--filet); }
  .fiche { padding: 18px 24px 20px; }
  .titre-1 { max-width: 14em; }
  .fiche-membre {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 48px;
    align-items: start; padding: 20px 24px 12px;
  }
  .fiche-membre > * { grid-column: 1; }
  .fiche-membre > .adresses { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .fiche-membre > .adresses .adresse:first-child { padding-top: 2px; border-top: 0; }
  .fiche-membre .fiche-marques { margin-top: 12px; }
  /* Six logos de marques par rangée dans la demi-fiche (86 × 61) ; logo du commerce plus grand (120 × 84). */
  .fiche-membre .logos-marques { gap: 8px; }
  .fiche-membre .logo-marque, .fiche-membre .logos-plus { width: 86px; height: 61px; }
  .fiche-membre-logo { width: 120px; height: 84px; }
  .fiche-membre-label { width: 64px; height: 64px; }
  .bloc-noir-pastille { right: -140px; bottom: -150px; width: 420px; height: 420px; opacity: 1; }
}

/* ---------- Formulaire de demande de stage ---------- */

.formulaire { max-width: 42em; margin-top: 16px; }
.formulaire-grille { display: grid; grid-template-columns: 1fr; gap: 20px; }
.champ label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"], .champ select, .champ textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--encre); border-radius: 0;
  background: #ffffff; color: var(--encre); font: inherit;
}
.champ textarea { min-height: 120px; resize: vertical; }
.champ [aria-invalid="true"] { border-color: var(--rouge); box-shadow: inset 4px 0 0 var(--rouge); }
.champ-aide { margin-top: 6px; color: var(--gris); font-size: 15px; }
.champ-erreur { margin-top: 6px; color: var(--rouge-fonce); font-weight: 600; font-size: 15px; }
.requis { color: var(--rouge); }
.champ-case { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; }
.champ-case input { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--encre); }
.champ-captcha { margin-top: 24px; }
.formulaire .champ-aide { margin-top: 16px; margin-bottom: 16px; }
.formulaire .champ .champ-aide { margin-top: 6px; margin-bottom: 0; }

@media (min-width: 640px) {
  .formulaire-grille { grid-template-columns: 1fr 1fr; }
  .formulaire-grille .champ-large { grid-column: 1 / -1; }
}

.formulaire-titre { margin-top: 40px; font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
