/* Dr Math (docteurmath.com) rebuild */
:root { --green: #32665d; --orange: #dd6b2a; --ink: #1a1e1d; }
body { background: var(--ink); color: #fff; }
.bold { -webkit-text-stroke: .55px currentColor; }            /* the reference fakes its bold Roboto with a stroke */
.or { color: var(--orange); }

/* ---- nav (bar, logo and chevrons are in the art) ---- */
.nav-link { font-size: 24px; transition: opacity .2s; }
.nav-link:hover { opacity: .75; }
.search { display: flex; align-items: center; padding: 0 20px 0 24px; border: 2px solid #fff; border-radius: 99px; transition: background-color .2s; }
.search:focus-within { background: rgba(255, 255, 255, .1); }
.search input { flex: 1; min-width: 0; height: 100%; font: 400 24px "Roboto", sans-serif; color: #fff; text-align: center; outline: none; }
.search input::placeholder { color: rgba(255, 255, 255, .8); }
.search svg { width: 26px; height: 26px; flex: none; }
.pill { border-radius: 99px; font-size: 27px; transition: transform .2s, background-color .2s, color .2s; }
.pill:hover { transform: translateY(-2px); }
.pill--light { background: #fff; color: var(--green); }
.pill--line { border: 2px solid #fff; }
.pill--line:hover { background: #fff; color: var(--green); }

/* ---- buttons ---- */
.btn { border-radius: 99px; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: #e9783a; }
.btn--line { border: 3px solid #fff; }
.btn--line:hover { background: #fff; color: var(--ink); }
.btn--thin { border: 1px solid transparent; }   /* its outline is part of the artwork */
.btn--thin:hover { background: #fff; color: var(--ink); }

/* ---- home: testimonials carousel ---- */
.reviews { overflow: hidden; }
.reviews__track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.review { position: relative; flex: 0 0 364px; height: 100%; padding: 10px 0 0 16px; }
.review::before { content: ""; position: absolute; left: 0; top: 44px; width: 1.5px; height: 97px; background: #fff; }
.stars { display: flex; gap: 17px; width: calc(var(--r) * 45px - 17px); overflow: hidden; margin-left: -2px; }
.stars svg { flex: none; width: 28px; height: 26px; fill: var(--orange); }
.review h3 { margin-top: 12px; font: 400 24px/1 "Ageer", sans-serif; }
.review .where { font-size: 16px; line-height: 1; color: var(--orange); }
.review p { margin-top: 4px; width: 252px; font-size: 12px; line-height: 18px; }
.arrow { display: grid; place-items: center; border-radius: 50%; transition: background-color .2s; }
.arrow:hover { background: rgba(255, 255, 255, .12); }
.arrow svg { width: 22px; height: 36px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---- connexion ---- */
.card-white { background: #fff; border-radius: 40px; color: #000; }
.field { display: flex; align-items: center; gap: 14px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 99px; color: var(--ink); transition: box-shadow .2s; }
.field:focus-within { box-shadow: 0 0 0 4px rgba(50, 102, 93, .25); }
.field input { flex: 1; min-width: 0; height: 100%; font: 400 18px "Roboto", sans-serif; outline: none; }
.field svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.field button { display: grid; place-items: center; }
.check { display: flex; align-items: center; gap: 8px; font-size: 18px; color: #000; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 3px; border: 2px solid var(--green); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='m2.5 6.2 2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.google { border: 2px solid var(--ink); color: #000; font-size: 14px; }
.google:hover { background: #f3f3f3; transform: translateY(-2px); }
.link-or { color: var(--orange); }
.link-or:hover { text-decoration: underline; }

/* ---- offre ---- */
.counter { font-weight: 700; font-variant-numeric: tabular-nums; }
.pop { display: none; padding: 18px 22px; border-radius: 18px; background: #fff; color: var(--ink); font-size: 18px; line-height: 1.45; white-space: normal;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.pop.is-open { display: block; }

/* ---- cours: course cards sit exactly on the art and lift on hover ---- */
.course { display: block; transition: transform .25s cubic-bezier(.3, .7, .2, 1), filter .25s; transform-origin: 50% 45%; }
.course img { width: 100%; height: 100%; }
.course span { position: absolute; left: 0; right: 9px; top: 112px; text-align: center; font: 400 24px/1 "Ageer", sans-serif; }
.course:hover, .course:focus-visible { transform: scale(1.045) rotate(-.6deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.course::after { content: ""; position: absolute; inset: 0; border-radius: 24px; background: rgba(26, 30, 29, .78); opacity: 0; transition: opacity .25s; pointer-events: none; }
.course.is-dim::after { opacity: 1; }
.course.is-dim:hover { transform: none; filter: none; }
