/* Ressources locales uniquement : cette page doit fonctionner avant l'accès à Internet. */
:root {
  color-scheme: light;
  --ink: #172f31;
  --muted: #5d7071;
  --teal: #087e79;
  --brand: #2bbbb3;
  --mint: #e8f5f1;
  --paper: #f8faf8;
  --line: #dce6e2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
img, svg { display: block; max-width: 100%; }
svg.icon { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: white; border: 2px solid var(--teal); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 21px; text-decoration: none; color: var(--ink); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 104px; height: 64px; padding: 4px 7px; background: var(--brand); border-radius: 11px; }
.brand-mark img { width: 90px; height: auto; }
.brand-label { border-left: 1px solid var(--line); padding-left: 21px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.header-nav { display: flex; align-items: center; gap: 30px; }
.help-link { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; text-decoration: none; }
.help-link .icon { width: 19px; height: 19px; flex-basis: 19px; }
.languages { display: flex; padding: 4px; background: #f0f5f2; border-radius: 9px; gap: 3px; }
.languages a { display: flex; min-width: 40px; min-height: 36px; align-items: center; justify-content: center; padding: 3px 8px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; border-radius: 6px; }
.languages a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #173e3010; }
.languages a:hover { color: var(--teal); }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 35px; padding-block: 64px 52px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; font-size: 11px; font-weight: 750; letter-spacing: 1.7px; text-transform: uppercase; color: var(--teal); }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
h1 { margin: 0; font-size: clamp(42px, 4.3vw, 62px); letter-spacing: -2.8px; line-height: 1.07; font-weight: 750; }
h1 span { display: block; color: var(--teal); }
.hero-intro { max-width: 440px; margin: 23px 0 28px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.portal-button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 58px; padding: 16px 23px; border: 1px solid var(--teal); border-radius: 12px; background: var(--teal); color: #fff; font-weight: 650; font-size: 15px; text-decoration: none; box-shadow: 0 5px 14px #087e7914; transition: background .18s ease, transform .18s ease; }
.portal-button:hover { background: #066964; transform: translateY(-2px); text-decoration: none; }
.portal-button:active { transform: translateY(0); }
.portal-button .icon { width: 19px; height: 19px; flex-basis: 19px; }
.button-note { display: flex; align-items: flex-start; gap: 6px; max-width: 390px; margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.button-note .icon { width: 14px; height: 17px; flex-basis: 14px; }

/* Illustration du réseau : aucun état de connexion réel n'est déduit du navigateur. */
.connection-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; isolation: isolate; }
.visual-disc { position: absolute; width: 360px; height: 360px; background: #e1f0e9; border-radius: 50%; z-index: -2; }
.visual-ring { position: absolute; width: 410px; height: 410px; border: 1px solid #d8e9e1; border-radius: 50%; z-index: -2; }
.visual-ring::before { content: ""; position: absolute; top: 72px; right: 41px; width: 10px; height: 10px; background: #74bfb1; border: 3px solid var(--paper); border-radius: 50%; }
.visual-ring::after { content: ""; position: absolute; bottom: 82px; left: 32px; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; }
.phone { width: 226px; padding: 8px; border: 2px solid #244747; border-radius: 34px; background: #163a3b; box-shadow: 15px 22px 35px #173f3616, inset 0 0 0 1px #446161; transform: rotate(5deg); }
.phone-screen { position: relative; min-height: 351px; padding: 16px 13px 20px; border-radius: 25px; background: #f6f8f7; overflow: hidden; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; font-size: 10px; font-weight: 700; }
.phone-status .icon { width: 14px; height: 14px; flex-basis: 14px; }
.phone-camera { position: absolute; top: 12px; left: 50%; width: 53px; height: 15px; transform: translateX(-50%); border-radius: 20px; background: #163a3b; }
.phone-back { display: flex; align-items: center; margin: 29px 0 9px; color: #6a7f7b; font-size: 10px; }
.phone-back .icon { width: 13px; height: 13px; flex-basis: 13px; margin-left: -4px; }
.phone-heading { display: flex; justify-content: space-between; align-items: center; font-size: 23px; font-weight: 750; letter-spacing: -1px; }
.phone-toggle { position: relative; width: 31px; height: 19px; background: var(--brand); border-radius: 20px; }
.phone-toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; background: #fff; border-radius: 50%; }
.phone-network { display: flex; align-items: center; gap: 7px; margin: 18px 0 0; padding: 13px 8px; border: 1px solid #cce4db; border-radius: 10px; background: #fff; }
.phone-network .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--teal); }
.phone-network > .icon:last-child { margin-left: auto; }
.network-name { font-size: 12px; font-weight: 700; }
.network-state { display: block; margin-top: 1px; color: var(--teal); font-size: 8px; font-weight: 500; }
.phone-networks-label { margin: 19px 1px 9px; color: #647875; font-size: 8px; letter-spacing: .8px; text-transform: uppercase; }
.phone-network-placeholder { display: flex; align-items: center; justify-content: space-between; padding: 9px; border-bottom: 1px solid #e3e9e6; }
.phone-network-placeholder span { display: block; width: 66px; height: 6px; background: #d6e0dc; border-radius: 6px; }
.phone-network-placeholder .icon { width: 12px; height: 12px; flex-basis: 12px; color: #9eb0a8; }
.phone-home { width: 65px; height: 3px; margin: 30px auto -9px; background: #234342; border-radius: 5px; }
.notification { position: absolute; bottom: 33px; left: 50%; display: flex; align-items: center; gap: 11px; width: 270px; padding: 15px; background: #fff; border: 1px solid #d9e8e0; border-radius: 14px; box-shadow: 0 12px 24px #173f3610; transform: translateX(-39%) rotate(-3deg); }
.notification-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; color: var(--teal); background: var(--mint); }
.notification strong { display: block; font-size: 12px; line-height: 1.5; }
.notification small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.visual-caption { position: absolute; bottom: -18px; left: 0; width: 100%; margin: 0; text-align: center; color: var(--muted); font-size: 10px; }

.steps-section { padding-block: 25px 62px; }
.section-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
h2 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: -.9px; font-weight: 700; }
.section-topline > p { margin: 0; font-size: 12px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 29px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.step { padding: 0 27px; }
.step + .step { border-left: 1px solid var(--line); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.step-number { font-size: 12px; font-weight: 750; letter-spacing: 1px; color: var(--teal); }
.step-icon { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 12px; background: #eef6f2; color: var(--teal); }
.step-icon .icon { width: 21px; height: 21px; flex-basis: 21px; }
.step h3 { margin: 0 0 9px; font-size: 17px; line-height: 1.35; letter-spacing: -.3px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.step p strong { color: var(--ink); font-weight: 650; }
.step a { font-weight: 600; }

.help-section { display: grid; grid-template-columns: .9fr 1.4fr; gap: 80px; border-top: 1px solid var(--line); padding-block: 55px; }
.help-intro .eyebrow { margin-bottom: 14px; }
.help-intro h2 { max-width: 290px; font-size: 33px; letter-spacing: -1.2px; }
.help-intro > p:last-child { max-width: 305px; margin: 17px 0 0; color: var(--muted); font-size: 14px; }
.help-questions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 67px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 650; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--teal); }
summary .icon { width: 18px; height: 18px; flex-basis: 18px; transition: transform .18s ease; }
details[open] summary .icon { transform: rotate(45deg); }
.answer { padding: 0 30px 21px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.answer p { margin: 0 0 9px; }
.answer p:last-child { margin-bottom: 0; }
.answer strong { color: var(--ink); font-weight: 650; }
.answer a { overflow-wrap: anywhere; }

.other-device { display: flex; align-items: center; gap: 24px; margin-bottom: 58px; padding: 27px 32px; background: #eaf3ee; border: 1px solid #dce9e1; border-radius: 16px; }
.qr-link { flex: 0 0 98px; padding: 5px; background: #fff; border-radius: 9px; }
.qr-link img { width: 88px; height: 88px; }
.other-device-copy h2 { margin-bottom: 5px; font-size: 18px; letter-spacing: -.3px; }
.other-device-copy p { max-width: 590px; margin: 0; color: #506b65; font-size: 13px; }
.address-link { display: flex; align-items: center; gap: 9px; flex-shrink: 0; margin-left: auto; font-size: 15px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.address-link .icon { width: 17px; height: 17px; flex-basis: 17px; }

.site-footer { border-top: 1px solid var(--line); padding-block: 25px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.footer-inner p { margin: 0; }
.footer-brand { color: var(--ink); font-size: 15px; font-weight: 750; letter-spacing: -.5px; }
.footer-brand span { color: var(--teal); }
.footer-signoff { display: flex; align-items: center; gap: 7px; }
.footer-signoff .icon { width: 15px; height: 15px; flex-basis: 15px; color: var(--teal); }

@media (min-width: 1450px) {
  .hero { padding-block: 76px 65px; }
}

@media (max-width: 980px) {
  .hero { gap: 5px; padding-top: 48px; }
  h1 { font-size: 48px; }
  .connection-visual { transform: scale(.9); }
  .hero-intro { font-size: 16px; }
  .step { padding-inline: 22px; }
  .help-section { gap: 40px; }
  .address-link { font-size: 13px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 84px; }
  .brand-mark { width: 85px; height: 53px; border-radius: 9px; }
  .brand-mark img { width: 74px; }
  .brand-label, .help-link { display: none; }
  .header-nav { gap: 0; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-block: 40px 20px; }
  .hero-copy { max-width: 510px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.4px; margin-bottom: 17px; }
  h1 { font-size: clamp(40px, 7.5vw, 56px); letter-spacing: -2px; }
  h1 span { display: inline; }
  .hero-intro { margin-block: 18px 23px; max-width: 420px; }
  .portal-button { width: 100%; max-width: 420px; justify-content: space-between; min-height: 57px; padding-inline: 19px; }
  .button-note { max-width: 360px; font-size: 11px; }
  .connection-visual { display: none; }
  .steps-section { padding-block: 48px 38px; }
  .section-topline { display: block; margin-bottom: 21px; }
  h2 { font-size: 25px; }
  .section-topline > p { margin-top: 7px; }
  .steps { grid-template-columns: 1fr; padding: 0 21px; border-radius: 15px; }
  .step { position: relative; padding: 24px 0 24px 42px; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step-top { margin: 0; }
  .step-number { position: absolute; left: 0; top: 23px; font-size: 13px; }
  .step-icon { display: none; }
  .step h3 { font-size: 17px; margin-bottom: 7px; }
  .step p { font-size: 13px; }
  .help-section { grid-template-columns: 1fr; gap: 25px; padding-block: 36px; }
  .help-intro h2 { max-width: 340px; font-size: 28px; }
  .help-intro > p:last-child { max-width: 420px; margin-top: 11px; }
  summary { font-size: 14px; min-height: 64px; }
  .other-device { flex-wrap: wrap; padding: 21px; gap: 17px; margin-bottom: 36px; }
  .qr-link { flex-basis: 82px; }
  .qr-link img { width: 72px; height: 72px; }
  .other-device-copy { flex: 1 1 160px; }
  .other-device-copy h2 { font-size: 17px; line-height: 1.35; }
  .other-device-copy p { font-size: 12px; }
  .address-link { margin-left: 0; font-size: 13px; }
  .footer-inner { flex-wrap: wrap; gap: 8px 20px; }
  .footer-inner > p:nth-child(2) { margin-left: auto; }
  .footer-signoff { width: 100%; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  h1 { font-size: 37px; }
  .hero-intro { font-size: 15px; }
  .portal-button { gap: 10px; font-size: 13px; padding-inline: 15px; }
  .step { padding-left: 34px; }
  .other-device { padding: 18px; }
  .other-device-copy { flex-basis: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  body { background: #fff; }
  .wrap { width: 100%; }
  .header-nav, .connection-visual, .portal-button, .button-note, .step-icon { display: none; }
  .hero { display: block; padding-block: 28px; }
  h1 { font-size: 38px; }
  .steps-section { padding-block: 20px; }
  .help-section { display: block; padding-block: 20px; }
  .help-questions { margin-top: 20px; }
  details .answer { display: block !important; }
  .other-device { break-inside: avoid; margin-bottom: 20px; }
}
