:root {
  --eizo-teal: #007a94;
  --eizo-teal-dark: #004e5f;
  --eizo-teal-mid: #006880;
  --eizo-teal-light: #e8f4f7;
  --eizo-teal-pale: #f2f9fb;
  --text: #152029;
  --text-muted: #5a6b78;
  --text-light: #8a97a5;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --border: #dde5eb;
  --shadow-sm: 0 1px 2px rgba(0, 50, 70, 0.05), 0 2px 8px rgba(0, 50, 70, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 50, 70, 0.04), 0 10px 24px rgba(0, 50, 70, 0.07);
  --shadow-lg: 0 8px 32px rgba(0, 40, 60, 0.1);
  --radius: 10px;
  --radius-sm: 7px;
  --transition: 0.22s ease;
  --focus-ring: 0 0 0 3px rgba(0, 122, 148, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

.logo,
.hero-mark,
.footer-logo {
  max-width: none;
}

html {
  font-size: clamp(15px, 2.8vw, 16.5px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

a {
  color: var(--eizo-teal);
  text-decoration: none;
  transition: color var(--transition), text-decoration-color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--eizo-teal-dark);
}

.logo-link {
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}

.logo-link:hover {
  opacity: 0.88;
}

/* ── Header ── */

.header {
  background: var(--bg);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ── Bandeau fermeté annuelle ── */

.sav-closure-banner {
  position: sticky;
  top: 60px;
  z-index: 99;
  overflow: hidden;
  height: 40px;
  background: #0b4f60;
  border-bottom: 2px solid #f0a202;
}

.sav-closure-banner__track {
  display: flex;
  width: max-content;
  align-items: center;
  height: 100%;
  gap: 4rem;
  animation: sav-closure-scroll 45s linear infinite;
}

.sav-closure-banner__text {
  display: inline-block;
  flex-shrink: 0;
  padding: 0 1rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
}

@keyframes sav-closure-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sav-closure-banner:hover .sav-closure-banner__track {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .sav-closure-banner {
    top: 52px;
    height: 38px;
  }

  .sav-closure-banner__text {
    font-size: 0.8rem;
  }
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.header-tagline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  padding-left: 14px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.badge-official {
  flex-shrink: 0;
  color: var(--eizo-teal);
}

.logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── Statut horaires (ouvert / fermé) ── */

.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.hours-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hours-status--open .hours-status-dot {
  background: #1a9e4a;
  box-shadow: 0 0 0 2px rgba(26, 158, 74, 0.22);
}

.hours-status--open .hours-status-label {
  color: #1a7a42;
}

.hours-status--closed .hours-status-dot {
  background: #c0392b;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.18);
}

.hours-status--closed .hours-status-label {
  color: #a83226;
}

.hours-status-sep {
  color: var(--text-light);
  font-weight: 400;
}

.hours-status-detail {
  font-weight: 500;
  color: var(--text-muted);
}

.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-item--hours .contact-plain {
  font-size: 11px;
}

/* ── Hero ── */

.hero {
  padding: 2px 0 12px;
  margin-bottom: 2px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hero-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hero-mark {
  display: block;
  height: clamp(56px, 11vw, 84px);
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.hero h1 {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
  line-height: 1.25;
  color: var(--text);
}

.hero-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.5;
  font-weight: 400;
}

/* ── Home layout ── */

.view-panel:not(.view-hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

#view-home {
  display: flex;
  flex-direction: column;
}

.container--home {
  padding: 10px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.home-zone--actions {
  background: var(--surface);
  border: 1px solid #c5dde5;
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.home-zone--info {
  padding-top: 0;
}

.zone-title {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.zone-title--actions {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eizo-teal-dark);
}

.zone-title--info {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 6px;
  padding-bottom: 0;
  border-bottom: none;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.home-bottom .info-panel,
.home-bottom .contact-panel {
  height: 100%;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgba(13, 48, 62, 0.07);
  box-shadow: none;
  background: var(--surface);
}

/* ── Panneaux modernes (accueil) ── */

.panel-head {
  margin-bottom: 4px;
}

.panel-head--sub {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.panel-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
}

.info-links {
  list-style: none;
}

.info-link {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 4px;
  margin: 0 -4px;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}

.info-link:hover {
  background: rgba(0, 122, 148, 0.05);
}

.info-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.info-link--inline {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.info-link--inline:hover {
  border-radius: 7px;
}

.info-link-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--eizo-teal-pale);
  color: var(--eizo-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-link-icon svg {
  width: 13px;
  height: 13px;
}

.info-link-main {
  min-width: 0;
}

.info-link-title {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.info-link-desc {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.25;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-link-meta {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--eizo-teal);
  opacity: 0.65;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 122, 148, 0.07);
}

.info-link:hover .info-link-meta {
  opacity: 1;
}

.info-link-arrow {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}

.info-link:hover .info-link-arrow {
  color: var(--eizo-teal);
  transform: translateX(2px);
}

.contact-dl {
  margin: 0;
}

.contact-dl-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: start;
  gap: 6px;
  padding: 4px 0;
}

.contact-dl-row + .contact-dl-row {
  border-top: 1px solid rgba(221, 229, 235, 0.7);
}

.contact-dl dt {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding-top: 2px;
}

.contact-dl dd {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
}

.contact-dl dd a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.contact-dl-row--mail dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}

.contact-mail-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--eizo-teal-dark);
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
}

.contact-mail-link:hover {
  color: var(--eizo-teal);
  text-decoration: underline;
}

.contact-mail-role {
  display: inline;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
}

.contact-hours-text {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.contact-hours-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-status-muted {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
}

.contact-status-muted .hours-status-dot {
  width: 5px;
  height: 5px;
  box-shadow: none;
}

.contact-status-muted.hours-status--open .hours-status-dot {
  background: #6db88a;
}

.contact-status-muted.hours-status--closed .hours-status-dot {
  background: #b8c2ca;
}

.contact-status-muted.hours-status--open .hours-status-label,
.contact-status-muted.hours-status--closed .hours-status-label,
.contact-status-muted #contact-hours-label {
  color: var(--text-light);
  font-weight: 500;
}

.contact-phone-link {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  transition: opacity var(--transition), transform var(--transition);
}

.contact-phone-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.contact-phone-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.contact-phone-image {
  display: block;
  width: min(100%, 220px);
  height: auto;
  border-radius: 6px;
}

.contact-phone {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.contact-tarif-inline {
  display: block;
  font-size: 9.5px;
  color: var(--text-light);
  margin-top: 1px;
}

/* ── Bloc infos + ressources (legacy) ── */

.info-card {
  padding: 14px 16px;
}

.info-block-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.info-block-title--sub {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.link-list {
  list-style: none;
}

.link-list li + li {
  border-top: 1px solid var(--border);
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 4px;
  margin: 0 -4px;
  border-radius: 5px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.link-list a:hover {
  background: rgba(0, 122, 148, 0.05);
}

.link-list a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.link-list-text {
  flex: 1;
  min-width: 0;
}

.link-list-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.link-list-text small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.link-list-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--eizo-teal);
  opacity: 0.7;
  white-space: nowrap;
}

.link-list a:hover .link-list-badge {
  opacity: 1;
}

.link-list-chevron {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1;
}

.link-list a:hover .link-list-chevron {
  color: var(--eizo-teal);
}

.home-bottom .card {
  border-color: var(--border);
  background: var(--surface);
}

/* ── Layout ── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  flex: 1;
  width: 100%;
}

.section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 8px;
}

/* ── Main ── */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── CTA cards ── */

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-height: 72px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--eizo-teal);
  background: var(--eizo-teal-pale);
  color: var(--text);
}

.cta-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--eizo-teal);
}

.cta-card--featured {
  border-color: #a8cdd8;
  background: linear-gradient(135deg, #f8fdfe 0%, #ffffff 100%);
  box-shadow: var(--shadow-md);
}

.cta-card--featured:hover {
  border-color: var(--eizo-teal);
  background: linear-gradient(135deg, #eef9fc 0%, #ffffff 100%);
}

.cta-card--tall {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-height: 100px;
  padding: 14px 16px;
  border-radius: 10px;
  position: relative;
  border-width: 1px;
}

.cta-card--tall .cta-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.cta-card--tall .cta-icon svg {
  width: 21px;
  height: 21px;
}

.cta-card--tall .cta-text {
  flex: 1;
  padding-right: 24px;
}

.cta-card--tall .cta-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-card--tall .cta-text small {
  font-size: 12px;
  line-height: 1.35;
}

.cta-card--tall .cta-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
}

.cta-card--tall.cta-card--featured {
  min-height: 104px;
  border-width: 1.5px;
  box-shadow: var(--shadow-md);
}

.cta-card--wide {
  min-height: 84px;
  padding: 20px 22px;
  gap: 16px;
  border-radius: 12px;
}

.cta-card--wide .cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
}

.cta-card--wide .cta-icon svg {
  width: 26px;
  height: 26px;
}

.cta-card--wide .cta-text strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-card--wide .cta-text small {
  font-size: 13px;
}

.cta-card--wide .cta-arrow {
  width: 22px;
  height: 22px;
}

.cta-card--wide.cta-card--featured {
  min-height: 92px;
  padding: 22px 24px;
  border-width: 1.5px;
}

.cta-card--primary .cta-icon {
  background: var(--eizo-teal-light);
  color: var(--eizo-teal);
}

.cta-card--featured .cta-icon {
  background: var(--eizo-teal);
  color: #fff;
}

.cta-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon svg {
  width: 22px;
  height: 22px;
}

.cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cta-text strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta-text small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}

.cta-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--eizo-teal);
  opacity: 0.55;
  transition: transform var(--transition), color var(--transition), opacity var(--transition);
}

.cta-card:hover .cta-arrow {
  transform: translateX(4px);
  color: var(--eizo-teal-dark);
  opacity: 1;
}

/* ── Help tip ── */

.help-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 11px;
  background: var(--eizo-teal-pale);
  border: 1px solid #d4e8ee;
  border-radius: var(--radius-sm);
}

.help-tip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--eizo-teal);
  margin-top: 1px;
}

.help-tip p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Tabs (infos + ressources) ── */

.tabs-card {
  padding: 0;
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.tab-btn {
  flex: 1;
  padding: 7px 8px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--eizo-teal);
  background: var(--eizo-teal-pale);
}

.tab-btn--active {
  color: var(--eizo-teal-dark);
  background: var(--surface);
  border-bottom-color: var(--eizo-teal);
}

.tab-btn:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.tab-panel {
  padding: 6px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-list {
  list-style: none;
}

.tab-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
}

.tab-list a:hover {
  background: var(--eizo-teal-pale);
}

.tab-list a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.tab-list-text {
  flex: 1;
  min-width: 0;
}

.tab-list-text strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tab-list-text small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.tab-list-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--eizo-teal);
  opacity: 0.7;
  white-space: nowrap;
}

.tab-list a:hover .tab-list-badge {
  opacity: 1;
}

.tab-list-chevron {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1;
}

.tab-list a:hover .tab-list-chevron {
  color: var(--eizo-teal);
}

/* ── Contact compact (autres vues) ── */

.contact-card--compact {
  padding: 14px 16px;
}

.contact-card--compact .card-title {
  margin-bottom: 6px;
  font-size: 13px;
}

.contact-compact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.contact-plain {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-value--phone {
  font-size: 14px;
  font-weight: 700;
}

.contact-tarif {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── Info cards ── */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--eizo-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--eizo-teal);
}

.info-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.info-card-body strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.info-card-body small {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  font-weight: 400;
}

.info-card-pdf {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--eizo-teal);
  opacity: 0.55;
  transition: opacity var(--transition);
  margin-top: auto;
}

.info-card:hover {
  background: var(--eizo-teal-pale);
  border-color: #b8d4dc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card:hover .info-card-pdf {
  opacity: 1;
}

.info-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--eizo-teal);
}

/* ── Bottom grid ── */

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ── Contact ── */

.garanties-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: var(--eizo-teal-light);
  border: 1px solid #c5dde5;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: var(--eizo-teal-dark);
  transition: background var(--transition), border-color var(--transition);
}

.garanties-link svg {
  width: 16px;
  height: 16px;
}

.garanties-link:hover {
  background: #d8edf2;
  border-color: var(--eizo-teal);
  color: var(--eizo-teal-dark);
}

.garanties-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0, 122, 148, 0.35);
  text-underline-offset: 3px;
  width: fit-content;
}

.contact-value:hover {
  text-decoration-color: var(--eizo-teal);
}

.contact-value:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 3px;
}

.hours {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.hours svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--eizo-teal);
  margin-top: 2px;
}

.hours-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.45;
}

.phone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  background: var(--eizo-teal-pale);
  border-radius: var(--radius-sm);
  border: 1px solid #c5dde5;
}

.phone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

.phone-number {
  font-size: 18px;
  font-weight: 700;
  color: var(--eizo-teal-dark);
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0, 78, 95, 0.3);
  text-underline-offset: 3px;
}

.phone-number:hover {
  color: var(--eizo-teal);
  text-decoration-color: var(--eizo-teal);
}

.phone-number:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 3px;
}

.phone-tarif {
  font-size: 10px;
  font-weight: 600;
  background: var(--eizo-teal-dark);
  color: #fff;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ── Resources ── */

.resources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resources-list a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.resource-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.resources-list a::after {
  content: "›";
  margin-left: auto;
  padding-left: 8px;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text-light);
  text-decoration: none;
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.resources-list a:hover {
  background: var(--eizo-teal-pale);
  border-color: #c5dde5;
  color: var(--eizo-teal-dark);
}

.resources-list a:hover::after {
  color: var(--eizo-teal);
  transform: translateX(3px);
}

.resources-list a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--eizo-teal);
}

.resources-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--eizo-teal);
}

.resources-list small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
  padding: 12px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--eizo-teal);
  text-decoration-color: rgba(0, 122, 148, 0.45);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ── Views ── */

.view-hidden {
  display: none !important;
}

.view-panel {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-panel.view-active {
  opacity: 1;
  transform: translateY(0);
}

.view-panel.view-hidden {
  opacity: 0;
  transform: none;
  pointer-events: none;
}

.view-panel.view-active .legal-content,
.view-panel.view-active .hero,
.view-panel.view-active .container {
  animation: content-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.06s both;
}

@keyframes content-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-enter {
  animation: result-fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes result-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-panel {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .view-panel.view-active .legal-content,
  .view-panel.view-active .hero,
  .view-panel.view-active .container,
  .result-enter {
    animation: none;
  }
}

/* ── Legal page ── */

.legal-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  width: 100%;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.legal-inner--wide {
  max-width: 960px;
}

.legal-inner--formulaire {
  max-width: min(1080px, calc(100vw - 40px));
}

#view-formulaire .legal-page {
  padding: 20px 16px 32px;
}

#view-formulaire .legal-content {
  padding: 28px 32px 36px;
}

.nouvelle-content,
.formulaire-content {
  max-width: none;
}

.formulaire-host {
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 879px) {
  .formulaire-embed #panneForm {
    display: flex;
    flex-direction: column;
  }

  .formulaire-embed .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .formulaire-embed .petit,
  .formulaire-embed .grand {
    max-width: 100%;
    width: 100%;
    flex: none;
  }

  .formulaire-embed label {
    margin-top: 10px;
  }

  .formulaire-embed .sav-phone-field {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: stretch;
  }

  .formulaire-embed .sav-phone-group {
    padding: 12px 14px;
  }

  .formulaire-host {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .formulaire-embed #panneForm > button[type="submit"] {
    position: fixed;
    left: max(14px, env(safe-area-inset-left, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: auto;
    margin-top: 0;
    z-index: 85;
    min-height: 48px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(0, 50, 70, 0.2);
  }

  #view-formulaire .formulaire-embed--success #panneForm > button[type="submit"],
  #view-formulaire .formulaire-embed--submitting #panneForm > button[type="submit"] {
    position: fixed;
  }

  #statusMessage.form-status:not(.form-status--idle) {
    margin-bottom: 8px;
  }
}

.formulaire-loading {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
}

.formulaire-embed h1 {
  font-size: 1.1rem;
  color: var(--eizo-teal-dark);
  margin-bottom: 12px;
}

.formulaire-embed form {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  max-width: none;
}

@media (min-width: 880px) {
  .formulaire-embed #panneForm {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
  }

  .formulaire-embed #panneForm > h2,
  .formulaire-embed #panneForm > p,
  .formulaire-embed #panneForm > button[type="submit"],
  .formulaire-embed #panneForm > #statusMessage,
  .formulaire-embed #panneForm > textarea,
  .formulaire-embed #panneForm > img,
  .formulaire-embed #panneForm > input[type="file"],
  .formulaire-embed #panneForm > .form-group,
  .formulaire-embed #panneForm > .sav-attach-block,
  .formulaire-embed #panneForm > .sav-phone-group {
    grid-column: 1 / -1;
  }
}

.formulaire-embed h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--eizo-teal-dark);
  margin: 22px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.formulaire-embed h2:first-child {
  margin-top: 0;
}

.formulaire-embed #panneForm > img {
  display: none;
}

.formulaire-embed img {
  max-width: 100%;
  height: auto;
}

.formulaire-embed .serial-help-trigger {
  margin-left: 2px;
}

.formulaire-embed .icon {
  max-width: none;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.formulaire-embed .form-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.formulaire-embed .form-group label {
  margin: 0;
  flex-shrink: 0;
}

.formulaire-embed .petit {
  max-width: 28%;
  flex: 1;
}

.formulaire-embed .grand {
  max-width: 72%;
  flex: 3;
}

.formulaire-embed label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-top: 10px;
  line-height: 1.4;
}

.formulaire-embed label .label-hint {
  display: inline;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.35;
}

.formulaire-embed label .required {
  display: inline;
  color: #c0392b;
  font-weight: 700;
  margin-left: 2px;
}

.formulaire-embed label.sav-attach-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.formulaire-embed label.sav-attach-option span {
  display: inline;
  flex: 1;
  min-width: 0;
  margin-top: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: 1.45;
  text-transform: lowercase;
}

.formulaire-embed #panneForm > p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

.formulaire-embed .error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
}

.formulaire-embed .sav-phone-hint {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 122, 148, 0.1);
  line-height: 1.45;
}

.formulaire-embed .sav-phone-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin: 6px 0 8px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 122, 148, 0.16);
  border-radius: 10px;
  background: rgba(0, 122, 148, 0.04);
}

.formulaire-embed .sav-phone-field {
  display: grid;
  grid-template-columns: minmax(130px, 34%) 1fr;
  gap: 12px;
  align-items: center;
}

.formulaire-embed .sav-phone-field label {
  margin-top: 0;
}

.formulaire-embed .sav-phone-field input {
  margin-top: 0;
}

.formulaire-embed .sav-attach-block {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sav-attach-block label {
  margin-bottom: 0;
}

.sav-attach-toggle {
  display: inline-block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: lowercase;
  cursor: pointer;
  transition: color var(--transition);
}

.sav-attach-toggle:hover {
  color: var(--eizo-teal-dark);
}

.sav-attach-block--alt .sav-attach-toggle {
  color: var(--eizo-teal-dark);
  font-weight: 500;
}

.sav-attach-alternatives {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 122, 148, 0.22);
  border-radius: 10px;
  background: rgba(0, 122, 148, 0.07);
  width: 100%;
  box-sizing: border-box;
}

.sav-attach-alt-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  line-height: 1.4;
}

.sav-attach-alt-note {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(0, 122, 148, 0.22);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  resize: vertical;
  min-height: 84px;
}

.sav-attach-alt-note:focus {
  outline: none;
  border-color: var(--eizo-teal);
  box-shadow: 0 0 0 3px rgba(0, 122, 148, 0.12);
}

.sav-attach-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 0;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  line-height: 1.45;
  border-top: 1px solid rgba(0, 122, 148, 0.1);
}

.sav-attach-option:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.sav-attach-option:last-of-type {
  padding-bottom: 0;
}

.sav-attach-option:hover {
  color: var(--eizo-teal-dark);
}

.sav-attach-option:has(input:checked) {
  color: var(--eizo-teal-dark);
  font-weight: 600;
}

.sav-attach-option input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--eizo-teal);
  flex-shrink: 0;
  vertical-align: top;
}

.sav-attach-option span {
  flex: 1;
  min-width: 0;
  text-transform: lowercase;
}

.sav-attach-block--alt .sav-attach-file {
  display: none;
}

.sav-attach-block label,
.sav-attach-block .sav-attach-hint,
.sav-attach-toggle,
.sav-attach-alternatives {
  opacity: 1;
}

.sav-attach-file input[type="file"] {
  width: 100%;
  margin-top: 4px;
}

.sav-attach-hint {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.sav-attach-warning {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.28);
  color: #c0392b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: lowercase;
}

.formulaire-embed input[type="text"],
.formulaire-embed input[type="email"],
.formulaire-embed input[type="file"],
.formulaire-embed select,
.formulaire-embed textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
}

.formulaire-embed .panne-field--locked {
  background: #f4f7f8;
  color: var(--text);
  border-color: #d5dde2;
  cursor: not-allowed;
  opacity: 1;
}

.formulaire-embed textarea {
  min-height: 120px;
}

.formulaire-embed button[type="submit"] {
  margin-top: 16px;
  width: 100%;
  padding: 12px 18px;
  background: var(--eizo-teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.formulaire-embed button[type="submit"]:hover:not(:disabled) {
  background: var(--eizo-teal-dark);
}

.formulaire-embed button[type="submit"]:disabled {
  cursor: not-allowed;
}

.formulaire-embed--submitting button[type="submit"] {
  background: #8fa8b0;
  color: #f7fafb;
}

.formulaire-embed--success button[type="submit"] {
  background: #1a7a42;
}

.formulaire-embed--success #panneForm {
  display: none;
}

.formulaire-embed--success #statusMessage.form-status {
  margin-top: 0;
}

#view-formulaire:has(.formulaire-embed--success) .form-step-header .nouvelle-intro {
  display: none;
}

@media (max-width: 879px) {
  .formulaire-embed--success .formulaire-host {
    padding-bottom: 16px;
  }
}

.formulaire-embed--error button[type="submit"] {
  background: var(--eizo-teal);
}

.panne-form--locked input,
.panne-form--locked select,
.panne-form--locked textarea,
.panne-form--locked button:not([type="submit"]) {
  pointer-events: none;
  opacity: 0.65;
}

.form-submit-spinner,
.form-status-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin 0.7s linear infinite;
  flex-shrink: 0;
}

.form-status-spinner {
  border-color: rgba(0, 122, 148, 0.2);
  border-top-color: var(--eizo-teal);
}

@keyframes form-spin {
  to { transform: rotate(360deg); }
}

#statusMessage.form-status {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  animation: result-fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-status-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#statusMessage.form-status--recap {
  padding: 16px 18px;
}

#statusMessage.form-status--idle {
  display: none;
}

#statusMessage.form-status--idle[hidden] {
  display: none;
}

#statusMessage.form-status--loading {
  background: var(--eizo-teal-pale);
  border-color: #c5dde5;
}

#statusMessage.form-status--success {
  background: #f0faf4;
  border-color: #b8e0c8;
}

#statusMessage.form-status--error {
  background: #fef6f5;
  border-color: #f5c4c0;
}

.form-status-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.form-status--loading .form-status-text strong {
  color: var(--eizo-teal-dark);
}

.form-status--success .form-status-icon {
  color: #1a7a42;
}

.form-status--success .form-status-text strong {
  color: #1a7a42;
}

.form-status--error .form-status-icon {
  color: #c0392b;
}

.form-status--error .form-status-text strong {
  color: #a83226;
}

.form-status-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.form-status-text strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.form-status-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.declaration-recap {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 122, 66, 0.15);
}

.declaration-recap__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.declaration-recap__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.declaration-recap__item {
  margin: 0;
  min-width: 0;
}

.declaration-recap__item--full {
  grid-column: 1 / -1;
}

.declaration-recap__item dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 3px;
}

.declaration-recap__item dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
  word-break: break-word;
}

.declaration-recap__value--multiline {
  white-space: pre-line;
  font-weight: 400;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(26, 122, 66, 0.12);
}

.declaration-recap__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.declaration-recap__btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--eizo-teal);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}

.declaration-recap__btn:hover {
  background: var(--eizo-teal-dark);
}

.declaration-recap__btn--secondary {
  background: #fff;
  color: var(--eizo-teal-dark);
  border: 1px solid rgba(0, 122, 148, 0.28);
}

.declaration-recap__btn--secondary:hover {
  background: var(--eizo-teal-pale);
}

.declaration-recap__hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Indicateur de défilement (formulaire) ── */

.formulaire-scroll-rail {
  position: fixed;
  top: 50%;
  right: 20px;
  left: auto;
  transform: translateY(-50%);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.formulaire-scroll-rail.is-active {
  opacity: 1;
  visibility: visible;
}

.scroll-rail-inner {
  position: relative;
  width: 120px;
  min-height: 200px;
}

.scroll-rail-track {
  position: absolute;
  right: 0;
  left: auto;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(0, 78, 95, 0.12);
  border-radius: 999px;
}

.scroll-rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--eizo-teal) 0%, var(--eizo-teal-mid) 55%, var(--eizo-teal-dark) 100%);
  border-radius: 999px;
  will-change: height;
}

.scroll-rail-thumb {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 13px;
  height: 13px;
  margin-left: -6.5px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--eizo-teal);
  border: 2px solid #fff;
  box-shadow: 0 1px 8px rgba(0, 78, 95, 0.35);
  z-index: 2;
  will-change: top;
}

.scroll-rail-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: 200px;
}

.scroll-rail-step {
  position: absolute;
  right: 0;
  left: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  transform: translateY(-50%);
  top: var(--step-pos, 0%);
  max-width: 160px;
}

.scroll-rail-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid #c5dde5;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--bg);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  transform: translateX(50%);
}

.scroll-rail-step.is-done .scroll-rail-dot {
  border-color: var(--eizo-teal);
  background: var(--eizo-teal-light);
}

.scroll-rail-step.is-active .scroll-rail-dot {
  border-color: var(--eizo-teal);
  background: var(--eizo-teal);
  transform: translateX(50%) scale(1.2);
  box-shadow: 0 0 0 4px rgba(0, 122, 148, 0.18);
}

.scroll-rail-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-align: right;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.scroll-rail-step.is-active .scroll-rail-name {
  opacity: 1;
  transform: translateX(0);
  color: var(--eizo-teal-dark);
  font-weight: 600;
}

.scroll-rail-step.is-done .scroll-rail-name {
  opacity: 0.55;
  transform: translateX(0);
  color: var(--text-muted);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.legal-back svg {
  width: 16px;
  height: 16px;
}

.legal-back:hover {
  color: var(--eizo-teal);
  border-color: #c8dde3;
  background: var(--eizo-teal-light);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.legal-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text);
}

.legal-content section {
  margin-bottom: 24px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--eizo-teal-dark);
  margin-bottom: 10px;
}

.legal-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

/* ── Nouvelle demande ── */

.demande-stepper {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.demande-stepper__list {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  counter-reset: demande-step;
}

.demande-stepper__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
  min-width: 0;
}

.demande-stepper__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 13px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.demande-stepper__item.is-done:not(:last-child)::after,
.demande-stepper__item.is-active:not(:last-child)::after {
  background: var(--eizo-teal);
}

.demande-stepper__marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text-light);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.demande-stepper__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
  max-width: 100%;
}

.demande-stepper__item.is-active .demande-stepper__marker {
  background: var(--eizo-teal);
  border-color: var(--eizo-teal);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 148, 0.18);
}

.demande-stepper__item.is-active .demande-stepper__label {
  color: var(--eizo-teal-dark);
}

.demande-stepper__item.is-done .demande-stepper__marker {
  background: var(--eizo-teal-light);
  border-color: var(--eizo-teal);
  color: var(--eizo-teal-dark);
}

.demande-stepper__item.is-done .demande-stepper__label {
  color: var(--text-muted);
}

.formulaire-draft-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--eizo-teal-dark);
  background: var(--eizo-teal-pale);
  border: 1px solid #c5dde5;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.formulaire-draft-discard {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--eizo-teal-dark);
  background: transparent;
  border: 1px solid #b8d4de;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.formulaire-draft-discard:hover {
  background: rgba(0, 122, 148, 0.08);
}

.form-step-header {
  margin-bottom: 24px;
}

.form-step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eizo-teal);
  background: var(--eizo-teal-light);
  border: 1px solid #c5dde5;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.nouvelle-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.nouvelle-form {
  gap: 18px;
}

.nouvelle-form .ident-field-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.nouvelle-form label .required {
  color: #c0392b;
  font-weight: 700;
}

.nouvelle-form .error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
}

.nouvelle-form .sav-attach-block {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.serial-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.serial-input-row .input-wrap--serial {
  flex: 1;
  min-width: 0;
}

.btn-verify-serial {
  flex-shrink: 0;
  align-self: stretch;
  padding: 0 18px;
  border: 1px solid var(--eizo-teal);
  border-radius: var(--radius-sm);
  background: var(--eizo-teal);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.btn-verify-serial:hover:not(:disabled) {
  background: var(--eizo-teal-dark);
  border-color: var(--eizo-teal-dark);
}

.btn-verify-serial:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.serial-field-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.serial-field-header label {
  margin: 0;
}

.serial-help-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--eizo-teal-light);
  border: 1px solid #c5dde5;
  color: var(--eizo-teal-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
  outline: none;
}

.serial-help-trigger:hover,
.serial-help-trigger:focus-visible {
  background: var(--eizo-teal-pale);
  border-color: var(--eizo-teal);
  box-shadow: var(--focus-ring);
}

.serial-help-icon {
  transform: translateY(-0.5px);
}

.serial-help-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(calc(-50% + 48px));
  width: min(520px, 92vw);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.serial-help-popup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.serial-help-trigger:hover .serial-help-popup,
.serial-help-trigger:focus .serial-help-popup,
.serial-help-trigger:focus-within .serial-help-popup {
  opacity: 1;
  visibility: visible;
}

/* ── Champs avec icône ── */

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 2;
  background-color: var(--text-light);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.input-wrap:focus-within::before {
  background-color: var(--eizo-teal);
}

.input-wrap--serial::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2v10h16V7H4zm2 2h1.5v1.5H6V9zm0 3h1.5v1.5H6V12zm0 3h1.5v1.5H6V15zm3-6H15v1.5H9V9zm0 3H15v1.5H9V12zm0 3H13v1.5H9V15z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2v10h16V7H4zm2 2h1.5v1.5H6V9zm0 3h1.5v1.5H6V12zm0 3h1.5v1.5H6V15zm3-6H15v1.5H9V9zm0 3H15v1.5H9V12zm0 3H13v1.5H9V15z'/%3E%3C/svg%3E");
}

.input-wrap--model::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 3h16c.55 0 1 .45 1 1v11c0 .55-.45 1-1 1h-5v2h2v1H7v-1h2v-2H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1zm0 2v9h16V5H4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 3h16c.55 0 1 .45 1 1v11c0 .55-.45 1-1 1h-5v2h2v1H7v-1h2v-2H4c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1zm0 2v9h16V5H4z'/%3E%3C/svg%3E");
}

.input-wrap > img,
.input-wrap > svg.input-wrap-icon {
  display: none !important;
}

.input-wrap-field {
  display: block;
  width: 100%;
  padding: 11px 12px 11px 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  z-index: 0;
}

.input-wrap-field:focus {
  outline: none;
  border-color: var(--eizo-teal);
  box-shadow: 0 0 0 3px rgba(0, 122, 148, 0.12);
}

/* ── Panneau modèle ── */

.model-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: content-fade-up 0.35s ease both;
}

.model-panel-header {
  display: block;
}

.model-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.model-panel-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.model-panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-select {
  width: 100%;
  padding: 11px 36px 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6b78' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.model-select:focus {
  outline: none;
  border-color: var(--eizo-teal);
  box-shadow: 0 0 0 3px rgba(0, 122, 148, 0.12);
}

.model-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1.5px solid #a8cdd8;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.model-card--selected {
  background: linear-gradient(135deg, #f0fafc 0%, #ffffff 100%);
}

.model-card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6f6ee;
  color: #1a7a42;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-card-icon svg {
  width: 16px;
  height: 16px;
}

.model-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.model-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.model-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--eizo-teal-dark);
  letter-spacing: -0.01em;
}

.model-panel-alt {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-panel-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.model-panel-divider::before,
.model-panel-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.model-alt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px dashed #b8d4dc;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.model-alt-btn:hover {
  border-color: var(--eizo-teal);
  background: var(--eizo-teal-pale);
  box-shadow: var(--shadow-sm);
}

.model-alt-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--eizo-teal);
}

.model-alt-btn-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--eizo-teal-light);
  color: var(--eizo-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-alt-btn-icon svg {
  width: 18px;
  height: 18px;
}

.model-alt-btn-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.model-alt-btn-text strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.model-alt-btn-text small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.model-alt-btn-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-light);
  transition: transform var(--transition), color var(--transition);
}

.model-alt-btn:hover .model-alt-btn-arrow {
  color: var(--eizo-teal);
  transform: translateX(3px);
}

.model-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--eizo-teal);
  cursor: pointer;
}

.model-back-btn svg {
  width: 16px;
  height: 16px;
}

.model-back-btn:hover {
  color: var(--eizo-teal-dark);
}

.model-back-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.btn-submit--continuer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.btn-submit--continuer svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-submit--continuer:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.required {
  color: var(--eizo-teal);
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.serial-result {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.serial-result--warn {
  background: #fffbf5;
  border-color: #ead9b8;
}

.serial-result-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Suivi ── */

.suivi-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.suivi-field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.suivi-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.form-group input:not(.input-wrap-field),
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
}

.form-group input:not(.input-wrap-field):focus,
.form-group select:focus {
  outline: none;
  border-color: var(--eizo-teal);
  box-shadow: 0 0 0 3px rgba(0, 122, 148, 0.12);
}

.form-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--eizo-teal-dark);
  margin-top: 4px;
  padding: 8px 10px;
  background: var(--eizo-teal-pale);
  border-radius: var(--radius-sm);
  border: 1px solid #d4e8ee;
}

.form-loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #c5dde5;
  border-top-color: var(--eizo-teal);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-submit {
  align-self: flex-start;
  padding: 10px 20px;
  background: var(--eizo-teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.btn-submit:hover:not(:disabled) {
  background: var(--eizo-teal-dark);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-error {
  font-size: 13px;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 4px;
}

.suivi-result {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.suivi-result h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--eizo-teal-dark);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.result-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-grid .result-full {
  grid-column: 1 / -1;
}

.result-grid dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.result-grid dd {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.result-grid dd[data-badge] {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.suivi-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  border: 1px solid transparent;
  white-space: nowrap;
}

.suivi-badge--status-emitted {
  background: #e8f4f8;
  color: #0d5f73;
  border-color: #c5dde5;
}

.suivi-badge--status-shipped {
  background: #f0faf4;
  color: #1a7a42;
  border-color: #b8e0c8;
}

.suivi-badge--status-cancelled {
  background: #f3f4f6;
  color: #5c6670;
  border-color: #d8dce0;
}

.suivi-badge--status-pending {
  background: #fff8e6;
  color: #9a6700;
  border-color: #f0d78c;
}

.suivi-badge--warranty-in {
  background: #f0faf4;
  color: #1a7a42;
  border-color: #b8e0c8;
}

.suivi-badge--warranty-out {
  background: #fef6f5;
  color: #a83226;
  border-color: #f5c4c0;
}

.suivi-badge--warranty-unknown {
  background: #f5f6f7;
  color: #5c6670;
  border-color: #dde1e6;
}

.suivi-badge--warranty-repair {
  background: #eef5ff;
  color: #1d4f91;
  border-color: #c8daf5;
}

.suivi-badge--neutral {
  background: #f5f6f7;
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 600px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Toast ── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 200;
  white-space: nowrap;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.logo-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.footer-links a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 3px;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .legal-inner--formulaire {
    max-width: min(1080px, calc(100vw - 24px));
  }

  #view-formulaire .legal-content {
    padding: 24px 22px 28px;
  }
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .home-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  }

  .header-tagline {
    display: none;
  }

  .logo {
    height: 38px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-mark {
    height: 48px;
    align-self: flex-end;
  }

  .hero h1 {
    font-size: 1.2rem;
  }

  .hero-desc {
    font-size: 13px;
    max-width: none;
  }

  .container {
    padding: 16px 14px 24px;
  }

  .container--home {
    padding: 12px 14px 16px;
  }

  .home-zone--actions {
    padding: 12px 14px 10px;
    margin-bottom: 12px;
    border-radius: 10px;
  }

  .cta-grid,
  .cta-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta-card--tall {
    min-height: auto;
    padding: 14px 14px 36px;
  }

  .cta-card--tall .cta-text {
    padding-right: 0;
  }

  .cta-card:hover {
    transform: none;
  }

  .help-tip {
    padding: 10px 12px;
    gap: 10px;
  }

  .help-tip p {
    font-size: 12px;
    line-height: 1.45;
  }

  .info-link-desc {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .contact-dl-row {
    grid-template-columns: 52px 1fr;
  }

  .legal-page {
    padding: 14px max(14px, env(safe-area-inset-right)) 20px max(14px, env(safe-area-inset-left));
  }

  .legal-inner,
  .legal-inner--wide,
  .legal-inner--formulaire {
    max-width: 100%;
  }

  .legal-content {
    padding: 20px 16px;
    border-radius: 10px;
  }

  .legal-content h1 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  #view-formulaire .legal-page {
    padding: 12px 12px 20px;
  }

  #view-formulaire .legal-content {
    padding: 18px 14px 22px;
  }

  .form-step-header {
    margin-bottom: 18px;
  }

  .demande-stepper {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .demande-stepper__marker {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .demande-stepper__item:not(:last-child)::after {
    top: 12px;
    left: calc(50% + 16px);
    width: calc(100% - 32px);
  }

  .demande-stepper__label {
    font-size: 10px;
  }

  .formulaire-draft-notice {
    font-size: 12px;
    padding: 9px 10px;
  }

  .nouvelle-intro,
  .suivi-intro {
    font-size: 13px;
  }

  .formulaire-embed h2 {
    font-size: 0.95rem;
    flex-wrap: wrap;
    margin: 16px 0 10px;
  }

  .formulaire-embed label {
    font-size: 13px;
    margin-top: 10px;
  }

  .formulaire-embed input[type="text"],
  .formulaire-embed input[type="email"],
  .formulaire-embed input[type="file"],
  .formulaire-embed select,
  .formulaire-embed textarea,
  .form-group input:not(.input-wrap-field),
  .form-group select,
  .model-select {
    font-size: 16px;
    min-height: 44px;
  }

  .input-wrap-field {
    font-size: 16px;
    min-height: 44px;
    padding-left: 48px;
  }

  .formulaire-embed textarea {
    min-height: 100px;
  }

  .formulaire-embed .form-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .formulaire-embed .petit,
  .formulaire-embed .grand {
    max-width: 100%;
    flex: none;
    width: 100%;
  }

  .formulaire-embed button[type="submit"] {
    min-height: 48px;
    font-size: 15px;
    margin-top: 14px;
  }

  #statusMessage.form-status {
    padding: 12px 14px;
    gap: 10px;
  }

  .form-status-text strong {
    font-size: 13px;
  }

  .form-status-text p {
    font-size: 12px;
  }

  .declaration-recap__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sav-attach-alternatives {
    padding: 12px 14px;
  }

  .sav-attach-option {
    gap: 8px;
    padding: 9px 0;
    font-size: 13px;
  }

  .sav-attach-option input[type="radio"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
  }

  .btn-submit,
  .btn-submit--continuer {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    align-self: stretch;
  }

  .model-panel {
    padding: 14px 12px;
  }

  .model-alt-btn {
    padding: 12px;
    min-height: 48px;
  }

  .serial-result {
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
  }

  .serial-result-body p {
    font-size: 12px;
    word-break: break-word;
  }

  .footer-logo {
    height: 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .footer-brand {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-tagline {
    white-space: normal;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .footer-copy {
    white-space: normal;
    text-align: center;
  }

  .toast {
    left: 14px;
    right: 14px;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateY(80px);
    width: auto;
    max-width: none;
    white-space: normal;
    text-align: center;
    padding: 12px 16px;
  }

  .toast.visible {
    transform: translateY(0);
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .phone-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-number {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .logo {
    height: 34px;
  }

  .hero-mark {
    height: 40px;
  }

  .container--home {
    padding: 10px 12px 14px;
  }

  .home-zone--actions {
    padding: 10px 12px 8px;
  }

  .cta-card--tall .cta-text strong {
    font-size: 14px;
  }

  .cta-card--tall .cta-text small {
    font-size: 11px;
  }

  .legal-content {
    padding: 16px 12px;
  }

  #view-formulaire .legal-content {
    padding: 14px 12px 18px;
  }

  .legal-back {
    font-size: 12px;
    padding: 6px 10px;
    margin-bottom: 14px;
  }

  .legal-content h1 {
    font-size: 1.15rem;
  }

  .info-link {
    grid-template-columns: 24px 1fr auto;
    gap: 6px;
    padding: 8px 2px;
  }

  .info-link-icon {
    width: 24px;
    height: 24px;
  }

  .contact-dl-row {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0;
  }

  .contact-dl dt {
    padding-top: 0;
  }

  .model-panel-header {
    gap: 8px;
  }

  .result-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 1349px) {
  .formulaire-scroll-rail {
    display: none !important;
  }
}

@media (max-height: 780px) and (min-width: 769px) {
  .hero h1 {
    font-size: 1.15rem;
  }

  .hero-desc {
    font-size: 12px;
  }

  .container--home {
    padding: 10px 20px 12px;
  }

  .home-bottom {
    gap: 10px;
  }

  .home-zone--actions {
    padding: 12px 14px 10px;
    margin-bottom: 10px;
  }

  .cta-card--tall {
    min-height: 88px;
    padding: 12px 14px;
  }

  .cta-card--tall .cta-icon {
    width: 38px;
    height: 38px;
  }

  .cta-card--tall .cta-icon svg {
    width: 19px;
    height: 19px;
  }

  .cta-card--tall .cta-text strong {
    font-size: 14px;
  }

  .cta-card--tall .cta-text small {
    font-size: 11px;
  }

  .cta-card--tall .cta-arrow {
    bottom: 12px;
    right: 12px;
  }

  .cta-card--tall.cta-card--featured {
    min-height: 92px;
  }

  .cta-card--wide {
    min-height: 72px;
    padding: 16px 18px;
  }

  .cta-card--wide .cta-icon {
    width: 44px;
    height: 44px;
  }

  .cta-card--wide .cta-icon svg {
    width: 22px;
    height: 22px;
  }

  .cta-card--wide .cta-text strong {
    font-size: 15px;
  }

  .cta-card--wide .cta-text small {
    font-size: 12px;
  }

  .contact-card--compact {
    padding: 12px 14px;
  }

  .tab-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .tab-list a {
    padding: 7px 8px;
  }

  .footer {
    padding: 10px 20px;
  }
}
