:root {
  --ink: #0b1b3a;
  --ink-soft: #3d4d6b;
  --blue: #1f4bff;
  --blue-deep: #1636c4;
  --blue-wash: #eef2ff;
  --tint: #f5f8fd;
  --line: #dde4f0;
  --white: #fff;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--blue); font: 700 1.2rem/1 var(--display); letter-spacing: -.02em; }
.logo span { color: var(--ink); }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--ink-soft); transition: color .2s; }
.nav a:hover { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid var(--blue);
  background: var(--blue); color: #fff; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(31,75,255,.55); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .65rem 1.1rem; font-size: .93rem; }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue-wash); color: var(--blue-deep); box-shadow: none; }
.link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { color: var(--blue); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); letter-spacing: -.035em; font-weight: 700; }
.lead { margin-top: 1.75rem; font-size: 1.2rem; color: var(--ink-soft); max-width: 58ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.25rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.hero__facts li { position: relative; padding-left: 1.4rem; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: .8rem; height: .45rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) translateY(-30%); }

/* Map */
.map { margin: 0; }
.map svg { width: 100%; height: auto; background: var(--tint); border: 1px solid var(--line); border-radius: 20px; }
.map figcaption { margin-top: .85rem; font-size: .88rem; color: var(--ink-soft); }
.map__rhin { fill: none; stroke: #b9c8ee; stroke-width: 6; stroke-linecap: round; }
.map__vosges { fill: none; stroke: #cfd9ef; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.map__water { font: 500 12px var(--body); fill: #7889b0; letter-spacing: .04em; }
.town text { font: 600 14px var(--body); fill: var(--ink); }
.town--minor circle { fill: #fff; stroke: #8fa3d9; stroke-width: 2; }
.town--minor text { font-weight: 500; fill: var(--ink-soft); font-size: 13px; }
.town--major circle { fill: var(--blue); }
.town--major text { font-size: 15px; font-weight: 700; }
.js .town { opacity: 0; transform-box: fill-box; transform-origin: center; }
.js .map.is-in .town { animation: pop .7s var(--ease) both; animation-delay: calc(var(--d) * 110ms + 200ms); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.85); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Band */
.band { border-block: 1px solid var(--line); background: var(--white); }
.band__in { padding-block: 1.25rem; text-align: center; font-weight: 500; color: var(--ink-soft); font-size: .98rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tint { background: var(--tint); }
.section h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.03em; }
.section__intro { margin-top: 1rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; }

/* Services */
.rows { margin-top: 3rem; border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem; padding-block: 1.9rem; border-bottom: 1px solid var(--line); transition: background .3s; }
.row h3 { font-size: 1.45rem; letter-spacing: -.02em; transition: color .2s, transform .4s var(--ease); }
.row p { color: var(--ink-soft); max-width: 62ch; }
.row:hover h3 { color: var(--blue); transform: translateX(6px); }

/* Method */
.method { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.method__head { position: sticky; top: 7rem; }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; }
.steps h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.steps p { margin-top: .6rem; color: var(--ink-soft); max-width: 58ch; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan--main { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan h3 { font-size: 1.35rem; letter-spacing: -.02em; }
.plan__price { margin-top: 1.25rem; font: 700 2.4rem/1 var(--display); letter-spacing: -.03em; }
.plan__price span { display: block; margin-bottom: .45rem; font: 500 .9rem/1 var(--body); letter-spacing: 0; opacity: .7; }
.plan__text { margin-top: .75rem; color: var(--ink-soft); }
.plan--main .plan__text { color: #c4d0ee; }
.plan ul { margin: 1.5rem 0 2rem; display: grid; gap: .6rem; font-size: .98rem; }
.plan li { position: relative; padding-left: 1.5rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .4rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.plan--main li::before { border-color: #8fb0ff; }
.plan .btn { margin-top: auto; }
.plan--main .btn { background: #fff; color: var(--ink); border-color: #fff; }
.plan--main .btn:hover { background: var(--blue-wash); border-color: var(--blue-wash); }
.note { margin-top: 1.5rem; color: var(--ink-soft); font-size: .95rem; }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq h2 { position: sticky; top: 7rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; font: 600 1.15rem/1.35 var(--display); position: relative; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1.1rem; font: 400 1.8rem/1 var(--body); color: var(--blue); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--ink-soft); max-width: 62ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__mail { margin-top: 2rem; font-weight: 500; }
.contact__mail a { color: var(--blue); text-underline-offset: 4px; }
.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--tint); border: 1px solid var(--line); border-radius: 20px; }
.form label { display: grid; gap: .45rem; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { font: 400 1rem/1.4 var(--body); color: var(--ink); padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231f4bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; }
.form select:invalid { color: #6b7894; }
.form select option { color: var(--ink); }
.form input::placeholder { color: #6b7894; }
.form input:hover, .form textarea:hover, .form select:hover { border-color: #b5c2dd; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.form input:user-invalid, .form textarea:user-invalid, .form select:user-invalid { border-color: #c0262d; }
.form .btn { justify-self: start; margin-top: .5rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem; font-size: .95rem; color: var(--ink-soft); }
.foot__in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot p { margin-top: .75rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: start; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--blue); text-decoration: underline; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .top__in { justify-content: space-between; }
  .hero, .method, .faq, .contact { grid-template-columns: 1fr; }
  .method__head, .faq h2 { position: static; }
  .row { grid-template-columns: 1fr; gap: .6rem; }
  .plans { grid-template-columns: 1fr; }
  .map { max-width: 440px; }
}
@media (max-width: 480px) {
  .wrap { width: min(1160px, 100% - 2rem); }
  .hero__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .town, .js .reveal { opacity: 1; transform: none; }
}

/* Hero mockup */
.mock { position: relative; padding-bottom: 2rem; }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 4px rgba(11,27,58,.04), 0 28px 60px -20px rgba(11,27,58,.28); overflow: hidden; transform: rotate(-1.5deg); }
.browser__bar { display: flex; align-items: center; gap: .4rem; padding: .75rem 1rem; background: var(--tint); border-bottom: 1px solid var(--line); }
.browser__bar > span { width: .65rem; height: .65rem; border-radius: 50%; background: #cdd6e8; }
.browser__url { margin-left: .75rem; flex: 1; padding: .3rem .8rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--ink-soft); }
.site { font-size: .85rem; }
.site__nav { display: flex; gap: 1.1rem; align-items: center; padding: .9rem 1.25rem; color: var(--ink-soft); }
.site__nav b { margin-right: auto; font: 700 1.05rem/1 var(--display); color: #7a3b12; }
.site__hero { padding: 2.75rem 1.5rem 2.5rem; background: #7a3b12; color: #fff6ec; }
.site__title { font: 700 clamp(1.8rem, 3.2vw, 2.7rem)/1.02 var(--display); letter-spacing: -.03em; }
.site__sub { margin-top: .9rem; max-width: 26ch; color: #f0d8c0; }
.site__btn { display: inline-block; margin-top: 1.4rem; padding: .6rem 1.1rem; border-radius: 999px; background: #fff6ec; color: #7a3b12; font-weight: 700; }
.site__foot { display: flex; justify-content: space-between; padding: .9rem 1.25rem; color: var(--ink-soft); border-top: 1px solid var(--line); }
.gcard { position: absolute; right: -1rem; bottom: 1.2rem; width: min(290px, 78%); padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 4px rgba(11,27,58,.05), 0 24px 48px -16px rgba(11,27,58,.35); font-size: .86rem; }
.gcard__q { padding: .45rem .8rem; margin-bottom: .9rem; background: var(--tint); border-radius: 999px; color: var(--ink-soft); }
.gcard__name { font: 650 1.1rem/1.2 var(--display); color: var(--blue-deep); }
.gcard__meta { margin-top: .3rem; color: var(--ink-soft); }
.stars { color: #b8680a; letter-spacing: .05em; }
.gcard__actions { display: flex; gap: .5rem; margin-top: .9rem; }
.gcard__actions span { flex: 1; text-align: center; padding: .45rem 0; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--blue-deep); }
.js .mock .browser { animation: rise .9s var(--ease) both; }
.js .mock .gcard { animation: rise .9s var(--ease) .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); filter: blur(6px); } to { opacity: 1; } }
.js .mock .gcard { animation-name: rise2; }
@keyframes rise2 { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; } }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.zone__list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.zone__list li { padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; background: #fff; }
.zone .note { margin-top: 1.5rem; }
.zone .map { max-width: 250px; justify-self: center; width: 100%; }
@media (max-width: 900px) {
  .zone { grid-template-columns: 1fr; }
  .zone .map { justify-self: center; max-width: 250px; }
  .gcard { right: 0; }
  .browser { transform: none; }
}

/* References */
.refs { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.refs h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -.02em; color: var(--ink-soft); font-weight: 600; margin-bottom: 4rem; }
.marquee { display: flex; overflow: hidden; gap: 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex-shrink: 0; align-items: center; min-width: 100%; justify-content: space-around; gap: 0; animation: slide 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li { padding: 0 clamp(1.5rem, 3vw, 2.75rem); white-space: nowrap; font: 650 clamp(1.3rem, 2.2vw, 1.75rem)/1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.marquee__track li { display: flex; align-items: center; }
.marquee__track img { width: auto; filter: none; opacity: 1; transition: filter .3s; }
.marquee__track img:hover { filter: none; }
.logo-w { height: 46px; }
.logo-m { height: 70px; }
.logo-s { height: 74px; }
.ref-text { color: var(--ink-soft); }
.ref-more { color: var(--blue) !important; }
@keyframes slide { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { mask-image: none; -webkit-mask-image: none; overflow-x: auto; }
  .marquee__track[aria-hidden] { display: none; }
}

/* Pages locales */
.phero { padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 60rem; }
.phero h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -.035em; font-weight: 700; }
.crumbs { margin-bottom: 1.5rem; font-size: .92rem; color: var(--ink-soft); }
.crumbs a { text-underline-offset: 3px; }
.crumbs a:hover { color: var(--blue); }
.prose { max-width: 46rem; }
.prose h2 { margin-bottom: 1.5rem; }
.prose p + p { margin-top: 1.1rem; }
.prose p { color: var(--ink-soft); }
.section > .note, .section .note { max-width: 62ch; }
.plans-mini h2 { margin-bottom: 1.75rem; }
.plans-mini__list { border-top: 1px solid var(--ink); max-width: 46rem; }
.plans-mini__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.plans-mini__list strong { font: 650 1.2rem/1.2 var(--display); letter-spacing: -.01em; }
.plans-mini__list span { color: var(--blue-deep); font-weight: 600; white-space: nowrap; }
.cta__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 2rem; }
.cta__links a { color: var(--ink-soft); text-underline-offset: 4px; }
.cta__links a:hover { color: var(--blue); }
.zone__list a { text-decoration: none; }
.zone__list li:has(a) { transition: border-color .2s, background .2s; }
.zone__list li:has(a):hover { border-color: var(--blue); background: var(--blue-wash); }
.zone__list li a:hover { color: var(--blue-deep); }
@media (max-width: 480px) { .plans-mini__list li { flex-direction: column; gap: .25rem; } }

/* Realisations */
.projs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; margin-top: 3rem; }
.proj__img { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--tint); aspect-ratio: 5 / 3; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.proj__img:hover img, a.proj__img:focus-visible img { transform: scale(1.03); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.proj__type { margin-top: 1.1rem; font-size: .88rem; font-weight: 600; color: var(--blue); }
.proj h3 { margin-top: .25rem; font-size: 1.3rem; letter-spacing: -.02em; }
.proj p:last-child { margin-top: .35rem; color: var(--ink-soft); }
.proj .proj__url { margin-top: .6rem; font-weight: 600; font-size: .95rem; }
.proj__url a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .projs { grid-template-columns: 1fr; gap: 2.25rem; } }
@media (prefers-reduced-motion: reduce) { .proj__img img { transition: none; } }

/* A propos */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2rem 3rem; }
.about__txt p { color: var(--ink-soft); max-width: 62ch; }
.about__txt p + p { margin-top: 1rem; }
.about__txt strong { color: var(--ink); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Hub metiers / services */
.hub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-top: 2.5rem; }
.hub h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.hub li { border-bottom: 1px solid var(--line); }
.hub a { display: block; padding: .8rem 0; text-decoration: none; color: var(--ink); font-weight: 500; transition: color .2s, transform .2s; }
.hub a:hover, .hub a:focus-visible { color: var(--blue); transform: translateX(.4rem); }
@media (max-width: 800px) { .hub { grid-template-columns: 1fr; } }

/* Form status */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 1.4em; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.form__status.is-ok { color: #136c3a; }
.form__status.is-error { color: #c0262d; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

.req{color:var(--blue,#1d4ed8);font-weight:700}
.opt{font-weight:400;opacity:.65;font-size:.9em}
.form__legend{margin:0;font-size:.875rem;color:var(--ink-soft,#475569)}

.map__alsace{fill:#e9eefd;stroke:#c3d0f2;stroke-width:1.5;stroke-linejoin:round}
.map__core{fill:var(--blue);stroke:#fff;stroke-width:2.5}
.map__halo{transform-box:fill-box;transform-origin:center;animation:halo 3.6s ease-in-out infinite}
@keyframes halo{0%,100%{transform:scale(.85);opacity:.7}50%{transform:scale(1.1);opacity:1}}
@media (prefers-reduced-motion:reduce){.map__halo{animation:none}}
.map svg{background:transparent;border:0;border-radius:0}
.town text{font-size:21px!important;font-weight:500!important;fill:var(--ink-soft)!important}
.town circle{fill:#fff!important;stroke:#8fa3d9!important;stroke-width:3!important}
.map svg{overflow:visible}
