/* Vitrine lieudit.ch : la police et les teintes des outils d'Experientiel
   (éditeur, plaquette). Un seul élément marquant : le panneau jaune de
   randonnée qui porte le nom, en tête de l'accueil. Le reste est sobre. */

@font-face { font-family: "Open Sans"; font-weight: 300 800; font-display: swap;
  src: url("polices/OpenSans.woff2") format("woff2"); }

:root {
  --encre: #191715;
  --encre-douce: #5B564F;
  --encre-pale: #8B857A;
  --fond: #FFFFFF;
  --sable: #F4F2EE;
  --trait: #E7E3DB;
  --jaune: #F3BB44;          /* le jaune des panneaux, l'or d'Experientiel */
  --jaune-clair: #FFF6DF;
  --jaune-encre: #5C4400;
  --rayon: 12px;
  --ombre: 0 1px 2px rgba(25, 23, 21, .08), 0 8px 24px rgba(25, 23, 21, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Open Sans", system-ui, sans-serif; color: var(--encre); background: var(--fond);
  font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--encre); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--jaune-encre); outline-offset: 3px; border-radius: 6px; }
ul { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: 0.5em; }
.petit { font-size: 0.875rem; color: var(--encre-douce); }
.evitement { position: absolute; left: -999px; top: 8px; background: var(--fond); padding: 8px 12px; z-index: 10; }
.evitement:focus { left: 8px; }
.largeur { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.etroit { max-width: 860px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--trait); }
.entete-interieur { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px;
  flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque span { display: flex; flex-direction: column; line-height: 1.15; }
.marque strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.marque small { font-size: 0.75rem; color: var(--encre-douce); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 8px; color: var(--encre); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav a:hover { background: var(--sable); }
.nav a[aria-current="page"] { background: var(--jaune-clair); }
.nav .bouton { margin-left: 6px; min-height: 42px; padding: 0 16px; font-size: 0.92rem; }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 10px;
  border: 1px solid #CFC9BE; background: var(--fond); color: var(--encre); font-weight: 700; text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease; }
.bouton:hover { box-shadow: var(--ombre); }
.bouton:active { transform: scale(0.98); }
.bouton-principal { background: var(--jaune); border-color: transparent; }
.appels { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0 0.4em; }

/* Ouverture */
.fil { padding-top: 18px; font-size: 0.875rem; color: var(--encre-douce); }
.fil a { color: var(--encre-douce); }
.ouverture { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); background: var(--sable); }
.ouverture-interieur.avec-image { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.chapeau { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 46ch; }
.note { margin-top: 6px; }

/* Le panneau : une flèche jaune de randonnée, le nom en noir. */
.panneau { display: inline-flex; flex-direction: column; justify-content: center; gap: 0; margin: 0 0 22px;
  background: var(--jaune); color: var(--encre); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1; letter-spacing: -0.01em; padding: 12px 64px 12px 20px; min-height: 76px;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%);
  box-shadow: inset 0 0 0 3px rgba(25, 23, 21, .12); }
.panneau span { font-size: 0.8rem; font-weight: 600; font-style: italic; letter-spacing: 0; margin-bottom: 6px; color: var(--jaune-encre); }

/* Bandes */
.bande { padding: clamp(40px, 6vw, 80px) 0; scroll-margin-top: 76px; }
.bande-teinte { background: var(--sable); }
.bande-interieur .texte { max-width: 68ch; }
.bande-sombre { background: var(--encre); color: #FFFFFF; }
.bande-sombre h2 { color: #FFFFFF; }
.bande-sombre p { color: #E8E4DC; font-size: 1.1rem; }
.surtitre { font-size: 0.85rem !important; font-weight: 700; color: var(--jaune) !important; margin-bottom: 0.4em; }
.bande-appel { background: var(--jaune-clair); }
.bouton-clair { background: var(--jaune); color: var(--encre); border-color: var(--jaune); }

/* Les trois temps : numérotés, ce sont des étapes. */
ul.etapes { list-style: none; padding: 0; counter-reset: temps; margin: 1.2em 0; }
ul.etapes li { counter-increment: temps; position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--trait); margin: 0; }
ul.etapes li:last-child { border-bottom: 1px solid var(--trait); }
ul.etapes li::before { content: counter(temps); position: absolute; left: 0; top: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--encre); color: #FFFFFF; display: grid; place-items: center; font-weight: 800; }

/* Cartes par public */
.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.carte-public { display: flex; flex-direction: column; padding: 22px; border-radius: var(--rayon); background: var(--fond);
  border: 1px solid var(--trait); border-top: 5px solid var(--jaune); color: var(--encre); text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease; }
.carte-public:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.carte-public p { font-size: 0.95rem; color: var(--encre-douce); }
.carte-public .lire { margin-top: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.liens-publics { display: flex; flex-wrap: wrap; gap: 10px; }

/* Questions */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 600; color: var(--encre-douce); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }

/* Pages légales */
.legal h2 { margin-top: 1.6em; font-size: 1.4rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--trait); }
.legal th[scope="row"] { width: 32%; font-weight: 700; }
.legal thead th { background: var(--sable); }

/* Pied */
.pied { background: var(--encre); color: #D9D4CA; padding: 48px 0 24px; font-size: 0.92rem; }
.pied a { color: #FFFFFF; }
.pied-interieur { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.pied nav { display: flex; flex-direction: column; gap: 8px; }
.pied-titre { font-weight: 700; color: #FFFFFF; margin-bottom: 4px; }
.pied-marque { display: flex; align-items: center; gap: 8px; color: #FFFFFF; font-size: 1.1rem; }
.pied-legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid #3A3631; font-size: 0.8rem; }

/* Les deux téléphones (fictifs), repris de la plaquette. */
.telephones { position: relative; height: 470px; max-width: 440px; margin: 0 auto; width: 100%; }
.tel { position: absolute; width: 210px; height: 430px; border-radius: 30px; border: 8px solid var(--encre);
  overflow: hidden; box-shadow: 0 22px 50px rgba(25, 23, 21, .2); display: flex; flex-direction: column; }
.tel.a { left: 0; top: 36px; transform: rotate(-4deg); background: #F6EFE6; color: #2A1A1F; }
.tel.b { right: 0; top: 0; transform: rotate(3deg); background: #0F2E2A; color: #E6F2EC; }
.tel .barre { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px 8px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.tel .bascule { border: 1.3px solid currentColor; border-radius: 30px; padding: 2px 7px; font-size: 8px; font-weight: 600; letter-spacing: 0; }
.tel .ecran { flex: 1; padding: 0 13px 13px; display: flex; flex-direction: column; min-height: 0; }
.tel.a .barre { color: #7A1F3D; }
.tel.a .retour { font-size: 10px; font-weight: 700; color: #7A1F3D; display: flex; justify-content: space-between; margin: 3px 0 8px; }
.tel.a .retour span:last-child { color: #6b5a5f; font-weight: 400; }
.pochette { flex: 1; border-radius: 13px; background: #EADFD2; position: relative; overflow: hidden; }
.pochette::after { content: ""; position: absolute; left: 0; right: 0; top: 62%; bottom: 0; border-top: 2px solid #7A1F3D;
  background: linear-gradient(to bottom, rgba(122, 31, 61, .16), transparent); }
.pochette b { position: absolute; left: 50%; bottom: 38%; transform: translate(-50%, 2px); font-size: 52px; line-height: .8; font-weight: 800; color: #7A1F3D; }
.tel.a h3 { font-size: 14px; line-height: 1.2; margin: 10px 0 2px; letter-spacing: 0; }
.tel.a .lieu { font-size: 10px; color: #6b5a5f; margin: 0; }
.ligne { margin: 11px -13px 0; height: 2px; background: linear-gradient(to right, #7A1F3D 34%, #d9c9bb 34%); position: relative; }
.ligne::after { content: ""; position: absolute; left: 34%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #7A1F3D; transform: translate(-50%, -50%); border: 2px solid #F6EFE6; }
.temps { display: flex; justify-content: space-between; font-size: 8px; color: #6b5a5f; margin: 5px 0 0; }
.commandes { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 9px 0 10px; }
.commandes i { width: 18px; height: 18px; border-radius: 50%; border: 1.7px solid #7A1F3D; display: block; }
.commandes .lire { width: 42px; height: 42px; border-radius: 50%; background: #7A1F3D; position: relative; }
.commandes .lire::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 13px solid #F6EFE6; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.versions { display: flex; gap: 5px; }
.versions span { flex: 1; text-align: center; font-size: 8.5px; font-weight: 700; border: 1.3px solid #7A1F3D; color: #7A1F3D; border-radius: 30px; padding: 4px 0; }
.versions span:first-child { background: #7A1F3D; color: #F6EFE6; }
.tel.b .barre { color: #8FD3B6; }
.tel.b .contexte { font-size: 10.5px; font-weight: 700; margin: 2px 0 8px; }
.tel.b .contexte span { font-weight: 400; color: #a7c4b8; }
.tel .carte { flex: 1; border-radius: 13px; background: #183f39; position: relative; overflow: hidden; }
.tel .carte svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.prochain { margin-top: 9px; border: 1.5px solid #8FD3B6; border-radius: 11px; padding: 7px 8px; display: flex; align-items: center; gap: 8px; background: #143a35; }
.prochain .n { width: 20px; height: 20px; border-radius: 50%; background: #8FD3B6; color: #0F2E2A; font-size: 10px; font-weight: 800; display: grid; place-items: center; flex: none; }
.prochain small { display: block; font-size: 8px; color: #a7c4b8; }
.prochain strong { display: block; font-size: 10.5px; }
.prochain em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 10px; color: #8FD3B6; }
.tel .actions { display: flex; gap: 5px; margin-top: 7px; }
.tel .actions span { flex: 1; border: 1.3px solid #8FD3B6; border-radius: 9px; text-align: center; font-size: 8.5px; font-weight: 700; color: #8FD3B6; padding: 8px 0; }
.tel .actions span:first-child { background: #8FD3B6; color: #0F2E2A; }

@media (max-width: 1180px) { .pied-interieur { grid-template-columns: repeat(3, 1fr); } }
/* L'en-tête tient sur une ligne : sous 1150 px, la connexion et la
   démonstration restent dans la page et dans le pied. */
@media (max-width: 1150px) { .nav .nav-connexion, .nav .bouton-principal { display: none; } }
@media (max-width: 900px) {
  .ouverture-interieur.avec-image { grid-template-columns: minmax(0, 1fr); }
  .telephones { height: 420px; max-width: 360px; }
  .tel { width: 180px; height: 380px; }
  .pied-interieur { grid-template-columns: 1fr; }
  /* Au téléphone : la marque et « Écouter un audioguide » ; les pages par
     public et la connexion restent dans le pied de page. */
  .entete { position: static; }
  .entete-interieur { flex-wrap: nowrap; }
  .marque small { display: none; }
  .nav a:not(.bouton), .nav .bouton-principal { display: none; }
  .nav .bouton { margin-left: 0; min-height: 44px; padding: 0 14px; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
