/* Composants « esprit du guide » : couverture, en-têtes de rubrique, polaroïds, avions en papier, cartes intégrées. */

/* ---------- accueil : la couverture, une vraie photo de la ville ---------- */
.hero { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hero__cover { position: relative; margin: 0 calc(-1 * var(--gutter)); height: clamp(340px, 92vw, 460px); overflow: hidden; background: var(--navy); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 74% 55%; transform-origin: 74% 55%; animation: cover-drift 26s ease-in-out infinite alternate; }
.hero__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 24 40 / 35%) 0%, rgb(20 24 40 / 0%) 32%, rgb(20 24 40 / 10%) 55%, rgb(20 24 40 / 72%) 100%); }
.hero__handle { position: absolute; z-index: 1; top: 10px; inset-inline-start: var(--gutter); min-height: 44px; display: inline-flex; align-items: center; color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; text-shadow: 0 1px 8px rgb(0 0 0 / 50%); }
.hero__titles { position: absolute; z-index: 1; inset-inline: var(--gutter) calc(var(--gutter) + 96px); bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.hero__kicker { color: var(--sand); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 1px 8px rgb(0 0 0 / 50%); }
.hero__title {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.4rem, 12.5vw, 3.9rem); line-height: 0.9; letter-spacing: -0.02em;
  color: var(--white); text-shadow: 0 2px 18px rgb(0 0 0 / 45%); text-wrap: balance;
}
.hero__logo {
  position: absolute; z-index: 1; inset-inline-end: var(--gutter); bottom: 20px; width: 84px; height: 84px;
  border-radius: 50%; border: 4px solid var(--white); box-shadow: var(--shadow-lift);
}
.hero__by { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--teal-deep); font-size: 15px; font-weight: 700; text-decoration: none; }
.hero__face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sea); }
.hero__tagline { color: var(--text-muted); text-wrap: pretty; }
@keyframes cover-drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.12) translateX(-2%); } }

.doodle { position: absolute; color: var(--charcoal); pointer-events: none; }
.doodle .icon { stroke-width: 1.3; }
.doodle--curl { position: static; color: var(--sea); }
.doodle--curl .icon { stroke-width: 2.2; }

/* ---------- encart « Tes contacts » : la mairie en photo, voile bleu nuit ---------- */
.feature {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; padding: 22px 16px; overflow: hidden;
  border-radius: var(--radius-card); background: var(--navy); color: var(--white); text-decoration: none;
  box-shadow: var(--shadow-lift);
}
.feature__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.feature__icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--sea); color: var(--white); }
.feature__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-inline-end: 36px; }
.feature__kicker { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--caramel); color: var(--charcoal); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.feature__title { font-weight: 900; font-size: 1.2rem; line-height: 1.15; text-transform: uppercase; }
.feature__text { font-size: 14px; opacity: 0.88; }
.feature__plane { position: absolute; inset-inline-end: 10px; top: 8px; opacity: 0.55; }

/* ---------- en-tête de rubrique : titre posé sur la photo ---------- */
.page-head { position: relative; margin: 0 calc(-1 * var(--gutter)); display: flex; flex-direction: column; gap: 10px; }
.banner { position: relative; height: 220px; overflow: hidden; background: var(--cat); }
.banner__img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(1.05); }
.banner--plain { height: 190px; }
.banner__motif { position: absolute; inset: 0; color: var(--white); }
.banner__motif .icon { position: absolute; opacity: 0.16; }
.banner__motif .icon:nth-child(1) { inset-inline-end: -12px; top: 6px; opacity: 0.22; }
.banner__motif .icon:nth-child(2) { inset-inline-end: 118px; top: 30px; }
.banner__motif .icon:nth-child(3) { inset-inline-end: 206px; top: 12px; }
.banner__handle { position: absolute; top: 18px; inset-inline-end: var(--gutter); color: var(--white); font-size: 12.5px; font-weight: 600; text-shadow: 0 1px 6px rgb(0 0 0 / 45%); }
.banner__title {
  position: absolute; inset: 64px calc(var(--gutter) + 52px) 16px var(--gutter);
  display: flex; align-items: flex-end;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.75rem, 8.6vw, 2.7rem); line-height: 0.92; letter-spacing: -0.015em;
  color: var(--white); text-shadow: 0 2px 14px rgb(0 0 0 / 40%); text-wrap: balance; overflow-wrap: anywhere;
}
.banner .doodle--plane { inset-inline-end: 18px; bottom: 16px; color: var(--white); opacity: 0.9; }
[dir="rtl"] .doodle--plane .icon { transform: scaleX(-1); }
.page-head__kicker { padding: 0 var(--gutter); color: var(--charcoal); font-size: 14px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }

.back {
  position: absolute; top: 12px; inset-inline-start: var(--gutter); z-index: 2;
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.back--inline { position: static; flex: none; }
[dir="rtl"] .back .icon { transform: scaleX(-1); }
.page-head__text { padding: 0 var(--gutter); }
.page-head__title { font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.3rem); font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--title); text-wrap: balance; }
.page-head__text .page-head__kicker { padding: 0; color: var(--cat); }
.page-head--bare { margin: 0; padding-top: 8px; flex-direction: row; align-items: center; gap: 12px; }

/* ---------- touches du guide sur les éléments existants ---------- */
.lead { font-size: 16px; text-wrap: pretty; }
.card__eyebrow { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--caramel-soft); color: var(--charcoal); letter-spacing: 0.03em; }
.card__eyebrow--strong { background: transparent; padding: 0; color: var(--accent); }
.block__title--pill { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--caramel); color: var(--charcoal); font-size: 1.05rem; }
.tile__icon { border-radius: 50%; }
.tile__title { font-weight: 800; }
.footer { border-top: 4px solid var(--sea); padding-top: 14px; }

/* ---------- cartes intégrées ---------- */
.mini-map { display: flex; flex-direction: column; gap: 10px; }
.mini-map__frame { height: 260px; overflow: hidden; border: 6px solid var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-lift); }
.mini-map__frame--tall { height: 420px; }
.map--mini { height: 100%; }
.btn--map { align-self: flex-start; border-color: var(--sea); color: var(--teal-deep); }
.map-popup__links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.leaflet-tooltip.map-label { padding: 2px 8px; border: 0; border-radius: 999px; background: var(--navy); color: var(--white); font-family: var(--font); font-size: 10.5px; font-weight: 700; box-shadow: none; }
.leaflet-tooltip.map-label::before { display: none; }

/* ---------- légende de la carte ADG ---------- */
.chips--legend .chip:not(:first-child)::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); flex: none; }

.feature-link {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
  border-radius: var(--radius-card); background: var(--blue-light); color: var(--navy); font-weight: 700; text-decoration: none;
}

/* ---------- quartiers ---------- */
.quartier__row { display: flex; flex-direction: column; gap: 2px; }
.quartier__label { color: var(--teal-deep); font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.quartier__text { font-size: 15px; text-wrap: pretty; }
.quartier__places summary { min-height: 44px; display: flex; align-items: center; color: var(--info); font-size: 15px; font-weight: 600; cursor: pointer; }
.quartier__places ul { display: flex; flex-direction: column; padding-bottom: 6px; }
.quartier__places a { display: flex; align-items: center; min-height: 40px; border-top: 1px solid var(--border); color: var(--text); font-size: 15px; text-decoration: none; }

@media (min-width: 520px) {
  .banner { height: 250px; }
  .mini-map__frame { height: 320px; }
  .mini-map__frame--tall { height: 480px; }
}

/* onglet spécial ADG : couleur du guide */
.tab--adg { color: var(--teal-deep); }
.tab--adg.tab--on { background: var(--sea-soft); }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
