:root {
    --ground:      #F4F8F8;
    --surface:     #FFFFFF;
    --surface-alt: #EAF1F1;
    --ink:         #12262B;
    --ink-soft:    #4B6068;
    --primary:     #0F5257;
    --on-primary:  #FFFFFF;
    --primary-hi:  #13767E;
    --gold:        #8A5F14;
    --gold-bg:     #FBF1DC;
    --line:        #D3E1E1;
    --shadow:      0 1px 2px rgba(18,38,43,.06), 0 8px 24px rgba(18,38,43,.06);

    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --body:    "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --measure: 34rem;
    --wide:    64rem;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ground:      #0C1719;
      --surface:     #132428;
      --surface-alt: #182F34;
      --ink:         #E6F0F0;
      --ink-soft:    #A2B8BC;
      --primary:     #4FB3BC;
      --on-primary:  #08181A;
      --primary-hi:  #6FCBD3;
      --gold:        #E4B558;
      --gold-bg:     #2A2415;
      --line:        #24403F;
      --shadow:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
    }
  }
  :root[data-theme="dark"] {
    --ground:      #0C1719;
    --surface:     #132428;
    --surface-alt: #182F34;
    --ink:         #E6F0F0;
    --ink-soft:    #A2B8BC;
    --primary:     #4FB3BC;
    --on-primary:  #08181A;
    --primary-hi:  #6FCBD3;
    --gold:        #E4B558;
    --gold-bg:     #2A2415;
    --line:        #24403F;
    --shadow:      0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
  }

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

  body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.15; }

  a { color: var(--primary); }

  :focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: 1.5rem; }

  /* ---------- barre du haut ---------- */
  .topbar {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--ground) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .topbar__in {
    display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
    align-items: center; justify-content: space-between;
    padding-block: .9rem;
  }
  .wordmark { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
  .wordmark span { display: block; font-family: var(--body); font-size: .72rem; font-weight: 600;
                   letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

  /* ---------- boutons ---------- */
  .btn {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .85rem 1.4rem; border-radius: 4px;
    font-weight: 700; font-size: 1.05rem; text-decoration: none;
    border: 2px solid transparent; transition: background-color .15s, border-color .15s;
  }
  .btn--primary { background: var(--primary); color: var(--on-primary); }
  .btn--primary:hover { background: var(--primary-hi); }
  .btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
  .btn--ghost:hover { border-color: var(--primary); }
  .btn--big { font-size: 1.35rem; padding: 1.1rem 1.9rem; }
  .btn .tel { font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* ---------- illustrations ---------- */
  .il { width: 100%; height: auto; display: block; overflow: visible; }
  .il .ln  { fill: none; stroke: var(--primary);  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .il .sf  { fill: none; stroke: var(--line);     stroke-width: 2;   stroke-linecap: round; stroke-linejoin: round; }
  .il .ac  { fill: none; stroke: var(--gold);     stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .il .fill-ac { fill: var(--gold); stroke: none; }
  .il .fill-ln { fill: var(--primary); stroke: none; }
  .il .dash { stroke-dasharray: 5 7; }

  .hero__grid {
    display: grid; gap: clamp(2rem, 5vw, 3.5rem);
    grid-template-columns: 1fr; align-items: center;
  }
  @media (min-width: 56rem) {
    .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  }
  .hero__art { order: 2; }
  @media (min-width: 56rem) { .hero__art { order: 0; } }

  .head-art {
    display: grid; gap: clamp(1.75rem, 4vw, 3rem);
    grid-template-columns: 1fr; align-items: center; margin-bottom: 2.5rem;
  }
  @media (min-width: 52rem) {
    .head-art { grid-template-columns: minmax(0, 1fr) 13rem; }
    .head-art .section__head { margin-bottom: 0; }
  }
  .head-art__fig { max-width: 13rem; justify-self: start; }

  @media (prefers-reduced-motion: no-preference) {
    .il .pulse { animation: ilpulse 3.4s ease-in-out infinite; transform-origin: center; }
    .il .pulse2 { animation-delay: .5s; }
    .il .pulse3 { animation-delay: 1s; }
    @keyframes ilpulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
  }

  /* ---------- hero ---------- */
  .hero { padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 7vw, 4.5rem); }
  .hero h1 {
    font-size: clamp(2.1rem, 6.2vw, 3.6rem);
    font-weight: 600; letter-spacing: -.02em;
    max-width: 20ch;
  }
  .hero__lede {
    max-width: var(--measure); margin-top: 1.5rem;
    font-size: 1.2rem; color: var(--ink-soft);
  }
  .hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2.25rem; }
  .hero__note { font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; }

  .eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
  }

  /* ---------- sections ---------- */
  section { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
  .band { background: var(--surface); border-block: 1px solid var(--line); }
  .section__head { max-width: var(--measure); margin-bottom: 2.5rem; }
  .section__head h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 600; letter-spacing: -.015em; }
  .section__head p { color: var(--ink-soft); margin: .85rem 0 0; }

  /* ---------- problèmes, dans les mots du client ---------- */
  .says { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); list-style: none; padding: 0; margin: 0; }
  .says li {
    background: var(--surface-alt); border: 1px solid var(--line);
    border-radius: 10px 10px 10px 2px;
    padding: 1.15rem 1.3rem;
    font-size: 1.08rem;
  }
  .says li::before { content: "“"; font-family: var(--display); font-size: 2rem; line-height: 0;
                     color: var(--gold); vertical-align: -.35em; margin-right: .25rem; }

  .says-foot { margin-top: 1.75rem; color: var(--ink-soft); max-width: var(--measure); }

  /* ---------- étapes (vraie séquence) ---------- */
  .steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
           list-style: none; padding: 0; margin: 0; counter-reset: s; }
  .steps li { counter-increment: s; }
  .steps li::before {
    content: counter(s);
    display: grid; place-items: center;
    width: 2.6rem; height: 2.6rem; margin-bottom: .9rem;
    border-radius: 50%; background: var(--primary); color: var(--on-primary);
    font-family: var(--display); font-weight: 600; font-size: 1.25rem;
  }
  .steps h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
  .steps p { margin: 0; color: var(--ink-soft); }

  /* ---------- prix ---------- */
  .oneoff {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem;
    background: var(--surface-alt); border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 6px; padding: 1.1rem 1.35rem; margin-bottom: 2.25rem;
  }
  .oneoff strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
  .oneoff span { color: var(--ink-soft); font-size: .98rem; }

  .plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: stretch; }
  .plan {
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 1.75rem 1.5rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column;
  }
  .band .plan { background: var(--surface-alt); }
  .plan--featured { border: 2px solid var(--primary); position: relative; }
  .plan__tag {
    position: absolute; top: -.8rem; left: 1.5rem;
    background: var(--primary); color: var(--on-primary);
    font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: .3rem .7rem; border-radius: 3px;
  }
  .plan__name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
  .plan__price {
    font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em;
    font-variant-numeric: tabular-nums; margin-top: .35rem; line-height: 1.1;
  }
  .plan__price small { font-size: .95rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
  .plan__for { color: var(--ink-soft); font-size: .98rem; margin: .6rem 0 0; }
  .plan__list {
    list-style: none; padding: 0; margin: 1.35rem 0 0;
    border-top: 1px solid var(--line); padding-top: 1.35rem;
    display: grid; gap: .7rem; font-size: 1rem;
  }
  .plan__list li { display: flex; gap: .6rem; align-items: flex-start; }
  .plan__list li::before {
    content: "✓"; flex: none; color: var(--primary);
    font-weight: 700; line-height: 1.5;
  }

  .principle {
    display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
    margin-bottom: 2.25rem;
  }
  .principle > div { padding: 1.5rem 1.6rem; }
  .principle__free { background: var(--primary); color: var(--on-primary); }
  .principle__paid { background: var(--surface-alt); }
  .principle h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
  .principle__free h3 { color: var(--on-primary); }
  .principle p { margin: 0; font-size: 1rem; }
  .principle__free p { color: color-mix(in srgb, var(--on-primary) 88%, transparent); }
  .principle__paid p { color: var(--ink-soft); }
  .principle__kicker {
    font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    display: block; margin-bottom: .6rem; opacity: .8;
  }

  .plan__none { color: var(--ink-soft); font-style: italic; }
  .plans-foot { margin-top: 1.5rem; color: var(--ink-soft); font-size: .98rem; max-width: 48rem; }

  .notpromised {
    border: 1px solid var(--line); border-left: 4px solid var(--ink-soft);
    border-radius: 6px; padding: 1.35rem 1.5rem; margin-top: 2.25rem;
    background: var(--surface-alt); max-width: 48rem;
  }
  .notpromised h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
  .notpromised p { margin: 0; color: var(--ink-soft); }

  /* ---------- promesses ---------- */
  .promises { display: grid; gap: 1.1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
              list-style: none; padding: 0; margin: 0; }
  .promises li { display: flex; gap: .75rem; align-items: flex-start; }
  .promises svg { flex: none; margin-top: .3rem; color: var(--primary); }

  /* ---------- à la pièce ---------- */
  .projects { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 44rem;
              border-top: 1px solid var(--line); }
  .projects li { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .projects .p-name { font-weight: 600; display: block; }
  .projects .p-desc { color: var(--ink-soft); font-size: .95rem; }

  /* ---------- disponibilités ---------- */
  .avail {
    display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    max-width: 40rem; margin: 2rem auto 0; text-align: left;
  }
  .avail li { display: flex; gap: .85rem; align-items: flex-start; list-style: none; }
  .avail svg { flex: none; margin-top: .2rem; color: var(--gold); }
  .avail strong { display: block; }
  .avail span { color: var(--ink-soft); font-size: .95rem; }
  .avail ul { padding: 0; margin: 0; }

  /* ---------- contact ---------- */
  .contact { text-align: center; }
  .contact h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 600; }
  .contact .btn { margin-top: 1.75rem; }
  .contact__mail { margin-top: 1.5rem; font-size: 1.05rem; }

  footer {
    border-top: 1px solid var(--line);
    padding-block: 2rem; color: var(--ink-soft); font-size: .92rem;
    display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  }

  @media (prefers-reduced-motion: no-preference) {
    html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
    html.js .reveal.is-in { opacity: 1; transform: none; }
  }

  /* ---------- navigation ---------- */
  a.wordmark { text-decoration: none; color: inherit; display: block; }
  .topnav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
  .topnav > a:not(.btn) {
    font-weight: 600; text-decoration: none; color: var(--ink-soft);
    padding: .5rem .9rem; border-radius: 5px; white-space: nowrap;
    border-bottom: 3px solid transparent; transition: color .15s, background-color .15s;
  }
  .topnav > a:not(.btn):hover { color: var(--ink); background: var(--surface-alt); }
  .topnav > a[aria-current="page"] {
    color: var(--primary); border-bottom-color: var(--primary);
    border-radius: 5px 5px 0 0;
  }
  .topnav .btn { margin-left: .6rem; }
  @media (max-width: 34rem) {
    .topnav { width: 100%; justify-content: space-between; gap: .2rem; }
    .topnav .btn { margin-left: 0; width: 100%; justify-content: center; margin-top: .5rem; }
  }

  /* ---------- blogue ---------- */
  .posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
  .posts li { border-top: 1px solid var(--line); }
  .posts li:last-child { border-bottom: 1px solid var(--line); }
  .posts a {
    display: block; padding: 1.6rem 0; text-decoration: none; color: inherit;
    transition: background-color .15s;
  }
  .posts a:hover { background: var(--surface-alt); }
  .posts h2 {
    font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 600;
    color: var(--primary); margin-bottom: .4rem;
  }
  .posts p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
  .post-date {
    display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
  }

  .article { max-width: 40rem; margin-inline: auto; }
  .article h1 {
    font-family: var(--display); font-size: clamp(1.9rem, 4.6vw, 2.7rem);
    font-weight: 600; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 1rem;
  }
  .article__lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 2.5rem; }
  .article h2 {
    font-family: var(--display); font-size: 1.45rem; font-weight: 600;
    margin: 2.75rem 0 .85rem;
  }
  .article h3 { font-size: 1.12rem; font-weight: 700; margin: 1.9rem 0 .5rem; font-family: var(--body); }
  .article p { margin: 0 0 1.15rem; }
  .article ul, .article ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
  .article li { margin-bottom: .5rem; }
  .article strong { font-weight: 700; }
  .article__note {
    background: var(--surface-alt); border-left: 4px solid var(--gold);
    border-radius: 0 6px 6px 0; padding: 1.15rem 1.35rem; margin: 2rem 0;
  }
  .article__note p:last-child { margin-bottom: 0; }
  .article__cta {
    border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem;
  }
  .article__cta p { color: var(--ink-soft); }


  /* ---------- qui je suis ---------- */
  .about { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr; align-items: center; }
  @media (min-width: 48rem) { .about { grid-template-columns: 14rem minmax(0, 1fr); } }
  .about__photo {
    aspect-ratio: 1; border-radius: 10px; background: var(--surface-alt);
    border: 2px dashed var(--line); display: grid; place-items: center;
    text-align: center; padding: 1rem; color: var(--ink-soft); font-size: .9rem;
  }
  .about p { margin: 0 0 1rem; }
  .about p:last-child { margin-bottom: 0; }

  .todo {
    background: #FBF1DC; color: #8A5F14; border: 2px dashed #8A5F14;
    border-radius: 4px; padding: 0 .4em; font-weight: 700;
  }
  :root[data-theme="dark"] .todo { background: #2A2415; color: #E4B558; border-color: #E4B558; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .todo { background: #2A2415; color: #E4B558; border-color: #E4B558; }
  }

  .promises--plain { display: grid; gap: .8rem; grid-template-columns: 1fr; }
  .promises--plain li { display: block; }

  /* ---------- formulaire ---------- */
  .form { display: grid; gap: 1.1rem; max-width: 34rem; margin: 2.25rem auto 0; text-align: left; }
  .form label { display: block; font-weight: 600; margin-bottom: .35rem; }
  .form input, .form textarea {
    width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
    background: var(--surface); border: 2px solid var(--line); border-radius: 6px;
    padding: .75rem .9rem;
  }
  .form textarea { min-height: 8rem; resize: vertical; }
  .form input:focus, .form textarea:focus { border-color: var(--primary); outline: none; }
  .form .aide { font-size: .9rem; color: var(--ink-soft); margin: .3rem 0 0; }
  .form .piege { position: absolute; left: -9999px; }
  .form button { justify-self: start; cursor: pointer; font: inherit; }

  .avis { border-radius: 6px; padding: 1rem 1.2rem; margin: 0 auto 1.5rem; max-width: 34rem; text-align: left; }
  .avis--ok  { background: var(--surface-alt); border-left: 4px solid var(--primary); }
  .avis--err { background: var(--gold-bg); border-left: 4px solid var(--gold); color: var(--gold); }
  .avis p { margin: 0; }
