@font-face {
  font-family: Fraunces;
  src: url(fonts/fraunces.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Caveat;
  src: url(fonts/caveat.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(fonts/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --line: #eadfce;
  --text: #2b2420;
  --muted: #6e6259;
  --accent: #c8553d;
  --accent-dark: #a8432e;
  --stone: #3f5a6b; /* bleu de la pierre bleue de l'Avesnois */
  --on-accent: #ffffff;
  --accent-soft: #fff4ef;
  --sand: #f3eadb;
  --accent-on-dark: #f0a48f;
  --shadow: 80 50 20;
  --radius: 20px;
  --pill: 999px;
  --font-title: Fraunces, Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, .brand { font-family: var(--font-title); font-weight: 700; }
h3 { line-height: 1.25; }

/* Barre du haut */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.brand { font: 700 32px/1 Caveat, cursive; text-decoration: none; color: var(--accent); transform: rotate(-2deg); }
nav { display: flex; gap: 8px; align-items: center; font-size: 15px; }
nav a {
  padding: 7px 14px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
nav .nav-cta { color: var(--on-accent); background: var(--accent); font-weight: 600; }
nav .nav-cta.active { color: var(--on-accent); background: var(--accent); border-color: var(--text); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Accroche */
.hero { padding: 64px 0 80px; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-weight: 600; color: var(--stone); }
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
h1 em { font-style: italic; color: var(--accent); }
.pitch { max-width: 640px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid var(--text);
  border-radius: var(--pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.for-who { display: grid; grid-template-columns: repeat(4, max-content); gap: 10px; margin: 48px 0 0; padding: 0; list-style: none; }
.for-who li {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 15px;
}

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -.01em; }
.lead { margin: 8px 0 36px; color: var(--muted); font-size: 18px; }

/* Offres */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.offer { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.offer-icon .icon { width: 26px; height: 26px; }
.offer h3 { margin: 10px 0 8px; font-size: 24px; }
.offer p { margin: 0; color: var(--muted); }
.offer ul, .included ul { margin: 18px 0 0; padding: 0; list-style: none; }
.offer li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; border-top: 1px dashed var(--line); }
.offer li::before { content: "✓"; position: absolute; left: 4px; color: var(--stone); font-weight: 700; }

.included {
  margin-top: 24px;
  padding: 28px;
  background: var(--sand);
  border-radius: var(--radius);
}
.included h3 { margin: 0; font-size: 20px; }
.included ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }

/* Réalisations */
.works { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.work {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.work:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgb(var(--shadow) / .12); }
.work-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; display: block; }
.work-cnp .work-img img { object-position: left top; }
.work-foret .work-img { display: grid; place-items: center; background: #14281d; }
.work-foret .work-img img { width: 112px; height: 112px; object-fit: contain; }
.work-body { padding: 24px 26px 28px; }
.work-type { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); }
.work h3 { margin: 6px 0 8px; font-size: 22px; }
.work p:not(.work-type) { margin: 0; color: var(--muted); font-size: 15px; }
.work-link { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--accent); }

/* Étapes */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 20px var(--font-title);
}
.steps h3 { margin: 14px 0 6px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Qui suis-je */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.about p { max-width: 700px; font-size: 18px; }

.signature { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.signature img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 4px 12px rgb(var(--shadow) / .15); }
.signature p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.signature strong { color: var(--text); }
.hobbies { color: var(--muted); }

/* Contact */
.contact { text-align: center; padding: 88px 0 96px; }
.contact .actions { justify-content: center; }
.mail { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
footer p { margin: 0; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar, main, footer { padding-left: 16px; padding-right: 16px; }
  .topbar { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .brand { font-size: 19px; text-align: center; }
  nav { justify-content: center; gap: 4px; font-size: 14px; }
  nav a { padding: 6px 11px; }
  .for-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .for-who li { text-align: center; }
  .hero { padding: 36px 0 56px; }
  .pitch { font-size: 17px; }
  .actions .btn { width: 100%; text-align: center; }
  .section { padding: 56px 0; }
  .about { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .about-text { text-align: center; }
}

/* Tarifs */
.price { margin: 14px 0 0 !important; font: 700 28px var(--font-title); color: var(--text) !important; }
.price span { font: 500 15px var(--font-body); color: var(--muted); white-space: nowrap; }
.launch {
  margin: 24px 0 0;
  padding: 16px 22px;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
}
.included-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

/* Questions */
.faq { display: grid; gap: 12px; margin-top: 36px; max-width: 800px; }
.faq details { padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Grandes enseignes */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.brands article { padding: 28px; background: var(--text); color: var(--bg); border-radius: var(--radius); }
.brand-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.brand-logo { display: grid; place-items: center; flex: none; width: 76px; height: 76px; padding: 10px; background: #fff; border-radius: 16px; }
.brand-logo img { max-width: 100%; max-height: 100%; }
.brand-name { margin: 0; font: 700 26px var(--font-title); }
.brand-when { margin: 0; font-size: 14px; font-weight: 600; color: var(--accent-on-dark); }
.brands article p:last-child { margin: 0; opacity: .85; font-size: 15px; }

/* Icônes au trait (téléphone, email) */
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:has(.icon) { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 7px; }

.for-who li { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.for-who .icon { color: var(--accent); }
.included li { display: flex; align-items: flex-start; gap: 10px; }
.included .icon { margin-top: .25em; color: var(--stone); }
.launch .icon { margin-right: 8px; vertical-align: -.2em; color: var(--accent); }


/* Bouton d'appel flottant, sur mobile uniquement */
.call-fab { display: none; }

@media (max-width: 600px) {
  .call-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--pill);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgb(var(--shadow) / .3);
  }
  footer { padding-bottom: 96px; }

  /* Étapes plus compactes : numéro à gauche du texte */
  .steps { gap: 18px; margin-top: 24px; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
  .steps li::before { width: 36px; height: 36px; font-size: 17px; grid-row: span 2; }
  .steps h3 { margin: 4px 0 2px; font-size: 18px; }
}

/* Mentions légales */
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(34px, 6vw, 48px); line-height: 1.1; }
.legal h2 { margin-top: 36px; font-size: 24px; }
.legal p { color: var(--muted); }
footer p:first-child a { text-decoration: underline; }

.price small { font-size: 15px; font-weight: 600; }

/* Témoignage */
.testimonial {
  position: relative;
  margin: 28px 0 0;
  padding: 32px 36px 28px 72px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.testimonial::before {
  content: "“";
  position: absolute;
  left: 22px;
  top: 6px;
  font: 700 80px/1 var(--font-title);
  color: var(--accent);
}
.testimonial blockquote { margin: 0; font-size: 19px; line-height: 1.55; }
.testimonial figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.testimonial figcaption strong { color: var(--text); }
@media (max-width: 600px) {
  .testimonial { padding: 52px 22px 22px; }
  .testimonial::before { left: 18px; top: 2px; font-size: 64px; }
  .testimonial blockquote { font-size: 17px; }
}

.swipe-hint { display: none; margin: 10px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.zone-line { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 16px !important; }
.zone-line .icon { margin-top: .3em; color: var(--accent); }

@media (max-width: 600px) {
  .zone-line { text-align: left; }

  /* Carrousels (offres, réalisations, enseignes) : la carte suivante dépasse pour inviter à glisser */
  .swipe {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 85%; scroll-snap-align: start; }
  .swipe-hint { display: block; }
  .offer { padding: 22px; }
  .brands article { padding: 22px; }

  /* Réalisations : image moins haute */
  .work-img { aspect-ratio: auto; height: 140px; }
  .work-foret .work-img img { width: 72px; height: 72px; }
  .work-body { padding: 18px 20px 20px; }
  .work h3 { font-size: 19px; }
}

@media (max-width: 600px) {
  .included { padding: 22px; }
  .included ul { gap: 4px; }
  .included li { font-size: 15px; }
}

/* Touches manuscrites */
.hand { font-family: Caveat, cursive; font-weight: 700; color: var(--accent); line-height: 1.1; }
.hand-note { margin: -18px 0 28px; font-size: 26px; transform: rotate(-2deg); transform-origin: left; }
.about .signature-hand { margin: 8px 0 0; font-size: 40px; transform: rotate(-4deg); display: inline-block; }

/* Accroche : photo façon polaroïd à droite */
.hero { display: grid; grid-template-columns: 1fr 340px; column-gap: 56px; align-items: center; }
.hero .for-who { grid-column: 1 / -1; }
.polaroid {
  margin: 0;
  padding: 14px 14px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 18px 44px rgb(var(--shadow) / .18);
  transform: rotate(2.5deg);
}
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.polaroid figcaption { padding: 12px 4px 16px; font-size: 26px; text-align: center; color: var(--text); }
.hero .signature { display: none; }

/* Carte de la zone */
.about-map { justify-self: stretch; }
.map { display: block; width: 100%; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.map text { font: 500 13px var(--font-body); fill: var(--muted); }
.map-dot { fill: var(--muted); }
.map-home { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.map .map-home-label { font: 700 15px var(--font-body); fill: var(--text); }
.map .map-note { font: 700 22px Caveat, cursive; fill: var(--accent); }
.map-arrow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.about-map .zone-line { margin-top: 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  /* La photo passe au-dessus de « Moi, c'est Tommy. » */
  .hero .polaroid { order: -1; justify-self: center; width: 240px; margin-bottom: 24px; padding: 10px 10px 0; }
  .hero .polaroid figcaption { padding: 8px 2px 10px; font-size: 19px; white-space: nowrap; }
}
@media (max-width: 600px) {
  .hand-note { margin: -24px 0 20px; font-size: 22px; }
  .about-map { width: 100%; }
}


/* Promesse maquette gratuite */
.promise {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  padding: 16px 22px;
  background: var(--stone);
  color: #fff;
  border-radius: var(--radius);
  font-size: 17px;
}
.promise .icon { width: 24px; height: 24px; flex: none; }
.promise + .launch { margin-top: 14px; }

/* Simulateur « À quoi ressemblerait votre site ? » */
.essai { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; }
.essai-form { display: grid; gap: 16px; max-width: 460px; }
.essai-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.essai-form input, .essai-form select {
  font: 400 17px var(--font-body);
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
}
.essai-form input:focus, .essai-form select:focus { outline: none; border-color: var(--accent); }
.essai-note { margin: 18px 0 20px; font-size: 24px; transform: rotate(-1.5deg); transform-origin: left; }

.phone {
  justify-self: center;
  width: 300px;
  padding: 12px;
  background: #1c1c1e;
  border-radius: 44px;
  box-shadow: 0 30px 60px rgb(var(--shadow) / .25);
  transform: rotate(2deg);
}


/* Contact : bloc bleu pierre pour faire ressortir l'appel final */
.contact {
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  background: var(--stone);
  color: #fff;
  border-radius: var(--radius);
  border-top: 0;
}
.contact .lead { color: rgb(255 255 255 / .8); }
.contact .btn:not(.btn-primary) { border-color: #fff; color: #fff; }
.contact .btn:not(.btn-primary):hover { background: rgb(255 255 255 / .1); }
.footer-colors, .footer-zone { font-size: 13px; }

@media (max-width: 860px) {
  /* Le téléphone se place juste sous le formulaire, pour voir l'aperçu en tapant */
  .essai { grid-template-columns: 1fr; gap: 0; }
  .essai-text { display: contents; }
  .essai h2 { order: 1; }
  .essai .lead { order: 2; }
  .essai-form { order: 3; }
  .essai .phone { order: 4; margin-top: 28px; }
  .essai-note { order: 5; margin-top: 28px; }
  .essai .btn { order: 6; justify-self: start; }
}
@media (max-width: 600px) {
  .brand { font-size: 28px; }
  .essai-text { text-align: left; }
  .phone { width: 270px; }
  .contact { margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 0; }
}
