/* ==========================================================================
   Picalys Software — company website
   Palette : Blue #023C64 · Coral #F84241 · Cream #FBF4E2 · White #FFFFFF
             Blue grey #3F5F7A · Beige #E7DDC6
   Type    : Bree Serif (headings) · DM Sans (text)
   ========================================================================== */

:root {
  --blue: #023C64;
  --coral: #F84241;
  --cream: #FBF4E2;
  --white: #FFFFFF;
  --blue-grey: #3F5F7A;
  --beige: #E7DDC6;
  --line: #8FA3B3;
  --font-title: 'Bree Serif', Georgia, serif;
  --font-text: 'DM Sans', system-ui, sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--blue);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--blue-grey); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55); }
.btn--lg { padding: 16px 30px; }
.btn--xl { padding: 17px 34px; font-size: 19px; }
.btn--light, .btn--light:hover { background: var(--cream); color: var(--blue); }
.btn--outline-light, .btn--outline-light:hover { border: 1.5px solid var(--cream); color: var(--white); }
.btn--outline-light.btn--lg { padding: 14.5px 28.5px; }
.btn--dark, .btn--dark:hover { background: var(--blue); color: var(--white); }

/* --- Headings and labels ------------------------------------------------ */

.h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.1;
}
.h2--xl { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.h2--xxl { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 34px; line-height: 1.1; }

.section-head { display: flex; flex-direction: column; gap: 20px; }
.section-head--center { align-items: center; gap: 14px; text-align: center; }

.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.brace, .brace-sm { fill: none; stroke: var(--coral); stroke-linecap: round; flex: 0 0 auto; }
.brace-sm { width: 10px; height: 26px; stroke-width: 4; }
.brace { height: 1.12em; width: 0.41em; stroke-width: 3.4; }

/* --- Header and hero ---------------------------------------------------- */

.top { position: relative; background: var(--blue); color: var(--white); overflow: hidden; }

.header {
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo nav cta";
  align-items: center;
  gap: 12px 16px;
}
.header__logo { grid-area: logo; display: flex; align-items: center; min-height: 44px; }
.header__logo img { height: 44px; width: auto; }

.nav { grid-area: nav; justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; font-weight: 500; }
.nav a { padding: 11px 14px; color: var(--white); text-decoration: none; }
.nav a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.header__cta { grid-area: cta; padding: 11px 22px; font-size: 16px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.header__cta:hover { color: var(--blue); text-decoration: none; }

.hero {
  padding-top: 96px;
  padding-bottom: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.badge {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid #5E87A6;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.badge__pill { padding: 2px 12px; border-radius: 999px; background: var(--cream); color: var(--blue); font-size: 13px; font-weight: 600; }

.hero__title {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(30px, 6.4vw, 92px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}
.hero__rotator { display: flex; align-items: center; justify-content: center; gap: 0.1em; max-width: 100%; color: var(--cream); }
.hero__word { display: grid; grid-template-columns: 1fr; transition: grid-template-columns .6s cubic-bezier(.6, 0, .2, 1); }
.hero__word.is-closed { grid-template-columns: 0fr; }
.hero__word > span { min-width: 0; overflow: hidden; white-space: nowrap; padding: 0 0.08em 0.06em; }

.hero__lead { margin: 0; max-width: 640px; font-size: 21px; color: var(--cream); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; }

/* --- Polyflex ------------------------------------------------------------- */

.polyflex {
  padding-top: 104px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.polyflex__sub { margin: 0; font-size: 20px; color: var(--blue-grey); }
.polyflex > .btn { margin-top: 20px; }

/* Polyflex theme: a single institution colour, derived into tints. Registered so that it can be animated. */
@property --pf-c { syntax: '<color>'; inherits: true; initial-value: #530039; }
.stage, .themes {
  --pf-c: #530039;
  --pf-c2: color-mix(in srgb, var(--pf-c) 84%, #FFFFFF);
  --pf-pink: color-mix(in srgb, var(--pf-c) 24%, #FFFFFF);
  --pf-soft: color-mix(in srgb, var(--pf-c) 9%, #FFFFFF);
  --pf-track: color-mix(in srgb, var(--pf-c) 18%, #FFFFFF);
  --pf-sep: color-mix(in srgb, var(--pf-c) 45%, #FFFFFF);
  --pf-dark: color-mix(in srgb, var(--pf-c) 75%, #000000);
  transition: --pf-c .9s ease;
}

/* Device scene: drawn at 1176 px wide, scaled by JS. */
.stage { position: relative; width: 100%; height: calc(570px * var(--stage-scale, 1)); overflow: hidden; }
.stage__inner {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1176px;
  height: 570px;
  margin-left: -588px;
  transform: scale(var(--stage-scale, 1));
  transform-origin: top center;
  text-align: left;
}

.device, .device-laptop { position: absolute; left: 50%; bottom: 0; transform-origin: bottom center; }
.device { background: #0A0F1A; box-shadow: 0 30px 60px -20px rgba(2, 30, 50, .55); }
.device__screen { overflow: hidden; background: #F2F6F9; }
.device--tablet { z-index: 1; padding: 11px; border-radius: 24px; transform: translateX(-50%) translateX(496px) scale(.5); }
.device--phone { z-index: 1; padding: 8px; border-radius: 30px; transform: translateX(-50%) translateX(-487px) scale(.55); }
.device-laptop { z-index: 3; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%) scale(.9); }
.device--laptop { position: static; transform: none; padding: 12px 12px 14px; border-radius: 18px 18px 0 0; box-shadow: 0 30px 70px -20px rgba(2, 30, 50, .55); }
.laptop-base { width: 868px; height: 16px; border-radius: 0 0 14px 14px; background: #D5DAE0; display: flex; justify-content: center; }
.laptop-base span { width: 120px; height: 6px; border-radius: 0 0 8px 8px; background: #AAB2BC; }

/* Polyflex interface rendered inside the device screens */
.pf { transform: scale(.7); transform-origin: top left; font-family: 'Open Sans', system-ui, sans-serif; line-height: 1.4; color: #091122; }
.pf strong { font-weight: 700; }
.pf-bar { flex: 0 0 auto; background: var(--pf-c); color: var(--white); display: flex; align-items: center; justify-content: space-between; font-family: Arial, Helvetica, sans-serif; }
.pf-account { display: flex; align-items: center; gap: 6px; }
.pf-sep { width: 1px; height: 28px; background: var(--pf-sep); }
.pf-chip { padding: 7px 10px; border: 1px solid #E6E8EC; border-radius: 8px; color: #4A5463; font-weight: 700; }
.pf-kpi { background: var(--white); border: 1px solid #EDF0F4; border-radius: 10px; padding: 9px 4px; display: flex; flex-direction: column; }
.pf-kpi strong { font-size: 16px; font-weight: 800; }
.pf-kpi > span { font-weight: 600; color: #4A5463; }
.pf-session { background: var(--white); border: 1px solid #FEE8CC; border-left: 4px solid #FDBB75; border-radius: 10px; padding: 11px 14px; display: flex; flex-direction: column; gap: 6px; }
.pf-meta { display: flex; align-items: center; gap: 9px; }
.pf-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4A5463; }
.pf-field { padding: 9px 12px; border: 1px solid #E6E8EC; border-radius: 9px; }
.pf-progress { height: 7px; border-radius: 999px; background: #F3F4F6; overflow: hidden; }
.pf-progress > div { height: 100%; width: 78%; border-radius: 999px; background: #22A650; transition: width .5s ease; }
.pf-count { display: flex; flex-direction: column; gap: 2px; }
.pf-count > span:first-child { font-size: 17px; font-weight: 800; }
.pf-count > span:last-child { font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #4A5463; }
.pf-logo-slot { flex: 0 0 150px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-size: 11px; color: #6B7381; }
.pf-line { border: 1px solid #000000; padding: 11px 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.pf-bulk { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid; border-radius: 6px; font-size: 11px; font-weight: 700; }
.pf-table { border: 1px solid #000000; border-top: 0; }
.pf-row { display: grid; grid-template-columns: 40px minmax(0, 1.3fr) minmax(0, 1fr) 120px 96px; gap: 0 10px; align-items: center; min-height: 30px; padding: 0 12px; }
.pf-row:nth-child(even) { background: #E6E8EC; }
.pf-row--head { min-height: 0; padding: 9px 12px; background: var(--pf-c); color: var(--white); font-weight: 700; }
.pf-row > span:first-child { color: #4A5463; font-size: 12px; }
.pf-row--head > span:first-child { color: var(--white); font-size: inherit; }
.pf-status { padding: 3px 7px; border-radius: 2px; color: var(--white); justify-self: start; }
.pf-action { padding: 3px 12px; border-radius: 2px; color: var(--white); justify-self: end; }
.pf-ok { background: #7FD510; }
.pf-ko { background: #D41F4C; }
.pf-action.pf-ko { background: transparent; border: 1.5px solid #D41F4C; color: #D41F4C; }
.pf-qrstat { display: flex; flex-direction: column; }
.pf-qrstat > span:first-child { font-size: 15px; font-weight: 800; }
.pf-qrstat > span:last-child { font-size: 7.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6B7381; }
.qr { position: absolute; left: 0; top: 0; }

/* Round 2 and round 3 screens, stacked on top of the round 1 screen */
.device__screen { position: relative; }
.scr { position: absolute; inset: 0; background: #F2F6F9; opacity: 0; }

.edt { padding: 14px 26px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.edt-tabs { align-self: flex-start; display: flex; gap: 8px; }
.edt-tabs span { padding: 5px 13px; border: 1px solid #555; background: #FFFFFF; }
.edt-tabs .on { border-color: var(--pf-c); background: var(--pf-c); color: #FFFFFF; }
.edt-week { display: flex; gap: 60px; color: #444; }
.edt-week b { color: var(--pf-c); }
.edt-chips { display: flex; gap: 8px; }
.edt-chips span { width: 66px; padding: 5px 0; border-radius: 3px; background: #E9EBEE; color: #555; text-align: center; font-size: 12px; }
.edt-chips .on { background: var(--pf-c); color: #FFFFFF; }
.edt-grid { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; }
.edt-card { background: #FFFFFF; border-radius: 12px; box-shadow: 0 3px 12px rgba(20, 20, 40, .07); padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; text-align: center; font-size: 12px; animation: edtIn 36s linear infinite; animation-delay: -4.38s; }
.edt-card > div { border-radius: 10px; padding: 10px 6px; line-height: 1.5; color: #1A1A1A; }
.edt-card strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.edt-card:nth-child(2) { animation-delay: -4.18s; } .edt-card:nth-child(3) { animation-delay: -3.98s; } .edt-card:nth-child(4) { animation-delay: -3.78s; }
.edt--tab { padding: 14px 18px; }
.edt--tab .edt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
/* "Anglais 08h15" hovered, then opened */
.edt-card.edt-card--pick { animation: edtIn 36s linear infinite -4.38s, pick 36s linear infinite; }

.pf-session--live { border-color: #BBF0CF; border-left-color: #22A650; }
.pf-live { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #F0FDF4; color: #0D813A; font-weight: 700; }
.pf-live i { width: 6px; height: 6px; border-radius: 50%; background: #22A650; animation: blink 1.2s ease-in-out infinite; }
.pf-row--alert, .pf-row--alert:nth-child(even) { background: #FDE8EE; box-shadow: inset 4px 0 0 #D41F4C; }

/* "QR de présence" dialog on the laptop */
.scr--qr { background: rgba(20, 10, 20, .45); display: flex; align-items: center; justify-content: center; padding-left: 175px; font-family: 'Open Sans', system-ui, sans-serif; font-size: 11px; line-height: 1.4; color: #192434; animation: qrWin 36s linear infinite; }
.qr-modal { width: 228px; background: #FFFFFF; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.qr-off { margin: 4px 12px 12px; padding: 8px 0; border-radius: 9px; background: var(--pf-c); color: #FFFFFF; text-align: center; font-size: 11.5px; font-weight: 800; animation: qrOff 36s linear infinite; }

/* Phone: QR scan, then "Présence enregistrée" */
.scan { position: relative; background: linear-gradient(#2A2530, #141218); color: #FFFFFF; }
.scan-title { position: absolute; left: 0; right: 0; top: 84px; text-align: center; font-size: 14px; font-weight: 700; }
.scan-target { position: absolute; left: 50%; top: 150px; width: 176px; height: 230px; margin-left: -88px; border-radius: 8px; background: #F4F4F4; box-shadow: 0 0 0 18px rgba(255, 255, 255, .06); display: flex; align-items: center; justify-content: center; }
.scan-target .qr { position: static; }
.scan-frame { position: absolute; left: 50%; top: 184px; width: 162px; height: 162px; margin-left: -81px; animation: scanLock 36s linear infinite; }
.scan-frame i { position: absolute; width: 30px; height: 30px; border: 0 solid #FFFFFF; animation: scanCorner 36s linear infinite; }
.scan-frame i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 6px; }
.scan-frame i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 6px; }
.scan-frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 6px; }
.scan-frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 6px; }
.scan-frame b { position: absolute; left: 12px; right: 12px; top: 10px; height: 3px; background: rgba(127, 213, 16, .85); animation: scanLine 1.6s ease-in-out infinite alternate; }
.scan-flash { position: absolute; inset: 0; background: #FFFFFF; opacity: 0; animation: scanFlash 36s linear infinite; }
.scan-ok { position: absolute; inset: 0; background: #FFFFFF; color: #1F2328; display: flex; flex-direction: column; opacity: 0; animation: scanOk 36s linear infinite; }
.scan-ok__body { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-bottom: 40px; font-size: 12px; }
.scan-check { width: 88px; height: 88px; margin-bottom: 12px; border-radius: 50%; background: #22A650; display: flex; align-items: center; justify-content: center; animation: scanPop 36s linear infinite; }
.scan-who { margin-top: 14px; padding: 10px 40px; border-radius: 10px; background: #F5F6F8; font-weight: 700; }

/* Profile: the 15/09 absence becomes excused */
.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; }
.swap-a { animation: swapA 36s linear infinite; }
.swap-b { opacity: 0; animation: swapB 36s linear infinite; }
.prof-row--swap { animation: rowSwap 36s linear infinite; }
.prof-row--swap .prof-j { animation: jSwap 36s linear infinite; }

.prof { padding: 16px 20px; display: flex; gap: 18px; }
.prof-side { flex: 0 0 250px; background: #FFFFFF; border-radius: 12px; box-shadow: 0 3px 12px rgba(20, 20, 40, .07); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.prof-ids { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prof-ids span, .prof-mail { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: #F5F6F8; font-size: 11.5px; }
.prof-ids b, .prof-mail b { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #4B5563; }
.prof-mail { background: var(--pf-soft); }
.prof-path { display: flex; flex-direction: column; padding-left: 14px; border-left: 3px solid var(--pf-c); color: #6B7280; }
.prof-path strong { color: #1F2328; }
.prof-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.prof-crumb { color: #6B7280; }
.prof-head { position: relative; overflow: hidden; background: #FFFFFF; border-left: 4px solid var(--pf-c); border-radius: 12px; box-shadow: 0 3px 12px rgba(20, 20, 40, .07); padding: 18px 20px; display: flex; align-items: center; gap: 18px; }
.prof-av { flex: 0 0 74px; height: 74px; border-radius: 50%; background: var(--pf-c); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.prof-pill { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #E8F0FD; color: #2F6FD6; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.prof-rate { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 10px; color: #6B7280; }
.prof-rate strong { font-size: 34px; font-weight: 800; color: #1F2328; line-height: 1.1; }
.prof-rate i { width: 120px; height: 6px; border-radius: 3px; background: var(--pf-track); margin-top: 6px; }
.prof-rate i b { display: block; width: 50%; height: 100%; border-radius: 3px; background: var(--pf-c); }
.prof-tabs { display: flex; gap: 6px; }
.prof-tabs span { padding: 4px 14px; border-radius: 999px; color: #6B7280; font-weight: 600; }
.prof-tabs .on { background: var(--pf-c); color: #FFFFFF; }
.prof-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prof-stats div { background: #FFFFFF; border-top: 4px solid var(--c); border-radius: 10px; box-shadow: 0 3px 12px rgba(20, 20, 40, .07); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.prof-stats span { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #4B5563; }
.prof-stats strong { font-size: 30px; font-weight: 800; color: var(--c); }
.prof-stats div:first-child strong { color: #1F2328; }
.prof-stats em { font-style: normal; color: #6B7280; }
.prof-row { background: #FFFFFF; border-left: 4px solid #2F6FD6; border-radius: 10px; box-shadow: 0 3px 12px rgba(20, 20, 40, .07); padding: 12px 18px; display: flex; align-items: center; gap: 14px; }
.prof-j { flex: 0 0 34px; height: 34px; border-radius: 8px; background: #E8F0FD; color: #2F6FD6; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }

.mob-list { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.mob-item { display: flex; gap: 10px; background: #FFFFFF; border-radius: 10px; box-shadow: 0 2px 8px rgba(20, 20, 40, .08); overflow: hidden; }
.mob-date { flex: 0 0 48px; background: var(--pf-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #6B7280; }
.mob-date b { font-size: 20px; font-weight: 800; color: var(--pf-c); line-height: 1.1; }
.mob-item > span:last-child { padding: 8px 0; line-height: 1.5; }
.mob-pill { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--c); font-size: 9.5px; font-weight: 700; }
.mob-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 250px; background: #FFFFFF; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.mob-sheet > i { position: absolute; left: 50%; top: 8px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: #D4D6DB; }
.mob-file { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px; border: 1.5px dashed #C9CCD2; border-radius: 10px; line-height: 1.4; }
.mob-pdf { flex: 0 0 34px; height: 42px; border-radius: 5px; background: #FDE8EE; color: #D41F4C; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; }
.mob-prog { display: block; height: 5px; margin-top: 5px; border-radius: 3px; background: #ECEEF1; overflow: hidden; }
.mob-prog b { display: block; height: 100%; width: 100%; background: #22A650; transform-origin: left; animation: prog 36s linear infinite; animation-delay: -20.38s; }
.mob-btn { margin-top: auto; padding: 11px 0; border-radius: 10px; background: var(--pf-c); color: #FFFFFF; text-align: center; font-size: 13px; font-weight: 700; }

.bot-head { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #FFFFFF; border-bottom: 1px solid #E5E7EB; line-height: 1.35; }
.bot-av { position: relative; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--pf-soft); }
.bot-av i { position: absolute; top: 11px; width: 3px; height: 5px; background: var(--pf-c); }
.bot-av i:first-child { left: 10px; } .bot-av i:last-child { right: 10px; }
.bot-chat { flex: 1 1 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; line-height: 1.45; }
.bot-q { align-self: flex-end; max-width: 82%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--pf-c); color: #FFFFFF; animation: botQ 36s linear infinite; animation-delay: -8.38s; }
.bot-a { align-self: flex-start; max-width: 88%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #FFFFFF; box-shadow: 0 3px 12px rgba(20, 20, 40, .08); animation: botA 36s linear infinite; animation-delay: -8.38s; }
.bot-input { margin: 0 12px 14px; padding: 10px 12px; border: 1.5px solid var(--pf-c); border-radius: 12px; background: #FFFFFF; color: #9AA1AB; display: flex; align-items: center; justify-content: space-between; }
.bot-input b { width: 24px; height: 24px; border-radius: 50%; background: var(--pf-c); }

.jus { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.jus-card { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 12px 14px; background: #FFFFFF; border-left: 4px solid #E08A00; border-radius: 10px; box-shadow: 0 3px 12px rgba(20, 20, 40, .07); line-height: 1.5; animation: jusBorder 36s linear infinite; animation-delay: -16.38s; }
.jus-state { position: relative; width: 82px; height: 24px; font-weight: 700; text-align: center; }
.jus-state span { position: absolute; inset: 0; border-radius: 999px; line-height: 24px; }
.jus-state span:first-child { background: #FFF3DC; color: #E08A00; animation: jusWait 36s linear infinite; animation-delay: -16.38s; }
.jus-state span:last-child { background: #E6F6EA; color: #22A650; opacity: 0; animation: jusDone 36s linear infinite; animation-delay: -16.38s; }
.jus-doc { height: 330px; border-radius: 10px; background: #6B6B70; display: flex; align-items: center; justify-content: center; }
.jus-page { width: 200px; height: 290px; background: #FFFFFF; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 8px; }
.jus-page strong { margin: 18px 0 10px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.jus-page i { display: block; height: 5px; border-radius: 2px; background: #D6D8DC; }
.jus-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.jus-btns span { padding: 8px 18px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.jus-ok { background: #E6F6EA; color: #22A650; animation: jusOk 36s linear infinite; animation-delay: -16.38s; }
.jus-ko { background: #FDE8EE; color: #D41F4C; }

/* Institution theme picker */
.themes { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.themes__label { font-size: 16px; color: var(--blue-grey); text-align: center; }
.themes__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.themes__list button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--blue);
  font-family: var(--font-text); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.themes__list button span { width: 20px; height: 20px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.themes__list button:hover { border-color: var(--sw); }
.themes__list button[aria-checked="true"] { border-color: var(--sw); box-shadow: 0 0 0 2px var(--sw); }

/* Annotations (HUD) */
.hud { position: absolute; top: 0; width: 0; height: 100%; z-index: 500; pointer-events: none; --pf-plum: var(--pf-c); }
.hud .tag {
  position: absolute;
  top: 20px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 18px 12px;
  background: var(--white);
  border-radius: 12px;
  color: #1F2328;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.3;
  box-shadow: 0 14px 32px -12px rgba(20, 20, 40, .28), 0 2px 6px rgba(20, 20, 40, .06);
}
.hud .tag span:first-child { font-size: 16px; font-weight: 700; }
.hud .tag span:last-child { font-size: 14px; font-weight: 500; color: #6B7280; }
.hud .lead { position: absolute; left: -0.75px; top: 84px; width: 1.5px; background: var(--pf-c); transform-origin: bottom center; }
.hud .lock { position: absolute; }
.hud .lock i { position: absolute; width: 12px; height: 12px; border: 0 solid var(--pf-c); opacity: .85; }
.hud .lock i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 5px; }
.hud .lock i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 5px; }
.hud .lock i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 5px; }
.hud .lock i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 5px; }
/* Pulsing anchor point */
.hud .lock b { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--pf-c); box-shadow: 0 0 0 2.5px var(--white), 0 2px 6px color-mix(in srgb, var(--pf-c) 40%, transparent); }
.hud .lock b.ping { width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--pf-c); background: none; box-shadow: none; }

/* --- Method --------------------------------------------------------------- */

.method { background: var(--white); border-top: 1px solid var(--beige); border-bottom: 1px solid var(--beige); }
.method__inner { padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 64px; }
.method__lead { margin: 0; max-width: 720px; font-size: 21px; color: var(--blue-grey); text-wrap: pretty; }

/* The four steps, linked by a line (horizontal on large screens, vertical on mobile) */
.method__steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.method__steps::before { content: ""; position: absolute; left: 28px; right: calc((100% - 84px) / 4 - 28px); top: 27px; border-top: 2px dashed var(--line); }
.mstep { position: relative; display: flex; flex-direction: column; gap: 12px; }
.mstep__num {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: var(--cream); box-shadow: 0 0 0 8px var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-size: 22px;
  transition: background .3s ease, transform .3s ease;
}
.mstep:hover .mstep__num { background: var(--coral); transform: scale(1.06); }
.mstep__title { margin: 12px 0 0; font-family: var(--font-title); font-weight: 400; font-size: 30px; line-height: 1.1; }
.mstep p { margin: 0; color: var(--blue-grey); text-wrap: pretty; }
.mstep__points { list-style: none; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--beige); display: flex; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 600; }
.mstep__points li { display: flex; align-items: baseline; gap: 10px; }
.mstep__points li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); transform: translateY(-1px); }

.method__for { display: grid; grid-template-columns: auto repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px 40px; padding: 28px 32px; border-radius: 20px; background: var(--cream); border: 1px solid var(--beige); }
.method__for-label { font-family: var(--font-title); font-size: 24px; }
.method__for-item { display: flex; flex-direction: column; gap: 4px; }
.method__for-item span { color: var(--blue-grey); }

@media (max-width: 1000px) {
  .method__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
  .method__steps::before { display: none; }
  .method__for { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .method__steps { grid-template-columns: 1fr; gap: 36px; }
  .method__steps::before { display: block; left: 27px; right: auto; top: 28px; bottom: 28px; border-top: 0; border-left: 2px dashed var(--line); }
  .mstep { padding-left: 76px; }
  .mstep__num { position: absolute; left: 0; top: 0; }
  .mstep__title { margin-top: 8px; }
  .method__for { padding: 24px; }
}

/* --- Contact -------------------------------------------------------------- */

.contact { padding-top: 120px; padding-bottom: 120px; }
.contact__panel {
  background: var(--blue);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 48px 64px;
  align-items: center;
}
.contact__text { display: flex; flex-direction: column; gap: 20px; }
.contact__text p { margin: 0; color: var(--cream); }
.contact__text .contact__lead { font-size: 20px; max-width: 460px; }

.form { margin: 0; background: var(--cream); color: var(--blue); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font-text);
  font-size: 17px;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #A01C1E; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.consent input[aria-invalid="true"] { outline: 2px solid #A01C1E; outline-offset: 2px; }
.consent label { font-size: 15px; font-weight: 600; cursor: pointer; }
.consent__note { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--blue-grey); }
.form__submit { margin-top: 8px; min-height: 54px; border: 0; font-family: var(--font-text); font-size: 18px; cursor: pointer; }
.form__status { margin: 0; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form__status.is-error { color: #A01C1E; }
.form__status.is-ok { color: #1B6B3A; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__submit[disabled] { opacity: .6; cursor: progress; transform: none; }

/* --- Footer --------------------------------------------------------------- */

.footer { background: var(--blue); color: var(--cream); font-size: 16px; }
.footer__inner { padding-top: 48px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.footer__inner img { height: 42px; width: auto; }
.footer a { color: var(--white); }

/* --- Animations ----------------------------------------------------------- */

@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes qr { 0%, 44% { opacity: 1; } 50%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes lock {
  0%, 6% { opacity: 0; transform: scale(1.08); }
  9%, 27% { opacity: 1; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes lead { 0%, 5% { opacity: 1; transform: scaleY(0); } 9%, 27% { opacity: 1; transform: scaleY(1); } 30%, 100% { opacity: 0; transform: scaleY(1); } }
/* Tooltip: fade in and 12 px slide over 0.3 s, fade out */
@keyframes tag {
  0%, 2% { opacity: 0; transform: translateX(-50%) translateY(12px); }
  4.5%, 27% { opacity: 1; transform: translateX(-50%) translateY(0); }
  30%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
}

/* Rotation of the three devices (12 s cycle): front → right → back → left → front. */
@keyframes orbP {
  0%, 27% { transform: translateX(-50%) scale(.9); z-index: 300; filter: brightness(1); }
  30.167% { transform: translateX(-50%) translateX(174px) scale(.675); z-index: 200; filter: brightness(.81); }
  33.333%, 60.333% { transform: translateX(-50%) translateX(348px) scale(.45); z-index: 100; filter: brightness(.62); }
  63.5% { transform: translateX(-50%) translateX(-30px) scale(.35); z-index: 40; filter: brightness(.5); }
  66.667%, 93.667% { transform: translateX(-50%) translateX(-389px) scale(.45); z-index: 100; filter: brightness(.62); }
  96.833% { transform: translateX(-50%) translateX(-195px) scale(.675); z-index: 200; filter: brightness(.81); }
  100% { transform: translateX(-50%) scale(.9); z-index: 300; filter: brightness(1); }
}
@keyframes orbM {
  0%, 27% { transform: translateX(-50%) scale(1.1); z-index: 300; filter: brightness(1); }
  30.167% { transform: translateX(-50%) translateX(134px) scale(.825); z-index: 200; filter: brightness(.81); }
  33.333%, 60.333% { transform: translateX(-50%) translateX(268px) scale(.55); z-index: 100; filter: brightness(.62); }
  63.5% { transform: translateX(-50%) translateX(-109px) scale(.45); z-index: 40; filter: brightness(.5); }
  66.667%, 93.667% { transform: translateX(-50%) translateX(-487px) scale(.55); z-index: 100; filter: brightness(.62); }
  96.833% { transform: translateX(-50%) translateX(-244px) scale(.825); z-index: 200; filter: brightness(.81); }
  100% { transform: translateX(-50%) scale(1.1); z-index: 300; filter: brightness(1); }
}
@keyframes orbT {
  0%, 27% { transform: translateX(-50%) scale(.98); z-index: 300; filter: brightness(1); }
  30.167% { transform: translateX(-50%) translateX(248px) scale(.74); z-index: 200; filter: brightness(.81); }
  33.333%, 60.333% { transform: translateX(-50%) translateX(496px) scale(.5); z-index: 100; filter: brightness(.62); }
  63.5% { transform: translateX(-50%) translateX(139px) scale(.4); z-index: 40; filter: brightness(.5); }
  66.667%, 93.667% { transform: translateX(-50%) translateX(-240px) scale(.5); z-index: 100; filter: brightness(.62); }
  96.833% { transform: translateX(-50%) translateX(-120px) scale(.74); z-index: 200; filter: brightness(.81); }
  100% { transform: translateX(-50%) scale(.98); z-index: 300; filter: brightness(1); }
}

.orbT { animation: orbT 12s linear infinite; }
.orbP { animation: orbP 12s linear infinite; animation-delay: -8s; }
.orbM { animation: orbM 12s linear infinite; animation-delay: -4s; }
.lock { animation: lock 12s linear infinite; }
.lead { animation: lead 12s linear infinite; }
.tag { animation: tag 12s linear infinite; }
.ping { animation: ping 1.4s ease-out infinite; }
.a1 .lock, .a1 .lead, .a1 .tag { animation-delay: -8s; }
.a2 .lock, .a2 .lead, .a2 .tag { animation-delay: -4s; }

/* Three 12 s rounds (36 s) following a single class session. In each round: tablet in front from 0 to 4 s,
   laptop from 4 to 8 s, phone from 8 to 12 s.
   Round 1: timetable → attendance sheet + QR → scan.  Round 2: dashboard → latecomer → excuse note.
   Round 3: validation → student profile → Mattéo.
   A screen appears while its device is at the back; local time 4.38 s → 7.62 s = the device is in front. */
@keyframes sw3 { 0%, 33.3% { opacity: 1; } 34.1%, 99.2% { opacity: 0; } 100% { opacity: 1; } }
@keyframes edtIn { 0%, 10.5% { opacity: 0; transform: translateY(14px); } 12.5%, 40% { opacity: 1; transform: none; } 41%, 100% { opacity: 0; transform: translateY(14px); } }
@keyframes pick { 0%, 3.6% { box-shadow: 0 3px 12px rgba(20, 20, 40, .07); } 4.4%, 6.2% { box-shadow: 0 0 0 3px var(--pf-c), 0 10px 24px color-mix(in srgb, var(--pf-c) 25%, transparent); } 6.5% { box-shadow: 0 0 0 5px var(--pf-c), 0 10px 24px color-mix(in srgb, var(--pf-c) 25%, transparent); } 7%, 20% { box-shadow: 0 0 0 3px var(--pf-c), 0 10px 24px color-mix(in srgb, var(--pf-c) 25%, transparent); } 21%, 100% { box-shadow: 0 3px 12px rgba(20, 20, 40, .07); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes qrWin { 0%, 46.2% { opacity: 1; } 47%, 99.6% { opacity: 0; } 100% { opacity: 1; } }
@keyframes qrOff { 0%, 45% { transform: none; background: var(--pf-c); } 45.5% { transform: scale(.93); background: var(--pf-dark); } 46%, 100% { transform: none; background: var(--pf-c); } }
@keyframes scanLine { from { top: 10px; } to { top: 146px; } }
@keyframes scanLock { 0%, 24.6% { transform: none; } 25.2%, 100% { transform: scale(.92); } }
@keyframes scanCorner { 0%, 24.6% { border-color: #FFFFFF; } 25.2%, 100% { border-color: #7FD510; } }
@keyframes scanFlash { 0%, 25.2% { opacity: 0; } 25.6% { opacity: .9; } 26.6%, 100% { opacity: 0; } }
@keyframes scanOk { 0%, 25.6% { opacity: 0; } 26.4%, 100% { opacity: 1; } }
@keyframes scanPop { 0%, 25.8% { transform: scale(.6); } 27%, 100% { transform: none; } }
@keyframes prog { 0%, 12.8% { transform: scaleX(0); } 16.7%, 40% { transform: scaleX(1); } 41%, 100% { transform: scaleX(0); } }
@keyframes botQ { 0%, 12.4% { opacity: 0; transform: translateY(10px); } 13.3%, 40% { opacity: 1; transform: none; } 41%, 100% { opacity: 0; } }
@keyframes botA { 0%, 14.8% { opacity: 0; transform: translateY(10px); } 15.9%, 40% { opacity: 1; transform: none; } 41%, 100% { opacity: 0; } }
@keyframes jusOk { 0%, 14.9% { transform: none; background: #E6F6EA; color: #22A650; } 15.3% { transform: scale(.92); } 15.8%, 40% { transform: none; background: #22A650; color: #FFFFFF; } 41%, 100% { background: #E6F6EA; color: #22A650; } }
@keyframes jusWait { 0%, 15.6% { opacity: 1; } 16.2%, 40% { opacity: 0; } 41%, 100% { opacity: 1; } }
@keyframes jusDone { 0%, 15.6% { opacity: 0; } 16.2%, 40% { opacity: 1; } 41%, 100% { opacity: 0; } }
@keyframes jusBorder { 0%, 15.6% { border-left-color: #E08A00; } 16.2%, 40% { border-left-color: #22A650; } 41%, 100% { border-left-color: #E08A00; } }
@keyframes swapA { 0%, 80.2% { opacity: 1; } 81.2%, 100% { opacity: 0; } }
@keyframes swapB { 0%, 80.2% { opacity: 0; } 81.2%, 100% { opacity: 1; } }
@keyframes rowSwap { 0%, 80.2% { border-left-color: #D41F4C; } 81.2%, 100% { border-left-color: #2F6FD6; } }
@keyframes jSwap { 0%, 80.2% { background: #FDE8EE; color: #D41F4C; } 81.2%, 100% { background: #E8F0FD; color: #2F6FD6; } }
.scr--tab2 { animation: sw3 36s linear infinite; animation-delay: -28.38s; }
.scr--tab3 { animation: sw3 36s linear infinite; animation-delay: -16.38s; }
.scr--lap3 { animation: sw3 36s linear infinite; animation-delay: -12.38s; }
.scr--mob2 { animation: sw3 36s linear infinite; animation-delay: -20.38s; }
.scr--mob3 { animation: sw3 36s linear infinite; animation-delay: -8.38s; }
.hud-round { position: absolute; inset: 0; z-index: 500; pointer-events: none; animation: sw3 36s linear infinite; }
.hr2 { animation-delay: -24s; }
.hr3 { animation-delay: -12s; }

.in { animation: up .9s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
.pop { animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.qra { animation: qr 8s linear infinite; }
.qrb { animation: qr 8s linear infinite; animation-delay: -4s; }

@supports (animation-timeline: view()) {
  .rv { animation: up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in, .pop, .qra, .qrb, .orbP, .orbM, .orbT, .rv, .lock, .lead, .tag, .ping { animation: none; }
  .a2, .a3, .hr2, .hr3 { display: none; }
  .scr, .hud-round, .edt-card, .mob-prog b, .bot-q, .bot-a, .jus-card, .jus-state span, .jus-ok,
  .scan-frame, .scan-frame i, .scan-frame b, .scan-flash, .scan-ok, .scan-check, .swap-a, .swap-b, .prof-row--swap, .prof-j, .qr-off, .pf-live i { animation: none; }
  .scr--qr, [data-hud="l1b"] { display: none; }
  .stage, .themes { transition: none; }
  .scan-ok { opacity: 1; }
  .qrb { opacity: 0; }
  .btn, .mstep__num, .hero__word { transition: none; }
}

/* --- Small screens ------------------------------------------------------- */

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  /* Header: logo and button on the first row, links below */
  .header { grid-template-columns: 1fr auto; grid-template-areas: "logo cta" "nav nav"; padding-top: 16px; padding-bottom: 8px; gap: 4px 12px; }
  .header__logo img { height: 36px; }
  .header__cta { padding: 9px 16px; font-size: 15px; }
  .nav { justify-self: start; margin-left: -12px; font-size: 15px; }
  .nav a { padding: 10px 12px; }

  .hero { padding-top: 40px; padding-bottom: 72px; gap: 22px; }
  /* The badge sentence is hidden: only the "Picalys Software" pill remains */
  .badge { padding: 0; border: 0; }
  .badge__text { display: none; }
  .hero__title { font-size: clamp(26px, 8vw, 40px); }
  .hero__lead { font-size: 18px; }
  .hero__actions { flex-direction: column; align-self: stretch; align-items: stretch; width: 100%; max-width: 360px; margin: 0 auto; }
  .hero__actions .btn { width: 100%; justify-content: center; text-align: center; }
  .polyflex, .method__inner, .contact { padding-top: 80px; padding-bottom: 80px; }
  .h3 { font-size: 28px; }
  .form { padding: 24px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 359px) {
  .header__logo img { height: 30px; }
  .header__cta { padding: 8px 12px; font-size: 14px; }
}
