/* Simplavie : site vitrine */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #000000;
  --text: #262a28;
  --muted: #545c58;
  --green: #1f5c45;
  --green-dark: #164534;
  --green-soft: #eef4f0;
  --line: #dfe5e1;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.1; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: .6rem 1rem; background: #fff; border: 2px solid var(--ink); }
.skip:focus { top: 16px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .75rem 1.4rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-main { background: var(--green); color: #fff; }
.btn-main:hover { background: var(--green-dark); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); }
.btn-light:hover { background: var(--green-soft); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.75); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.wa-icon { width: 1.2rem; height: 1.2rem; fill: currentColor; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo img { width: 132px; height: auto; }
.menu { display: flex; align-items: center; gap: 1.75rem; font-size: .97rem; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: .25em; }
.menu-key { padding: .45rem 1rem; border: 1.5px solid var(--green); border-radius: 999px; color: var(--green); font-weight: 600; }
.menu-key:hover { background: var(--green); color: #fff; text-decoration: none !important; }
.menu-btn { display: none; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .4rem .9rem; background: none; border: 1.5px solid var(--ink); border-radius: 999px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; } .menu-icon::after { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.25rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu .menu-key { margin-top: 1rem; text-align: center; border-bottom: 1.5px solid var(--green); }
}

/* Accueil */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 450; letter-spacing: -.02em; line-height: 1.02; }
.lead { margin-top: 1.5rem; max-width: 34em; font-size: 1.15rem; color: var(--text); }
.lead strong { color: var(--ink); }
.hero-prices { list-style: none; padding: 0; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-prices li { display: flex; align-items: baseline; gap: .6rem; padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; }
.hero-prices span { font-size: .95rem; color: var(--muted); }
.hero-prices b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); }
.hero-note { margin-top: .6rem; font-size: .95rem; color: var(--muted); }
.hero .actions { margin-top: 2rem; }

/* Téléphone de démonstration */
.hero-demo { justify-self: center; text-align: center; }
.hero-demo figcaption { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); }
.phone {
  position: relative; width: min(290px, 78vw); aspect-ratio: 9 / 18.5; margin-inline: auto;
  padding: 12px; border-radius: 44px; background: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(31,92,69,.45);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 20px; background: var(--ink); z-index: 3; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 33px; background: #fff; text-align: left; }
.scene { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.7,0,.2,1), opacity .5s; }
.scene-key { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; }
.scene-logo { width: 110px; }
.scene-title { margin-top: 1.6rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.scene-label { margin-top: 1.4rem; font-size: .72rem; font-weight: 600; color: var(--muted); }
.fake-input { display: flex; align-items: center; height: 42px; margin-top: .4rem; padding: 0 12px; border: 1.5px solid var(--ink); border-radius: 10px; font-size: .88rem; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.caret { width: 2px; height: 18px; margin-left: 2px; background: var(--green); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fake-btn { display: grid; place-items: center; height: 42px; margin-top: .6rem; border-radius: 999px; background: var(--green); color: #fff; font-size: .85rem; font-weight: 600; transition: transform .15s, background-color .15s; }
.phone.is-pressed .fake-btn { transform: scale(.95); background: var(--green-dark); }
.scene-site { transform: translateX(100%); background: #fbf6ef; }
.phone.show-site .scene-key { transform: translateX(-30%); opacity: 0; }
.phone.show-site .scene-site { transform: none; }
.mini-bar { display: flex; justify-content: space-between; align-items: center; padding: 46px 16px 10px; }
.mini-name { font-family: var(--serif); font-size: .95rem; color: #3b2414; }
.mini-burger { width: 16px; height: 10px; border-top: 2px solid #3b2414; border-bottom: 2px solid #3b2414; }
.mini-hero { margin: 6px 10px 0; padding: 24px 14px 18px; min-height: 210px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 80% 20%, #e9a75b 0, transparent 45%), linear-gradient(160deg, #9b5a2b, #4a2814); display: flex; flex-direction: column; justify-content: flex-end; }
.mini-kicker { font-size: .62rem; font-weight: 600; opacity: .85; }
.mini-title { margin-top: .35rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.05; }
.mini-cta { align-self: flex-start; margin-top: .8rem; padding: .35rem .75rem; border-radius: 999px; background: #fff; color: #4a2814; font-size: .62rem; font-weight: 700; }
.mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 10px 0; }
.mini-cards span { height: 62px; border-radius: 10px; background: #ead9c4; }
.mini-cards span:nth-child(2) { background: #dcc3a5; }
.mini-lines { margin: 14px 16px 0; display: grid; gap: 6px; }
.mini-lines span { height: 7px; border-radius: 4px; background: #e8dccd; }
.mini-lines span:nth-child(2) { width: 85%; } .mini-lines span:nth-child(3) { width: 60%; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.015em; max-width: 18em; }
.section-intro { margin-top: .9rem; max-width: 36em; color: var(--muted); font-size: 1.1rem; }
.section-soft { background: var(--green-soft); }
#methode { border-top: 1px solid var(--line); }

/* Étapes */
.steps { list-style: none; padding: 0; margin-top: 3rem; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2.25rem; } }
.steps li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--serif); font-size: 1.25rem;
}
@media (min-width: 860px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.3rem; left: 3.4rem; right: -1.6rem; height: 1px; background: var(--line); }
}
.steps h3 { font-size: 1.35rem; }
.steps p { margin-top: .5rem; color: var(--muted); }

/* Formules */
.plans { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; padding: clamp(1.75rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: 22px; }
.plan h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); }
.price { margin-top: .4rem; font-family: var(--serif); font-size: clamp(3rem, 7vw, 4rem); line-height: 1; color: var(--ink); }
.plan-desc { margin-top: 1rem; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 1.7rem; }
.checks li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }

.included { margin-top: 1.5rem; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 22px; background: var(--green-soft); }
.included h3 { font-size: 1.4rem; }
.included ul { list-style: none; padding: 0; margin-top: 1.1rem; display: grid; gap: .55rem 2rem; }
@media (min-width: 700px) { .included ul { grid-template-columns: 1fr 1fr; } }
.included li { position: relative; padding-left: 1.7rem; }
.included li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.yearly { margin-top: 1.5rem; display: grid; gap: .4rem 2rem; align-items: baseline; padding-block: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .yearly { grid-template-columns: auto 1fr; } }
.yearly-price { font-size: 1.05rem; }
.yearly-price b { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ink); margin-right: .3rem; }
.yearly p:last-child { color: var(--muted); }
.fine { margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }

/* One page ou multi-pages */
.compare { display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.compare h3 { margin-top: 1.5rem; font-size: 1.5rem; }
.compare p { margin-top: .5rem; color: var(--text); max-width: 30em; }
.sketch { position: relative; height: 170px; }
.sketch span { position: absolute; display: block; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; }
.sketch-one span { left: 0; width: 120px; height: 40px; border-radius: 0; border-bottom: 0; }
.sketch-one span:nth-child(1) { top: 0; border-radius: 8px 8px 0 0; background: var(--green); border-color: var(--ink); }
.sketch-one span:nth-child(2) { top: 40px; }
.sketch-one span:nth-child(3) { top: 80px; }
.sketch-one span:nth-child(4) { top: 120px; border-bottom: 1.5px solid var(--ink); border-radius: 0 0 8px 8px; height: 46px; }
.sketch-one i { position: absolute; left: 145px; top: 20px; width: 2px; height: 130px; background: var(--ink); }
.sketch-one i::after { content: ""; position: absolute; left: -5px; bottom: 0; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.sketch-multi span { width: 110px; height: 140px; }
.sketch-multi span:nth-child(1) { left: 0; top: 24px; }
.sketch-multi span:nth-child(2) { left: 32px; top: 12px; }
.sketch-multi span:nth-child(3) { left: 64px; top: 0; }
.sketch-multi span::before { content: ""; position: absolute; left: 10px; right: 10px; top: 10px; height: 22px; border-radius: 4px; background: var(--green); }
.sketch-multi span:nth-child(1)::before, .sketch-multi span:nth-child(2)::before { background: #c9d9cf; }
.compare-help { margin-top: 2.5rem; font-weight: 600; color: var(--green-dark); }

/* Exemples */
.examples { list-style: none; padding: 0; margin-top: 3rem; display: grid; gap: 2rem; }
@media (min-width: 760px) { .examples { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
.example img { border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.tag { display: inline-block; margin-top: 1.1rem; padding: .15rem .6rem; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: .82rem; font-weight: 600; }
.tag-fake { background: #f1f1f1; color: #4a4a4a; }
.example h3 { margin-top: .6rem; font-size: 1.45rem; }
.example p:not(.tag) { margin-top: .4rem; color: var(--muted); }
.example-link { display: inline-block; margin-top: .8rem; font-weight: 600; color: var(--green); text-underline-offset: .25em; }
.example-soon { font-size: .92rem; font-style: italic; }

/* Engagements */
.promises { list-style: none; padding: 0; margin-top: 3rem; display: grid; gap: 2rem 3rem; }
@media (min-width: 700px) { .promises { grid-template-columns: 1fr 1fr; } }
.promises li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.promises h3 { font-size: 1.4rem; }
.promises p { margin-top: .4rem; color: var(--muted); }

/* Questions */
.faq-wrap { display: grid; gap: 2rem; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 4rem; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.25rem; color: var(--muted); max-width: 38em; }

/* Contact */
.contact { background: var(--green); color: #fff; padding-block: clamp(4rem, 9vw, 6.5rem); }
.contact h2 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 450; letter-spacing: -.02em; }
.contact p { margin-top: 1rem; font-size: 1.15rem; max-width: 30em; }
.contact .actions { margin-top: 2rem; }
.contact :focus-visible { outline-color: #fff; }

/* Pied de page */
.foot { padding-block: 2.5rem 6rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; font-size: .92rem; color: var(--muted); }
.foot-inner img { width: 100px; }
.foot-inner a { margin-left: auto; }
@media (max-width: 600px) { .foot-inner a { margin-left: 0; } }

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff;
  box-shadow: 0 10px 24px -6px rgba(22,69,52,.55); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

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

/* Pages simples (mentions légales, 404) */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; margin-bottom: .5rem; }
.legal p + p { margin-top: .8rem; }

/* Petits écrans : les deux prix restent côte à côte */
@media (max-width: 420px) {
  .hero-prices { gap: .5rem; }
  .hero-prices li { padding: .45rem .75rem; gap: .45rem; }
  .hero-prices span { font-size: .85rem; }
  .hero-prices b { font-size: 1.35rem; }
}

/* Formulaire de devis */
.quote { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .quote { grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; } }
.quote-points { list-style: none; padding: 0; margin-top: 1.75rem; display: grid; gap: .55rem; }
.quote-points li { position: relative; padding-left: 1.7rem; }
.quote-points li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.quote-form, .form-ok { padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.quote-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { padding: 0; font-weight: 600; color: var(--ink); font-size: .97rem; }
.req { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .9rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9c3be; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.3rem) 55%, calc(100% - .95rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #8a938e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,92,69,.18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.choices { display: grid; gap: .5rem; margin-top: .2rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem;
  min-height: 3.5rem; padding: .7rem 1rem .7rem 3rem;
  border: 1.5px solid #b9c3be; border-radius: 14px; background: #fff;
  transition: background-color .15s, border-color .15s;
}
.choice span::before { content: ""; position: absolute; left: 1rem; top: 50%; width: 1.15rem; height: 1.15rem; margin-top: -.575rem; border: 1.5px solid #8a938e; border-radius: 50%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.choice b { grid-column: 1; font-weight: 600; color: var(--ink); }
.choice small { grid-column: 1; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.choice em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.choice:hover span { border-color: var(--green); }
.choice input:checked + span { border-color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); }
.choice input:checked + span::before { border-color: var(--green); box-shadow: inset 0 0 0 .3rem var(--green); }
.choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.quote-form .btn { justify-self: start; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.quote-form .btn[disabled] { opacity: .7; cursor: wait; }
.form-error { padding: .8rem 1rem; border-radius: 12px; background: #fbeceb; color: #8c1d18; font-weight: 500; }
.form-error a { font-weight: 600; }
.form-legal { font-size: .88rem; color: var(--muted); }
.form-legal a { color: var(--green); }
.form-ok h3 { font-size: 1.6rem; }
.form-ok p { margin-top: .6rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }
@media (min-width: 900px) { .form-ok { grid-column: 2; } }
/* Titre au-dessus des choix de formule : toujours sur une ligne (Safari mettait un mot par ligne) */
fieldset.field { display: block; min-inline-size: 0; }
fieldset.field legend { display: block; float: left; width: 100%; margin-bottom: .55rem; white-space: normal; }
fieldset.field legend + * { clear: both; }

/* Curseur personnalisé (ordinateur seulement, ajouté par script.js) */
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor-visible .cursor-dot, .cursor-visible .cursor-ring { opacity: 1; }
.cursor-dot::before, .cursor-ring::before { content: ""; position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot::before { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 0 2px #fff; transition: transform .2s, background-color .2s; }
.cursor-ring::before { width: 34px; height: 34px; border: 1.5px solid var(--green); transition: width .25s, height .25s, border-color .2s, background-color .25s; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor label, .has-cursor select { cursor: none; }
.has-cursor input:not([type=radio]):not([type=checkbox]), .has-cursor textarea { cursor: text; }
/* Sur un lien ou un bouton : l'anneau grossit, le point s'efface */
.cursor-hover .cursor-ring::before { width: 54px; height: 54px; background: rgba(31,92,69,.08); }
.cursor-hover .cursor-dot::before { transform: translate(-50%, -50%) scale(0); }
/* Sur un fond vert : le curseur passe en blanc */
.cursor-dark .cursor-ring::before { border-color: #fff; background: rgba(255,255,255,.12); }
.cursor-dark .cursor-dot::before { background: #fff; box-shadow: 0 0 0 2px var(--green); }
/* Dans un champ du formulaire : on garde la barre de texte normale */
.cursor-text .cursor-dot, .cursor-text .cursor-ring { opacity: 0; }
/* Au clic : l'anneau se resserre */
.cursor-press .cursor-ring::before { width: 26px; height: 26px; }
.cursor-hover.cursor-press .cursor-ring::before { width: 44px; height: 44px; }

/* ----- Règles « anti site IA » (ressources/inspiration-yassine-sdiri.md) ----- */
/* Boutons : montent de 1 px au survol, s'enfoncent au clic */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
  .btn:hover { transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: .09s; }

/* Liens : le soulignement se dessine de gauche à droite */
.menu a:not(.menu-key), .example-link, .form-legal a, .foot-inner a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .2s;
  padding-bottom: 2px;
}
.example-link, .form-legal a { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line), var(--line)); background-size: 0 1px, 100% 1px; background-position: 0 100%, 0 100%; }
.menu a:not(.menu-key):hover, .example-link:hover, .form-legal a:hover, .foot-inner a:hover { text-decoration: none; background-size: 100% 1px; }
.example-link:hover, .form-legal a:hover { background-size: 100% 1px, 100% 1px; }

/* Exemples : la photo zoome un peu dans son cadre, la carte monte de 2 px */
.example { transition: transform .18s; }
.example-img { display: block; overflow: hidden; border-radius: 14px; }
.example-img img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .example:has(.example-img):hover { transform: translateY(-2px); }
  .example:has(.example-img):hover .example-img img { transform: scale(1.03); }
}

/* Haut de page : arrive une seule fois au chargement (environ 1 seconde) */
@keyframes monte { from { opacity: 0; transform: translateY(14px); } }
.hero h1 { animation: monte .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead, .hero-prices, .hero-note, .hero .actions { animation: monte .52s cubic-bezier(.2,.7,.2,1) both; }
.hero .lead { animation-delay: .35s; }
.hero-prices { animation-delay: .41s; }
.hero-note { animation-delay: .47s; }
.hero .actions { animation-delay: .53s; }

/* Engagements : 3 colonnes sur ordinateur */
@media (min-width: 900px) { .promises { grid-template-columns: repeat(3, 1fr); } }
