/* ==========================================================================
   Arobase Créations — feuille de style
   ========================================================================== */

/* Polices auto-hébergées (OFL), sous-ensemble latin, fichiers variables */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-italic.woff2") format("woff2");
}

:root {
  /* Couleurs */
  --bg:        #0A0F1C;
  --bg-alt:    #0E1526;
  --surface:   #131C31;
  --surface-2: #1A2540;
  --line:      rgba(237, 234, 227, .09);
  --text:      #EDEAE3;
  --muted:     #9BA4B8;
  --accent:    #F5A524;
  --accent-2:  #FFC266;
  --accent-ink:#1B1204;
  --accent-soft: rgba(245, 165, 36, .12);

  /* Typographie */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mise en page */
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --section-y: clamp(72px, 11vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }
a:hover { color: var(--accent-2); }

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

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

em { font-style: normal; color: var(--accent); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 1rem/1 var(--font-body);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover {
  color: var(--accent-ink);
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(245, 165, 36, .6);
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn-small { padding: .6em 1.2em; font-size: .95rem; }

/* ---------- Petits éléments communs ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1.2em;
  color: var(--accent);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 38em; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: border-color .3s;
  border-bottom: 1px solid transparent;
}
/* le flou vit sur un calque derrière le contenu : posé sur l'en-tête lui-même,
   Safari perdait le survol (curseur main) du logo et des liens après défilement */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 15, 28, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.logo-img { display: block; height: 46px; width: auto; }
.logo-img--pied { height: 45px; }

.site-nav ul {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px);
  margin: 0; padding: 0; list-style: none;
}
.site-nav a:not(.btn) {
  position: relative;
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-active { color: var(--text); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  position: relative; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; color: var(--text);
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { top: 0; transform: rotate(-45deg); }

/* Menu déroulant « Pour qui » : pages de service par profil */
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-toggle {
  position: relative; width: 22px; height: 22px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--muted);
}
.sub-toggle::before {
  content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 6px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.sub-toggle:hover, .has-sub:hover .sub-toggle, .has-sub.is-open .sub-toggle { color: var(--text); }
.has-sub.is-open .sub-toggle::before { transform: translateY(3px) rotate(225deg); }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: -18px; z-index: 5;
  display: block; min-width: 230px; margin: 0; padding: 22px 0 0; gap: 0; list-style: none;
  isolation: isolate;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.site-nav .sub-menu::before {
  content: ""; position: absolute; inset: 16px 0 0; z-index: -1;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.site-nav .sub-menu li { padding: 0 8px; }
.site-nav .sub-menu li:first-child { padding-top: 8px; }
.site-nav .sub-menu li:last-child { padding-bottom: 8px; }
.site-nav .sub-menu a:not(.btn) { display: block; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
.site-nav .sub-menu a:not(.btn)::after { display: none; }
.site-nav .sub-menu a:not(.btn):hover { background: var(--surface); color: var(--text); }
.site-nav .sub-menu a[aria-current="page"] { color: var(--text); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 76px 0 auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 20px; width: 100%; }
  .site-header:has(.is-open) { background: var(--bg); }

  /* sous-menu toujours déplié dans le menu mobile */
  .sub-toggle { display: none; }
  .has-sub { display: block; }
  .site-nav .sub-menu {
    position: static; display: block; min-width: 0; padding: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .site-nav .sub-menu::before { display: none; }
  .site-nav .sub-menu li, .site-nav .sub-menu li:first-child, .site-nav .sub-menu li:last-child { padding: 0; }
  .site-nav .sub-menu a:not(.btn) { padding: 12px 0 12px 18px; font-size: 1rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav .sub-menu a:not(.btn):hover { background: none; }
}

/* ==========================================================================
   Accueil
   ========================================================================== */
.hero {
  position: relative;
  /* hauteur du menu fixe (76px) + même espace haut que les autres sections */
  padding: calc(76px + var(--section-y) * .6) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #0C1328 0%, #0B1122 70%, var(--bg) 100%);
}

/* Fond animé : halos + grille + halo qui suit la souris */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  --mx: 70%; --my: 30%;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-blob--1 {
  width: 720px; height: 720px; right: -180px; top: -220px;
  background: rgba(245, 165, 36, .14);
  animation: drift-1 22s ease-in-out infinite alternate;
}
.hero-blob--2 {
  width: 560px; height: 560px; left: -200px; bottom: -160px;
  background: rgba(88, 76, 214, .30);
  animation: drift-2 26s ease-in-out infinite alternate;
}
.hero-blob--3 {
  width: 420px; height: 420px; left: 38%; top: 20%;
  background: rgba(255, 110, 64, .14);
  animation: drift-3 30s ease-in-out infinite alternate;
}
@keyframes drift-1 { to { transform: translate(-160px, 120px) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(220px, -100px) scale(.9); } }
@keyframes drift-3 { to { transform: translate(-180px, 140px) scale(1.25); } }

/* Grille façon papier millimétré, estompée vers les bords */
.hero-bg::before,
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  /*
  background-image:
    linear-gradient(rgba(237, 234, 227, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 234, 227, .05) 1px, transparent 1px);
  */
  background-size: 56px 56px;
  background-position: center top;
}
.hero-bg::before {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 20%, transparent 75%);
}
/* La grille s'allume en ambre sous le curseur */
.hero-bg::after {
  background-image:
    linear-gradient(rgba(245, 165, 36, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 165, 36, .35) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%);
          mask-image: radial-gradient(260px circle at var(--mx) var(--my), #000, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
}
.hero.is-lit .hero-bg::after { opacity: 1; }

/* Transition vers la section suivante : fondu + ligne lumineuse */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 165, 36, .7) 30%, rgba(88, 76, 214, .7) 70%, transparent);
  box-shadow: 0 0 24px 2px rgba(245, 165, 36, .25);
}
.hero-inner {
  display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 40px;
}
.hero h1 { margin-bottom: .4em; position: relative; }

/* Titre tapé au clavier, avec le curseur du logo */
.typed-char.is-pending { visibility: hidden; }
.type-cursor {
  display: inline-block; position: relative;
  width: 0; height: 0;
}
.type-cursor::after {
  content: ""; position: absolute; left: .06em; bottom: 0;
  width: .38em; height: .7em;
  background: var(--accent); border-radius: .04em;
  animation: blink 1.1s steps(1) infinite;
}
.type-cursor.is-typing::after { animation: none; }
.type-cursor.is-floating { position: absolute; }
@keyframes blink { 50% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2em; }

.hero-visual { color: var(--accent); justify-self: end; width: min(100%, 380px); }
.hero-visual svg {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 60px rgba(245, 165, 36, .35));
  animation: float 8s ease-in-out infinite;
}
/* Pictogramme du hero des pages de service (tracé fin, comme les icônes de l'accueil) */
.hero-visual .hero-picto {
  fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-14px) rotate(-6deg); }
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: clamp(56px, 8vw, 96px) 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--line);
}
.stats li { padding: 28px 24px 0 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong {
  display: block;
  font: 800 clamp(2rem, 4vw, 3rem)/1 var(--font-display);
  color: var(--accent); letter-spacing: -.02em; margin-bottom: 8px;
}
.stats li > span { color: var(--muted); font-size: .95rem; }
.stats .count { color: inherit; font-size: inherit; font-variant-numeric: tabular-nums; }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stats li, .stats li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  /* halos cantonnés aux coins pour ne pas passer derrière le texte */
  .hero-blob--1 {
    width: 340px; height: 340px; right: -170px; top: -150px;
    animation-name: drift-corner;
  }
  .hero-blob--3 { display: none; }
}
@keyframes drift-corner { to { transform: translate(-40px, 30px) scale(1.1); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: calc(var(--section-y) * .6) 0 var(--section-y); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-intro { color: var(--muted); font-size: 1.1rem; margin-top: 1em; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Cartes ---------- */
.card {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 165, 36, .35); background: var(--surface-2); }
.card p { color: var(--muted); }

.card-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 22px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 14px;
}
.card-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Pour qui : section vivante ---------- */
.section-glow { position: relative; isolation: isolate; overflow: hidden; }
.section-glow::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
  width: 520px; height: 520px; right: -200px; bottom: -220px;
  background: rgba(245, 165, 36, .08);
  animation: drift-2 24s ease-in-out infinite alternate;
}

/* Cartes : lueur qui suit la souris et allume les bordures voisines */
.card--live { isolation: isolate; --mx: 50%; --my: 0%; }
.card--live::before,
.card--live::after {
  content: ""; position: absolute; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .4s;
}
.card--live::before {
  inset: -1px; padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(245, 165, 36, .85), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card--live::after {
  inset: 0; z-index: -1;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(245, 165, 36, .09), transparent 50%);
}
.live-grid.is-lit .card--live::before,
.live-grid.is-lit .card--live::after { opacity: 1; }
.live-grid.is-lit .card--live:hover { border-color: var(--line); }

.card--live .card-icon { transition: transform .45s var(--ease), background .3s; }
.card--live:hover .card-icon { transform: rotate(-8deg) scale(1.08); background: rgba(245, 165, 36, .2); }

/* Icônes dessinées trait par trait à l'apparition de la carte */
.card--live .card-icon .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.card--live.is-visible .card-icon .draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s var(--ease) .35s;
}

/* Services : grands numéros en filigrane, qui se remplissent au survol */
.service { overflow: hidden; }
.service > :not(.service-num) { position: relative; z-index: 1; }
.service-num {
  position: absolute; top: -.1em; right: 0;
  /* le letter-spacing négatif fait déborder le dernier chiffre de sa boîte :
     la marge garde tout le glyphe sous le fond qui le remplit au survol */
  padding-right: .12em;
  font: 800 clamp(5.5rem, 10vw, 8.5rem)/1 var(--font-display);
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 165, 36, .35);
  background: linear-gradient(to top, var(--accent) 50%, transparent 50%) 0 0 / 100% 200% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  opacity: .8;
  transition: background-position .6s var(--ease), opacity .4s, -webkit-text-stroke-color .4s;
  pointer-events: none; user-select: none;
}
.service:hover .service-num {
  background-position: 0 100%;
  opacity: .22;
  -webkit-text-stroke-color: var(--accent);
}
.service h3 { max-width: calc(100% - 3.5em); }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  margin-top: clamp(24px, 3vw, 32px);
  padding: 24px clamp(24px, 3vw, 36px);
  border: 1px dashed rgba(245, 165, 36, .45);
  border-radius: var(--radius);
}
.callout p { margin: 0; font-size: 1.1rem; }
.callout-accent { border-style: solid; background: var(--accent-soft); }
.callout-accent strong { color: var(--accent); }

/* ---------- Pas de CMS ---------- */
.no-cms { margin-top: clamp(56px, 8vw, 88px); }
.no-cms h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 1.2em; }
.no-cms ul { margin: 0; padding: 0; list-style: none; }
.no-cms li { padding-top: 18px; border-top: 2px solid var(--accent); }
.no-cms strong { display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 6px; }
.no-cms li > span { color: var(--muted); font-size: .95rem; }

/* « aucune case » : pointillés qui tournent, l'encadré s'allume au survol */
.callout--ants { position: relative; border-color: transparent; }
.callout-ants {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible; pointer-events: none;
}
.callout-ants rect {
  fill: none; stroke: rgba(245, 165, 36, .55); stroke-width: 1.5;
  rx: var(--radius); ry: var(--radius);
  stroke-dasharray: 7 6;
  animation: ants 1.2s linear infinite;
}
@keyframes ants { to { stroke-dashoffset: -13; } }
.js .callout--ants.reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease), scale .5s var(--ease);
  transition-delay: 0s !important;
}
.callout--ants:hover { scale: 1.015; }
.callout--ants:hover .callout-ants rect { stroke: var(--accent); animation-duration: .6s; }

/* « Pas de WordPress » façon terminal */
.no-cms .term-cmd {
  margin: -.4em 0 1.6em;
  font: 500 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--muted);
}
.no-cms .term-cmd span { font-size: inherit; }
.no-cms .term-prompt { color: var(--accent); }
.no-cms .term-typed {
  display: inline-block; vertical-align: bottom;
  overflow: hidden; white-space: nowrap;
}
.term-list li { position: relative; border-top-color: var(--line); }
.term-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: var(--accent); transform-origin: left;
}
.term-list strong::before {
  content: "✓"; margin-right: .45em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #5BD68A;
}

/* états animés, seulement si JS : la commande se tape, puis chaque ligne se charge */
.js .no-cms .term-typed { max-width: 0; }
/* la frappe avance d'1ch par étape, puis la limite saute : la largeur finale est celle
   du texte, pas 18ch (Safari tombait un caractère trop court et masquait le « s ») */
.js .no-cms.is-visible .term-typed { animation: term-type .9s steps(18) .5s forwards, term-done 0s 1.4s forwards; }
@keyframes term-type { to { max-width: 18ch; } }
@keyframes term-done { to { max-width: none; } }

.js .term-list li::before { transform: scaleX(0); }
.js .term-list strong::before { opacity: 0; }
.js .term-list li > * { opacity: .25; transition: opacity .4s; }
.js .no-cms.is-visible .term-list li::before {
  transform: scaleX(1);
  transition: transform .7s var(--ease) calc(1.5s + var(--i) * .45s);
}
.js .no-cms.is-visible .term-list strong::before {
  opacity: 1; transition: opacity .2s calc(2.1s + var(--i) * .45s);
}
.js .no-cms.is-visible .term-list li > * { opacity: 1; transition-delay: calc(2.1s + var(--i) * .45s); }

/* ==========================================================================
   Méthode
   ========================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px);
  margin: 0; padding: 0; list-style: none;
  counter-reset: none;
}
.step { position: relative; display: flex; flex-direction: column; padding-top: 72px; }
.step::before {
  content: ""; position: absolute; top: 24px; left: 56px; right: -24px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: .5;
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  font: 800 1.3rem/1 var(--font-display);
  color: var(--accent-ink); background: var(--accent);
  border-radius: 50%;
}
.step p { color: var(--muted); }

/* Filigrane de chaque étape : tracé à l'apparition, puis une petite boucle qui le fait vivre */
.step-mark {
  width: 84px; margin-top: auto; padding-top: 22px;
  color: var(--accent); opacity: .28;
  transition: opacity .4s, transform .45s var(--ease);
}
.step:hover .step-mark { opacity: .7; transform: translateY(-3px); }
.step-mark svg {
  width: 100%; height: auto; overflow: visible;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.step-mark .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.step.is-visible .step-mark .draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.6s var(--ease) calc(.3s + var(--i) * .25s);
}
/* les parties animées attendent la fin du tracé */
.step-mark .dot, .step-mark .bar, .step-mark .knob { opacity: 0; transition: opacity .5s calc(1.4s + var(--i) * .25s); }
.step.is-visible .step-mark :is(.dot, .bar, .knob) { opacity: 1; }
.step-mark svg * { transform-box: fill-box; }

/* 1. On discute : des points de conversation qui s'écrivent */
.step-mark .dot { fill: currentColor; stroke: none; }
.step.is-visible .step-mark .dot { animation: step-typing 1.4s ease-in-out infinite; }
.step-mark .dot:nth-of-type(2) { animation-delay: .18s; }
.step-mark .dot:nth-of-type(3) { animation-delay: .36s; }
@keyframes step-typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}

/* 2. Je montre vite : la page se charge ligne par ligne */
.step-mark .bar { transform-origin: left center; }
.step.is-visible .step-mark .bar { animation: step-load 3.2s var(--ease) infinite; }
.step-mark .bar:nth-of-type(2) { animation-delay: .25s; }
.step-mark .bar:nth-of-type(3) { animation-delay: .5s; }
@keyframes step-load {
  0% { transform: scaleX(0); }
  35%, 85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* 3. On ajuste ensemble : des curseurs qu'on règle */
.step-mark .knob { fill: var(--bg); }
.step.is-visible .step-mark .knob { animation: step-tune 4s ease-in-out infinite alternate; }
.step-mark .knob:nth-of-type(1) { --y: -14px; }
.step-mark .knob:nth-of-type(2) { --y: 16px; animation-delay: -1.3s; }
.step-mark .knob:nth-of-type(3) { --y: -10px; animation-delay: -2.6s; }
@keyframes step-tune { to { transform: translateY(var(--y)); } }

/* 4. Vous êtes autonome : la clé tourne dans la serrure */
.step-mark .key { transform-origin: 59px 32px; transform-box: view-box; }
.step.is-visible .step-mark .key { animation: step-key 4.5s var(--ease) calc(1.8s + var(--i) * .25s) infinite; }
@keyframes step-key {
  0%, 55%, 100% { transform: rotate(0); }
  70%, 85% { transform: rotate(-14deg); }
}
.timing {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 1.1rem;
}
.timing strong { color: var(--text); }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .step:nth-child(2)::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 0 72px; min-height: 50px; }
  .step::before { display: none; }
  .step-mark { width: 60px; padding-top: 14px; }
}

/* ==========================================================================
   Réalisations
   ========================================================================== */
.work {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.work:hover { transform: translateY(-4px); border-color: rgba(245, 165, 36, .35); }
.work-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.work-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .8s var(--ease);
}
.work:hover .work-shot img { transform: scale(1.04); }
.work-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 30px; }
.work-body > p { color: var(--muted); font-size: .98rem; }
.work-type {
  margin-bottom: .5em !important;
  color: var(--accent) !important; font-size: .78rem !important; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; list-style: none; }
.tags li {
  padding: 4px 12px; font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
}
.work-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--accent); }
.work-link span { display: inline-block; transition: transform .25s var(--ease); }
.work-link:hover span { transform: translateX(4px); }
.work-link.is-disabled { color: var(--muted); cursor: not-allowed; }

/* Bandeau « livraison en cours » posé sur la capture */
.work-shot { position: relative; }
.work-banner {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 10px 16px;
  background: rgba(245, 165, 36, .95); color: #1a1206;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-align: center;
}

/* Bandeau « Votre projet ici ? » sous la grille */
.work-cta {
  display: flex; align-items: center; gap: 28px;
  margin-top: 28px; padding: 28px 32px;
  border: 1px dashed rgba(245, 165, 36, .45);
  border-radius: var(--radius);
}
.work-cta-mark { flex: none; width: 56px; color: var(--accent); opacity: .85; }
.work-cta-text { flex: 1; }
.work-cta-text h3 { margin: 0 0 .2em; }
.work-cta-text p { margin: 0; color: var(--muted); }
.work-cta .btn { flex: none; }
@media (max-width: 640px) {
  .work-cta { flex-direction: column; text-align: center; gap: 16px; padding: 32px 24px; }
}

/* Témoignages (fin de la section Réalisations) */
.testimonials { margin-top: clamp(64px, 8vw, 96px); text-align: center; }
.testimonials-panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(32px, 4vw, 48px);
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(245, 165, 36, .13), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
}
/* liseré lumineux en haut du bandeau */
.testimonials-panel::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(420px, 70%); height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
/* bulle de message géante en filigrane */
.testimonials-panel::after {
  content: ""; position: absolute; z-index: -1;
  right: clamp(8px, 4vw, 48px); bottom: -60px;
  width: clamp(160px, 22vw, 260px); aspect-ratio: 5 / 4;
  border: 14px solid var(--accent); border-radius: 36% 36% 36% 6%;
  opacity: .05;
  pointer-events: none;
}
.testimonials-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 36px;
  color: var(--accent-2); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.testimonials-title::before,
.testimonials-title::after {
  content: ""; width: 32px; height: 1px; background: currentColor; opacity: .5;
}
.quotes { display: grid; gap: 56px; max-width: 860px; margin: 0 auto; }
.quote { position: relative; width: 100%; max-width: 760px; margin: 0 auto; text-align: left; }
/* le témoignage façon message reçu : bulle, coin bas-gauche pointé vers l'auteur */
.quote blockquote {
  position: relative;
  margin: 0; padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 36px) clamp(22px, 3vw, 32px) clamp(58px, 7vw, 84px);
  font: 600 clamp(1.25rem, 2.3vw, 1.75rem)/1.4 var(--font-display);
  color: var(--text); text-wrap: pretty;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 24px 24px 24px 6px;
}
.quote blockquote::before {
  content: "«";
  position: absolute; left: clamp(18px, 2.6vw, 30px); top: clamp(14px, 2vw, 22px);
  font: 800 clamp(2.6rem, 4vw, 3.4rem)/1 var(--font-display);
  color: var(--accent);
}
.quote figcaption {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; padding-left: 4px;
}
.quote-avatar {
  flex: none; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  font: 700 .95rem/1 var(--font-display); color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.quote-who { display: flex; flex-direction: column; gap: 2px; }
.quote-who strong { font-weight: 700; color: var(--text); }
.quote-who span { color: var(--muted); font-size: .92rem; }

/* Carrousel (activé par JS) : toutes les citations dans la même cellule,
   la hauteur suit la plus longue, pas de saut de mise en page */
.quotes.is-slider { gap: 0; touch-action: pan-y; }
.quotes.is-slider .quote {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.quotes.is-slider .quote.is-current {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.quotes-nav {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 40px;
}
.quotes-nav[hidden] { display: none; }
.quotes-arrow {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  font-size: 1.1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.quotes-arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.quotes-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.quotes-dots button {
  width: 28px; height: 28px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.quotes-dots button::after {
  content: ""; display: block; margin: auto;
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(237, 234, 227, .25);
  transition: width .3s var(--ease), background .3s;
}
.quotes-dots button[aria-current="true"]::after { width: 24px; background: var(--accent); }

/* ==========================================================================
   À propos
   ========================================================================== */
.about {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start;
}
.about-head { position: sticky; top: 110px; isolation: isolate; }
.about-head h2 { margin-bottom: 0; }
.about-mark {
  position: absolute; z-index: -1;
  top: -40px; right: -10px;
  width: clamp(180px, 22vw, 280px);
  color: var(--accent); opacity: .07;
  transform: rotate(-12deg);
  pointer-events: none;
}
.about-text > p { color: var(--muted); }
.about-text > p:first-child { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text); }
.about-text strong { color: var(--accent-2); font-weight: 700; }
/* accroche : liseré d'accent et curseur du logo qui clignote en fin de phrase */
.about-quote {
  margin: 2em 0 0; padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font: 600 clamp(1.2rem, 1.9vw, 1.45rem)/1.35 var(--font-display);
  color: var(--text);
}
.about-quote::after {
  content: ""; display: inline-block;
  width: .38em; height: .7em; margin-left: .15em;
  background: var(--accent); border-radius: .04em;
  animation: blink 1.1s steps(1) infinite;
}
.qualities { display: flex; flex-wrap: wrap; gap: 10px; margin: 2em 0 0; padding: 0; list-style: none; }
.qualities li {
  padding: 7px 16px; font-size: .9rem; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(245, 165, 36, .25);
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s;
}
.qualities li:hover { transform: translateY(-2px); background: rgba(245, 165, 36, .2); }
.qualities .quality-wink {
  padding: 0;
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.qualities .quality-wink a {
  display: block; padding: 7px 16px;
  color: inherit; text-decoration: none; border-radius: inherit;
}
.qualities .quality-wink a::before { content: "✉\FE0E"; margin-right: .45em; }
.qualities .quality-wink:hover { background: var(--accent-2); transform: rotate(2deg) scale(1.05); }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-head { position: relative; top: 0; }
  .about-mark { right: 0; width: 160px; }
}

/* ==========================================================================
   Tarifs
   ========================================================================== */
.price {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price p { color: var(--muted); }
@media (min-width: 961px) { .price h3 { min-height: 2.3em; } }
.price .price-amount {
  margin: .2em 0 .8em;
  font: 800 clamp(2rem, 3.4vw, 2.6rem)/1 var(--font-display);
  color: var(--text); letter-spacing: -.02em;
}
.price-amount span {
  display: block; margin-bottom: 10px;
  font: 500 .85rem/1 var(--font-body); color: var(--muted); letter-spacing: 0;
}
.price-amount abbr { text-decoration: none; font-size: .5em; font-weight: 600; color: var(--muted); }
.price .price-ht { margin: -.4em 0 1.1em; color: var(--muted); font-size: .85rem; }
.price-featured { border-color: var(--accent); box-shadow: 0 20px 60px -30px rgba(245, 165, 36, .5); }
.price-featured .price-amount { color: var(--accent); }
.price-note { margin-top: 24px; color: var(--muted); font-size: .95rem; text-align: center; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start;
}
.contact-intro > p { color: var(--muted); font-size: 1.1rem; }
.contact-info { margin: 2em 0 0; padding: 0; list-style: none; }
.contact-info li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-info li:last-child { border-bottom: 1px solid var(--line); }
.contact-info li > span:first-child {
  display: inline-block; min-width: 80px;
  color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.contact-info a { text-decoration: none; overflow-wrap: anywhere; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.field-full { grid-column: 1 / -1; }
.field:has(#f-profil) { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 500; }
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  color: var(--text);
  font: inherit; font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239BA4B8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* même poids que .field input:not([type="checkbox"]), déclarée après : la bordure rouge l'emporte */
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #F47C6B; }
::placeholder { color: rgba(155, 164, 184, .6); }

.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--accent); }
.field-check label { margin: 0; color: var(--muted); font-size: .88rem; font-weight: 400; }

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

.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.is-error { color: #F47C6B; }
.form-status.is-ok { color: var(--accent); }

@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-form { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px clamp(32px, 6vw, 72px); align-items: start;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-tagline { margin: 0; color: var(--muted); font-size: .95rem; }
.footer-titre {
  margin: 0 0 14px; color: var(--text);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.footer-col .footer-links { flex-direction: column; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-col a[aria-current="page"] { color: var(--text); }
.footer-social svg { display: inline-block; vertical-align: -3px; transition: transform .2s ease; }
.footer-social:hover svg, .footer-social:focus-visible svg { transform: translateY(-2px); }
.footer-legal { margin: 1.5rem 0 0; color: rgba(155, 164, 184, .7); font-size: .85rem; }
/* Lien vers le site frère (Arobase Solutions), même traitement que les liens du pied */
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ==========================================================================
   Page mentions légales
   ========================================================================== */
.legal { padding: 140px 0 var(--section-y); }
.legal .container { max-width: calc(800px + var(--gutter) * 2); }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); }
.back-link { display: inline-block; margin-bottom: 32px; text-decoration: none; color: var(--muted); }

/* ==========================================================================
   Espace membre
   ========================================================================== */
.espace { padding: 130px 0 var(--section-y); min-height: 100vh; }

/* Menu des rubriques, dans l'en-tête */
.espace-nav { display: flex; gap: clamp(18px, 2.6vw, 32px); margin: 0 auto 0 clamp(24px, 5vw, 64px); }
.espace-nav a {
  position: relative; display: inline-flex; align-items: center; gap: .45em;
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.espace-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.espace-nav a:hover, .espace-nav a[aria-current] { color: var(--text); }
.espace-nav a:hover::after, .espace-nav a[aria-current]::after { transform: scaleX(1); }
.espace-nav-nombre {
  min-width: 1.6em; padding: 0 .4em;
  font-size: .75rem; font-weight: 700; line-height: 1.6; text-align: center;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
}

/* Petit écran : le menu passe sous le logo */
@media (max-width: 640px) {
  .site-header--espace .header-inner { flex-wrap: wrap; height: auto; padding-top: 14px; }
  .site-header--espace .logo-img { height: 38px; }
  .espace-nav { order: 1; width: 100%; margin: 10px 0 0; padding: 12px 0 14px; border-top: 1px solid var(--line); }
  .espace { padding-top: 150px; }
}

/* Titre de page et bouton principal côte à côte */
.espace-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 1em; }
.espace-entete .espace-resume { margin: 0; }
.espace h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.espace-resume { color: var(--muted); }
.espace-resume strong { color: var(--accent); font-weight: 600; }

.notice {
  padding: 14px 18px; margin: 0 0 24px;
  background: var(--accent-soft); color: var(--text);
  border: 1px solid rgba(245, 165, 36, .3); border-radius: var(--radius-sm);
}
.filtres + .notice { margin-top: 24px; }
.notice--erreur { background: rgba(244, 124, 107, .1); border-color: rgba(244, 124, 107, .4); }

/* Connexion */
.connexion { max-width: 440px; }
.espace-form { display: grid; gap: 18px; }
.espace-form .btn { justify-self: start; }
.espace-form--lien { margin-top: 20px; }
.code-input { font-family: var(--font-display); font-size: 1.6rem !important; letter-spacing: .4em; }
.lien-bouton {
  padding: 0; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: inherit; font-size: .95rem; text-decoration: underline;
}
.lien-bouton:hover { color: var(--accent-2); }

/* Recherche */
.recherche { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; max-width: 560px; }
.recherche input {
  flex: 1 1 220px; min-width: 0;
  padding: 11px 16px;
  background: var(--bg); color: var(--text);
  font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.recherche input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.recherche-effacer { color: var(--muted); font-size: .95rem; }
mark { background: var(--accent-soft); color: var(--accent-2); border-radius: 3px; padding: 0 1px; }

/* Filtres de la liste */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filtre {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1.1em;
  color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s, color .2s;
}
.filtre:hover { color: var(--text); border-color: var(--accent); }
.filtre[aria-current="page"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.filtre-nombre {
  min-width: 1.6em; padding: 0 .4em;
  font-size: .8rem; font-weight: 700; text-align: center;
  background: var(--surface-2); color: var(--text); border-radius: 999px;
}
.filtre[aria-current="page"] .filtre-nombre { background: rgba(27, 18, 4, .15); color: var(--accent-ink); }

/* Liste (demandes, témoignages) */
.liste { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.liste-ligne {
  display: grid; grid-template-columns: 90px minmax(0, 220px) minmax(0, 1fr) auto;
  gap: 8px 20px; align-items: center;
  padding: 16px 20px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease);
}
.liste-ligne:hover { color: var(--muted); border-color: var(--accent); transform: translateX(3px); }
.liste-ligne.is-vive { background: var(--surface-2); color: var(--text); }
.liste-titre strong { display: block; color: var(--text); font-weight: 600; }
.liste-titre span { font-size: .85rem; }
.liste-titre, .liste-extrait { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-date { font-size: .85rem; white-space: nowrap; }
.liste-titre .liste-alerte,
.liste-titre .liste-note { display: block; color: #F47C6B; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.liste-titre .liste-note { color: var(--muted); }

.badge {
  justify-self: start;
  padding: .3em .8em;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
}
.badge--accent { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

@media (max-width: 760px) {
  .liste-ligne { grid-template-columns: auto 1fr; }
  .liste-titre { order: -1; grid-column: 1 / -1; }
  .liste-extrait { grid-column: 1 / -1; white-space: normal; }
  .liste-date { justify-self: end; }
}

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 32px; }
.page-lien {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-width: 42px; height: 42px; padding: 0 12px;
  color: var(--muted); font-weight: 500; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, color .2s;
}
.page-lien:hover { color: var(--text); border-color: var(--accent); }
.page-lien[aria-current="page"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.page-ellipse { padding: 0 4px; color: var(--muted); }
.pagination-resume { margin-top: 12px; color: var(--muted); font-size: .85rem; }
.page-position { display: none; }

/* Petit écran : « ← Précédente  5 / 9  Suivante → » au lieu des numéros */
@media (max-width: 520px) {
  .pagination { justify-content: space-between; flex-wrap: nowrap; }
  .page-numero, .page-ellipse { display: none; }
  .page-position { display: block; color: var(--muted); font-weight: 500; white-space: nowrap; }
  .pagination > :first-child.page-position { margin-right: auto; }
}

/* Détail d'une demande */
.demande-detail { max-width: 800px; }
/* une seule grille pour toutes les lignes : la colonne des libellés prend la largeur du plus long */
.demande-infos { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 24px; margin: 24px 0 32px; }
.demande-infos div {
  display: grid; grid-template-columns: subgrid; grid-column: 1 / -1;
  align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.demande-infos div:last-child { border-bottom: 1px solid var(--line); }
.demande-infos dt {
  color: var(--accent);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.demande-infos dd { margin: 0; overflow-wrap: anywhere; }
.demande-infos a { color: var(--accent); }
.demande-message {
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions-fin { margin-left: auto; }
.envoi { display: inline-flex; gap: .5em; }
.envoi::before { content: "–"; color: var(--muted); }
.envoi--ok::before { content: "✓"; color: #6FCF97; }
.envoi--ko { color: #F47C6B; }
.envoi--ko::before { content: "✗"; color: #F47C6B; }
.btn-danger:hover { color: #F47C6B; border-color: #F47C6B; }

/* Réglages d'affichage des témoignages */
.reglages {
  margin-top: 8px; padding: 22px clamp(18px, 3vw, 28px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.reglages-titre { margin-bottom: 14px; font-size: 1.1rem; letter-spacing: 0; }
.reglages-champs { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.reglages .field-check { align-items: center; }
.reglages .field-check input { margin: 0; }
.reglages .field-check label { color: var(--text); font-size: 1rem; }
.reglages-max { display: flex; align-items: center; gap: 12px; }
.reglages-max input {
  width: 5em; padding: 9px 12px;
  background: var(--bg); color: var(--text); font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.reglages-max input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.reglages-etat { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.reglages-etat a { color: var(--accent); white-space: nowrap; }
.reglages + .recherche { margin-top: 36px; }

/* Ajout / modification d'un témoignage */
.temoignage-edition { max-width: 760px; }
.temoignage-edition .espace-form { margin-top: 28px; }
.temoignage-edition .actions { margin-top: 10px; }
.field-aide { color: var(--muted); font-weight: 400; }
.field-date input { max-width: 14em; color-scheme: dark; }
.field-erreur { margin: 8px 0 0; color: #F47C6B; font-size: .88rem; }

/* ==========================================================================
   Info-bulles du vocabulaire technique (infobulles.js)
   ========================================================================== */
.terme[role="button"] { cursor: help; border-radius: 3px; }

.infobulle {
  position: fixed; top: 0; left: 0; z-index: 60;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px 15px;
  background: var(--surface-2);
  border: 1px solid rgba(245, 165, 36, .35);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  color: var(--text);
  font: 400 .9rem/1.55 var(--font-body);
  letter-spacing: 0;
  text-align: left;
  opacity: 0; visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.infobulle.is-dessous { transform: translateY(-4px); }
.infobulle.is-visible {
  opacity: 1; visibility: visible; transform: none;
  transition-delay: 0s;
}
/* la pointe, alignée sur le terme */
.infobulle::after {
  content: ""; position: absolute; top: 100%; left: var(--fleche, 50%);
  width: 10px; height: 10px;
  background: inherit;
  border: solid rgba(245, 165, 36, .35);
  border-width: 0 1px 1px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.infobulle.is-dessous::after { top: 0; border-width: 1px 0 0 1px; }

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .no-cms .term-typed { max-width: none; }
}

/* ==========================================================================
   Pages de service (artiste peintre…)
   ========================================================================== */
.fil-ariane { margin-bottom: 1.2em; font-size: .9rem; color: var(--muted); }
.fil-ariane a { color: var(--muted); text-decoration: none; }
.fil-ariane a:hover { color: var(--accent); }
.fil-ariane span { margin: 0 .3em; }

.exemple-texte h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 1em; }
.liste-points { margin: 0; padding: 0; list-style: none; }
.liste-points li { padding: 16px 0 16px 20px; border-top: 1px solid var(--line); border-left: 2px solid var(--accent); margin-bottom: 12px; color: var(--muted); }
.liste-points li:last-child { margin-bottom: 0; }
.liste-points strong { color: var(--text); }

.encart-seo {
  margin-top: 28px; padding: 24px clamp(20px, 3vw, 28px);
  background: var(--accent-soft); border: 1px solid rgba(245, 165, 36, .45); border-radius: var(--radius);
}
.encart-seo h4 { margin-bottom: .6em; font-size: 1.15rem; color: var(--accent); }
.encart-seo p { margin-bottom: .8em; color: var(--muted); font-size: .98rem; }
.encart-seo ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.encart-seo li { margin-bottom: .5em; }
.encart-seo li:last-child { margin-bottom: 0; }
.encart-seo strong { color: var(--text); }

.price-note a { color: var(--accent); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  position: relative; padding: 20px 44px 20px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: rotate .25s var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 22px; max-width: 46em; color: var(--muted); }

/* Études de cas */
.section-tight { padding-block: clamp(32px, 5vw, 56px); }
.texte-long { max-width: 820px; }
.texte-long p { color: var(--muted); font-size: 1.05rem; }
.texte-long p strong { color: var(--text); }
.texte-long a:not(.btn) { color: var(--accent); }
.texte-long .liste-points { margin: 1.4em 0; }
.texte-long .callout { margin-top: 2.2em; }
.fiche { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); margin: 0; }
.fiche div { padding: 16px 0; border-top: 1px solid var(--line); }
.fiche dt { margin-bottom: 4px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fiche dd { margin: 0; color: var(--text); }
.grid-1 { grid-template-columns: 1fr; margin-top: clamp(16px, 2vw, 24px); }
.section-tight .stats, .section-alt.section-tight .stats { margin-top: 0; border-top: 0; }
.section-alt.section-tight .stats li { padding-top: 0; }
.work-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; }
.work-links .work-link { margin-top: 0; }
@media (max-width: 700px) { .fiche { grid-template-columns: 1fr; } }

/* Encart suivi des tuiles de tarifs : même respiration que sous les autres blocs */
.callout + .prices { margin-top: clamp(24px, 3vw, 32px); }

/* Liens vers les pages de service, dans les tuiles « Pour qui ? » */
.card > .work-link { display: inline-block; margin-top: .3em; }
.card > .work-links { margin-top: .3em; }

/* Sommaire fixe sous le menu (pages de service, étude de cas) */
html:has(.sommaire) { scroll-padding-top: 128px; }
.sommaire {
  position: sticky; top: 76px; z-index: 40; padding: 10px 0;
  background: rgba(10, 15, 28, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sommaire .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sommaire-label { color: rgba(155, 164, 184, .7); font-size: .85rem; }
.sommaire ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sommaire a {
  display: inline-block; padding: 4px 14px; font-size: .85rem; text-decoration: none;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  transition: color .2s, border-color .2s, background .2s;
}
.sommaire a:hover, .sommaire a:focus-visible,
.sommaire a.is-active { color: var(--accent); border-color: rgba(245, 165, 36, .5); background: var(--accent-soft); }
@media (max-width: 700px) {
  .sommaire .container { flex-wrap: nowrap; }
  .sommaire-label { display: none; }
  .sommaire ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .sommaire ul::-webkit-scrollbar { display: none; }
  .sommaire a { white-space: nowrap; }
}
