/* ==========================================================================
   ATLAS — FRONT CSS (version corrigée + nettoyée)
   Objectifs :
   - garder les couleurs bleu→vert du widget (identité)
   - éviter les doublons / règles redondantes
   - zebra striping fiable (avec wrapper recommandé + fallback)
   ========================================================================== */

/* --------------------------------------------------------------------------
   VARIABLES (facultatif mais pratique)
-------------------------------------------------------------------------- */
:root{
  --als-blue: #0e3f7e;
  --als-green: #00c196;
  --als-blue2: #1b6da0;

  --als-red: #db0310; /* utilisé uniquement pour les insights (accent) */

  --als-text: #000;
  --als-border: #d1d5db;
  --als-soft: #f9fafb;
}

/* --------------------------------------------------------------------------
   CONTENEUR DE LA CARTE
-------------------------------------------------------------------------- */
.als-map-container{
  width: 100%;
  min-height: 33.25rem; /* 500px */
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

/* Police Leaflet/OSM */
.leaflet-container{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   TOOLTIP MULTI-LIGNES
-------------------------------------------------------------------------- */
.als-label-tooltip{
  background: rgba(255,255,255,1);
  border: 1px solid #999;
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
  font-size: 1rem;
  color: #222;
  white-space: normal !important;
  max-width: 18rem;
  min-width: 14rem;
  display: inline-block;
}

.leaflet-tooltip.als-label-tooltip{
  pointer-events: auto;
opacity: 1 !important;
}

.leaflet-tooltip.als-label-tooltip .als-label-edit{
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.8rem;
}

.leaflet-tooltip.als-label-tooltip .als-label-link-text{
  cursor: pointer;
  text-decoration: underline;
  font-size: 1rem;
}

.als-label-name{
  font-size: 1rem;
  font-weight: 700;
}

.als-field{
  display: block;
  margin-top: 0.125rem;
}

/* Taille par défaut (tooltip). On surchargera pour le formulaire. */
.als-field-label{ font-size: 1rem; }

.als-field-value{
  font-style: italic;
  color: #000;
}

.als-field-sobriquets .als-field-label{ color: #c00; }
.als-field-gentile   .als-field-label{ color: #0066aa; }

/* --------------------------------------------------------------------------
   ICÔNE ?
-------------------------------------------------------------------------- */
.als-question-icon .als-qmark{
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;

  background: #2563eb;   /* bleu franc */
  border: 1px solid #1f9d8b;
  color: #ffffff;

  box-shadow: 0 0 2px rgba(0,0,0,0.4);
  cursor: pointer;
}


.als-edit-panel--hidden{ display: none; }

.als-hp-row{
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   LISTE DES LOCALITÉS (SHORTCODE) — MODERNE + STRIPING FIABLE
   Remplace entièrement l'ancien bloc "LISTE + MENU + PAGINATION + MOBILE"
   Pré-requis HTML recommandé :
   <div class="als-localities-rows">
     <div class="als-locality-entry">...</div>
     ...
   </div>
   ========================================================================== */

.als-public-localities-list{
  width: 100%;
  margin: 2rem 0;
  font: 400 1rem/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--als-text);
}

/* Titre canton */
.als-public-localities-list .als-canton-title{
  margin: 1.8rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid rgba(0,0,0,.12);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--als-text);
}

/* Groupe de lignes (wrapper stripping fiable) */
.als-public-localities-list .als-localities-rows{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}

/* Ligne localité */
.als-public-localities-list .als-locality-entry{
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 0.9rem;
  padding: 0.75rem 0.95rem;
  align-items: start;
}

/* ✅ Stripping fiable UNIQUEMENT via wrapper */
.als-public-localities-list > .als-locality-entry:nth-child(odd){
  background: linear-gradient(
    270deg,
    #ffffff 0%,
    rgba(31,157,139,0.10) 100%
  );
}

.als-public-localities-list > .als-locality-entry:nth-child(even){
  background: linear-gradient(
    270deg,
    rgba(31,157,139,0.09) 0%,
    rgba(31,157,139,0.20) 100%
  );
}

/* petit effet "hover" moderne */
.als-public-localities-list .als-localities-rows > .als-locality-entry:hover{
  background: rgba(0,193,150,.08);
}

/* Nom localité */
.als-public-localities-list .als-locality-name{
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

/* Liens dans le nom (si tu en as) */
.als-public-localities-list .als-locality-name a{
  color: inherit;
  text-decoration: none;
}
.als-public-localities-list .als-locality-name a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Metas */
.als-public-localities-list .als-locality-metas{
  font-size: 0.98rem;
  color: #0f172a;
}

/* Neutralisation des puces (Safari inclus) */
.als-public-localities-list .als-locality-metas-list,
.als-public-localities-list .als-locality-metas-list > li{
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.als-public-localities-list .als-locality-metas-list > li::marker{
  content: none !important;
}

.als-public-localities-list .als-meta-line + .als-meta-line{
  margin-top: 0.2rem;
}

.als-public-localities-list .als-meta-label{
font-size: 1rem;  
font-weight: 600;
  margin-right: 0.35rem;
}

/* Valeur légèrement plus douce */
.als-public-localities-list .als-meta-value{
  color: #111827;
}

.als-meta-line-summary .als-meta-value {
  text-transform: lowercase;
}


/* Séparateur entre cantons (si tu le gardes) */
.als-public-localities-list .als-canton-separator{
   
}
/* --------------------------------------------------------------------------
   MENU DES CANTONS (SHORTCODE)
-------------------------------------------------------------------------- */
.als-public-localities-list .als-canton-menu{
  background: linear-gradient(135deg, var(--als-blue) 0%, var(--als-green) 100%);
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 14px 16px;
	margin-bottom:10px;
}

/* ✅ padding qui s’applique vraiment : on force block (au lieu de inline-block)
   + on évite les collisions de line-height de thèmes */
.als-public-localities-list .als-canton-menu-label{
  display: block;
  padding: 0px 0px 0px; /* bottom visible */
    font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
}

.als-public-localities-list .als-canton-menu-label:not(:first-of-type){
  margin-top: 1.2rem;
}

.als-public-localities-list .als-canton-link{
  display: inline-block;
  color: #fff;
  font-weight: 600;
	font-size: 1.1rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin: 4px 1px 0px 0;
  padding: 2px 2px;
  border-radius: 8px;
	  line-height: 1.2;
}

.als-public-localities-list .als-canton-link:hover{
  text-decoration: none;
  background: rgba(255,255,255,.14);
}

.als-public-localities-list .als-canton-link.is-active{
  text-decoration: none;
  background: rgba(255,255,255,.22);
}


.als-canton-menu h4{
color: #fff;
margin-bottom: 0;
}


.als-no-localities p{
color: #fff;
margin-bottom: 0;
}


p.als-search-explainer {margin:0;}


/* --------------------------------------------------------------------------
   PAGINATION — MODERNE
-------------------------------------------------------------------------- */
.als-public-localities-list .als-pagination{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  font-size: 1rem;
}

.als-public-localities-list .als-pagination .als-page-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.08);
  color: #111827;
  background: #fff;
}

.als-public-localities-list .als-pagination a.als-page-link:hover{
  background: rgba(0,193,150,.10);
  border-color: rgba(0,193,150,.35);
}

.als-public-localities-list .als-pagination .als-page-link.is-disabled{
  opacity: 0.45;
  pointer-events: none;
}

.als-public-localities-list .als-pagination .als-page-status{
  font-weight: 800;
  color: #111827;
  padding: 0 0.25rem;
}
/* --------------------------------------------------------------------------
   MOBILE — LISTE
-------------------------------------------------------------------------- */
@media (max-width: 700px){
  .als-public-localities-list .als-locality-entry{
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.8rem 0.9rem;
  }

  .als-public-localities-list .als-locality-name{
    font-size: 1.2rem;
  }

  .als-public-localities-list .als-pagination{
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

/* --------------------------------------------------------------------------
   Neutraliser styles .entry p (fiches localité)
-------------------------------------------------------------------------- */
.als-single-locality .entry p,
.als-locality-article .entry p{
  margin: 0 !important;
  padding: 0 !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* ==========================================================================
   PANNEAU → CARTE + FORMULAIRE
   ========================================================================== */
.als-map-wrapper{
  margin: 2rem 0 2.5rem;
}

@media (max-width: 768px){
  .als-map-wrapper{
    margin: 2rem -20px 2.5rem !important;
  }
}

/* --------------------------------------------------------------------------
   PANNEAU (accordion)
-------------------------------------------------------------------------- */
.als-edit-panel{
  position: relative;
  margin-top: 1.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  overflow: hidden;

  max-height: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Liseré vertical (bleu→vert, cohérent avec widget) */
.als-edit-panel::before{
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(180deg, var(--als-green), var(--als-blue2));
}

/* État replié */
.als-edit-panel.als-edit-panel--hidden{
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

/* TITRE */
.als-panel-title{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.als-panel-title::after{
  content: "?";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 1rem;
  font-weight: 700;
  border: 1.5px solid #000;
}

/* ⚠️ Attention : all:unset peut “casser” certains thèmes.
   Ici on reste simple et safe : */
.als-edit-panel h3{
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.als-panel-intro{
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--als-text);
}

.als-edit-form{ margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   LIGNES DE CHAMPS (panel + form public)
-------------------------------------------------------------------------- */
.als-field-row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;

  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background-color: #fff5f5;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
}

/* Label */
.als-field-row > .als-field-label{
  flex: 0 0 11rem;
  max-width: 11rem;
  min-width: 11rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--als-text);
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  line-height: 1.3;
  word-wrap: break-word;
}

/* Input */
.als-field-row > .als-field-input{
  flex: 1 1 0;
  min-width: 0;
  font-size: 1rem;
  color: var(--als-text);
}

/* Neutralisation du style themeform pour le formulaire Atlas */
.themeform .als-form-page input:not([type="submit"]):not([type="checkbox"]):not([type="hidden"]),
.themeform .als-form-page textarea,
.themeform .als-form-page select{
  background: #fff;
  color: var(--als-text);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  display: block;
  padding: 8px 10px;
  border: 1px solid #778899;
  line-height: 1.5em;
  border-radius: 12px;
}

/* Description sous les inputs */
.als-field-input .description{
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--als-text);
}

/* CAPTCHA */
.als-captcha-row{
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #008B8B;
}

.als-captcha-row .als-field-label{
  flex-basis: 100%;
  max-width: none;
  min-width: 0;
  color: #fff;
}

.als-captcha-row .als-field-input{
  flex-basis: 10rem;
  margin-top: 0.5rem;
  background: #fff;
  border-radius: 12px;
}

/* Ligne du bouton */
.als-field-row-submit .als-field-label{ visibility: hidden; }

/* --------------------------------------------------------------------------
   INPUTS PANEL (look léger)
-------------------------------------------------------------------------- */
.als-edit-form input[type="text"],
.als-edit-form input[type="url"],
.als-edit-form input[type="number"],
.als-edit-form input[type="email"],
.als-edit-form input[type="tel"],
.als-edit-form textarea{
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--als-border);
  background-color: var(--als-soft);
  font-size: 1rem;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.als-edit-form textarea{
  min-height: 90px;
  resize: vertical;
}

.als-edit-form input:focus,
.als-edit-form textarea:focus{
  outline: none;
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.6);
}

/* HTML libre (bloc) */
.als-free-html{
  margin: 1rem 0;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background-color: #fff5f5;
  box-shadow: 0 6px 22px rgba(0,0,0,.06);
}

/* MESSAGES */
.als-panel-message{
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

/* Success + feu d’artifice */
.als-panel-message--success{
  color: #065f46;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.als-panel-message--success::after{
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: als-firework 3.2s ease-out forwards;
}

@keyframes als-firework{
  0%{
    box-shadow:
      0 0 0 3px #ffdd55, 0 0 0 3px #ff6b6b, 0 0 0 3px #4fd1ff, 0 0 0 3px #5cff9b,
      0 0 0 3px #ff9bf5, 0 0 0 3px #ffa94d, 0 0 0 3px #b197fc, 0 0 0 3px #ff8787,
      0 0 0 3px #63e6be, 0 0 0 3px #339af0, 0 0 0 3px #e599f7, 0 0 0 3px #ffd43b,
      0 0 0 3px #ff922b, 0 0 0 3px #69db7c, 0 0 0 3px #74c0fc, 0 0 0 3px #ff6bcb;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4);
  }
  70%{
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100%{
    box-shadow:
      0 -45vh 0 3px rgba(0,0,0,0),
      20vw -40vh 0 3px rgba(0,0,0,0),
      40vw -25vh 0 3px rgba(0,0,0,0),
      55vw 0 0 3px rgba(0,0,0,0),
      40vw 25vh 0 3px rgba(0,0,0,0),
      20vw 40vh 0 3px rgba(0,0,0,0),
      0 45vh 0 3px rgba(0,0,0,0),
      -20vw 40vh 0 3px rgba(0,0,0,0),
      -40vw 25vh 0 3px rgba(0,0,0,0),
      -55vw 0 0 3px rgba(0,0,0,0),
      -40vw -25vh 0 3px rgba(0,0,0,0),
      -20vw -40vh 0 3px rgba(0,0,0,0),
      10vw -15vh 0 3px rgba(0,0,0,0),
      -15vw -10vh 0 3px rgba(0,0,0,0),
      15vw 10vh 0 3px rgba(0,0,0,0),
      -10vw 15vh 0 3px rgba(0,0,0,0);
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.als-panel-message--error{
  color: #b91c1c;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* BOUTON */
.als-submit-row{ margin-top: 1.25rem; }

.als-submit-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--als-green), var(--als-blue2));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(16,185,129,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.als-submit-button:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(16,185,129,0.35);
  opacity: 0.96;
}

.als-submit-button:active{
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(16,185,129,0.25);
}

.als-submit-button:disabled{
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   FORMULAIRE PUBLIC SANS CARTE + MINI-CARTE
-------------------------------------------------------------------------- */
.als-form-page{
  margin: 2rem 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: var(--als-text);
}

.als-form-title{
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.als-form-lead{
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--als-text);
}

.als-form-mini-map-wrap{ margin: 1rem 0 1.5rem; }

.als-form-mini-map{
  width: 100%;
  min-height: 220px;
  border-radius: 8px;
  border: 1px solid var(--als-border);
  overflow: hidden;
}

.als-form-mini-map-wrap--hidden{ display: none; }

.als-form-mini-map-caption{
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--als-text);
}

/* --------------------------------------------------------------------------
   URL suggestion groups (panel)
-------------------------------------------------------------------------- */
.als-url-suggestion-group{
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--als-soft);
  border: 1px solid #778899;
  margin-bottom: 0.5rem;
}

.als-url-suggestion-group p{ margin: 0 0 0.5rem; }

.als-url-suggestion-group label{
  font-size: 1rem;
  font-weight: 500;
  color: var(--als-text);
}

.als-url-suggestion-group input[type="text"],
.als-url-suggestion-group input[type="url"],
.als-url-suggestion-group textarea{
  width: 100%;
}

@media (max-width: 640px){
  .als-url-suggestion-group{
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Message feedback (suggestion)
-------------------------------------------------------------------------- */
.als-suggestion-feedback{
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

.als-suggestion-feedback.als-feedback-success{ color: #065f46; }
.als-suggestion-feedback.als-feedback-error{ color: #b91c1c; }
.als-suggestion-feedback.als-feedback-pending{
  color: var(--als-text);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   LISTES DE LIENS (fiche localité)
-------------------------------------------------------------------------- */
.atlas-locality-url-list{
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}
.atlas-locality-url-item{ margin-bottom: 0.4rem; }
.atlas-locality-url-title{
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: var(--als-text);
}
.atlas-locality-url-link a{
  text-decoration: underline;
  word-break: break-all;
  font-size: 0.9rem;
  color: var(--als-text);
}
.atlas-locality-url-desc{
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 0.1rem;
  color: var(--als-text);
}

.als-sg-label{
  font-weight:700;

}

/* ==========================================================================
   Layout fiche localité : 2 colonnes (infos + carte)
   ========================================================================== */
.als-locality-header-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.als-locality-main{ flex: 1 1 260px; }

.als-locality-map-wrap{
  flex: 1 1 500px;
  max-width: 500px;
  width: 100%;
}

.als-locality-map-wrap #als-locality-map{
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
}

.als-locality-meta p{
  margin: 0 0 0.4rem;
  color: var(--als-text);
}

.als-locality-highlight{
  margin-top: 0.8rem;
 /* padding-top: 0.8rem;
  border-top: 1px solid #e5e7eb;*/
}

.als-locality-highlight .als-meta-line-highlight{
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.als-locality-highlight .als-meta-label{ font-weight: 700; }
.als-locality-highlight .als-meta-value{
  font-style: italic;
}

.als-locality-extra{
 /* margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;*/
}

.als-locality-extra .als-meta-line{ margin-bottom: 0.4rem; }
.als-locality-extra .als-meta-value{ display: block; }




/* Ajuster les <p> de la fiche */
.als-locality-article .entry p{
  margin: 0 0 0.9rem;
}

.als-locality-fields .als-meta-value p{
  margin: 0 0 0.75rem !important;
}

.als-locality-highlight .als-meta-value p{
  margin: 0 !important;
}

/* Responsive fiche localité */

/* Grandes tablettes / petits portables */
@media (max-width: 1200px){
  .als-locality-header-grid{
    gap: 1.25rem;
  }
}

/* iPad paysage */
@media (max-width: 1024px){
  .als-locality-header-grid{
    gap: 1rem;
  }
}

/* iPad portrait */
@media (max-width: 850px){
  .als-locality-header-grid{
    gap: 0.75rem;
  }
}

/* Mobile */
@media (max-width: 768px){
  .als-locality-header-grid{
    flex-direction: column;
  }
}


/* --------------------------------------------------------------------------
   Insight Atlas — version bleu → vert plus lisible
-------------------------------------------------------------------------- */

.als-insight{
  position: relative;
  margin-top: 1.4rem;
  padding: 1.35rem 1.4rem 1.45rem;

  border: 1px solid rgba(14,63,126,.20);
  border-left: 5px solid var(--als-green);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(14,63,126,.10) 0%,
      rgba(0,193,150,.11) 100%
    );

  box-shadow:
    0 8px 24px rgba(14,63,126,.10);

  overflow: hidden;
}

/* Décor discret en haut à droite */
.als-insight::after{
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;

  width: 150px;
  height: 150px;
  border-radius: 50%;

  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(0,193,150,.26),
      rgba(14,63,126,.10) 55%,
      transparent 72%
    );

  pointer-events: none;
}

/* Le contenu reste au-dessus du décor */
.als-insight > *{
  position: relative;
  z-index: 1;
}

/* Petit surtitre */
.als-insight > .als-insight-header > .als-insight-kicker{
  display: inline-block;

  margin: 0 0 .8rem;
  padding: .28rem .65rem;

  border: 1px solid rgba(14,63,126,.22);
  border-radius: 999px;

  background: rgba(255,255,255,.72);
  color: var(--als-blue);

  font: 700 .9rem/1.2 system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;

  letter-spacing: .035em;
  text-transform: uppercase;
}

/* Titre principal */
.als-insight > .als-insight-header > .als-insight-title{
  margin: 0 0 .55rem;

  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 750;

  color: #0e3f7e;
}

/* Texte courant */
.als-insight > .als-insight-header > .als-insight-sub{
  margin: 0 0 .9rem;

  color: #10243e;
  font-size: 1rem;
  line-height: 1.6;
}

/* Évite les marges parasites du thème */
.als-insight p{
  margin-bottom: 0 !important;
}




/* Lien principal de contribution */
.als-insight-link a,
.als-insight .als-insight-sub a{
    display: inline-block;

    margin-top: .7rem;
    padding: .65rem 1rem;

    background: linear-gradient(
        90deg,
        var(--als-blue),
        var(--als-green)
    );

    color: #fff !important;

    border: 0;
    border-radius: 8px;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;

    transition: opacity .15s ease;
}

.als-insight-link a:hover,
.als-insight .als-insight-sub a:hover{
    opacity: .92;
    color:#fff !important;
    text-decoration:none;
}






.als-insight-link a:hover,
.als-insight-link a:focus-visible,
.als-insight .als-insight-sub a:hover,
.als-insight .als-insight-sub a:focus-visible{
  color: #fff !important;
  text-decoration: none;

  filter: brightness(1.06);

  box-shadow:
    0 8px 20px rgba(14,63,126,.24);
}

/* Focus clavier visible */
.als-insight a:focus-visible{
  outline: 3px solid rgba(14,63,126,.28);
  outline-offset: 3px;
}

/* Liens de retour : restent plus discrets */
.als-insight-link .als-back-link{
  display: inline;
  margin: 0;
  padding: 0;

  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;

  color: var(--als-blue) !important;

  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.als-insight-link .als-back-link:hover,
.als-insight-link .als-back-link:focus-visible{
  color: var(--als-green) !important;
  background: none;
  box-shadow: none;
  filter: none;

  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile */
@media (max-width: 640px){
  .als-insight{
    padding: 1.15rem 1rem 1.25rem;
    border-radius: 14px;
  }

  .als-insight > .als-insight-header > .als-insight-title{
    font-size: 1.15rem;
  }

  .als-insight-link a,
  .als-insight .als-insight-sub a{
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }

  .als-insight-link .als-back-link{
    width: auto;
    display: inline;
  }
}








/* --------------------------------------------------------------------------
   Richtext fiche localité + floats
-------------------------------------------------------------------------- */
.als-locality-richtext{
 /* margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;*/
}

.entry .als-locality-richtext p{
  margin: 0 0 1rem !important;
  line-height: 1.6 !important;
}

.als-locality-richtext::after{
  content: "";
  display: block;
  clear: both;
}



/* --------------------------------------------------------------------------
   RESPONSIVE FORM (panel + page)
-------------------------------------------------------------------------- */
@media (max-width: 640px){
  .als-edit-panel{
    margin-top: 1rem;
    padding: 1.1rem 1.1rem 1.3rem;
    border-radius: 10px;
    font-size: 1.2rem;
  }

  .als-edit-panel::before{
    border-radius: 10px 0 0 10px;
  }

  .als-field-row{
    display: block;
  }

  .als-field-row > .als-field-label{
    flex: none;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0.25rem;
    visibility: visible;
  }

  .als-field-row-submit > .als-field-label{ display: none; }

  .als-field-row > .als-field-input{ flex: none; }

  .als-submit-button{ width: 100%; }

  .als-form-page{ font-size: 1.2rem; }
}

/* ==========================================================================
   PATCH VISIBILITÉ MINI-CARTE (mobile inclus)
   ========================================================================== */
.als-locality-map-wrap{ display: block !important; }

#als-locality-map,
.als-locality-map-wrap #als-locality-map,
.als-locality-map-wrap .leaflet-container{
  display: block !important;
  min-height: 22rem;
  height: 25rem !important;
}

@media (max-width: 768px){
  .als-locality-map-wrap{
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
  }
  .als-locality-main{ flex: none; }
}

/* ==========================================================================
   SELECT Canton + Localité — formulaire [atlas_suisse_form]
   ========================================================================== */
.als-form-canton-select,
.als-form-locality-select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  display: block;
  width: 100%;
  max-width: 100%;

  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--als-text);

  border: 1px solid #bbb;
  border-radius: 0.375rem;
  background-color: #fff;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23555' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.7rem auto;

  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.als-form-canton-select:hover,
.als-form-locality-select:hover{ border-color: #888; }

.als-form-canton-select:focus,
.als-form-locality-select:focus{
  border-color: #0046d6;
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(0,70,214,0.2);
}

.als-form-locality-select:disabled{
  background-color: #f5f5f5;
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaaaaa' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.als-form-canton-select::-ms-expand,
.als-form-locality-select::-ms-expand{ display: none; }

@media (max-width: 600px){
  .als-form-canton-select,
  .als-form-locality-select{
    font-size: 1rem;
    padding: 0.65rem 2rem 0.65rem 0.75rem;
  }
}

/* ==========================================================================
   WIDGET Atlas — même look que ConjuGrid (cohérent bleu→vert)
   ========================================================================== */

.widget[id^="als_localities_widget-"],
.widget[id^="als_random_locality_image-"] {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
}



.widget[id^="als_localities_widget-"] .page-card.page-card-search{
  background: transparent;
  border: 0;
  margin: 0 0 1rem 0;
}

.widget[id^="als_localities_widget-"] .als-latest-localities{
  list-style: none;
  margin: 0;
  padding: 10px 30px 5px 30px;
}

.widget[id^="als_localities_widget-"] .als-latest-localities li{ margin-bottom: 4px; }

.widget[id^="als_localities_widget-"] .als-latest-localities a{
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.home .widget[id^="als_localities_widget-"] .als-latest-localities a{ color: #fff; }

.widget[id^="als_localities_widget-"] .als-latest-localities a:hover{ text-decoration: underline; }

.widget[id^="als_localities_widget-"] .conjugrid-links{
  text-align: right;
  padding: 0 30px 15px 0;
}

.widget[id^="als_localities_widget-"] .conjugrid-links a{
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.widget[id^="als_localities_widget-"] .conjugrid-links a:hover{ text-decoration: none; }

/* ✅ Ici : on passe bleu→vert (au lieu de bleu→rouge) */
.home .widget[id^="als_localities_widget-"] .page-card.page-card-search{
  background: linear-gradient(135deg, var(--als-blue) 0%, var(--als-green) 100%);
  border-radius: 20px;
  color: #fff;
}

.home .widget[id^="als_localities_widget-"] .stickywrap-heading{ color: #fff; }
.home .widget[id^="als_localities_widget-"] .conjugrid-links a{ color: #fff; }

.sidebar .widget[id^="als_localities_widget-"] .stickywrap-heading{ font-size: 1.1rem; }
.sidebar .widget[id^="als_localities_widget-"] .conjugrid-links{ padding-right: 0; }

@media (max-width: 780px){
  .widget[id^="als_localities_widget-"] .als-localities-widget{ display: block; }
}

.als-latest-intro{
  font-weight: 700;
  margin: 10px 30px 0;
  font-size: 1rem;
  color: #fff;
}
.als-latest-intro2{
  margin: 0 30px 0;
  font-size: 1rem;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Divers
-------------------------------------------------------------------------- */
.als-locality-highlight-sep{
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0.75rem 0;
}

.als-field-intro{
  margin: 1rem 0 2rem;
  padding: 1.1rem 1.3rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #111827;
 background: linear-gradient(
    270deg,
    rgba(31,157,139,0.09) 0%,
    rgba(31,157,139,0.20) 100%
  );
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
}
.als-field-intro strong{
  font-weight: 600;
  color: #000;
}
.als-field-intro h3{
  font-weight: 700;
  color: #000;
font-size: 1.8rem;
	margin: 0 !important;
}
.als-field-intro h4{

  font-weight: 700;
  color: #000;
font-size: 1.6rem;
	margin: 0 !important;
}

/* Neutraliser les styles du thème sur .entry p */
.als-field-intro.entry p,
.entry .als-field-intro p {
  margin: 0 0 0.8rem !important;
  padding: 0 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  color: #111827 !important;
}

.als-form-page .als-highlight-suggestion-group > p{
  all: unset;
  display: block;
  margin-bottom: 0.75em;
  background-color: #fff;
}
.als-emoji-line {
/*  display: flex;*/
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: #555;
/*	min-width: 600px;*/
}

.als-emoji-line i {
  line-height: 1;
  opacity: 0.9;
}

.als-label-tooltip .als-emoji-line {
  justify-content: flex-start;
}




.als-label-tooltip .als-label-links{
  display: flex;
  gap: 10px;
  margin-top: 6px;
  align-items: center;
}

.als-label-tooltip .als-label-links > div + div{
  border-left: 1px solid #778899;
  padding-left: 10px;
}

/* ==========================================================================
   Menu supérieur de la carte
   ========================================================================== */
.als-map-menu{
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  font: 600 13px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.als-map-menu-inner{
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.4rem;
}

.als-map-menu-link{
  color: #005fcc;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.10rem 0.2rem;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.als-map-menu-link:hover,
.als-map-menu-link:focus{
  background: rgba(0,95,204,0.08);
  color: #003d99;
  text-decoration: none;
}

@media (max-width: 640px){
  .als-map-menu{ font-size: 14px; }
  .als-map-menu-inner{
    gap: 0.2rem;
    padding: 0.2rem 0.2rem;
  }
}

/* ==========================================================================
   Atlas – mise en forme des textes (textarea)
   ========================================================================== */
.als-locality-fields.als-locality-extra .als-meta-value{
  display: block;
  line-height: 1.6;
}

.als-locality-fields.als-locality-extra .als-meta-value p{
  margin: 0.5em 0;
}

.als-locality-fields.als-locality-extra .als-meta-value h2,
.als-locality-fields.als-locality-extra .als-meta-value h3,
.als-locality-fields.als-locality-extra .als-meta-value h4{
  font-weight: 700;
  margin: 1em 0 0.4em;
}

.als-locality-fields.als-locality-extra .als-meta-value h2{ font-size: 1.3rem; }
.als-locality-fields.als-locality-extra .als-meta-value h3{ font-size: 1.1rem; }
.als-locality-fields.als-locality-extra .als-meta-value h4{ font-size: 1rem; }



.als-mini-toolbar{
  display:flex;
  gap:.4rem;
  margin:0 0 .5rem;
  flex-wrap:wrap;
}
.als-mini-toolbar .als-tb-btn{
  border:1px solid #ccd0d4;
  background:#fff;
  padding:.25rem .5rem;
  border-radius:6px;
  cursor:pointer;
  line-height:1.2;
}
.als-mini-toolbar .als-tb-btn:hover{
  background:#f6f7f7;
}


/* Emoji du menu : même détourage que les tooltips 
.als-canton-link .als-menu-emoji{
  display: inline-block;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 2px;
  filter:
    drop-shadow( 1px  0   0 rgba(0,0,0,0.85))
    drop-shadow(-1px  0   0 rgba(0,0,0,0.85))
    drop-shadow( 0    1px 0 rgba(0,0,0,0.85))
    drop-shadow( 0   -1px 0 rgba(0,0,0,0.85));
}
*/

.als-menu-icon i {
  margin-right: .30rem;
  opacity: .9;
    font-size: 26px;   /* au lieu de 22px */
    line-height: 1.4;

}

/* Mobile : emojis plus gros dans le menu */
@media (max-width: 640px) {
  .als-canton-link .als-menu-icon i{
    font-size: 28px;   /* au lieu de 22px */
    line-height: 1.4;
  }
}

.als-meta-icon i {
  margin-left: .20rem;
  opacity: .9;
    font-size: 22px;   /* au lieu de 22px */
    line-height: 1.4;

}

/* Mobile : emojis plus gros dans le menu */
@media (max-width: 640px) {
  .als-canton-link .als-meta-icon i{
    font-size: 22px;   /* au lieu de 22px */
    line-height: 1.4;
  }
}


/* ==========================================================================
   Highlights (hors sobriquet/gentilé) en 2 colonnes sous la grille principale
   ========================================================================== */
.als-locality-highlights-wide{
  margin: 1.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.als-locality-highlights-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.25rem;
}

.als-locality-highlights-grid .als-high-item{
  margin-top: 0.5rem;
margin-bottom: 0.5rem;
	padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}



.als-locality-highlights-grid .als-high-value {
  font-style: italic;
  line-height: 1.55;
	font-size: 1rem;
}

/* Mobile */
@media (max-width: 768px){
  .als-locality-highlights-grid{
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   FIX — ligne ::after qui disparaît quand des highlights existent
   ========================================================================== */

/* Chaque meta repart sur une nouvelle ligne, quoi qu’il arrive au-dessus */
/* .als-locality-fields.als-locality-extra .als-meta-line{
  clear: both;
}*/

/* Force le label en “vraie ligne pleine largeur” (empêche shrink-to-fit) */
/* .als-locality-fields.als-locality-extra .als-meta-label{
  float: none !important;
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
}*/



.als-locality-richtext .wp-block-image img,
.als-locality-richtext img,
.als-high-value .wp-caption img,
.als-high-value img {
  max-width: 100%;
  height: auto;
  display: block;
	border-radius: 20px;
}


.entry .wp-caption-text {
  font-size: 0.9rem;
  padding: 5px 0 10px 0;
  margin: 0;
}


.als-sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}


.als-random-locality-widget {
  container-type: inline-size;
}

.als-random-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.als-random-card-media {
  flex: 0 0 60%;
  max-width: 60%;
}

.als-random-card-content {
  flex: 1 1 0;
}

/* ⬇️ Moyen : on équilibre */
@container (max-width: 700px) {
  .als-random-card-media {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ⬇️ Étroit : image pleine largeur */
@container (max-width: 420px) {
  .als-random-card {
    flex-direction: column;
  }

  .als-random-card-media {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .als-random-card-content {
    flex: 1 1 100%;
  }
}

.als-contrib {
  display: block;
  margin-top: 10px;
}


.als-locality-name .als-locality-canton {
    font-size: 0.9rem;
    color: #666;
}

.als-locality-highlights-large{
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.als-locality-highlights-large .als-high-item{
  margin-top: 0.5rem;
margin-bottom: 0.5rem;
	padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}



.als-locality-highlights-large .als-high-value{
  font-style: italic;
  line-height: 1.55;
  overflow-wrap: anywhere;
font-size: 1rem;
}

.entry .als-high-value p{
  margin: 0 0 0.5rem !important;
  line-height: 1.6 !important;
}

.als-highlight-gap{
    height:0.25rem;
}

@media (min-width: 769px) {
  .als-high-value--media {
    display: flow-root;
  }

  .als-high-value--media > figure,
  .als-high-value--media > img {
    float: left;
    width: 45%;
    margin: 0 1.25rem 1rem 0 !important;
    clear: left;
  }

  .als-high-value--media > p {
    overflow: hidden;
    margin-bottom: 1.5rem !important;
  }

  .als-highlight-gap {
    clear: both;
  }
}

.als-locality-fields,
.als-locality-extra,
.als-locality-richtext,
.als-locality-highlights-wide,
.als-locality-highlights-large,
.als-high-item,
.als-meta-line,
.als-rich {
	margin-top: 0.5rem;
  display: block;
  width: 100%;
  max-width: 100%;
  clear: both;
  box-sizing: border-box;
}

.als-locality-article h2.als-section-label{
  margin: 0 0 1rem !important;
  padding: 0.5rem 0.75rem !important;

  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  color: #0e3f7e !important;

  background: linear-gradient(
    90deg,
    rgba(0,193,150,.12),
    rgba(14,63,126,.05)
  );

  border-left: 4px solid #00c196 !important;
  border-radius: 8px;

  display: block !important;
  clear: both !important;
}

.als-locality-article h2.als-section-label .als-section-line{
  display:none !important;
}

.als-locality-article .entry h2.als-section-label span{
  color:#000 !important;
}

@media (min-width: 769px){
 .als-locality-richtext{
text-align: center;
}

	.als-locality-richtext .als-rich,
.als-locality-richtext p,
.als-locality-richtext h2,
.als-locality-richtext h3,
.als-locality-richtext h4,
.als-locality-richtext ul,
.als-locality-richtext ol{
    text-align:left;
}

  .als-locality-richtext .als-rich{
    display:block;
    width:100%;
  }

  .als-locality-richtext figure,
  .als-locality-richtext .wp-caption{
    display:inline-block;
    width:calc(50% - 0.65rem) !important;
    max-width:calc(50% - 2rem) !important;
    vertical-align:top;
    margin:0 1.25rem 1.25rem 0 !important;
  }

  .als-locality-richtext figure:nth-of-type(2n),
  .als-locality-richtext .wp-caption:nth-of-type(2n){
    margin-right:0 !important;
  }

  .als-locality-richtext img{
    width:100% !important;
    height:auto !important;
  }

  .als-locality-richtext p{
    display:block;
    clear:both;
    margin:0 0 1rem !important;
  }
}

@media (max-width: 768px){
  .als-locality-richtext figure,
  .als-locality-richtext .wp-caption{
    display:block;
    width:100% !important;
    max-width:100% !important;
    margin:0 0 1rem !important;
  }
}



.als-locality-richtext h3{
  margin: 2rem 0 1rem !important;
  padding: 0.5rem 0.75rem !important;

  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;

  color: #0e3f7e !important;

  background: rgba(14,63,126,.06) !important;
  border-left: 5px solid #0e3f7e !important;
  border-radius: 6px;

  clear: both;
}

.als-locality-richtext h4{
  margin: 1.5rem 0 0.75rem !important;
  padding: 0.35rem 0.75rem !important;

  font-size: 1.1rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;

  color: #0e3f7e !important;

  border-left: 3px solid #00c196 !important;
  background: rgba(0,193,150,.08) !important;
  border-radius: 4px;

  clear: both;
}

/* lien dans les fiches */

.als-high-value--media > a{
    display:inline-flex;
    align-items:center;
    gap:.45rem;

    margin:0 0 .8rem;
    padding:.45rem .9rem;

    color:var(--als-blue);
    background:linear-gradient(
        135deg,
        rgba(14,63,126,.05) 0%,
        rgba(0,193,150,.06) 100%
    );
    border:1px solid rgba(14,63,126,.15);
    border-radius:999px;

    font-size:.95rem;
    font-weight:600;
    text-decoration:none;

    transition:all .2s ease;
}

.als-high-value--media > a::before{
    content:"🌐";
}

.als-high-value--media > a:hover{
    color:var(--als-blue);
    background:linear-gradient(
        135deg,
        rgba(14,63,126,.12) 0%,
        rgba(0,193,150,.16) 100%
    );
    border-color:rgba(0,193,150,.35);
}



.als-locality-sharing {
    margin: 0 0 1.25rem;
}

.als-locality-sharing-title {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.als-locality-sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.als-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.8);
    color: inherit;

    font: inherit;
    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.als-share-button:hover,
.als-share-button:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.28);
    color: inherit;
}

.als-share-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.als-share-button i {
    font-size: 1rem;
    line-height: 1;
}

.als-share-button.als-share-copied i {
    display: none;
}

.als-share-button.als-share-copied::after {
    content: "✓";
    font-weight: 700;
}

.entry .als-locality-sharing .als-share-button {
    text-decoration: none;
}

.entry .als-locality-sharing .als-share-button,
.entry .als-locality-sharing .als-share-button:hover,
.entry .als-locality-sharing .als-share-button:focus {
    text-decoration: none;
}



@media (min-width: 769px){

  .als-locality-header-grid{
    align-items: stretch;
  }

  .als-locality-map-wrap{
    display: flex !important;
    align-self: stretch;

    flex: 0 0 500px;
    width: 500px;
    max-width: 500px;
  }

  .als-locality-map-wrap #als-locality-map{
    flex: 1 1 auto;
    width: 100%;
    height: auto !important;
    min-height: 25rem;
  }
}

.als-nearby-note {
    margin: 0 0 10px;
    font-size: 0.9em;
    color: #6b7280;
    line-height: 1.15;
}



/* météo */





/* =========================================================
   WIDGET MÉTÉO
   Graphique à gauche / informations à droite
   ========================================================= */


/* =========================================================
   VARIABLES
   DESKTOP PAR DÉFAUT
   ========================================================= */

.entry .als-weather-forecast {

    /* Textes généraux */
    --weather-text-size: 16px;
    --weather-title-size: 15px;

    /* Tiers droit */
    --weather-meta-size: 14px;
    --weather-summary-size: 14px;
    --weather-summary-value-size: 14px;

    /* Textes du graphique SVG */
    --weather-chart-temp-size: 14px;
    --weather-chart-axis-size: 14px;

    /* Icônes */
    --weather-chart-icon-size: 20px;
    --weather-meta-icon-size: 18px;
    --weather-day-icon-size: 24px;

    /* Prévisions 5 jours */
    --weather-day-name-size: 14px;
    --weather-day-temp-size: 14px;

    /* Source */
    --weather-source-size: 6px;
}


/* =========================================================
   NORMALISATION
   ========================================================= */

.entry .als-weather-forecast {
    position: relative;

    width: 100%;
    margin: 0;
    padding: 0;

    color: #34434c;
    font-family: inherit;
    font-size: var(--weather-text-size);
    line-height: 1.4;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.entry .als-weather-forecast *,
.entry .als-weather-forecast *::before,
.entry .als-weather-forecast *::after {
    box-sizing: border-box;
}

.entry .als-weather-forecast h3,
.entry .als-weather-forecast h4 {
    margin: 0;
    padding: 0;

    color: inherit;
    font-family: inherit;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: normal;
}

.entry .als-weather-forecast a {
    color: inherit;
    text-decoration: none;
    border-bottom: 0;
    box-shadow: none;
}

.entry .als-weather-forecast a:hover {
    color: #176b93;
    text-decoration: underline;
}

.entry .als-weather-forecast img,
.entry .als-weather-forecast svg {
    margin: 0;
    padding: 0;

    border: 0;
    box-shadow: none;
}


/* =========================================================
   CONTENEUR PRINCIPAL
   ========================================================= */

.entry .als-weather-large {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(190px, 1fr);

    grid-template-rows:
        auto
        auto
        auto
        auto
        auto;

    column-gap: 24px;
    row-gap: 0;

    width: 100%;
    margin: 0;
    padding: 0;

    overflow: visible;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


/* =========================================================
   TITRE DES PROCHAINES 24 HEURES
   ========================================================= */

.entry .als-weather-large
> .als-weather-section:not(.als-weather-section-days) {
    display: contents;
}

.entry .als-weather-large
> .als-weather-section:not(.als-weather-section-days)
> .als-weather-subtitle {
    grid-column: 1 / -1;
    grid-row: 1;

    margin: 0 0 10px;
}


/* =========================================================
   CONTENEUR DU GRAPHIQUE
   ========================================================= */

.entry .als-weather-large
> .als-weather-section:not(.als-weather-section-days)
> .als-weather-chart-wrap {
    display: contents;
}


/* =========================================================
   GRAPHIQUE PRINCIPAL
   ========================================================= */

.entry .als-weather-chart {
    grid-column: 1;
    grid-row: 2;

    display: block;

    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ICÔNES SOUS LE GRAPHIQUE
   ========================================================= */

.entry .als-weather-chart-icons {
    grid-column: 1;
    grid-row: 3;

    align-self: start;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;

    width: calc(100% - 48px);

    margin: -5px 6px 0 42px;
    padding: 0;
}

.entry .als-weather-chart-icon-item {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 36px;

    margin: 0;
    padding: 0;

    line-height: 1;
}

.entry .als-weather-chart-icon-item i {
    font-size: var(--weather-chart-icon-size);
    line-height: 1;
}


/* =========================================================
   BOX UNIQUE À DROITE
   ALTITUDE / LEVER / COUCHER / MIN / MAX
   ========================================================= */

.entry .als-weather-large-header {
    grid-column: 2;
    grid-row: 2 / 4;

    align-self: start;

    width: 100%;

    margin: 0;
    padding: 14px;

    background: #f4f7f8;
    border: 1px solid #dce4e8;
    border-radius: 10px;
    box-shadow: none;
}


/* =========================================================
   ALTITUDE / LEVER / COUCHER
   ========================================================= */

.entry .als-weather-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 10px;

    width: 100%;
    margin: 0;
    padding: 0;
}

.entry .als-weather-meta-item {
    display: flex;
    align-items: center;

    gap: 8px;

    width: 100%;
    min-height: 20px;

    margin: 0;
    padding: 0;

    color: #66747d;

    background: transparent;
    border: 0;
    border-radius: 0;

    font-size: var(--weather-meta-size);
    line-height: 1.25;
}

.entry .als-weather-meta-item i {
    flex: 0 0 22px;

    width: 22px;
    margin: 0;

    text-align: center;

    font-size: var(--weather-meta-icon-size);
    line-height: 1;
}


/* =========================================================
   MINIMUM / MAXIMUM
   DANS LA MÊME BOX
   ========================================================= */

.entry .als-weather-chart-summary {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    gap: 8px;

    width: 100%;

    margin: 12px 0 0;
    padding: 12px 0 0;

    color: #6c7981;
    background: transparent;

    border: 0;
    border-top: 1px solid #dce4e8;
    border-radius: 0;

    box-shadow: none;

    font-size: var(--weather-summary-size);
    line-height: 1.2;
}

.entry .als-weather-chart-summary > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;

    gap: 8px;

    width: 100%;

    margin: 0;
    padding: 0;

    color: inherit;

    background: transparent;
    border: 0;
    border-radius: 0;
}

.entry .als-weather-chart-summary strong {
    color: #34434c;

    font-size: var(--weather-summary-value-size);
    font-weight: 750;
}


/* =========================================================
   SECTIONS ET TITRES
   ========================================================= */

.entry .als-weather-section {
    margin: 14px 0 0;
    padding: 0;
}

.entry .als-weather-subtitle {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0 0 8px;
    padding: 0;

    color: #34434c;

    font-size: var(--weather-title-size);
    font-weight: 700;
    line-height: 1.25;
}

.entry .als-weather-subtitle::after {
    content: "";

    flex: 1 1 auto;

    height: 1px;

    background: #e1e7ea;
}


/* =========================================================
   GRILLE DU GRAPHIQUE
   ========================================================= */

.entry .als-weather-chart-grid {
    stroke: #dfe6e9;
    stroke-width: 1;
    stroke-dasharray: 3 5;
}

.entry .als-weather-chart-hour-line {
    stroke: rgba(70, 100, 115, 0.08);
    stroke-width: 1;
}


/* =========================================================
   COURBE DU GRAPHIQUE
   ========================================================= */

.entry .als-weather-chart-line {
    fill: none;

    stroke: #287aa5;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    filter: drop-shadow(
        0 2px 2px rgba(40, 122, 165, 0.18)
    );
}

.entry .als-weather-chart-area {
    fill: rgba(40, 122, 165, 0.09);
    stroke: none;
}

.entry .als-weather-chart-point {
    fill: #ffffff;

    stroke: #287aa5;
    stroke-width: 2;
}

.entry .als-weather-chart-temperature-label {
    fill: #263740;

    font-family: inherit;
    font-size: var(--weather-chart-temp-size);
    font-weight: 700;

    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 4px;
    stroke-linejoin: round;
}

.entry .als-weather-chart-axis-label,
.entry .als-weather-chart-time-label {
    fill: #718088;

    font-family: inherit;
    font-size: var(--weather-chart-axis-size);

    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 5px;
    stroke-linejoin: round;
}

.entry .als-weather-chart-axis-label {
    transform: translateX(-8px);
}

.entry .als-weather-chart-time-label {
    transform: translateY(2px);

    font-weight: 600;
}


/* =========================================================
   COULEURS DES ICÔNES FONT AWESOME
   ========================================================= */

.entry .als-weather-forecast .fa-sun,
.entry .als-weather-forecast .fa-sun-o,
.entry .als-weather-forecast .fa-sunrise {
    color: #e8a317;
}

.entry .als-weather-forecast .fa-sunset {
    color: #e47732;
}

.entry .als-weather-forecast .fa-moon,
.entry .als-weather-forecast .fa-moon-o {
    color: #586d9c;
}

.entry .als-weather-forecast .fa-cloud,
.entry .als-weather-forecast .fa-cloud-sun,
.entry .als-weather-forecast .fa-cloud-moon {
    color: #7f929e;
}

.entry .als-weather-forecast .fa-cloud-rain,
.entry .als-weather-forecast .fa-cloud-showers-heavy,
.entry .als-weather-forecast .fa-umbrella {
    color: #3785ae;
}

.entry .als-weather-forecast .fa-cloud-bolt,
.entry .als-weather-forecast .fa-bolt {
    color: #a172c2;
}

.entry .als-weather-forecast .fa-snowflake {
    color: #6aa9c8;
}

.entry .als-weather-forecast .fa-smog,
.entry .als-weather-forecast .fa-water {
    color: #8d9ba1;
}

.entry .als-weather-forecast .fa-wind {
    color: #55a69a;
}

.entry .als-weather-forecast .fa-temperature-half,
.entry .als-weather-forecast .fa-thermometer-half,
.entry .als-weather-forecast .fa-temperature-high {
    color: #d9604b;
}

.entry .als-weather-forecast .fa-mountain,
.entry .als-weather-forecast .fa-location-dot,
.entry .als-weather-forecast .fa-map-marker-alt {
    color: #65865a;
}


/* =========================================================
   BLOC DES CINQ PROCHAINS JOURS
   ========================================================= */

.entry .als-weather-section-days {
    grid-column: 1 / -1;
    grid-row: 4;

    width: 100%;

    margin: 20px 0 0;
    padding: 14px 16px 16px;

    background: #f4f7f8;
    border: 1px solid #dce4e8;
    border-radius: 10px;
    box-shadow: none;
}


/* =========================================================
   TITRE 5 JOURS
   ========================================================= */

.entry .als-weather-section-days
> .als-weather-subtitle {
    margin: 0 0 10px;
    padding: 0;
}


/* =========================================================
   GRILLE 5 JOURS
   ========================================================= */

.entry .als-weather-days {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 0;

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}


/* =========================================================
   JOUR
   ========================================================= */

.entry .als-weather-day {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 82px;

    margin: 0;
    padding: 5px;

    background: transparent;

    border: 0;
    border-right: 1px solid #dce4e8;

    border-radius: 0;
    box-shadow: none;

    text-align: center;

    transition: background-color 0.15s ease;
}

.entry .als-weather-day:last-child {
    border-right: 0;
}

.entry .als-weather-day:hover {
    transform: none;

    background: rgba(255, 255, 255, 0.55);

    box-shadow: none;
}


/* =========================================================
   NOM DU JOUR
   ========================================================= */

.entry .als-weather-day-name {
    margin: 0 0 3px;
    padding: 0;

    color: #68777f;

    font-size: var(--weather-day-name-size);
    font-weight: 700;
    line-height: 1.2;

    text-transform: capitalize;
}


/* =========================================================
   ICÔNE DU JOUR
   ========================================================= */

.entry .als-weather-day-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    margin: 0 0 3px;
    padding: 0;

    line-height: 1;
}

.entry .als-weather-day-icon i {
    font-size: var(--weather-day-icon-size);
    line-height: 1;
}


/* =========================================================
   TEMPÉRATURES DU JOUR
   ========================================================= */

.entry .als-weather-day-temperatures {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin: 0;
    padding: 0;

    font-size: var(--weather-day-temp-size);
    line-height: 1;
}

.entry .als-weather-day-min {
    color: #77858d;
}

.entry .als-weather-day-max {
    color: #283841;

    font-weight: 750;
}


/* =========================================================
   SOURCE
   ========================================================= */

.entry .als-weather-source {
    grid-column: 1 / -1;
    grid-row: 5;

    width: 100%;

    margin: 7px 0 0;
    padding: 0;

    color: #849097;

    font-size: var(--weather-source-size);
    line-height: 1.15;

    text-align: right;
}

.entry .als-weather-source a {
    color: #52788b;
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

    .entry .als-weather-forecast {

        /* Textes généraux */
        --weather-text-size: 15px;
        --weather-title-size: 15px;

        /* Tiers droit */
        --weather-meta-size: 14px;
        --weather-summary-size: 14px;
        --weather-summary-value-size: 16px;

        /* Graphique */
        --weather-chart-temp-size: 19px;
        --weather-chart-axis-size: 19px;

        /* Icônes */
        --weather-chart-icon-size: 30px;
        --weather-meta-icon-size: 17px;
        --weather-day-icon-size: 30px;

        /* Prévisions 5 jours */
        --weather-day-name-size: 14px;
        --weather-day-temp-size: 14px;

        /* Source */
        --weather-source-size: 11px;
    }

    .entry .als-weather-large {
        grid-template-columns:
            minmax(0, 2fr)
            minmax(165px, 1fr);

        column-gap: 18px;
    }

    .entry .als-weather-large-header {
        padding: 12px;
    }
}



/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .entry .als-weather-forecast {

         /* Textes généraux */
        --weather-text-size: 16px;
        --weather-title-size: 16px;

        /* Box infos */
        --weather-meta-size: 15px;
        --weather-summary-size: 15px;
        --weather-summary-value-size: 17px;

        /* Graphique
           Valeurs volontairement élevées car le SVG
           est réduit pour tenir sur l'écran */
        --weather-chart-temp-size: 28px;
        --weather-chart-axis-size: 26px;

        /* Icônes */
        --weather-chart-icon-size: 28px;
        --weather-meta-icon-size: 20px;
        --weather-day-icon-size: 28px;

        /* Prévisions 5 jours */
        --weather-day-name-size: 14px;
        --weather-day-temp-size: 14px;

        /* Source */
        --weather-source-size: 11px;
    }


    /* ---------------------------------------------------------
       CONTENEUR PRINCIPAL
       --------------------------------------------------------- */

    .entry .als-weather-large {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;

        overflow: visible;
    }


    /* ---------------------------------------------------------
       BLOC 24 HEURES
       --------------------------------------------------------- */

    .entry .als-weather-large
    > .als-weather-section:not(.als-weather-section-days) {
        display: block;
        order: 1;

        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;
    }


    /* ---------------------------------------------------------
       CONTENEUR DU GRAPHIQUE
       Aucun scroll horizontal
       --------------------------------------------------------- */

    .entry .als-weather-large
    > .als-weather-section:not(.als-weather-section-days)
    > .als-weather-chart-wrap {
        display: block;

        width: 100%;
        max-width: 100%;

        margin: 0;
        padding: 0;

        overflow: visible;
    }


    /* ---------------------------------------------------------
       GRAPHIQUE
       S'adapte à la largeur disponible
       --------------------------------------------------------- */

    .entry .als-weather-chart {
        display: block;

        width: 100%;
        max-width: 100%;
        height: auto;

        margin: 0;
        padding: 0;
    }


    /* ---------------------------------------------------------
       ICÔNES SOUS LE GRAPHIQUE
       --------------------------------------------------------- */

    .entry .als-weather-chart-icons {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));

        width: calc(100% - 38px);
        max-width: none;

        margin: 0 6px 0 42px;
        padding: 0;
    }

    .entry .als-weather-chart-icon-item {
        min-width: 0;
        min-height: 34px;
    }


    /* ---------------------------------------------------------
       BOX INFOS UNIQUE
       --------------------------------------------------------- */

    .entry .als-weather-large-header {
        order: 2;

        width: 100%;

        margin: 14px 0 0;
        padding: 12px;

        background: #f4f7f8;

        border: 1px solid #dce4e8;
        border-radius: 8px;
    }


    /* ---------------------------------------------------------
       ALTITUDE / LEVER / COUCHER
       --------------------------------------------------------- */

    .entry .als-weather-meta {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 10px;

        width: 100%;
    }

    .entry .als-weather-meta-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 5px;

        width: 100%;
        min-height: 50px;

        text-align: center;

        font-size: var(--weather-meta-size);
        line-height: 1.25;
    }

    .entry .als-weather-meta-item i {
        flex: none;

        width: auto;

        font-size: var(--weather-meta-icon-size);
    }


    /* ---------------------------------------------------------
       MIN / MAX DANS LA MÊME BOX
       --------------------------------------------------------- */

    .entry .als-weather-chart-summary {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        gap: 12px;

        width: 100%;

        margin: 10px 0 0;
        padding: 10px 0 0;

        background: transparent;

        border: 0;
        border-top: 1px solid #dce4e8;
        border-radius: 0;

        font-size: var(--weather-summary-size);
        line-height: 1.2;
    }

    .entry .als-weather-chart-summary > span {
        display: flex;
        align-items: center;
        justify-content: flex-start;

        gap: 5px;

        width: auto;

        margin: 0;
        padding: 0;
    }

    .entry .als-weather-chart-summary strong {
        font-size: var(--weather-summary-value-size);
    }


    /* ---------------------------------------------------------
       5 JOURS
       --------------------------------------------------------- */

    .entry .als-weather-section-days {
        order: 3;

        width: 100%;

        margin: 20px 0 0;
        padding: 12px 10px;

        border-radius: 8px;
    }

    .entry .als-weather-days {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));

        width: 100%;

        margin: 0;
        padding: 0;

        overflow: visible;
    }

    .entry .als-weather-day {
        min-width: 0;
        min-height: 75px;

        padding: 4px;
    }

    .entry .als-weather-day-name {
        font-size: var(--weather-day-name-size);
    }

    .entry .als-weather-day-icon i {
        font-size: var(--weather-day-icon-size);
    }

    .entry .als-weather-day-temperatures {
        gap: 4px;

        font-size: var(--weather-day-temp-size);
    }


    /* ---------------------------------------------------------
       SOURCE
       --------------------------------------------------------- */

    .entry .als-weather-source {
        order: 4;

        width: 100%;

        margin-top: 7px;

        text-align: left;
    }
}


/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .entry .als-weather-forecast {

       /* Textes généraux */
        --weather-text-size: 16px;
        --weather-title-size: 16px;

        /* Box infos */
        --weather-meta-size: 14px;
        --weather-summary-size: 14px;
        --weather-summary-value-size: 16px;

        /* Graphique */
        --weather-chart-temp-size: 30px;
        --weather-chart-axis-size: 28px;

        /* Icônes */
        --weather-chart-icon-size: 22px;
        --weather-meta-icon-size: 19px;
        --weather-day-icon-size: 27px;

        /* Prévisions 5 jours */
        --weather-day-name-size: 13px;
        --weather-day-temp-size: 13px;

        /* Source */
        --weather-source-size: 11px;
    }


    /* ---------------------------------------------------------
       GRAPHIQUE
       --------------------------------------------------------- */

    .entry .als-weather-chart {
        width: 100%;
        max-width: 100%;
        height: auto;
    }


    /* ---------------------------------------------------------
       ICÔNES DU GRAPHIQUE
       --------------------------------------------------------- */

    .entry .als-weather-chart-icons {
        width: calc(100% - 38px);

        margin: 0 6px 0 32px;
    }


    /* ---------------------------------------------------------
       BOX INFOS
       --------------------------------------------------------- */

    .entry .als-weather-large-header {
        margin-top: 12px;
        padding: 10px;
    }


    /* ---------------------------------------------------------
       ALTITUDE / LEVER / COUCHER
       --------------------------------------------------------- */

    .entry .als-weather-meta {
        gap: 6px;
    }

    .entry .als-weather-meta-item {
        min-height: 46px;
    }


    /* ---------------------------------------------------------
       MIN / MAX
       --------------------------------------------------------- */

    .entry .als-weather-chart-summary {
        margin-top: 9px;
        padding-top: 9px;
    }


    /* ---------------------------------------------------------
       5 JOURS
       --------------------------------------------------------- */

    .entry .als-weather-section-days {
        margin-top: 18px;

        padding: 10px 6px;
    }

    .entry .als-weather-section-days
    > .als-weather-subtitle {
        margin-bottom: 8px;
    }

    .entry .als-weather-day {
        min-width: 0;
        min-height: 70px;

        padding: 3px 2px;
    }

    .entry .als-weather-day-temperatures {
        gap: 3px;
    }
}



@media (min-width: 769px){

    /* Uniquement la première image du bloc, si elle est suivie d'un paragraphe */
    .als-locality-richtext > figure:first-of-type:has(+ p){
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.25rem 0 !important;
    }

    .als-locality-richtext > figure:first-of-type:has(+ p) img{
        width: 100% !important;
        height: auto !important;
    }
}





.als-mastodon-admin {
    margin: 20px 0;
    padding: 16px;

    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;

    background: #f7f7f7;
}

.als-mastodon-admin h3 {
    margin-top: 0;
}

.als-mastodon-text {
    width: 100%;
    box-sizing: border-box;

    padding: 10px;
}

.als-mastodon-preview {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 12px;
}

.als-mastodon-preview img {
    width: 80px;
    height: auto;

    border-radius: 4px;
}

.als-mastodon-preview span {
    font-size: 0.9rem;
}

.als-mastodon-success,
.als-mastodon-error {
    margin-bottom: 12px;
    padding: 10px;

    border-radius: 4px;
}

.als-mastodon-success {
    background: #e8f5e9;
}

.als-mastodon-error {
    background: #fdecec;
}

/* =========================================================
   WIDGET / SHORTCODE ATLAS — THÈMES
   ========================================================= */

.als-widget-themes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;

    /* Même marge horizontale que le reste du bloc */
    margin: 10px 30px 14px;
}

.als-widget-theme-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    color: #fff;
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

.als-widget-theme-link i {
    margin: 0;
    padding: 0;

    font-size: 1.15rem;
    line-height: 1;

    color: #fff;
}

.als-widget-theme-link:hover,
.als-widget-theme-link:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.65);

    color: #fff;
    text-decoration: none;

    opacity: 1;
}

.als-widget-theme-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}