:root {
  --navy-950: #000d3c;
  --navy-900: #0e3260;
  --navy-800: #173e69;
  --teal-700: #176b7e;
  --cyan-500: #00a0df;
  --ink: #343434;
  --muted: #647b8c;
  --line: #ccd8e1;
  --line-soft: #e5ebef;
  --surface: #fff;
  --danger: #963d3d;
  font-family: Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input, select { font: inherit; }
button, label, select { cursor: pointer; }
button { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(0,160,223,.42); outline-offset: 3px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Enveloppe fidèle au template Branchet */
.header-shell { width: min(1200px, 100%); margin: 0 auto; }
.top-links { height: 32px; color: #fff; background: var(--navy-950); }
.top-links__inner { height: 100%; display: flex; justify-content: flex-end; }
.top-links a { height: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 0 20px; border-left: 1px solid #0d2a58; font-size: 11px; font-weight: 400; line-height: 1; text-transform: uppercase; }
.top-links a:last-child { border-right: 1px solid rgba(255,255,255,.13); }
.top-links svg { width: 13px; height: 13px; }
.main-nav { color: #fff; background: var(--navy-900); }
.main-nav__inner { min-height: 84px; display: grid; grid-template-columns: 21.714% 55.896% 22.055%; align-items: center; }
.brand-logo { width: 100%; display: inline-flex; justify-content: center; padding: 10px; }
.brand-logo img { display: block; width: 160px; height: auto; }
.desktop-menu { width: 100%; display: flex; align-items: center; justify-content: center; padding: 10px 10px 10px 31px; }
.desktop-menu a { position: relative; display: flex; align-items: center; padding: 10px; font-size: 15px; font-weight: 500; line-height: 30px; text-transform: uppercase; white-space: nowrap; }
.desktop-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 22px; height: 2px; background: var(--cyan-500); transition: right 180ms ease; }
.desktop-menu a:hover::after { right: 0; }
.header-actions { width: 100%; display: flex; align-items: center; justify-content: center; padding: 10px; }
.search-link { min-width: 54px; height: 42px; display: grid; place-items: center; border-radius: 6px; background: var(--navy-950); }
.search-link svg { width: 19px; height: 19px; stroke-width: 2.6; }
.account-link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; margin-left: 30px; padding: 0 20px; border-radius: 6px; background: var(--cyan-500); font-size: 13px; font-weight: 600; letter-spacing: 1.2px; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.account-link svg { width: 17px; height: 17px; fill: currentColor; }
.mobile-menu { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; color: #fff; background: transparent; }

.page-main { width: min(1000px, calc(100% - 40px)); min-height: 980px; margin: 0 auto; padding: 48px 0 64px; }
.view { display: none; }
.view.is-active { display: block; animation: view-in 220ms ease-out both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }
.demo-form { margin-inline: auto; }

/* État actuel, calé sur le module HubSpot */
.legacy-form { width: min(750px, 100%); margin-inline: 0; color: #333; font-size: 16px; line-height: 1.5; }
.legacy-form > * { width: min(750px, 100%); }
.legacy-header h1 { margin: 0 0 7px; color: var(--cyan-500); font-size: 40px; font-weight: 800; line-height: 1.3; }
.legacy-header h2 { margin: 0 0 24px; color: var(--navy-950); font-size: 34px; font-weight: 900; line-height: 1.25; }
.legacy-header p { margin: 0 0 4px; }
.legacy-instruction { margin: 0 0 10px; }
.legacy-language { width: auto; min-height: 34px; margin: 9px 0 11px; padding: 3px 8px; border: 1px solid #666; border-radius: 5px; color: #222; background: #fff; }
.legacy-item { padding: 6px 0 14px; }
.legacy-item label { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; }
.legacy-item input { width: 15px; height: 15px; accent-color: #2789d7; }
.legacy-item p { margin: 4px 0 0 23px; font-size: 16px; }
.legacy-unsubscribe { margin-top: 7px; }
.legacy-unsubscribe strong { display: block; margin-bottom: 11px; font-weight: 400; }
.legacy-unsubscribe label { display: flex; align-items: center; gap: 7px; font-size: 17px; }
.legacy-unsubscribe input { width: 17px; height: 17px; }
.legacy-submit { width: min(331px, 100%); min-height: 76px; margin-top: 28px; padding: 14px 24px; border: 1px solid var(--cyan-500); border-radius: 6px; color: #fff; background: var(--cyan-500); font-size: 15px; font-weight: 700; letter-spacing: .08em; line-height: 1.55; text-transform: uppercase; }
.legacy-submit:hover { border-color: #21222a; background: #21222a; }

/* Éléments communs des maquettes */
.preference-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 7px; color: var(--teal-700); background: #edf6f8; }
.preference-icon svg { width: 20px; height: 20px; }
.switch { position: relative; width: 43px; height: 44px; display: inline-flex; align-items: center; flex: 0 0 43px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { position: absolute; left: 0; right: 0; top: 9px; height: 26px; border-radius: 999px; background: #aebdc6; transition: background 180ms ease; }
.switch-ui::after { content: ""; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform 180ms ease; }
.switch input:checked + .switch-ui { background: var(--teal-700); }
.switch input:checked + .switch-ui::after { transform: translateX(17px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid rgba(0,160,223,.35); outline-offset: 3px; }

/* Maquette 1 */
.compact-form { width: min(760px, 100%); color: #173c52; }
.compact-heading { display: flex; gap: 13px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.compact-heading__icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 9px; color: #fff; background: var(--teal-700); }
.compact-heading__icon svg { width: 21px; height: 21px; }
.compact-heading h1 { margin: 0; color: #123f56; font-size: 22px; line-height: 1.2; }
.compact-heading p { margin: 3px 0 0; color: #73899a; font-size: 13px; }
.compact-lead { margin: 22px 0 13px; color: #3c5668; font-size: 14px; line-height: 1.55; }
.account-card { padding: 12px 15px; border-radius: 7px; background: #edf3f7; }
.account-card span { display: block; margin-bottom: 5px; color: #6f8798; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.account-card strong { display: flex; align-items: center; gap: 8px; color: #20485d; font-size: 14px; }
.account-card svg { color: var(--teal-700); }
.compact-note { margin: 12px 0 18px; color: #6f8494; font-size: 11px; }
.section-heading h2 { margin: 0; color: #18465d; font-size: 18px; }
.section-heading p { margin: 6px 0 14px; color: #73899a; font-size: 13px; }
.compact-list { display: grid; gap: 10px; }
.compact-item { min-height: 74px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; padding: 10px 13px; border: 1px solid #bfd0dc; border-radius: 8px; background: #fff; transition: border 180ms ease, box-shadow 180ms ease; }
.compact-item:hover { border-color: #86b6c5; box-shadow: 0 7px 20px rgba(15,70,93,.08); }
.compact-item h3 { margin: 0 0 4px; color: #19465d; font-size: 14px; font-weight: 600; }
.compact-item p { margin: 0; color: #6f8494; font-size: 11px; line-height: 1.4; }
.compact-submit { width: 100%; min-height: 50px; margin-top: 20px; border: 0; border-radius: 6px; color: #fff; background: var(--teal-700); font-size: 14px; font-weight: 600; }
.compact-submit:hover { background: #0e586a; }
.after-submit { margin: 9px 0 20px; text-align: center; color: #798d9b; font-size: 10px; }
.compact-danger { padding-top: 20px; border-top: 1px solid var(--line); }
.compact-danger h2 { margin: 0 0 7px; font-size: 15px; }
.compact-danger p { margin: 0 0 12px; color: #708696; font-size: 12px; }
.compact-danger button { width: 100%; min-height: 48px; border: 1px solid #aabfce; border-radius: 6px; color: #294a5e; background: #fff; font-size: 13px; }
.compact-danger button:hover { border-color: var(--danger); color: var(--danger); background: #fffafa; }
.compact-danger button.is-selected { border-color: var(--danger); color: #fff; background: var(--danger); }

/* Maquette 2 */
.cards-form { width: min(980px, 100%); }
.cards-hero { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 46px); border-radius: 22px; color: #fff; background: linear-gradient(125deg, var(--navy-950), #0c4e6a); }
.cards-hero::after { content: ""; position: absolute; width: 290px; height: 290px; right: -100px; top: -170px; border: 50px solid rgba(73,204,226,.12); border-radius: 50%; }
.cards-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #bcecf4; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cards-hero h1 { max-width: 650px; margin: 0 0 12px; font-size: clamp(28px, 4vw, 43px); line-height: 1.05; letter-spacing: -.04em; }
.cards-hero > p { max-width: 650px; margin: 0; color: #c7dce7; line-height: 1.55; }
.cards-account { position: relative; z-index: 1; width: max-content; max-width: 100%; margin-top: 24px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.09); }
.cards-account span { display: block; color: #8fc3d2; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cards-account strong { display: block; margin-top: 4px; font-size: 14px; }
.cards-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 30px 2px 16px; }
.cards-toolbar h2 { margin: 0; color: var(--navy-950); font-size: 20px; }
.cards-toolbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.cards-toolbar > span { color: var(--teal-700); font-size: 12px; font-weight: 700; }
.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.cards-item { min-height: 142px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto 1fr; gap: 10px 13px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border 180ms ease, box-shadow 180ms ease; }
.cards-item:hover { border-color: #8db7c6; box-shadow: 0 12px 30px rgba(15,60,84,.08); }
.cards-item .preference-icon { grid-row: 1 / 3; }
.cards-item__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cards-item h3 { margin: 0; color: var(--navy-950); font-size: 15px; }
.cards-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cards-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.cards-submit { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 0; border-radius: 9px; color: #fff; background: var(--teal-700); font-weight: 700; }
.cards-submit:hover { background: #0e586a; }
.text-action { min-height: 44px; border: 0; color: #6d7f8c; background: transparent; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.text-action:hover { color: var(--danger); }
.text-action.is-selected { color: var(--danger); }
.privacy-note { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.privacy-note svg { color: var(--teal-700); }

/* Maquette 3 */
.premium-form { width: min(1000px, 100%); display: grid; grid-template-columns: minmax(260px,.8fr) minmax(440px,1.5fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 22px 70px rgba(2,34,60,.1); }
.premium-aside { display: flex; flex-direction: column; padding: clamp(28px,4vw,48px); color: #fff; background: linear-gradient(155deg, var(--navy-950), #0c4d68); }
.premium-monogram { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-family: Georgia, serif; font-size: 25px; }
.premium-kicker { color: #9fdce7; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.premium-aside h1 { margin: 12px 0 16px; font-family: Georgia, serif; font-size: clamp(26px,3vw,36px); line-height: 1.22; }
.premium-aside > p { margin: 0; color: #c3d8e2; line-height: 1.65; }
.premium-account { margin-top: 32px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.08); }
.premium-account span, .premium-account strong { display: block; }
.premium-account span { color: #91bdcb; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.premium-account strong { margin-top: 5px; font-size: 13px; }
.premium-summary { margin-top: auto; padding-top: 34px; }
.premium-summary strong, .premium-summary span { display: block; }
.premium-summary strong { font-size: 14px; }
.premium-summary span { margin-top: 4px; color: #91bdcb; font-size: 11px; }
.premium-content { padding: clamp(28px,4vw,48px); }
.premium-title > span { color: var(--teal-700); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.premium-title h2 { margin: 7px 0 6px; color: var(--navy-950); font-size: 26px; }
.premium-title p { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.premium-list { display: grid; }
.premium-item { min-height: 72px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.premium-item .preference-icon { width: 38px; height: 38px; border-radius: 50%; }
.premium-item .preference-icon svg { width: 17px; height: 17px; }
.premium-item h3 { margin: 0 0 3px; color: var(--navy-950); font-size: 14px; }
.premium-item p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.premium-actions { display: flex; gap: 12px; margin-top: 26px; }
.premium-submit, .premium-unsubscribe { min-height: 48px; padding: 0 18px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.premium-submit { flex: 1; border: 1px solid var(--teal-700); color: #fff; background: var(--teal-700); }
.premium-submit:hover { background: #0e586a; }
.premium-unsubscribe { border: 1px solid var(--line); color: #526b7c; background: #fff; }
.premium-unsubscribe:hover { border-color: var(--danger); color: var(--danger); }
.premium-unsubscribe.is-selected { border-color: var(--danger); color: #fff; background: var(--danger); }
.premium-legal { margin: 16px 0 0; color: #8293a0; font-size: 10px; line-height: 1.5; }

/* Footer fidèle */
.footer-shell { width: min(1000px, calc(100% - 40px)); margin: 0 auto; }
.footer-main { color: #fff; background: var(--navy-900); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: start; gap: 0; padding: 60px 0 90px; }
.footer-grid > * { padding: 10px; }
.footer-brand img { display: block; width: 160px; height: auto; }
.footer-column { display: grid; align-content: start; gap: 0; }
.footer-column a { font-size: 15px; font-weight: 400; line-height: 24px; text-transform: uppercase; }
.footer-column a:hover { color: var(--cyan-500); }
.footer-contact { display: grid; gap: 28px; justify-items: center; }
.phone-button { min-height: 44px; display: inline-flex; align-items: center; gap: 13px; padding: 0 18px; border: 2px solid #fff; border-radius: 6px; font-size: 15px; white-space: nowrap; }
.phone-button svg { width: 20px; height: 20px; fill: currentColor; }
.socials { display: flex; gap: 14px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cyan-500); font-size: 18px; font-weight: 700; }
.footer-bottom { color: #fff; background: var(--navy-950); }
.footer-bottom__inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 13px; }
.footer-bottom nav { display: flex; align-items: center; }
.footer-bottom nav a { padding: 0 20px; border-left: 1px solid rgba(0,160,223,.55); }
.footer-bottom nav a:first-child { border-left: 0; }

.contact-rail { position: fixed; z-index: 35; right: 0; top: 56%; display: grid; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.contact-rail a { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; background: #4f5e86; }
.contact-rail a + a { border-top: 1px solid rgba(255,255,255,.1); }
.contact-rail .contact-rail__urgent { background: #ff9c63; font-size: 13px; font-weight: 900; }
.contact-rail__urgent span { width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid currentColor; border-radius: 50%; }
.contact-rail svg { width: 22px; height: 22px; }

/* Seul élément de présentation */
.variant-switcher { position: fixed; z-index: 60; left: 50%; bottom: 18px; display: flex; gap: 4px; padding: 5px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(0,13,60,.92); box-shadow: 0 10px 34px rgba(0,13,60,.3); transform: translateX(-50%); backdrop-filter: blur(12px); }
.variant-button { width: 40px; height: 40px; border: 0; border-radius: 50%; color: #cad6e4; background: transparent; font-size: 13px; font-weight: 800; transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
.variant-button:hover { color: #fff; background: rgba(255,255,255,.12); }
.variant-button.is-active { color: var(--navy-950); background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.variant-button:active { transform: scale(.95); }

.toast { position: fixed; z-index: 70; left: 50%; bottom: 82px; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; color: #fff; background: var(--navy-950); box-shadow: 0 12px 36px rgba(0,0,0,.22); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%,18px); transition: opacity 200ms ease, transform 200ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.toast svg { color: #8ce1d3; }

@media (max-width: 1050px) {
  .desktop-menu { padding-left: 20px; }
  .desktop-menu a { padding-inline: 8px; font-size: 14px; }
  .account-link { padding-inline: 14px; }
}

@media (max-width: 1024px) {
  .top-links { display: none; }
  .main-nav__inner { min-height: 76px; display: flex; padding-inline: 10px; }
  .desktop-menu, .header-actions { display: none; }
  .mobile-menu { display: grid; place-items: center; margin-left: auto; }
  .page-main { min-height: 780px; padding: 34px 18px 48px; }
  .premium-form { grid-template-columns: 1fr; }
  .premium-monogram { margin-bottom: 28px; }
  .premium-summary { margin-top: 28px; padding-top: 0; }
  .footer-grid { padding: 48px 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .brand-logo { width: auto; flex-basis: 145px; padding-inline: 0; }
  .brand-logo img { width: 145px; }
  .legacy-header h1 { font-size: 34px; }
  .legacy-header h2 { font-size: 29px; }
  .compact-heading h1 { font-size: 18px; }
  .compact-item { grid-template-columns: 38px 1fr auto; padding: 9px 10px; }
  .preference-icon { width: 38px; height: 38px; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-actions { align-items: stretch; flex-direction: column; }
  .cards-submit { width: 100%; }
  .premium-content, .premium-aside { padding: 26px 20px; }
  .premium-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .footer-brand img { margin: 0 auto; }
  .footer-contact { justify-items: center; }
  .footer-bottom__inner { padding: 20px 0 78px; flex-direction: column; }
  .footer-bottom nav { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer-bottom nav a { padding: 0; border-left: 0; }
  .contact-rail { display: none; }
}

@media (max-width: 430px) {
  .header-shell { width: calc(100% - 28px); }
  .page-main { padding-inline: 12px; }
  .legacy-header h1 { font-size: 28px; }
  .legacy-header h2 { font-size: 25px; }
  .compact-lead { font-size: 13px; }
  .compact-item { min-height: 72px; grid-template-columns: 36px 1fr 43px; gap: 10px; padding: 9px 8px; }
  .compact-item h3 { font-size: 13px; }
  .compact-item p { font-size: 10px; }
  .preference-icon { width: 36px; height: 36px; }
  .premium-item { grid-template-columns: 36px 1fr 43px; gap: 9px; }
  .premium-item p { font-size: 10px; }
  .variant-switcher { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
