/* Styles communs de la vitrine Sillonphane (index.html, cyclo/index.html). */
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('/fonts/playfair-display-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('/fonts/playfair-display-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

* { box-sizing: border-box; }

/* Palette reprise de Sillon-Rando ; Cyclo reçoit son propre accent (bleu ardoise). */
:root {
  --stone-50:  #FAF9F6;
  --stone-100: #F5F3EF;
  --stone-200: #EAE6DF;
  --terracotta: #C15C3D;
  --terracotta-hover: #A84C30;
  --terracotta-light: #F8ECE7;
  --forest: #2F4839;
  --forest-hover: #24372C;
  --forest-light: #EDF2EE;
  --slate: #3E6275;
  --slate-hover: #31505F;
  --slate-light: #E9EFF2;
  --beige: #9C8156;
  --ink: #191817;
  --ink-soft: rgba(43,41,39,0.80);
  --ink-faint: rgba(43,41,39,0.55);
  --line: rgba(43,41,39,0.12);
}

html { scroll-behavior: smooth; }
/* Les ancres (#cyclo, #gamme…) s'arrêtent sous l'en-tête collant (76 px) plutôt que dessous. */
[id] { scroll-margin-top: 96px; }
html, body { margin: 0; padding: 0; background: var(--stone-50); }
body {
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--terracotta); }
::selection { background: rgba(193,92,61,0.20); color: var(--terracotta); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; color: var(--terracotta);
}
.t-terra { color: var(--terracotta); }
.t-slate { color: var(--slate); }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 500; font-size: 0.92rem;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .18s, color .18s, border-color .18s;
}
.btn--terra { background: var(--terracotta); color: #fff; box-shadow: 0 6px 20px rgba(193,92,61,0.22); }
.btn--terra:hover { background: var(--terracotta-hover); color: #fff; }
.btn--slate { background: var(--slate); color: #fff; box-shadow: 0 6px 20px rgba(62,98,117,0.22); }
.btn--slate:hover { background: var(--slate-hover); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn--light { background: rgba(250,249,246,0.14); border-color: rgba(250,249,246,0.55); color: #FAF9F6; backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(250,249,246,0.26); color: #fff; }

/* ---- Header ---- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; }
.brand__name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
/* Même code couleur que le logo texte de Sillon-Rando : vert puis beige italique. */
.brand__name .wm--a { color: var(--forest); }
.brand__name .wm--b { color: var(--beige); font-style: italic; font-weight: 400; }
.nav { display: flex; gap: 30px; font-size: 0.92rem; font-weight: 600; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--terracotta); }
@media (max-width: 760px) { .nav { display: none; } }

/* Tracé du sigle qui se redessine en boucle (repris de Sillon-Rando). */
.sillon-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sillonDraw 4.4s ease-in-out infinite; }
.sillon-dot { opacity: 0; animation: sillonDotIn 4.4s ease-in-out infinite; }
@keyframes sillonDraw { 0%{stroke-dashoffset:1} 40%{stroke-dashoffset:0} 100%{stroke-dashoffset:0} }
@keyframes sillonDotIn { 0%,2%{opacity:0} 4%,82%{opacity:1} 100%{opacity:0} }

/* Logo texte : vague « effacement puis réapparition », lettre après lettre, en boucle (comme Rando). */
.brand__name .wm { display: inline-block; }
.brand__name .wm > span {
  display: inline-block; opacity: 1; will-change: transform, opacity;
  animation: wmLetter 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.11s);
}
@keyframes wmLetter {
  0%, 52%   { opacity: 1; transform: translateY(0);   filter: blur(0); }
  66%, 80%  { opacity: 0; transform: translateY(4px);  filter: blur(2px); }
  94%, 100% { opacity: 1; transform: translateY(0);   filter: blur(0); }
}
/* Le carré de l'en-tête reste fixe, entièrement dessiné. */
.brand__mark .sillon-draw, .brand__mark .sillon-dot { animation: none; stroke-dashoffset: 0; opacity: 1; }

/* Les autres logos sont toujours animés, même avec « réduire les animations » (choix délibéré). */
@media (prefers-reduced-motion: reduce) {
  .hero__photo { transition: none !important; }
}

/* ---- Hero ---- */
.hero { position: relative; min-height: min(82vh, 720px); display: flex; align-items: center; overflow: hidden; background: #191817; }
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero__photo.is-on { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(25,24,23,0.78) 0%, rgba(25,24,23,0.45) 55%, rgba(25,24,23,0.15) 100%); }
.hero__in { position: relative; padding-top: 72px; padding-bottom: 72px; color: #FAF9F6; max-width: 760px; }
.hero__sigle { width: 58px; height: 82px; display: block; margin-bottom: 22px; }
.hero .eyebrow { color: #F0CFA8; }
.hero__title { color: #FAF9F6; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.1; margin: 14px 0 18px; }
.hero__title i { font-weight: 500; }
.hero__title .t-terra { color: #E9906F; }
.hero__lead { font-size: 1.08rem; line-height: 1.65; color: rgba(250,249,246,0.88); max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---- Sections ---- */
.section { padding: 92px 0; }
.section--tint { background: var(--stone-100); }
.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.18; margin-top: 10px; }
.section__head p { margin-top: 14px; font-size: 1.02rem; line-height: 1.65; color: var(--ink-soft); }

/* ---- Cartes de la gamme ---- */
.range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 860px) { .range { grid-template-columns: 1fr; } }
.app {
  --accent: var(--terracotta); --accent-light: var(--terracotta-light);
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: 0 14px 40px rgba(25,24,23,0.06);
}
.app--cyclo { --accent: var(--slate); --accent-light: var(--slate-light); }
.app__visual { position: relative; aspect-ratio: 16 / 8; background: var(--accent-light); overflow: hidden; }
.app__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app__visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.app__pill {
  position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  background: #fff; color: var(--accent); box-shadow: 0 4px 14px rgba(25,24,23,0.12);
}
.app__body { padding: 30px 30px 32px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.app__name { font-size: 1.7rem; }
.app__name .wm--a { color: var(--forest); font-weight: 700; }
.app__name .wm--b { color: var(--accent); font-style: italic; font-weight: 500; }
.app__text { font-size: 1rem; line-height: 1.65; color: var(--ink-soft); }
.app__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.app__list li { display: flex; gap: 12px; align-items: baseline; font-size: 0.96rem; line-height: 1.5; }
.app__list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.app__act { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app__note { font-size: 0.85rem; color: var(--ink-faint); }

/* ---- Engagements ---- */
.pledges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .pledges { grid-template-columns: 1fr; } }
.pledge { background: var(--stone-50); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 28px; }
.pledge__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--forest-light); color: var(--forest); display: grid; place-items: center; margin-bottom: 16px; }
.pledge__icon svg { width: 22px; height: 22px; }
.pledge h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pledge p { font-size: 0.96rem; line-height: 1.6; color: var(--ink-soft); }

/* ---- Final ---- */
.final { text-align: center; padding: 88px 24px 96px; }
.final h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.final p { margin-top: 12px; color: var(--ink-soft); }
.final__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- Pied de page ---- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.9rem; color: var(--ink-soft); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.foot__brand svg { width: 30px; height: 30px; border-radius: 8px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot small { margin-left: auto; color: var(--ink-faint); }
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .wrap { padding: 0 16px; }
  .app__body { padding: 24px 22px 26px; }
  .foot small { margin-left: 0; }
  .hero__cta .btn { width: 100%; }
}

/* ---- Page Sillonphane Cyclo ---- */
.nav a[aria-current="page"] { color: var(--slate); }
.cy-hero { background: var(--slate-light); overflow: hidden; }
.cy-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
@media (max-width: 860px) { .cy-hero__in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 40px; } }
.cy-hero .eyebrow { color: var(--slate); }
.cy-hero__title { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 14px 0 18px; }
.cy-hero__title i { color: var(--slate); font-weight: 500; }
.cy-hero__lead { font-size: 1.08rem; line-height: 1.65; color: var(--ink-soft); max-width: 560px; }
.cy-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.cy-pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--slate);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 4px 14px rgba(25,24,23,0.08); margin-left: 10px; vertical-align: middle;
}
.cy-hero__visual svg { width: 100%; height: auto; display: block; }
.cy-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 860px) { .cy-plan { grid-template-columns: 1fr; } }
.cy-plan .pledge__icon { background: var(--slate-light); color: var(--slate); }
.cy-note { margin-top: 28px; font-size: 0.92rem; color: var(--ink-faint); }
