/* ------------------------------------------------------------------
   First Face — gabarit "annuaire de liens" 2005.
   Reproduction structurelle de la mise en page de référence :
   bandeau utilitaire, barre logo, navigation 7 entrées, bandeau de
   titre, colonne gauche à 4 blocs, colonne principale paginée,
   pied de page à 4 liens.
   Aucun élément graphique de tiers n'est repris : palette, grille et
   structure uniquement. Branding First Face Montreux.
   ------------------------------------------------------------------ */

:root {
  --ff-pink:        #cc0066;
  --ff-pink-dark:   #a80054;
  --ff-row-a:       #ffd9e8;
  --ff-row-b:       #ffe9f2;
  --ff-sidebar-bg:  #ffcfe2;
  --ff-grey-nav:    #4d4d4d;
  --ff-grey-band:   #3f3f3f;
  --ff-grey-light:  #e8e8e8;
  --ff-link:        #7a0038;
  --ff-text:        #1a1a1a;
  --ff-container:   1040px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: var(--ff-text);
  font: 11px/1.45 Arial, Helvetica, sans-serif;
}

a { color: var(--ff-link); }

.ff-container {
  width: var(--ff-container);
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
}

/* ---- 1. bandeau utilitaire ---- */
.ff-topstrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2b2b2b;
  color: #fff;
  padding: 3px 10px;
  font-size: 11px;
}
.ff-topstrip a { color: #fff; text-decoration: none; }
.ff-topstrip .ff-clock { font-weight: bold; }

/* ---- le diamant : brillant taille, en SVG inline.
   Il prend la couleur du texte courant (currentColor), donc blanc sur les
   fonds sombres et rose dans la colonne de gauche, sans variante de fichier. */
.ff-gem {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  flex: none;
}
.ff-gem--sm { width: 10px; height: 10px; vertical-align: -1px; }
.ff-gem--md { width: 24px; height: 24px; vertical-align: -3px; }
.ff-gem--lg { width: 30px; height: 30px; vertical-align: -3px; margin-right: 5px; }
.ff-gem--bullet { width: 7px; height: 7px; vertical-align: 0; }

/* ---- 2. barre logo + liens utilitaires ---- */
.ff-logobar {
  display: flex;
  align-items: stretch;
  background: #000;
}
/* Marque et domaine partagent UNE ligne de base. Ne pas repasser
   .ff-logo-mark en flex : un conteneur flex prend sa ligne de base sur son
   premier enfant — ici le SVG, qui n'en a pas — et le domaine décroche. */
.ff-logo {
  flex: 0 0 auto;
  padding: 12px 16px;
  display: block;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.ff-logo-mark {
  color: #fff;
  font-size: 34px;
  font-weight: bold;
  letter-spacing: -1px;
  font-family: Georgia, "Times New Roman", serif;
}
.ff-logo-domain {
  color: #b0b0b0;
  font-size: 15px;
  letter-spacing: 1px;
  font-weight: bold;
  margin-left: 10px;
}
.ff-utility {
  flex: 1 1 auto;
  background: var(--ff-grey-light);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  text-align: right;
}
.ff-utility a { color: #111; text-decoration: none; }
.ff-utility a:hover { text-decoration: underline; }
.ff-utility-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ff-utility-sep { color: #888; }
.ff-langselect {
  background: var(--ff-grey-nav);
  color: #fff;
  border: 1px solid #333;
  font: bold 11px Arial, Helvetica, sans-serif;
  padding: 2px 4px;
}
.ff-mailto { display: inline-flex; align-items: center; gap: 5px; }
.ff-mailto .ff-env { color: var(--ff-pink); font-size: 13px; }

/* ---- 3. navigation principale (7 entrées) ---- */
.ff-nav {
  background: var(--ff-grey-nav);
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.ff-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 11.5px;
  letter-spacing: .3px;
  padding: 8px 16px;
  white-space: nowrap;
}
.ff-nav a:hover { background: #5f5f5f; }
.ff-nav .ff-nav-sep { color: #9a9a9a; align-self: center; }
.ff-nav a.is-current { background: #5f5f5f; }

/* ---- 4. bandeau de titre de section ---- */
.ff-band {
  background: var(--ff-grey-band);
  color: #fff;
  padding: 22px 18px;
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---- 5. corps : sidebar + colonne principale ---- */
.ff-body { display: flex; align-items: flex-start; background: #fff; }
.ff-sidebar { flex: 0 0 255px; max-width: 255px; }
.ff-main { flex: 1 1 auto; min-width: 0; }

.ff-blocktitle {
  background: var(--ff-pink);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: .4px;
  padding: 5px 10px;
  text-transform: uppercase;
}
.ff-blockbody { background: var(--ff-sidebar-bg); padding: 8px 10px 12px; }

.ff-linklist { list-style: none; margin: 0; padding: 0; }
.ff-linklist li { padding: 1px 0; }
.ff-linklist a {
  color: var(--ff-link);
  font-weight: bold;
  text-decoration: none;
  font-size: 11.5px;
}
.ff-linklist a:hover { text-decoration: underline; }
.ff-linklist .ff-bullet {
  color: var(--ff-pink-dark);
  margin-right: 5px;
  display: inline-block;
  line-height: 1;
}
.ff-linklist a.is-current { color: #000; }

.ff-sidebar-figure {
  width: 100%;
  height: 190px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: bold 15px Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
  padding: 10px;
}
.ff-sidebar-figure.is-bethe1 { height: 150px; background: #f2f2f2; color: #111; }

.ff-search-row { margin: 6px 0; }
.ff-search-row label { display: block; font-weight: bold; color: var(--ff-link); }
.ff-search-row select {
  width: 100%;
  font: 11px Arial, Helvetica, sans-serif;
  padding: 1px 2px;
  border: 1px solid #999;
}
.ff-search-arrow { color: var(--ff-pink-dark); font-weight: bold; }
.ff-btn-ok {
  float: right;
  margin-top: 6px;
  font: bold 11px Arial, Helvetica, sans-serif;
  padding: 2px 10px;
  border: 1px solid #999;
  background: var(--ff-grey-light);
  cursor: pointer;
}
.ff-tagline { padding: 8px 0 0; color: #111; }
.ff-tagline strong { color: var(--ff-link); }

/* ---- 6. colonne principale ---- */
.ff-maintitle {
  background: var(--ff-pink);
  color: #fff;
  font-weight: bold;
  font-size: 12.5px;
  letter-spacing: .4px;
  padding: 5px 10px;
  text-transform: uppercase;
}
.ff-banner {
  height: 108px;
  background: #000;
  color: #55555f;
  display: flex;
  align-items: center;
  justify-content: center;
  font: bold 13px Georgia, "Times New Roman", serif;
  letter-spacing: 3px;
}
.ff-intro {
  background: var(--ff-row-b);
  color: var(--ff-pink);
  font-weight: bold;
  padding: 8px 10px;
  font-size: 11.5px;
}
.ff-intro strong { color: var(--ff-pink); }

.ff-pagerrow {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #fff;
}
.ff-pager {
  flex: 1 1 auto;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 6px 8px;
  border: 1px solid #e2e2e2;
}
.ff-pager a, .ff-pager span { color: #444; text-decoration: none; font-size: 12px; }
.ff-pager a:hover { color: var(--ff-pink); }
.ff-pager .is-current { font-weight: bold; color: #000; }
.ff-pager .is-disabled { color: #c8c8c8; }
.ff-suggest {
  flex: 0 0 auto;
  background: var(--ff-pink);
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: .5px;
  padding: 8px 22px;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.ff-suggest:hover { background: var(--ff-pink-dark); color: #fff; }

/* lignes de l'annuaire */
.ff-list { width: 100%; border-collapse: collapse; }
.ff-list tr { background: var(--ff-row-a); }
.ff-list tr:nth-child(even) { background: var(--ff-row-b); }
.ff-list td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--ff-pink);
  vertical-align: top;
  font-size: 11.5px;
}
.ff-list td.ff-c-name { width: 46%; }
.ff-list td.ff-c-link { width: 38%; }
.ff-list td.ff-c-meta { width: 16%; color: #6a4055; white-space: nowrap; }
.ff-list a.ff-entity { color: #111; font-weight: bold; text-decoration: none; }
.ff-list a.ff-entity:hover { color: var(--ff-pink); }
.ff-list a.ff-url { color: var(--ff-link); text-decoration: underline; word-break: break-all; }
.ff-list .ff-arrow { color: var(--ff-pink-dark); font-weight: bold; margin-right: 5px; }

.ff-empty { background: var(--ff-row-b); padding: 18px 12px; color: #7a0038; font-weight: bold; }

/* fiche entité */
.ff-sheet { background: var(--ff-row-b); padding: 12px; }
.ff-sheet dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 4px 10px; }
.ff-sheet dt { font-weight: bold; color: var(--ff-link); }
.ff-sheet dd { margin: 0; }
.ff-sheet .ff-verified { margin-top: 10px; color: #6a4055; font-style: italic; }

/* facettes (cantons / villes) */
.ff-facets { background: #fff; padding: 8px 10px; border: 1px solid #e2e2e2; }
.ff-facets a { color: var(--ff-link); text-decoration: none; font-weight: bold; }
.ff-facets a:hover { text-decoration: underline; }
.ff-facets .ff-sep { color: #bbb; margin: 0 4px; }

/* formulaire Be The 1 */
.ff-form { background: var(--ff-row-b); padding: 14px; }
.ff-form label { display: block; font-weight: bold; color: var(--ff-link); margin-top: 8px; }
.ff-form input, .ff-form select, .ff-form textarea {
  width: 100%;
  font: 11.5px Arial, Helvetica, sans-serif;
  padding: 4px;
  border: 1px solid #b78ba2;
  background: #fff;
}
.ff-form .ff-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-weight: normal; }
.ff-form .ff-consent input { width: auto; margin-top: 2px; }
.ff-form button {
  margin-top: 14px;
  background: var(--ff-pink);
  color: #fff;
  border: 0;
  font: bold 12px Arial, Helvetica, sans-serif;
  letter-spacing: .5px;
  padding: 9px 24px;
  cursor: pointer;
}
.ff-form button:hover { background: var(--ff-pink-dark); }
.ff-formnote { margin-top: 10px; color: #6a4055; }
.ff-formstatus { margin-top: 10px; font-weight: bold; }

/* prose des pages statiques */
.ff-prose { background: #fff; padding: 12px 14px; font-size: 12px; line-height: 1.6; }
.ff-prose h2 { color: var(--ff-pink); font-size: 14px; margin: 16px 0 6px; }
.ff-prose h3 { font-size: 12.5px; margin: 12px 0 4px; }
.ff-prose table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.ff-prose th, .ff-prose td { border: 1px solid #e2c6d5; padding: 5px 7px; text-align: left; }
.ff-prose th { background: var(--ff-row-a); }

/* ---- 7. pied de page ---- */
.ff-footerbar {
  background: var(--ff-grey-nav);
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  font-size: 11.5px;
}
.ff-footerbar a { color: #fff; text-decoration: none; }
.ff-footerbar a:hover { text-decoration: underline; }
.ff-footerbar .ff-sep { color: #b5b5b5; margin: 0 6px; }
.ff-copyright {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 11px;
}
.ff-copyright a { color: #fff; }
.ff-copyright .ff-sep { color: #888; margin: 0 5px; }

/* Utilitaires. La CSP du site est stricte (style-src 'self') : aucun
   attribut style= ni bloc <style> ne serait applique. Tout passe par ici. */
.ff-clear { clear: both; }
.ff-mt8 { margin-top: 8px; }

/* ---- pages d'entree : racine (choix de langue) et 404 ---- */
.ff-entry {
  text-align: center;
  padding: 70px 20px;
  color: #fff;
}
.ff-entry-title {
  font: bold 40px Georgia, "Times New Roman", serif;
  letter-spacing: -1px;
  margin: 0 0 6px;
}
.ff-entry-title .ff-gem { width: 32px; height: 32px; vertical-align: -2px; margin-right: 4px; }
.ff-entry-domain { color: #b0b0b0; letter-spacing: 2px; font-weight: bold; margin: 0 0 8px; }
.ff-entry h2 {
  color: var(--ff-pink);
  font-size: 15px;
  letter-spacing: 1px;
  margin: 30px 0 10px;
  text-transform: uppercase;
}
.ff-entry p { color: #b0b0b0; margin: 6px 0; }
.ff-entry ul { list-style: none; padding: 0; margin: 18px 0 0; }
.ff-entry li { display: inline-block; }
.ff-entry a {
  color: #ff5fa2;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
}
.ff-entry a:hover { text-decoration: underline; }

.ff-skip {
  position: absolute; left: -9999px;
}
.ff-skip:focus {
  left: 8px; top: 8px; z-index: 10; background: #fff; padding: 6px 10px;
}

/* ---- mobile : 41 % des impressions Search Console. La grille se
   déplie, l'aspect 2005 est conservé. ---- */
@media (max-width: 900px) {
  .ff-body { flex-direction: column; }
  .ff-sidebar { flex: 1 1 auto; max-width: 100%; width: 100%; order: 2; }
  .ff-main { width: 100%; order: 1; }
  .ff-logobar { flex-direction: column; }
  .ff-utility { align-items: flex-start; text-align: left; }
  .ff-utility-row { justify-content: flex-start; }
  .ff-nav { justify-content: flex-start; }
  .ff-nav .ff-nav-sep { display: none; }
  .ff-nav a { padding: 8px 10px; font-size: 11px; }
  .ff-band { font-size: 20px; padding: 14px; }
  .ff-pagerrow { flex-direction: column; }
  .ff-suggest { justify-content: center; }
  .ff-list td.ff-c-meta { display: none; }
  .ff-sheet dl { grid-template-columns: 1fr; }
  .ff-sheet dt { margin-top: 6px; }
}
