/* =========================================================================
   0. DESIGN TOKENS
   Palette confirmée sur les12portes.fr (WordPress Salient) :
   - Accent PPL global #EE8C2A, navy #003F5D (header/footer/hub/hero/histoire)
   - Palette 12 couleurs "Sunset" = CSS custom Tally du quiz (custom-css.txt)
   - 4 couleurs de "famille" par porte, confirmées sur le hub + --profile-color live
   ========================================================================= */
:root {
  /* Marque */
  --brand-navy: #003F5D;
  --brand-orange: #EE8C2A;
  --bg: #FAF8F5;
  --card-bg: #ffffff;
  --ink: #1a1a1a;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --radius: 14px;

  /* Dégradé 12 couleurs "Sunset" (quiz — custom-css.txt Tally, section 5) */
  --color-1: #003F5C;
  --color-2: #1F3E6D;
  --color-3: #3C3C7A;
  --color-4: #5A3882;
  --color-5: #793284;
  --color-6: #972A7E;
  --color-7: #B32372;
  --color-8: #CA2260;
  --color-9: #DB2C49;
  --color-10: #E64230;
  --color-11: #EB6617;
  --color-12: #EE8C2A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--brand-orange); }

h1, h2, h3 { color: var(--brand-navy); font-weight: 700; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }

/* =========================================================================
   1. HEADER (Salient desktop / Mono-ligne sticky mobile 52px)
   ========================================================================= */
header.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 20px;
}
.site-header__nav {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header__logo {
  grid-column: 2;
  justify-self: center;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.site-header__logo img {
  height: clamp(34px, 5.2vw, 52px);
  width: auto;
  display: block;
}
.site-header__logo-mobile {
  display: none;
}
.site-header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header__cta {
  background: var(--brand-orange);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.site-header__cta:hover { background: #f59943; transform: translateY(-1px); }

.site-header__burger {
  display: none;
}

.site-header__nav a {
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: .03em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color .15s ease;
}
.site-header__nav a:hover { color: var(--brand-orange); }
.site-header__nav a[aria-current="page"] { color: var(--brand-orange); }

/* Focus clavier accessible */
.site-header a:focus-visible,
.site-header button:focus-visible,
.skip-link:focus-visible {
  outline: 2px solid var(--brand-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand-navy);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Header mobile mono-ligne sticky (<= 860px) */
@media (max-width: 860px) {
  header.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    min-height: 52px;
    box-sizing: border-box;
  }
  .site-header__logo {
    justify-self: auto;
    min-height: 44px;
  }
  .site-header__logo-desktop {
    display: none !important;
  }
  .site-header__logo-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }
  .site-header__logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }
  .site-header__logo-text {
    font-family: Inter, Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -0.01em;
    white-space: nowrap;
  }
  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: auto;
  }
  .site-header__cta {
    padding: 8px 13px;
    font-size: 11px;
    border-radius: 6px;
    letter-spacing: .03em;
  }
  .site-header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    color: var(--brand-navy);
    transition: background .15s ease, border-color .15s ease;
  }
  .site-header__burger:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
  }
  .site-header__burger-box {
    width: 18px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .site-header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--brand-navy);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) {
    opacity: 0;
  }
  .site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Menu déroulant */
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--brand-orange);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    padding: 6px 0;
    gap: 0;
    z-index: 999;
  }
  .site-header__nav.is-open {
    display: flex;
  }
  .site-header__nav a {
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--brand-navy);
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 48px;
  }
  .site-header__nav a:last-child {
    border-bottom: none;
  }
  .site-header__nav a:hover,
  .site-header__nav a[aria-current="page"] {
    background: #fdf5ec;
    color: var(--brand-orange);
  }
}

@media (max-width: 350px) {
  .site-header__inner {
    padding: 8px 10px;
  }
  .site-header__actions {
    gap: 6px;
  }
  .site-header__cta {
    padding: 8px 10px;
    font-size: 10px;
  }
  .site-header__logo-text {
    font-size: 13px;
  }
}

/* =========================================================================
   2. FOOTER (liens directs target=_blank, pas de modal — comportement réel prod)
   ========================================================================= */
footer.site-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: #777;
  background: #fff;
  border-top: 1px solid #eee;
}
.site-footer__legal { margin-bottom: 10px; }
.site-footer__legal a {
  color: #777;
  text-decoration: underline;
  font-size: 13px;
  margin: 0 10px;
}
.site-footer__legal a:hover { color: var(--brand-orange); }

/* =========================================================================
   3. WRAPPERS GÉNÉRIQUES (pages simples : passer-le-test, lettres-gratuites)
   ========================================================================= */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}
.container--wide { max-width: 1180px; }
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
}
button.next-btn, .btn {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
button.next-btn:hover, .btn:hover { background: #f59943; }
button.next-btn:disabled { background: #ccc; cursor: not-allowed; }

input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  font-size: 20px;
  border: 2px solid #ddd;
  border-radius: 10px;
  margin: 16px 0;
  font-family: inherit;
}

.coreg-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.coreg-item { display: flex; align-items: flex-start; gap: 12px; }
.coreg-item input[type="checkbox"] { margin-top: 4px; width: 20px; height: 20px; }

/* =========================================================================
   3bis. PAGE HEADER UNIFIÉ — Standardisation sobre (zéro sapin de Noël)
   ========================================================================= */
.page-header {
  background: #fff;
  text-align: center;
  padding: clamp(36px, 5vw, 60px) 24px clamp(20px, 3vw, 32px);
}
.page-header__inner {
  max-width: 900px;
  margin: 0 auto;
}
.page-header__title,
h1.page-header__title,
.t12p-hero__title,
.t12p-lh__h1,
.quiz-hero__title,
.porte-hero__title,
.portes-hub__intro h1 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--brand-navy);
  margin: 0;
}
.page-header .t12p-hero__rule,
.page-header__rule {
  width: 56px;
  height: 3px;
  background: #EE8C2A;
  margin: 22px auto 0;
  border-radius: 2px;
}
.page-header__title--split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.page-header__title-main {
  display: block;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}
.page-header__title-sub {
  display: block;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  color: #445668;
}

/* =========================================================================
   4. HOME — hero (bloc autonome .t12p-hero__*, repris à l'identique de la prod)
   ========================================================================= */
.t12p-hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: clamp(24px, 4vw, 48px) 24px clamp(20px, 3vw, 36px);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
.t12p-hero__watermark {
  position: absolute;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(280px, 38vw, 520px);
  font-weight: 900;
  line-height: .9;
  color: rgba(0, 63, 93, .045);
  pointer-events: none;
  user-select: none;
  letter-spacing: -.05em;
  z-index: 1;
}
.t12p-hero__char {
  position: absolute;
  bottom: -20px;
  height: clamp(140px, 16vw, 250px) !important; max-height: 250px !important; width: auto !important;
  z-index: 1;
  pointer-events: none;
}
.t12p-hero__char--left { left: -20px; }
.t12p-hero__char--right { right: -20px; transform: scaleX(-1); }
.t12p-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.t12p-hero__rule {
  width: 56px;
  height: 3px;
  background: #EE8C2A;
  margin: 28px auto 26px;
  border-radius: 2px;
}
.t12p-hero__lead {
  color: #2a3744;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  margin: 0 auto 44px;
  font-weight: 400;
}
.t12p-hero__cta {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #EE8C2A;
  color: #fff !important;
  padding: 19px 38px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 14px 34px -12px rgba(238, 140, 42, .55);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.t12p-hero__cta:hover, .t12p-hero__cta:focus {
  transform: translateY(-2px);
  background: #f59943;
  box-shadow: 0 18px 40px -10px rgba(238, 140, 42, .7);
  color: #fff !important;
}
.t12p-hero__cta svg { transition: transform .18s ease; }
.t12p-hero__cta:hover svg { transform: translateX(4px); }
.t12p-hero__cards {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
}
.t12p-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 24px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 63, 93, 0.04);
}
@media (max-width: 980px) { .t12p-hero__char { display: none; } }
@media (max-width: 760px) {
  .t12p-hero__watermark { font-size: 220px; top: 5%; right: -8%; transform: none; color: rgba(0, 63, 93, .035); }
  .t12p-hero__cta { padding: 17px 26px; font-size: 13.5px; letter-spacing: .08em; }
  .t12p-hero__title { font-size: clamp(28px, 8vw, 38px); }
}
@media (max-width: 768px) { .t12p-hero__cards { flex-direction: column; gap: 16px; } }

/* =========================================================================
   5. HISTOIRE — bloc autonome .t12p-lh__* (repris à l'identique de la prod)
   ========================================================================= */
.t12p-lh, .t12p-lh * { box-sizing: border-box; }
.t12p-lh {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: #2a3744;
  line-height: 1.65;
  background: #fff;
}
.t12p-lh__wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.t12p-lh__hero { text-align: center; padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); }
.t12p-lh__h1 em, .t12p-lh__h2 em, .t12p-lh__frust-h em, .t12p-lh__cta-h em { font-style: normal; color: #EE8C2A; }
.t12p-lh__rule { width: 56px; height: 3px; background: #EE8C2A; margin: 28px auto 0; border-radius: 2px; }
.t12p-lh__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
.t12p-lh__split--reverse .t12p-lh__col-img { order: -1; }
.t12p-lh__h2 {
  color: #003F5D;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.t12p-lh__h2-kicker {
  color: #EE8C2A;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.t12p-lh p { margin: 0 0 16px; font-size: 17px; line-height: 1.7; color: #3d4d5b; }
.t12p-lh strong { color: #003F5D; font-weight: 600; }
.t12p-lh__lede { font-size: 17px !important; color: #2a3744 !important; }
.t12p-lh__col-img { align-self: stretch; }
.t12p-lh__col-img img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0,63,93,.25);
  display: block;
}
.t12p-lh__band { background: linear-gradient(180deg, #f4f7fa 0%, #ffffff 100%); padding: clamp(36px, 5vw, 64px) 0; }
.t12p-lh__band-inner { max-width: 880px; margin: 0 auto; padding: 0 24px; text-align: center; }
.t12p-lh__band p { font-size: 17px; }
.t12p-lh__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.t12p-lh__pillar { background: #fff; border: 1px solid rgba(0,63,93,.08); border-radius: 14px; padding: 24px 20px; text-align: center; }
.t12p-lh__pillar-icon {
  width: 44px; height: 44px; margin: 0 auto 14px;
  background: rgba(238,140,42,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #EE8C2A;
}
.t12p-lh__pillar-t { font-weight: 700; color: #003F5D; font-size: 16px; margin-bottom: 6px; }
.t12p-lh__pillar-d { font-size: 14px; color: #5a6b7a; line-height: 1.55; }
.t12p-lh__bullets { list-style: none; padding: 0; margin: 22px 0; }
.t12p-lh__bullets li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid rgba(0,63,93,.06); }
.t12p-lh__bullets li:last-child { border-bottom: none; }
.t12p-lh__bullets svg { flex-shrink: 0; color: #EE8C2A; margin-top: 2px; }
.t12p-lh__bullets b { color: #003F5D; font-weight: 600; }
.t12p-lh__frust-wrap { background: #fbf8f4; padding: clamp(40px, 5vw, 64px) 0; }
.t12p-lh__frust-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.t12p-lh__frust-h { text-align: center; color: #003F5D; font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; margin: 0 0 8px; }
.t12p-lh__frust-sub { text-align: center; color: #5a6b7a; margin-bottom: 32px !important; font-size: 16px !important; }
.t12p-lh__frust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.t12p-lh__frust-card {
  background: #fff; border: 1px solid rgba(0,63,93,.08); border-radius: 12px;
  padding: 20px 22px; position: relative; transition: transform .2s ease, box-shadow .2s ease;
}
.t12p-lh__frust-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(0,63,93,.18); }
.t12p-lh__frust-q { color: #003F5D; font-style: italic; font-weight: 600; font-size: 15.5px; line-height: 1.45; margin-bottom: 8px !important; }
.t12p-lh__frust-a { color: #5a6b7a; font-size: 14px; line-height: 1.55; margin: 0 !important; }
.t12p-lh__frust-mark { position: absolute; top: 12px; right: 16px; font-size: 42px; color: rgba(238,140,42,.2); font-family: Georgia, serif; line-height: 1; font-weight: 700; }
.t12p-lh__cta-section {
  background: linear-gradient(135deg, #003F5D 0%, #00567d 100%);
  padding: clamp(48px, 6vw, 80px) 24px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.t12p-lh__cta-section::after {
  content: "12"; position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  font-family: Georgia, serif; font-size: clamp(200px, 30vw, 400px); color: rgba(255,255,255,.04);
  font-weight: 900; pointer-events: none;
}
.t12p-lh__cta-h { color: #fff; font-size: clamp(28px, 2.8vw, 42px); font-weight: 700; line-height: 1.25; margin: 0 0 14px; position: relative; z-index: 2; }
.t12p-lh__cta-p { color: rgba(255,255,255,.78) !important; font-size: 17px !important; max-width: 540px; margin: 0 auto 28px !important; position: relative; z-index: 2; }
.t12p-lh__cta-btn {
  display: inline-flex; align-items: center; gap: 12px; background: #EE8C2A; color: #fff !important;
  padding: 18px 36px; font-size: 14.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 8px; text-decoration: none !important; box-shadow: 0 18px 40px -12px rgba(238,140,42,.5);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; position: relative; z-index: 2;
}
.t12p-lh__cta-btn:hover { transform: translateY(-2px); background: #f59943; box-shadow: 0 22px 44px -10px rgba(238,140,42,.6); color: #fff !important; }
.t12p-lh__cta-btn svg { transition: transform .18s ease; }
.t12p-lh__cta-btn:hover svg { transform: translateX(4px); }
@media (max-width: 860px) {
  .t12p-lh__split { grid-template-columns: 1fr; gap: 32px; }
  .t12p-lh__split--reverse .t12p-lh__col-img { order: 0; }
  .t12p-lh__pillars { grid-template-columns: 1fr; }
}

/* =========================================================================
   6. HUB /les-portes/ — grille des 12 profils (4 familles de couleur)
   ========================================================================= */
.portes-hub__intro {
  text-align: center;
  padding: clamp(36px, 5vw, 64px) 24px clamp(28px, 4vw, 44px);
  background: #fff;
  border-bottom: 1px solid #eee;
}
.portes-hub__wrap {
  max-width: 900px;
  margin: 0 auto;
}
.portes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.portes-grid__card {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
}
.portes-grid__card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.portes-grid__card img { width: 100%; aspect-ratio: 4/3; object-fit: contain; display: block; }
.portes-grid__card h3 {
  margin: 18px 20px 8px;
  font-size: 17px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.portes-grid__card p { margin: 0 20px 20px; font-size: 14.5px; line-height: 1.55; color: #4a5560; }

/* =========================================================================
   7. FICHE PORTE — profil coloré (--profile-color), sidebar 10 ancres, quote-custom
   ========================================================================= */
.porte-hero {
  background: linear-gradient(180deg, #fbfaf8 0%, #fff 100%);
  padding: clamp(36px, 5vw, 56px) 24px clamp(28px, 4vw, 40px);
}
.porte-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  text-align: left;
}
.porte-hero__text { flex: 1 1 auto; }
.porte-hero__title { color: var(--profile-color, var(--brand-navy)); margin: 0; }
.porte-hero__image { max-width: 220px; flex: 0 0 auto; display: block; }
@media (max-width: 720px) {
  .porte-hero__inner { flex-direction: column; text-align: center; }
}

.porte-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  align-items: start;
}
.porte-sidebar { position: sticky; top: 20px; }
.porte-back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #999;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 20px;
  transition: color .2s ease;
}
.porte-back-link:hover { color: var(--profile-color, var(--brand-orange)); }
.porte-back-link__arrow { font-size: 20px; line-height: 1; }
.menu-menu-profil-container ul.menu { list-style: none; margin: 0; padding: 0; }
.menu-menu-profil-container ul.menu li { list-style: none; margin: 0; padding: 0; }
.menu-menu-profil-container ul.menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.menu-menu-profil-container ul.menu li a::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.4;
  margin-left: 10px;
}
.menu-menu-profil-container ul.menu li a:hover {
  color: var(--profile-color);
  border-left-color: var(--profile-color);
  background-color: rgba(0, 0, 0, 0.02);
  padding-left: 12px;
}
.menu-menu-profil-container ul.menu li a:hover::after { opacity: 1; border-color: var(--profile-color); }

.porte-content { min-width: 0; }
.porte-section { padding-top: 6px; }
.porte-section h2 {
  color: var(--profile-color, var(--brand-navy));
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 25px;
  margin-top: 50px;
}
.porte-section:first-child h2 { border-top: none; padding-top: 0; margin-top: 0; }
.porte-content p { line-height: 1.7; }
.porte-content h3 { font-size: 18px; margin-top: 24px; }

.quote-custom {
  position: relative;
  background-color: #fcfcfc;
  border-left: 5px solid var(--profile-color, var(--brand-orange));
  padding: 30px 40px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.03);
  text-align: left;
}
.quote-custom em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
  color: #444;
  line-height: 1.4;
  display: block;
}
.porte-hero .quote-custom { text-align: center; }
.porte-hero .quote-custom em { text-align: center; }

.porte-quote-secondary {
  border-left: 3px solid var(--profile-color, var(--brand-orange));
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  color: var(--brand-navy);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  font-style: italic;
}

.profile-example {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #fbfaf7;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 20px;
  margin: 32px 0;
}
.profile-example img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.profile-example__eyebrow {
  display: block;
  color: var(--profile-color, var(--brand-orange));
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-example h3 { margin: 0 0 6px; font-size: 17px; }
.profile-example p { margin: 0; font-size: 14.5px; line-height: 1.55; }

@media (max-width: 860px) {
  .porte-layout { grid-template-columns: 1fr; }
  .porte-sidebar { position: static; }
  .profile-example { flex-direction: column; text-align: center; }
}

/* Widget de partage social (bas de fiche porte, parité prod) */
.share-12portes-container {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px 15px;
  margin: 32px 0 0;
  text-align: center;
}
.share-12portes-title { color: var(--brand-navy); font-weight: 700; font-size: 1.25em; margin-bottom: 5px; }
.share-12portes-subtitle { color: #666; font-style: italic; font-size: .95em; margin-bottom: 20px; }
.share-buttons-list { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.share-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--brand-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all .3s ease;
}
.share-btn:hover { background-color: var(--brand-orange); transform: translateY(-3px); }
.share-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
@media (min-width: 992px) {
  .btn-messenger, .btn-insta { display: none; }
}
.copy-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: var(--brand-navy);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 10;
}

/* =========================================================================
   8. QUIZ /passer-le-test/ — parité Tally (custom-css.txt exporté du formulaire)
   Scope volontairement limité à #quiz-root (police Roboto propre au widget Tally).
   ========================================================================= */
.quiz-hero {
  text-align: center;
  padding: clamp(36px, 5vw, 56px) 20px 0;
}
.quiz-hero .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}
.quiz-hero__subtitle {
  color: #5a6b7a;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

#quiz-root { font-family: 'Roboto', sans-serif; }
#quiz-root .container { max-width: 900px; padding: 28px 20px 80px; }

#quiz-root .card {
  background: #fcf9f1;
  border-radius: 50px;
  box-shadow: rgba(60, 64, 67, 0.2) 0px 8px 24px 0px;
  padding: 5%;
}
@media (max-width: 768px) {
  #quiz-root .card { padding: 24px 20px; border-radius: 24px; }
}

#quiz-root h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--brand-navy);
  line-height: 1.2;
  text-align: center;
  margin-top: 0;
}
#quiz-root .card p { font-size: 18px; text-align: center; color: var(--ink); }
#quiz-root .hint em {
  display: block;
  font-size: 14px;
  color: #8a8a8a;
  font-style: italic;
  font-weight: 400;
  text-align: center;
  margin-top: -8px;
}

#quiz-root .option-list { display: flex; flex-direction: column; gap: 8px; margin: 24px 0; }

#quiz-root .option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f4f4f5;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 19px;
  line-height: 1.4;
  color: #232323;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#quiz-root .option:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 63, 92, 0.08);
  border-color: rgba(0, 63, 92, 0.25);
}
#quiz-root .option.selected {
  box-shadow: 0 6px 16px rgba(238, 140, 42, 0.20);
  border-color: var(--brand-orange);
  background-color: #fffaf3;
}

/* Cercles à cocher colorés (Q3/Q5 uniquement — 12 profils, dégradé Sunset) */
#quiz-root .bullet {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #ddd;
  position: relative;
  transition: all 0.2s ease-in-out;
}
#quiz-root .checkbox-option.selected .bullet::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
#quiz-root .bullet.c1 { border-color: var(--color-1); }
#quiz-root .bullet.c2 { border-color: var(--color-2); }
#quiz-root .bullet.c3 { border-color: var(--color-3); }
#quiz-root .bullet.c4 { border-color: var(--color-4); }
#quiz-root .bullet.c5 { border-color: var(--color-5); }
#quiz-root .bullet.c6 { border-color: var(--color-6); }
#quiz-root .bullet.c7 { border-color: var(--color-7); }
#quiz-root .bullet.c8 { border-color: var(--color-8); }
#quiz-root .bullet.c9 { border-color: var(--color-9); }
#quiz-root .bullet.c10 { border-color: var(--color-10); }
#quiz-root .bullet.c11 { border-color: var(--color-11); }
#quiz-root .bullet.c12 { border-color: var(--color-12); }
#quiz-root .checkbox-option.selected .bullet.c1 { background: var(--color-1); border-color: var(--color-1); }
#quiz-root .checkbox-option.selected .bullet.c2 { background: var(--color-2); border-color: var(--color-2); }
#quiz-root .checkbox-option.selected .bullet.c3 { background: var(--color-3); border-color: var(--color-3); }
#quiz-root .checkbox-option.selected .bullet.c4 { background: var(--color-4); border-color: var(--color-4); }
#quiz-root .checkbox-option.selected .bullet.c5 { background: var(--color-5); border-color: var(--color-5); }
#quiz-root .checkbox-option.selected .bullet.c6 { background: var(--color-6); border-color: var(--color-6); }
#quiz-root .checkbox-option.selected .bullet.c7 { background: var(--color-7); border-color: var(--color-7); }
#quiz-root .checkbox-option.selected .bullet.c8 { background: var(--color-8); border-color: var(--color-8); }
#quiz-root .checkbox-option.selected .bullet.c9 { background: var(--color-9); border-color: var(--color-9); }
#quiz-root .checkbox-option.selected .bullet.c10 { background: var(--color-10); border-color: var(--color-10); }
#quiz-root .checkbox-option.selected .bullet.c11 { background: var(--color-11); border-color: var(--color-11); }
#quiz-root .checkbox-option.selected .bullet.c12 { background: var(--color-12); border-color: var(--color-12); }

#quiz-root button.next-btn {
  display: flex;
  margin: 16px auto 0;
  background-color: var(--brand-navy);
  box-shadow: 0 4px 14px rgba(0, 63, 92, 0.25);
  border-radius: 50px;
  padding: 16px 40px;
  font-size: 20px;
  font-weight: 600;
}
#quiz-root button.next-btn:hover:not(:disabled) {
  background-color: var(--brand-orange);
  box-shadow: 0 6px 20px rgba(238, 140, 42, 0.35);
}

/* Étape finale (résultat + email) */
#quiz-root .result-hero { text-align: center; }
#quiz-root .result-hero img { max-width: 320px; margin: 8px auto 12px; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12)); }
#quiz-root .result-citation { font-style: italic; font-size: 22px; color: #4a5d6e; margin: 12px 0; }
#quiz-root .masked { filter: blur(6px); user-select: none; }
#quiz-root .result-hero img.masked { filter: blur(6px) drop-shadow(0 6px 14px rgba(0,0,0,0.12)); }
#quiz-root input[type="email"] {
  border: 2px solid var(--brand-orange);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(238, 140, 42, 0.10);
  text-align: center;
  font-family: inherit;
}
#quiz-root input[type="email"]:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(0, 63, 92, 0.12);
  outline: none;
}
#quiz-root .card p.coreg-label { text-align: left; width: 100%; margin: 20px auto 8px; font-weight: 700; font-size: 15px; color: var(--brand-navy); }
#quiz-root .coreg-list { text-align: left; width: 100%; margin: 0 auto 24px; display: flex; flex-direction: column; gap: 12px; }
#quiz-root .coreg-card {
  display: flex;
  width: 100%;
  padding: 12px;
  border: 1px solid #e3e8ec;
  border-radius: 12px;
  background: #f9fbfc;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#quiz-root .coreg-card:hover { border-color: var(--brand-orange); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
#quiz-root .coreg-card__body { display: flex; align-items: flex-start; gap: 10px; text-align: left; width: 100%; }
#quiz-root .coreg-card__body input[type="checkbox"] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand-orange); flex-shrink: 0; }
#quiz-root .coreg-card__title { display: block; font-weight: 700; font-size: 15px; color: var(--brand-navy); text-align: left; }
#quiz-root .coreg-list .coreg-card__desc { margin: 4px 0 0; font-size: 13px; color: #4a5d6e; line-height: 1.4; text-align: left; }
#quiz-root .btn {
  background: var(--brand-navy);
  box-shadow: 0 4px 14px rgba(0, 63, 92, 0.25);
}
#quiz-root .btn:hover { background: var(--brand-orange); box-shadow: 0 6px 20px rgba(238, 140, 42, 0.35); }

/* Utilitaires d'accessibilité & SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
