/* Le Relais — entraide de proximité (s'appuie sur ../../styles.css) */
.corner-logo { position: fixed; top: 10px; left: 10px; z-index: 1200; width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(11,31,61,0.15); display: grid; place-items: center; transition: transform .2s; }
.corner-logo:hover { transform: scale(1.06); }
.corner-logo img { width: 44px; height: 44px; }
.rl-header { position: sticky; top: 0; z-index: 1100; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.rl-header .row { display: flex; align-items: center; gap: 16px; height: 76px; padding-left: 64px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs .sep { color: var(--line); }
.crumbs .here { color: var(--navy-ink); }
.rl-header .lang { margin-left: auto; }

.sos { background: #fdecec; border-bottom: 1px solid #f3c9c9; color: #7c1d1d; font-size: 0.92rem; }
.sos .container { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
.sos b { font-size: 1rem; }
.sos a { color: #7c1d1d; font-weight: 800; }

.rl-hero { padding: 34px 0 10px; }
.rl-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.rl-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; color: var(--navy-ink); }
.rl-hero h1 em { font-style: normal; color: var(--green-dark); }
.rl-hero .lead { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 560px; }
.rl-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Visuel : cercles de proximité */
.rings { position: relative; aspect-ratio: 1; max-width: 420px; margin-left: auto; width: 100%; }
.rings i { position: absolute; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 2px dashed; }
.rings i:nth-child(1) { width: 100%; height: 100%; border-color: rgba(14,63,132,0.18); background: rgba(14,63,132,0.03); }
.rings i:nth-child(2) { width: 66%; height: 66%; border-color: rgba(14,63,132,0.3); background: rgba(14,63,132,0.04); }
.rings i:nth-child(3) { width: 33%; height: 33%; border-color: rgba(94,182,45,0.7); background: rgba(94,182,45,0.1); border-style: solid; }
.rings .me { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #d64545; box-shadow: 0 0 0 6px rgba(214,69,69,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 16px rgba(214,69,69,0.05); } }
.rings .nb { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.rings .lbl { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.75rem; font-weight: 800; color: var(--navy); background: #fff; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.rings .center-hub { position: absolute; right: 2%; top: 4%; background: var(--navy-ink); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 8px 10px; border-radius: 12px; line-height: 1.3; }
.rings .center-hub b { color: #9fd67e; display: block; }

/* Étapes du relais */
.rl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 36px 0 10px; }
.rl-steps div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: relative; }
.rl-steps .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 0.85rem; }
.rl-steps div:nth-child(2) .n { background: var(--green); color: #0b2a05; }
.rl-steps div:nth-child(3) .n { background: var(--navy-ink); }
.rl-steps div:nth-child(4) .n { background: var(--green-dark); }
.rl-steps strong { display: block; margin: 10px 0 4px; color: var(--navy-ink); font-size: 1.02rem; }
.rl-steps p { font-size: 0.9rem; color: var(--muted); }

/* Formulaire */
.rl-wrap { padding: 30px 0 70px; }
.rl-tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.rl-tabs button { font: 700 0.95rem var(--font); border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.rl-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.rl-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.rl-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.rl-card h2 { font-size: 1.3rem; color: var(--navy-ink); margin-bottom: 4px; }
.rl-card .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 16px; }
.rl-step-title { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy-ink); margin: 26px 0 12px; font-size: 1.05rem; line-height: 1.3; }
.rl-step-title > span:first-child { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.85rem; font-weight: 800; }
.rl-step-title > span:last-child { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-step-title::after { content: ""; flex: 1 1 20px; height: 1px; background: var(--line); margin-left: 4px; }

/* Choix des besoins : grille de tuiles, état sélectionné très lisible */
.chips-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chips-pick label { cursor: pointer; position: relative; display: block; }
.chips-pick input { position: absolute; opacity: 0; pointer-events: none; }
.chips-pick span { display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; font-size: 0.92rem; line-height: 1.25; color: var(--navy-ink); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.chips-pick span::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid #b8c3d3; background: #fff; transition: all .15s; }
.chips-pick label:hover span { border-color: var(--navy); }
.chips-pick input:checked + span { border-color: var(--navy); background: #eef3fb; box-shadow: inset 0 0 0 1px var(--navy); }
.chips-pick input:checked + span::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--navy); }
.chips-pick input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

/* Urgence */
.urg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.urg label { cursor: pointer; position: relative; display: block; }
.urg input { position: absolute; opacity: 0; }
.urg span { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 8px; font-weight: 700; font-size: 0.95rem; line-height: 1.25; color: var(--navy-ink); background: #fff; transition: all .15s; height: 100%; }
.urg label:hover span { border-color: var(--navy); }
.urg small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.urg input:checked + span { border-color: var(--green-dark); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-dark); }
.urg input[value^="Urgent"] + span { color: #9b2c2c; }
.urg input[value^="Urgent"]:checked + span { border-color: #d64545; background: #fdecec; color: #7c1d1d; box-shadow: inset 0 0 0 1px #d64545; }
.urg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.loc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.loc-row .btn { white-space: nowrap; min-height: 48px; }
.loc-row .field input { min-height: 48px; }
.contact-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }
.contact-row .field span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-status { margin-top: 10px; font-size: 0.9rem; font-weight: 600; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--navy-ink); display: none; }
.loc-status.show { display: block; }
.loc-status.ok { background: var(--green-soft); color: #2c5f0f; }
.loc-status.err { background: #fff4e0; color: #7a4b00; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: #34425a; margin: 14px 0; }
.consent input { margin-top: 3px; accent-color: var(--navy); width: 18px; height: 18px; flex-shrink: 0; }
.rl-status { margin-top: 12px; font-weight: 600; font-size: 0.94rem; padding: 12px 14px; border-radius: 12px; display: none; line-height: 1.45; }
.rl-status.show { display: block; }
.rl-status.ok { background: var(--green-soft); color: #2c5f0f; }
.rl-status.err { background: #fff4e0; color: #7a4b00; }
.rl-status.info { background: var(--bg); color: var(--navy-ink); }

/* Carte */
.map-card { position: sticky; top: 92px; padding: 0; overflow: hidden; }
#map { height: 420px; background: #e8eef4; }
.map-legend { padding: 14px 18px; display: grid; gap: 8px; font-size: 0.86rem; color: #34425a; border-top: 1px solid var(--line); }
.map-legend div { display: flex; align-items: center; gap: 10px; }
.map-legend i { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.map-legend .privacy { background: var(--bg); border-radius: 12px; padding: 10px 12px; color: var(--navy-ink); font-weight: 600; }
.map-empty { height: 420px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }

/* Confirmation / ticket */
.ticket { display: none; text-align: center; padding: 30px 20px; }
.ticket.show { display: block; }
.ticket .ref { display: inline-block; font: 800 1.4rem/1 ui-monospace, monospace; letter-spacing: 0.06em; background: var(--navy-ink); color: #fff; padding: 12px 18px; border-radius: 12px; margin: 14px 0; }
.ticket h2 { color: var(--navy-ink); }
.ticket p { color: var(--muted); max-width: 440px; margin: 0 auto 10px; }

.rl-charter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.rl-charter div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.rl-charter strong { color: var(--navy-ink); display: block; margin-bottom: 4px; }
.rl-charter p { font-size: 0.9rem; color: var(--muted); }

@media (max-width: 960px) {
  .rl-hero-grid, .rl-grid { grid-template-columns: 1fr; }
  .rings { max-width: 300px; margin: 0 auto; }
  .map-card { position: static; }
  .rl-steps { grid-template-columns: 1fr 1fr; }
  .contact-row { grid-template-columns: 1fr 1fr; }
  .contact-row .field:last-child { grid-column: 1 / -1; }
  .rl-charter { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .rl-header .row { height: 70px; padding-left: 58px; }
  .corner-logo { width: 48px; height: 48px; top: 11px; left: 8px; border-radius: 13px; }
  .corner-logo img { width: 38px; height: 38px; }
  .crumbs .hide-sm { display: none; }
  .rl-steps { grid-template-columns: 1fr; }
  .urg { grid-template-columns: 1fr; }
  .loc-row { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .chips-pick { grid-template-columns: 1fr 1fr; }
  .rl-step-title > span:last-child { white-space: normal; }
  #map, .map-empty { height: 300px; }
}
