/* ============================================================
   We are the Motion - refonte 2026
   Direction : identité existante conservée (noir / blanc / vert
   signature #0dc191, wordmark MOTION.), thème sombre verrouillé.
   Typo : Outfit (titres) / Work Sans (texte)
   Formes : boutons en pilule, cartes et images 18 px, champs 12 px
   ============================================================ */

:root {
  color-scheme: dark;

  --bg: #0c0d0c;
  --bg-2: #121412;
  --bg-3: #1a1d1b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);

  --text: #f2f3f0;
  --text-2: #aab0ab;
  --text-3: #858b86;

  --green: #0dc191;
  --green-2: #3ddcac;
  --green-ink: #06301f;
  --green-tint: rgba(13, 193, 145, 0.12);

  --font-display: "Outfit", "Segoe UI", Arial, sans-serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;

  --radius-card: 18px;
  --radius-field: 12px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 10vw, 8.5rem);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --topbar: 72px;
}

/* ------------------------------ Base ------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 3.7vw, 3.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.015em; }

p { margin: 0 0 1rem; }

.lede {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 60ch;
}

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: var(--section); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------ Boutons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--green);
  color: var(--green-ink);
  border-color: var(--green);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn--small { min-height: 42px; padding: 0.6rem 1.25rem; font-size: 0.95rem; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--green-2); border-color: var(--green-2); }
  .btn--ghost:hover { border-color: var(--text); }
}

/* ------------------------------ Topbar ------------------------------ */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--topbar);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.is-scrolled {
  background: rgba(12, 13, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand img { height: 20px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}

.nav-links a.is-active,
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: var(--topbar) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgba(12, 13, 12, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .nav-links { flex-direction: column; gap: 0; }

  .nav-links li {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    transition-delay: calc(var(--i, 0) * 45ms);
  }

  .nav.is-open .nav-links li { opacity: 1; transform: none; }

  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn { margin-top: 1.25rem; }
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--topbar) + clamp(2rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: min(100dvh, 880px);
  display: flex;
  align-items: center;
}

/* Fond : la photo sous-marine de la marque, très atténuée, fondue vers le noir */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/hero-ocean.jpg") center / cover no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 78% 40%, rgba(13, 193, 145, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(12, 13, 12, 0.35) 0%, rgba(12, 13, 12, 0.55) 55%, var(--bg) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* min-width: 0 : les vignettes du défilé ne doivent jamais élargir la grille */
.hero-grid > *,
.marquee-col,
.marquee-item { min-width: 0; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 7fr 5fr; }
}

.hero-intro {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(12, 13, 12, 0.55);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
}

.hero h1 { margin-bottom: 1.5rem; text-wrap: initial; }
.hero h1 em { font-style: normal; color: var(--green); }

.br-desktop { display: none; }

@media (min-width: 1024px) {
  .br-desktop { display: inline; }
}

/* Mot tournant du titre : sites / marques / boutiques / campagnes.
   La largeur suit le mot affiché (transition) : le reste de la ligne glisse en douceur. */
.rotator {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  color: var(--green);
  text-align: left;
  white-space: nowrap;
  transition: width 0.55s var(--ease);
}

.rotator-word {
  display: inline-block;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.rotator-word.is-out { transform: translateY(-110%); opacity: 0; }
.rotator-word.is-in { transform: translateY(110%); opacity: 0; transition: none; }

.hero .lede { margin-bottom: 2rem; max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Défilé vertical des projets : deux colonnes, sens opposés, inclinées */
.hero-visual { position: relative; }

.hero-marquee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: clamp(340px, 62vh, 600px);
  overflow: hidden;
  transform: rotate(-4deg) scale(1.06);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee-col { overflow: hidden; }

.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: marquee-up 36s linear infinite;
  will-change: transform;
}

.marquee-col--down .marquee-track {
  animation-name: marquee-down;
  animation-duration: 42s;
}

.hero-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: block;
  flex: none;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes marquee-up {
  to { transform: translateY(-50%); }
}

@keyframes marquee-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@media (max-width: 1023px) {
  .hero-marquee {
    height: 360px;
    transform: rotate(-3deg) scale(0.94);
  }
}

/* Entrée de page : apparition en cascade (hiérarchie de lecture) */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] {
    opacity: 0;
    transform: translateY(18px);
    animation: enter 0.9s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 1ms);
  }

  .hero-visual[data-enter] {
    transform: scale(1.03);
    animation-name: enter-media;
    animation-duration: 1.2s;
  }
}

/* Mouvement réduit : défilé figé sur 2 vignettes par colonne, pas de mot tournant */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-track > :nth-child(n + 3) { display: none; }
  .hero-marquee {
    height: auto;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@keyframes enter {
  to { opacity: 1; transform: none; }
}

@keyframes enter-media {
  to { opacity: 1; transform: none; }
}

/* ------------------------------ Révélation au scroll ------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .reveal.in { opacity: 1; transform: none; }
}

/* ------------------------------ Vidéo de présentation ------------------------------ */

.section--video { padding-top: 0; }

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
}

/* L'iframe YouTube n'est injectée qu'au clic : aucun cookie tiers avant lecture */
.video-poster {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 13, 12, 0) 60%, rgba(12, 13, 12, 0.6) 100%);
  pointer-events: none;
}

.video-play {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0.85rem 1.5rem 0.85rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 14px 40px rgba(13, 193, 145, 0.28);
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease);
}

.video-play svg { width: 22px; height: 22px; fill: currentColor; }

.video-duration {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 0.25rem;
}

@media (hover: hover) and (pointer: fine) {
  .video-poster:hover img { transform: scale(1.03); opacity: 1; }
  .video-poster:hover .video-play { transform: scale(1.04); background: var(--green-2); }
}

.video-poster:focus-visible { outline: none; }
.video-poster:focus-visible .video-play { outline: 2px solid var(--text); outline-offset: 3px; }

.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ------------------------------ Projets ------------------------------ */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter {
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filter[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-ink);
}

@media (hover: hover) and (pointer: fine) {
  .filter:not([aria-pressed="true"]):hover { color: var(--text); border-color: var(--text); }
}

.projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .projects {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
  }

  .project--wide { grid-column: span 2; }
}

.project { display: flex; flex-direction: column; gap: 0.9rem; }

.project[hidden] { display: none; }

.project-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

@media (min-width: 1024px) {
  .project-media { aspect-ratio: 4 / 3; }
  .project--wide .project-media { aspect-ratio: 2.76 / 1; }
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.project-media img.pos-left { object-position: 30% center; }

.project-title {
  font-size: 1.2rem;
  margin: 0;
  transition: color 0.3s var(--ease);
}

.project-cats {
  font-size: 0.9rem;
  color: var(--text-3);
  margin: 0.15rem 0 0;
}

@media (hover: hover) and (pointer: fine) {
  .project:hover .project-media img { transform: scale(1.04); }
  .project:hover .project-title { color: var(--green); }
}

.projects-empty {
  color: var(--text-2);
  padding: 2rem 0;
}

/* ------------------------------ Services ------------------------------ */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 4rem;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}

@media (min-width: 768px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}

.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--text-2); margin: 0; max-width: 46ch; }

.service-tools {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--green);
}

/* ------------------------------ Offres ------------------------------ */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.plan--featured {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-ink);
}

@media (hover: hover) and (pointer: fine) {
  .plan:not(.plan--featured):hover { border-color: var(--line-strong); }
}

.plan h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.5rem;
}

.plan-hours { color: var(--text-2); margin: 0; }
.plan--featured .plan-hours { color: rgba(6, 48, 31, 0.78); }

.plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
}

.plan-price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 0.35rem;
  color: var(--text-2);
}

.plan--featured .plan-price small { color: rgba(6, 48, 31, 0.78); }

.plan-note { color: var(--text-2); margin: 0 0 1.75rem; font-size: 0.95rem; }
.plan--featured .plan-note { color: rgba(6, 48, 31, 0.85); }

.plan .btn { margin-top: auto; align-self: flex-start; }

.plan--featured .btn--ghost {
  color: var(--green-ink);
  border-color: rgba(6, 48, 31, 0.5);
}

@media (hover: hover) and (pointer: fine) {
  .plan--featured .btn--ghost:hover {
    background: var(--green-ink);
    color: var(--green);
    border-color: var(--green-ink);
  }
}

.plans-footnote {
  margin: 1.5rem 0 0;
  color: var(--text-3);
  font-size: 0.9rem;
}

/* ------------------------------ À propos ------------------------------ */

.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .about { grid-template-columns: 7fr 5fr; }
  .about-side .about-sub { margin-top: 0; }
}

.about-id { color: var(--text-2); }
.about-id strong { color: var(--text); font-weight: 600; }
.about-id a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.about-main p { color: var(--text-2); max-width: 62ch; }
.about-main p.about-intro { color: var(--text); font-size: 1.2rem; }

.about-sub { margin: 2.5rem 0 1.25rem; }

.tl-year {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-left: 0.5rem;
}

.about-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.about-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .about-socials a:hover { border-color: var(--green); color: var(--green); }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--line-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.75rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.timeline span { color: var(--text-2); }

/* ------------------------------ Blog ------------------------------ */

.posts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.post {
  display: grid;
  gap: 0.5rem 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 768px) {
  .post { grid-template-columns: 140px 1fr auto; align-items: baseline; }
}

.post time {
  color: var(--text-3);
  font-size: 0.9rem;
}

.post h3 { margin: 0 0 0.35rem; }
.post p { color: var(--text-2); margin: 0; max-width: 60ch; }

.post-link {
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .post h3 a:hover { color: var(--green); }
}

/* ------------------------------ Contact ------------------------------ */

.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .contact { grid-template-columns: 5fr 7fr; }
}

.contact-details {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-details li { margin-bottom: 1.1rem; }

.contact-details span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 0.15rem;
}

.contact-details a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  transition: color 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .contact-details a:hover { color: var(--green); }
}

.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.form-row { display: grid; gap: 1.1rem; }

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 0.4rem; }

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-field);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition: border-color 0.3s var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-tint);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-field);
  font-size: 0.95rem;
}

.form-note--ok { background: var(--green-tint); color: var(--green-2); }
.form-note--error { background: rgba(255, 99, 99, 0.12); color: #ff9b9b; }

.form-consent {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0;
}

.form-consent a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------ FAQ ------------------------------ */

.faq-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .faq-layout { grid-template-columns: 4fr 8fr; }
  .faq-layout .section-head { position: sticky; top: calc(var(--topbar) + 2rem); margin-bottom: 0; }
}

.faq {
  border-top: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item h3 { margin: 0; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.faq-q::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease);
}

.faq-item.is-open .faq-q::after { transform: rotate(225deg); }

@media (hover: hover) and (pointer: fine) {
  .faq-q:hover { color: var(--green); }
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a > div { overflow: hidden; }

.faq-a p {
  color: var(--text-2);
  margin: 0 0 1.4rem;
  max-width: 62ch;
}

/* ------------------------------ Tarifs ------------------------------ */

.pricing-sub { margin: 0 0 1.25rem; }

.price-list {
  list-style: none;
  margin: 0 0 3.5rem;
  padding: 0;
  border-top: 1px solid var(--line);
}

.price-row {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

@media (min-width: 768px) {
  .price-row { grid-template-columns: 1fr auto; }
}

.price-row strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.price-row span {
  display: block;
  color: var(--text-2);
  max-width: 60ch;
}

.price-amount {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--green);
}

.availability {
  display: grid;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

@media (min-width: 768px) {
  .availability { grid-template-columns: auto 1fr; align-items: start; }
}

.availability strong {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  white-space: nowrap;
}

/* Voyant d'état réel : la disponibilité est un statut, pas une décoration */
.availability strong::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-tint);
}

.availability p { margin: 0; color: var(--text-2); max-width: 70ch; }

/* ------------------------------ Chiffres ------------------------------ */

.stats {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  margin: 2.25rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.stats span { color: var(--text-2); font-size: 0.95rem; }

.posts-more {
  margin: 1.5rem 0 0;
  color: var(--text-3);
  font-size: 0.95rem;
}

.posts-more a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------ Résultats (pages projet) ------------------------------ */

.results {
  max-width: 68ch;
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.results h2 { font-size: 1.2rem; margin: 0 0 0.75rem; }
.results ul { margin: 0; padding-left: 1.2rem; color: var(--text-2); }
.results li { margin-bottom: 0.4rem; }
.results li::marker { color: var(--green); }

/* ------------------------------ Pied de page ------------------------------ */

.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  color: var(--text-3);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
}

.footer-logo img { height: 18px; width: auto; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a { color: var(--text-2); transition: color 0.3s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--text); }
}

.footer-legal p { margin: 0; }

/* ------------------------------ Pages secondaires ------------------------------ */

.page {
  padding-top: calc(var(--topbar) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: var(--section);
}

.page-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.page-head .crumb {
  display: inline-block;
  color: var(--text-3);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  transition: color 0.3s var(--ease);
}

.page-head .crumb:hover { color: var(--green); }

.page-head h1 { margin-bottom: 1rem; }

.page-head .lede { margin: 0; }

.meta {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 640px) {
  .meta { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

.meta div { margin: 0; }

.meta dt {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 0.2rem;
}

.meta dd { margin: 0; font-weight: 500; }

.meta dd a { color: var(--green); }

.gallery {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.full { grid-column: span 2; }
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.gallery img { width: 100%; height: auto; }

.gallery figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text-3);
}

.prose {
  max-width: 68ch;
  font-size: 1.05rem;
}

.prose p { color: var(--text-2); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.5rem 0 1rem; }
.prose ul, .prose ol { color: var(--text-2); padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.legal h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.pager a {
  display: grid;
  gap: 0.2rem;
  transition: color 0.3s var(--ease);
}

.pager a span { font-size: 0.85rem; color: var(--text-3); }
.pager a strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.pager a.next { text-align: right; }

@media (hover: hover) and (pointer: fine) {
  .pager a:hover strong { color: var(--green); }
}

.cta-band {
  margin-top: var(--section);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cta-band { grid-template-columns: 1fr auto; }
}

.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.35rem; }
.cta-band p { margin: 0; color: var(--text-2); }

/* ------------------------------ Mouvement réduit ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
