/* French-accent preview: a restrained tricolour layer over the existing editorial system. */
body.challenge-page.french-accent-page{
  --page:#f4f6f8;
  --base:#fffdf9;
  --text:#12243a;
  --muted:#536273;
  --sage:#315c4e;
  --sage-deep:#183b62;
  --line:#d8e0e8;
  --gold:#b58b25;
  --fr-blue:#183b62;
  --fr-blue-soft:#eaf1f8;
  --fr-red:#be4a4a;
  --fr-red-soft:#f7e8e7;
  color-scheme:light;
  background:
    radial-gradient(circle at 84% 13%, rgba(190,74,74,.08), transparent 25rem),
    radial-gradient(circle at 8% 32%, rgba(24,59,98,.08), transparent 31rem),
    var(--page);
  color:var(--text);
}

html body.challenge-page.french-accent-page{background:var(--page)}

.french-accent-page .challenge-header{
  border-color:#cfd9e4;
  background:rgba(255,253,249,.92);
  box-shadow:0 12px 36px rgba(24,59,98,.10);
}

.french-accent-page .challenge-brand{color:var(--fr-blue)}
.french-accent-page .challenge-brand small{color:#647487}
.french-accent-page .challenge-motto{color:#607184}
.french-accent-page .challenge-nav a{color:var(--fr-blue)}

/* Keep the scale anchored to the actual artwork, including on mobile. */
.french-hero-path .challenge-hero-media{position:relative;padding-right:52px}
.french-hero-path .hero-artwork{
  position:relative;
  height:100%;
  max-width:100%;
  aspect-ratio:2 / 3;
}
.french-hero-path .hero-artwork img{width:100%;height:100%;object-fit:contain}
.french-hero-path .hero-progress-scale{
  --axis:10px;
  position:absolute;
  z-index:2;
  top:13%;
  left:calc(100% + 10px);
  width:44px;
  height:69%;
  pointer-events:none;
}
.french-hero-path .hero-progress-scale ol{position:relative;width:100%;height:100%;list-style:none;margin:0;padding:0}
.french-hero-path .hero-progress-scale ol::before{
  content:"";position:absolute;left:var(--axis);top:0;bottom:0;width:2px;
  transform:translateX(-50%);
  background:linear-gradient(to top,var(--fr-blue),#70829a 46%,var(--fr-red));
}
.french-hero-path .hero-progress-scale ol::after{
  content:"";position:absolute;left:var(--axis);top:-8px;
  transform:translateX(-50%);width:12px;height:15px;
  background:var(--fr-red);clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%);
}
.french-hero-path .hero-progress-scale li{
  position:absolute;top:var(--milestone);left:0;width:100%;height:0;
  color:var(--fr-blue);font:600 12px/1 var(--mono);font-variant-numeric:tabular-nums;
}
.french-hero-path .hero-progress-scale li::before{
  content:"";position:absolute;left:var(--axis);top:0;
  transform:translate(-50%,-50%);width:7px;height:7px;box-sizing:border-box;
  border:1.5px solid var(--page);border-radius:50%;background:var(--fr-blue);
}
.french-hero-path .hero-progress-scale li span{
  position:absolute;left:calc(var(--axis) + 13px);top:0;transform:translateY(-50%);
}
.french-hero-path .hero-progress-scale li:nth-child(1){--milestone:0%;color:var(--fr-red);font-size:18px;font-weight:700}
.french-hero-path .hero-progress-scale li:nth-child(1)::before{display:none}
.french-hero-path .hero-progress-scale li:nth-child(2){--milestone:17.241%}
.french-hero-path .hero-progress-scale li:nth-child(3){--milestone:34.483%}
.french-hero-path .hero-progress-scale li:nth-child(4){--milestone:51.724%}
.french-hero-path .hero-progress-scale li:nth-child(5){--milestone:68.966%}
.french-hero-path .hero-progress-scale li:nth-child(6){--milestone:86.207%}
.french-hero-path .hero-progress-scale li:nth-child(7){--milestone:100%}
.french-accent-page .eyebrow,
.french-accent-page .step-number{color:var(--fr-blue)}

.french-accent-page :is(h1,h2) em{color:var(--fr-red)}
.french-hero-path h1.challenge-title-line{
  max-width:none;
  color:var(--text);
  font-size:clamp(42px,4vw,62px);
  letter-spacing:-.055em;
}
.french-hero-path h1.challenge-title-line .challenge-title-lead{
  display:block;
  color:var(--text);
}
.french-hero-path h1.challenge-title-line .challenge-title-red{
  display:block;
  color:var(--fr-red);
  white-space:nowrap;
}
.french-hero-path h1.challenge-title-line .challenge-title-red em{color:inherit}
.french-accent-page :focus-visible{outline-color:var(--fr-red)}

.french-accent-page .button{
  background:var(--fr-blue);
  border-color:var(--fr-blue);
}

.french-accent-page .button:hover{
  background:#102d4d;
  border-color:#102d4d;
  box-shadow:0 6px 18px rgba(24,59,98,.22);
}

.french-accent-page .hero-price>strong{color:var(--fr-blue)}
.french-accent-page .challenge-dates span{border-left-color:#bdc9d5}

.french-accent-page .challenge-summary{
  border-color:var(--line);
  background:rgba(255,255,255,.38);
}
.french-accent-page .challenge-summary>div{border-color:var(--line)}
.french-accent-page .challenge-summary strong{color:var(--fr-blue)}

.french-accent-page .challenge-step-grid article,
.french-accent-page .challenge-price-card{
  background:var(--base);
  border-color:#ced9e4;
  box-shadow:0 18px 44px rgba(24,59,98,.08);
}

.french-accent-page .challenge-step-grid article:nth-child(2){
  background:linear-gradient(145deg,#fffdf9 0%,#fffdf9 72%,var(--fr-blue-soft) 100%);
}
.french-accent-page .challenge-step-grid article:nth-child(3){
  background:linear-gradient(145deg,#fffdf9 0%,#fffdf9 72%,var(--fr-red-soft) 100%);
}

.french-accent-page .challenge-prompt{
  background:var(--fr-blue-soft);
  border-left:4px solid var(--fr-blue);
}

.french-accent-page .challenge-live{
  background:
    linear-gradient(90deg,rgba(24,59,98,.98),rgba(24,59,98,.94)),
    var(--fr-blue);
  border-block:1px solid #102d4d;
}
.french-accent-page .challenge-live .eyebrow,
.french-accent-page .challenge-live em{color:#f0b5b5}
.french-accent-page .session-list time span{color:#f0b5b5}

.french-accent-page .challenge-teacher>img{border-color:#fff}
.french-accent-page .challenge-offer,
.french-accent-page .challenge-teacher{border-color:var(--line)}
.french-accent-page .offer-checklist li{border-color:var(--line)}
.french-accent-page .offer-checklist li::before{color:var(--fr-red)}
.french-accent-page .challenge-price-card{border-top:4px solid var(--fr-red)}
.french-accent-page .challenge-price-card .offer-price{color:var(--fr-blue)}

.french-accent-page .challenge-faq details{border-color:var(--line)}
.french-accent-page .challenge-footer{background:#e9eef3;border-color:var(--line)}
.french-accent-page .challenge-footer .challenge-brand{color:var(--fr-blue)}

/* Keep the shared consent banner readable when visitors arrive from a dark page. */
html[data-theme="dark"] body.challenge-page .cookie-banner,
html[data-theme="dark"] body.challenge-page .cookie-dialog{
  border-color:rgba(166,198,226,.34);
  background:rgba(18,25,33,.97);
  color:#f7f9fc;
  box-shadow:0 24px 74px rgba(0,0,0,.36);
}
html[data-theme="dark"] body.challenge-page .cookie-banner :is(p,a,.cookie-link),
html[data-theme="dark"] body.challenge-page .cookie-dialog :is(p,a,.cookie-link,.cookie-option small){color:#e8eef5}
html[data-theme="dark"] body.challenge-page .cookie-action:not(.secondary){border-color:#315f8e;background:#315f8e;color:#fff}
html[data-theme="dark"] body.challenge-page .cookie-action.secondary{border-color:rgba(211,226,239,.58);background:transparent;color:#fff}
html[data-theme="dark"] body.challenge-page .cookie-action.secondary:hover,
html[data-theme="dark"] body.challenge-page .cookie-link:hover{color:#fff}

@media(max-width:760px){
  .french-accent-page .challenge-live{background:var(--fr-blue)}

  /* The voice-path mockup leads with the speaking visual on mobile, while
     keeping the first CTA inside the opening viewport. */
  .french-hero-path .challenge-hero{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding-top:12px;
  }
  .french-hero-path .challenge-header{background:#fffdf9}
  .french-hero-path .challenge-header .challenge-brand{min-width:0;flex:1 1 auto;font-size:10px}
  .french-hero-path .challenge-header .challenge-brand>span{min-width:0;white-space:nowrap}
  .french-hero-path .challenge-header .challenge-brand small{
    max-width:128px;font-size:7.4px;line-height:1.22;white-space:normal;
  }
  .french-hero-path .challenge-hero-media{
    order:-1;height:300px;width:100%;margin:8px auto 0;
    padding-right:44px;overflow:visible;transform:none;
  }
  .french-hero-path .hero-artwork{height:100%;width:clamp(196px,56vw,220px);max-width:100%;flex:none}
  .french-hero-path .hero-artwork img{width:100%;height:100%;object-fit:contain}
  .french-hero-path .hero-progress-scale{left:calc(100% + 4px);width:38px}
  .french-hero-path .hero-progress-scale li{font-size:10px}
  .french-hero-path .hero-progress-scale li:first-child{font-size:15px}
  .french-hero-path .hero-progress-scale li span{left:calc(var(--axis) + 11px)}
  .french-hero-path .challenge-hero-copy{order:1}
  .french-hero-path h1{font-size:clamp(33px,7.2vw,48px)}
  .french-hero-path h1.challenge-title-line{font-size:clamp(32px,8vw,42px)}
  .french-hero-path h1.challenge-title-line .challenge-title-red{white-space:normal}
  .french-hero-path .challenge-hero .eyebrow{text-align:right}
  .french-hero-path .challenge-subhead{margin-bottom:14px}
  .french-hero-path .hero-price{margin-bottom:14px}
  .french-hero-path .hero-note{margin-top:9px}

  /* This landing page has no fixed bottom navigation, so its consent banner
     can sit safely at the screen edge. Keep it narrower than the navbar. */
  .french-accent-page .cookie-banner{
    right:16px;bottom:max(8px,env(safe-area-inset-bottom));left:16px;
    width:auto;max-width:none;
  }

  /* Keep the consent actions discoverable on short phones while the choices
     remain independently scrollable. */
  .french-accent-page .cookie-dialog{
    width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:hidden;
  }
  .french-accent-page .cookie-dialog-inner{
    max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px;
    overscroll-behavior:contain;
  }
  .french-accent-page .cookie-dialog .cookie-close{
    width:44px;height:44px;display:grid;flex:0 0 44px;place-items:center;
    margin:-10px -10px 0 0;border-radius:50%;
  }
  .french-accent-page .cookie-dialog .cookie-actions{
    position:sticky;bottom:-22px;display:grid;grid-template-columns:1fr 1fr;
    gap:8px;margin:6px -4px -4px;padding:14px 4px 22px;
    background:linear-gradient(to bottom,transparent 0,var(--base) 18px,var(--base) 100%);
  }
  html[data-theme="dark"] body.french-accent-page .cookie-dialog .cookie-actions{
    background:linear-gradient(to bottom,transparent 0,#121921 18px,#121921 100%);
  }
  .french-accent-page .cookie-dialog .cookie-action{
    min-width:0;padding-inline:10px;font-size:.76rem;
  }
}

@media(max-width:760px) and (max-height:700px){
  .french-hero-path .challenge-hero{gap:10px;padding-top:8px}
  .french-hero-path .challenge-hero-media{height:260px;margin-top:4px}
  .french-hero-path .hero-artwork{width:clamp(174px,52vw,196px)}
}

@media(max-width:340px){
  .french-hero-path .challenge-header{gap:6px;padding-inline:11px}
  .french-hero-path .challenge-header .challenge-brand{gap:6px;font-size:9.5px}
  .french-hero-path .challenge-header .challenge-brand img{width:32px;height:32px}
  .french-hero-path .challenge-header .challenge-brand small{max-width:105px;font-size:6.8px}
  .french-hero-path .challenge-header .header-join{max-width:114px;padding-inline:8px}
}
