/* ============================================================
   Service Cordage — Lausanne · édition "90s court"
   Vibe tennis nineties : indigo/violet, teal, jaune soleil,
   chevrons façon polo Sergio Tacchini.
   ============================================================ */

:root {
  --bg:       #f5f4fb;
  --bg-2:     #ecebf9;
  --paper:    #f5f4fb;   /* alias pour compat templates */
  --paper-2:  #e9e7f8;
  --white:    #ffffff;
  --ink:      #181233;
  --ink-soft: #4a4470;
  --ink-faint:#8d88b0;
  --line:     rgba(24, 18, 51, 0.12);
  --line-soft:rgba(24, 18, 51, 0.07);

  --violet:   #5a3fd1;
  --violet-2: #7a51e6;
  --blue:     #2f63e6;
  --teal:     #12b3c6;
  --teal-deep:#0e94a4;
  --yellow:   #ffce2b;
  --pink:     #ff5d8f;

  --clay:     var(--violet);   /* alias accent */
  --optic:    var(--yellow);

  --display: "Anton", "Archivo", system-ui, sans-serif;  /* gros titres sport/poster */
  --serif: "Archivo", system-ui, sans-serif;             /* sous-titres athlétiques */
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --grad: linear-gradient(115deg, #5a3fd1 0%, #2f63e6 48%, #12b3c6 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(60% 50% at 85% -5%, rgba(90,63,209,0.10), transparent 70%),
                    radial-gradient(50% 40% at 5% 5%, rgba(18,179,198,0.08), transparent 70%);
}

::selection { background: var(--yellow); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.display {
  font-family: var(--display);
  font-size: clamp(3rem, 1.7rem + 6.6vw, 6.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 600;
}
.lead { font-size: clamp(1.15rem, 1.03rem + 0.7vw, 1.5rem); line-height: 1.5; color: var(--ink-soft); font-weight: 420; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Chevron motif (remplace le lit de cordes) ---------- */
.stringbed {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(135deg,
    rgba(255,255,255,0.10) 0 14px,
    transparent 14px 28px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
          mask-image: linear-gradient(180deg, #000, transparent 80%);
}

.chevrons {
  height: 16px; border: 0; margin: 0;
  background:
    repeating-linear-gradient(135deg,
      var(--violet) 0 16px,
      var(--blue)   16px 32px,
      var(--teal)   32px 48px,
      var(--yellow) 48px 64px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--serif); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.brand small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); font-weight: 600; align-self: center; }

.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 2rem); align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 550; color: var(--ink-soft); position: relative; padding: 0.3rem 0; transition: color 0.25s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; background: var(--teal); border-radius: 3px; transition: width 0.32s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-links a.nav-cta {
  font-family: var(--sans); font-size: 0.86rem; font-weight: 650;
  background: var(--ink); color: var(--white); padding: 0.6rem 1.2rem;
  border-radius: 100px; transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { transform: translateY(-1px); background: var(--violet); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 650; font-size: 0.98rem; padding: 0.9rem 1.7rem;
  border-radius: 100px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--violet); transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--violet); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); background: var(--grad); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background: repeating-linear-gradient(135deg, var(--violet) 0 16px, var(--blue) 16px 32px, var(--teal) 32px 48px, var(--yellow) 48px 64px); }
.hero .stringbed { opacity: 1; }
.hero .eyebrow { color: var(--yellow); }
.hero .lead, .hero-lead { color: rgba(255,255,255,0.88); }
.hero-grid { position: relative; display: grid; gap: 2.5rem; }
.hero h1 { margin-top: 1.2rem; color: var(--white); }
.hero h1 .ink-clay { color: var(--yellow); font-style: normal; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.6rem; }
.hero-tag .ball { width: 15px; height: 15px; border-radius: 50%; background: var(--yellow); border: 2px solid rgba(0,0,0,0.25); position: relative; animation: bounce 2.4s var(--ease) infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.hero-lead { max-width: 42ch; margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero .btn-primary { background: var(--yellow); color: var(--ink); }
.hero .btn-primary:hover { background: var(--white); }
.hero .btn-ghost { border-color: rgba(255,255,255,0.7); color: var(--white); }
.hero .btn-ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.12); }

.facts { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 3.2rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.25); }
.fact .v { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); line-height: 1; color: var(--white); }
.fact .l { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-top: 0.45rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.005em; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.8rem); }
.section-num { font-family: var(--mono); font-size: 0.78rem; color: var(--teal-deep); letter-spacing: 0.08em; font-weight: 600; }

.divider { height: 16px; border: 0; margin: 0;
  background: repeating-linear-gradient(135deg, var(--violet) 0 16px, var(--blue) 16px 32px, var(--teal) 32px 48px, var(--yellow) 48px 64px);
  opacity: 0.92; }
.band { background: var(--bg-2); }
.band-ink { background: linear-gradient(160deg, #241a52, #2f1f6e 60%, #173a86); color: var(--white); }
.band-ink .eyebrow { color: var(--yellow); }
.band-ink .lead { color: rgba(255,255,255,0.8); }
.band-ink .section-num { color: var(--teal); }

/* ---------- Annonce ---------- */
.annonce { display: grid; gap: 1.4rem; align-items: center; }
.annonce .badge { display: inline-flex; align-items: center; gap: 0.5rem; align-self: start; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--yellow); color: var(--ink); padding: 0.45rem 0.9rem; border-radius: 100px; font-weight: 600; }
.annonce p { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem); font-family: var(--serif); font-weight: 600; line-height: 1.35; max-width: 30ch; letter-spacing: -0.01em; }
@media (min-width: 800px){ .annonce { grid-template-columns: auto 1fr; gap: 3rem; } .annonce p { max-width: 46ch; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 680px){ .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px){ .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 1.7rem 1.7rem 1.9rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad); }
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(47,31,110,0.55); }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; margin-top: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .idx { font-family: var(--mono); font-size: 0.72rem; color: var(--violet); letter-spacing: 0.06em; font-weight: 600; }

/* tips */
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; }
.tips li { display: flex; gap: 1rem; align-items: baseline; padding: 1.1rem 0; border-top: 2px solid var(--line); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
.tips li:last-child { border-bottom: 2px solid var(--line); }
.tips li .n { font-family: var(--mono); font-size: 0.8rem; color: var(--teal-deep); flex: none; padding-top: 0.4rem; font-weight: 600; }

/* ---------- Prices ---------- */
.famille { margin-bottom: 3.2rem; }
.famille-head { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; max-width: 60ch; }
.famille-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.famille-head p { color: var(--ink-soft); }

.price-list { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.price-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1.05rem 0.5rem; border-bottom: 1px solid var(--line); transition: background 0.2s, padding-left 0.3s var(--ease), box-shadow 0.2s; }
.price-row:hover { background: var(--white); padding-left: 1.1rem; box-shadow: inset 4px 0 0 var(--teal); }
.price-row .corde { display: flex; flex-direction: column; gap: 0.1rem; }
.price-row .marque { font-weight: 700; font-size: 1.06rem; font-family: var(--serif); letter-spacing: -0.01em; }
.price-row .modele { color: var(--ink-soft); font-size: 0.95rem; }
.price-row .jauge { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-faint); white-space: nowrap; }
.price-row .jauge::before { content: "ø "; color: var(--teal-deep); }
.price-row .prix { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; white-space: nowrap; color: var(--violet); }

.services-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 720px){ .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service { border: 2px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; background: var(--white); transition: border-color 0.25s, transform 0.25s; }
.service:hover { border-color: var(--teal); transform: translateY(-3px); }
.service .sprice { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; color: var(--violet); }
.service h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; }
.service p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---------- Prose ---------- */
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.3rem; color: var(--ink-soft); }
.prose > p:first-of-type::first-letter, .prose .dropcap::first-letter {
  font-family: var(--serif); font-weight: 800; float: left; font-size: 3.4em; line-height: 0.72; padding: 0.06em 0.14em 0 0; color: var(--violet);
}
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); margin: 2.6rem 0 0.9rem; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.8rem; }
@media (min-width: 900px){ .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; } }
.contact-info dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-top: 1.5rem; font-weight: 600; }
.contact-info dd { margin: 0.25rem 0 0; font-size: 1.12rem; }
.contact-info dd a:hover { color: var(--violet); }

.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 18%, transparent); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px){ .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.5rem; }
.form-status { font-size: 0.95rem; margin-top: 1rem; padding: 0.8rem 1rem; border-radius: var(--r-sm); display: none; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--teal) 22%, var(--white)); }
.form-status.err { display: block; background: color-mix(in srgb, var(--pink) 16%, var(--white)); color: #b3275a; }

/* ---------- CTA ---------- */
.cta-strip { position: relative; overflow: hidden; }
.cta-strip .stringbed { opacity: 1; }
.cta-inner { position: relative; text-align: center; display: grid; gap: 1.4rem; justify-items: center; }
.cta-inner h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem); max-width: 16ch; }
.band-ink .btn-primary { background: var(--yellow); color: var(--ink); }
.band-ink .btn-primary:hover { background: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-block: 3.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 740px){ .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .brand { color: var(--white); }
.site-footer .brand .dot { border-color: var(--white); }
.site-footer h4 { font-family: var(--mono); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.9rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-links { display: grid; gap: 0.5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.82rem; color: var(--ink-faint); font-family: var(--mono); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-delay="1"]{ transition-delay: 0.08s; }
[data-delay="2"]{ transition-delay: 0.16s; }
[data-delay="3"]{ transition-delay: 0.24s; }
[data-delay="4"]{ transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } .js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
  .nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav-links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: flex-start; background: var(--bg); padding: 1.5rem var(--pad) 2rem; gap: 0.4rem; border-bottom: 4px solid var(--violet); transform: translateY(-130%); transition: transform 0.4s var(--ease); box-shadow: 0 20px 30px -20px rgba(0,0,0,0.3); }
  .nav[data-open="true"] .nav-links { transform: none; }
  .nav-links a { font-size: 1.2rem; font-family: var(--serif); font-weight: 700; }
  .nav[data-open="true"] .nav-toggle span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
  .nav[data-open="true"] .nav-toggle span:nth-child(2){ opacity: 0; }
  .nav[data-open="true"] .nav-toggle span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
}
