/* ═══════════════════════════════════════════════════════════════
   FAT BIKE · TRÉVOU
   Feuille de style unique, organisée et responsive
   ───────────────────────────────────────────────────────────────
   1. Reset & tokens
   2. Typographie de base
   3. Layout global
   4. Header
   5. Hero
   6. Intro
   7. Services
   8. Projets (à venir bloc 2)
   9. Contact (à venir bloc 3)
   10. Footer (à venir bloc 3)
   11. Utilitaires
   12. Media queries (regroupées en fin de fichier)
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. Reset & tokens ─────────────────────────────────────── */
:root {
  --paper: #f2f0e9;
  --red: #d46a51;
  --ink: #000;
  --font-sport: "Barlow Condensed", sans-serif;
  --font-coast: "Lora", serif;
  --font-body: "DM Sans", sans-serif;
  --font-logo: "Manrope", sans-serif;
  --pad-x: clamp(20px, 5vw, 76px);
  --pad-y: clamp(64px, 10vw, 130px);
  --radius-photo: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
iframe {
  max-width: 100%;
  display: block;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

section[id] { scroll-margin-top: 24px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

/* ─── 2. Typographie de base ───────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-sport);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 600;
  margin: 0;
}

.arrow-icon {
  width: 19px;
  height: 19px;
  flex: none;
}

/* ─── 3. Layout global ─────────────────────────────────────── */
.section-pad {
  padding: var(--pad-y) var(--pad-x);
}

/* ─── 4. Header ────────────────────────────────────────────── */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--red);
  z-index: 20;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-logo);
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 500;
  letter-spacing: -2px;
  color: var(--ink);
  white-space: nowrap;
}

.logo-icon {
  width: clamp(40px, 4.5vw, 76px);
  height: auto;
  flex: none;
  color: var(--ink);
}

.logo-dot { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 52px);
  font-size: 13px;
  font-weight: 500;
}

.nav-links > a:not(.nav-contact) {
  transition: opacity 180ms ease;
}
.nav-links > a:not(.nav-contact):hover { text-decoration: underline; }

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
}

.menu-button { display: none; }

/* ─── 5. Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 168px var(--pad-x) 70px;
  min-height: 800px;
  height: min(92vh, 940px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero .eyebrow { margin-bottom: 52px; }

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 1110px;
  font-size: clamp(52px, 6.5vw, 100px);
  line-height: 0.97;
}

.hero h1 em,
.contact h2 em {
  font-family: var(--font-coast);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-bottom {
  width: min(430px, 38vw);
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  z-index: 2;
}

.hero-bottom p {
  max-width: 330px;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.circle-link {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: background 180ms ease, color 180ms ease;
}
.circle-link:hover {
  background: var(--red);
  color: var(--ink);
}

.hero-photo {
  position: absolute;
  width: min(460px, 36vw);
  aspect-ratio: 3 / 4;
  right: var(--pad-x);
  bottom: 70px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-photo);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo figcaption {
  position: absolute;
  bottom: 22px;
  left: 24px;
  background: var(--paper);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 12px;
}

/* ─── 6. Intro ─────────────────────────────────────────────── */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.intro-photo {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper);
}
.intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-content {
  display: flex;
  flex-direction: column;
}
.intro-content .section-label { margin: 0 0 28px; }
.intro-content h2 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
}
.intro-copy {
  max-width: 480px;
  margin: 40px 0 0;
  font-size: 18px;
  line-height: 1.65;
}

/* ─── 7. Services ──────────────────────────────────────────── */
.services {
  position: relative;
  color: var(--ink);
  background: var(--red);
}
.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/2.jpg") center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}
.services > * { position: relative; z-index: 1; }

.section-heading {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 40px;
  margin-bottom: 95px;
}
.section-heading h2 {
  max-width: 790px;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.08;
}

.service-row {
  display: grid;
  grid-template-columns: 32% 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 164px;
  border-top: 1px solid var(--ink);
}
.service-row:last-child { border-bottom: 1px solid var(--ink); }

.service-row h3 {
  font-size: clamp(22px, 2.1vw, 30px);
}
.service-row p {
  max-width: 440px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.service-row > .arrow-icon {
  width: 24px;
  height: 24px;
  transition: transform 180ms ease;
}
.service-row:hover > .arrow-icon {
  transform: translate(4px, -4px);
}

/* ─── 8. Projets ───────────────────────────────────────────── */
.projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 80px;
}
.projects-heading .section-label { margin: 0 0 38px; }
.projects-heading h2 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
}
.projects-intro {
  max-width: 460px;
  margin: 30px 0 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px 28px;
}
.project-card.featured { grid-column: 1 / -1; }

.project-visual {
  position: relative;
  height: 490px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.featured .project-visual { height: min(63vw, 670px); }
.project-visual strong { position: relative; z-index: 2; }

.project-index {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.project-distance {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-card.featured .project-distance { font-size: 11px; padding: 8px 14px; }

.project-alta {
  color: var(--ink);
  background: var(--red);
}
.project-alta strong {
  font-family: var(--font-coast);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(48px, 10vw, 150px);
}
.alta-orbit {
  position: absolute;
  width: 47%;
  aspect-ratio: 1;
  border: 1px solid var(--paper);
  border-radius: 50%;
}
.alta-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid var(--paper);
  border-radius: 50%;
}

.project-noma {
  color: var(--ink);
  background: var(--red);
}
.project-noma::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 330px;
  border: 1px solid var(--paper);
  border-radius: 49% 49% 5% 5%;
}
.project-noma strong {
  font-family: var(--font-sport);
  font-weight: 600;
  font-size: clamp(50px, 7vw, 96px);
}

.project-horizon {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--red);
}
.project-horizon::before,
.project-horizon::after {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid var(--red);
  border-radius: 50%;
}
.project-horizon::after { width: 48%; }
.project-horizon strong {
  font-family: var(--font-coast);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(55px, 7vw, 95px);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 22px;
}
.project-meta > div { max-width: 560px; }
.project-meta h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}
.project-meta p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.78;
}

/* ─── 9. Contact ───────────────────────────────────────────── */
.contact {
  padding-bottom: 36px;
  color: var(--ink);
  background: var(--red);
}
.contact-top { margin-bottom: 48px; }
.contact-top h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
}
.contact-copy {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.contact-mega {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 22px;
  margin-bottom: 22px;
}

.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.contact-cell-title {
  font-family: var(--font-sport);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.contact-cell-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.contact-cell-address {
  margin: 0;
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
}
.contact-cell-address strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-sport);
  font-size: 17px;
  font-weight: 600;
}

.contact-cell-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-bottom: 4px;
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 500;
  transition: opacity 180ms ease;
}
.contact-cell-link:hover { opacity: 0.7; }
.contact-cell-link .arrow-icon { width: 12px; height: 12px; }

.contact-cell-map {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  margin: 2px 0 4px;
  border: 1px solid rgba(0,0,0,0.15);
  overflow: hidden;
  background: #eaeaea;
}
.contact-cell-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.92) contrast(0.98);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.contact-btn svg { width: 16px; height: 16px; flex: none; }
.contact-btn:hover { transform: translateY(-2px); }
.contact-btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.contact-btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
}

.reviews-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.reviews-google { width: 22px; height: 22px; flex: none; }
.reviews-inline strong {
  font-family: var(--font-sport);
  font-size: 22px;
  font-weight: 600;
}
.reviews-inline .reviews-stars {
  color: #fbbc05;
  font-size: 13px;
  letter-spacing: 1.5px;
}
.reviews-inline .reviews-count {
  font-size: 11px;
  opacity: 0.6;
}

.reviews-quotes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reviews-quotes li {
  font-family: var(--font-coast);
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
}
.reviews-quotes li span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ─── 10. Footer ───────────────────────────────────────────── */
footer {
  padding-top: 32px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 24px;
}
.footer-logo { font-size: 26px; letter-spacing: -1.5px; }
.footer-links {
  display: flex;
  gap: 34px;
  font-size: 11px;
}
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 180ms ease;
}
.footer-contact svg { width: 14px; height: 14px; flex: none; }
.footer-contact:hover { opacity: 0.7; }
footer > p {
  margin: 0;
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   11. Media queries (regroupées)
   ─────────────────────────────────────────────────────────────── */

/* ─── Tablette paysage / petit laptop (≤ 1024px) ────────────── */
@media (max-width: 1024px) {
  .site-header { height: 84px; }
  .section-heading { grid-template-columns: 34% 1fr; }
  .intro { gap: clamp(28px, 4vw, 56px); }
  .project-grid { gap: 55px 24px; }
  .project-visual { height: 420px; }
  .featured .project-visual { height: min(58vw, 560px); }
  .contact-mega { grid-template-columns: 1fr 1fr; gap: 18px; }
  .contact-cell-reviews { grid-column: 1 / -1; }
  .footer-links { flex-wrap: wrap; gap: 22px; }
}

/* ─── Tablette portrait / grand mobile (≤ 900px) ────────────── */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-top: 140px;
    padding-bottom: 60px;
  }
  .hero h1 { font-size: clamp(46px, 8vw, 76px); }
  .hero .eyebrow { margin-bottom: 38px; }
  .hero-bottom { width: 100%; margin-top: 40px; }
  .hero-photo {
    position: static;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 4 / 5;
    margin: 40px auto 0;
    right: auto;
    bottom: auto;
  }
  .hero-photo figcaption { display: none; }
}

/* ─── Mobile (≤ 760px) ─────────────────────────────────────── */
@media (max-width: 760px) {
  .site-header { height: 76px; }

  .menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 6px;
    z-index: 21;
  }
  .menu-line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 220ms ease;
  }
  .menu-button[aria-expanded="true"] .menu-line:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-button[aria-expanded="true"] .menu-line:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    inset: 0;
    padding: 120px var(--pad-x) 60px;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    font-size: 26px;
    background: var(--paper);
    transform: translateY(-105%);
    transition: transform 280ms ease;
    z-index: 20;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-contact { margin-top: 20px; font-size: 16px; }

  .section-pad {
    padding-top: clamp(56px, 12vw, 88px);
    padding-bottom: clamp(56px, 12vw, 88px);
  }

  /* Hero */
  .hero {
    padding-top: 110px;
    padding-bottom: 40px;
    min-height: 0;
    height: auto;
  }
  .hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero .eyebrow { margin-bottom: 28px; }
  .hero-photo {
    margin-top: 32px;
    aspect-ratio: 4 / 5;
    max-width: none;
  }
  .hero-bottom {
    margin-top: 24px;
    align-items: center;
    gap: 20px;
  }
  .hero-bottom p { font-size: 14px; max-width: none; }

  /* Intro */
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .intro-content .section-label { margin-bottom: 16px; }
  .intro-content h2 { font-size: clamp(34px, 9vw, 48px); }
  .intro-copy { margin-top: 22px; font-size: 15px; }

  /* Services */
  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 55px;
  }
  .service-row {
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 26px 0;
    min-height: 0;
  }
  .service-row h3 { font-size: 22px; margin-bottom: 8px; }
  .service-row p {
    grid-column: 1 / -1;
    margin-top: 4px;
    font-size: 13px;
    max-width: none;
  }
  .service-row > .arrow-icon { width: 20px; height: 20px; }

  /* Projets */
  .projects-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 45px;
  }
  .projects-heading .section-label { margin-bottom: 16px; }
  .projects-heading h2 { font-size: clamp(34px, 9vw, 48px); }
  .projects-intro { margin-top: 18px; font-size: 14px; }

  .project-grid { grid-template-columns: 1fr; gap: 46px; }
  .project-card.featured { grid-column: auto; }
  .project-visual,
  .featured .project-visual { height: 108vw; max-height: 540px; }
  .project-distance { top: 16px; left: 16px; padding: 5px 10px; font-size: 9px; }
  .project-card.featured .project-distance { font-size: 10px; padding: 6px 12px; }
  .project-index { top: 16px; right: 16px; }
  .project-meta h3 { font-size: 17px; }
  .project-meta p { font-size: 12px; }

  /* Contact */
  .contact-top { margin-bottom: 32px; }
  .contact-top h2 { font-size: clamp(38px, 11vw, 60px); }
  .contact-copy { font-size: 14px; margin-top: 16px; }
  .contact-mega { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .contact-cell-reviews { grid-column: auto; }
  .contact-cell { padding: 18px; gap: 12px; }
  .contact-cell-map { aspect-ratio: 4 / 3; min-height: 220px; }
  .reviews-quotes li { font-size: 12px; }

  /* Footer */
  footer { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-links {
    flex-direction: column;
    gap: 14px;
    font-size: 12px;
  }
  footer > p { text-align: left; }
}

/* ─── Petit mobile (≤ 420px) ───────────────────────────────── */
@media (max-width: 420px) {
  .logo { font-size: 20px; letter-spacing: -1.2px; gap: 10px; }
  .logo-icon { width: 40px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 46px); }
  .hero .eyebrow { font-size: 9px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .circle-link { width: 46px; height: 46px; }
  .intro-content h2,
  .projects-heading h2 { font-size: 32px; }
  .section-heading h2 { font-size: 30px; }
  .service-row h3 { font-size: 20px; }
  .contact-top h2 { font-size: 34px; }
  .project-meta { flex-direction: column; gap: 14px; }
  .project-meta > .arrow-icon { align-self: flex-end; }
  .contact-btn { font-size: 13px; padding: 12px 16px; }
  .reviews-inline strong { font-size: 20px; }
}

/* ─── Très petit mobile (≤ 360px) ──────────────────────────── */
@media (max-width: 360px) {
  :root { --pad-x: 18px; }
  .logo span:not(.logo-dot) { font-size: 17px; }
  .logo-icon { width: 34px; }
  .hero h1 { font-size: 30px; }
  .intro-content h2,
  .projects-heading h2 { font-size: 28px; }
  .section-heading h2 { font-size: 26px; }
  .contact-top h2 { font-size: 30px; }
  .project-distance { font-size: 8px; padding: 4px 8px; }
}

/* ─── Préférences système ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Corrections z-index header + ordre hero mobile ────────── */
@media (max-width: 760px) {
  .site-header { z-index: 30; }
  .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .hero-photo { order: 3; }
  .hero-bottom { order: 4; }
}
