/* ══════════════════════════════════════════════════════════════
   Page d'accueil NAFIX — styles propres à index.html
   (s'appuie sur styles.css pour les variables, la nav et le pied)
   ══════════════════════════════════════════════════════════════ */

.accueil {
  --nuit: #0F2737;
  --nuit-2: #13324A;
  --brume: #AFC4D2;
  --brume-2: #8FA9BA;
  background: var(--acier);
}

.accueil section {
  border-top: none;
  padding: 0;
  scroll-margin-top: 70px;
}

.a-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

.a-orange {
  color: var(--chantier);
}

.a-tag {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chantier);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.a-tag::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.a-h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: none;
  margin-bottom: 26px;
}

/* Sous-titre d'un grand titre : même voix, plus petit */
.a-h2-suite {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: -8px 0 22px;
}

.a-intro {
  font-size: 18px;
  color: var(--texte-doux);
  max-width: 60ch;
  margin-bottom: 56px;
}

/* —— Boutons —— */
.a-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 26px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.a-btn::after {
  content: "→";
  transition: transform 0.25s;
}

.a-btn:hover::after {
  transform: translateX(4px);
}

.a-btn-orange {
  background: var(--chantier);
  color: var(--blanc);
}

.a-btn-orange:hover {
  background: #C9550A;
}

.a-btn-clair {
  color: var(--blanc);
  border-color: rgba(255, 255, 255, 0.45);
}

.a-btn-clair:hover {
  border-color: var(--blanc);
  background: rgba(255, 255, 255, 0.06);
}

.a-btn-grand {
  padding: 20px 28px;
  font-size: 15px;
}

/* ══════════ Règle graduée ══════════ */
.a-regle {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 22px;
  z-index: 40;
  pointer-events: none;
  display: none;
}

.a-regle::before {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: difference;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0 1px, transparent 1px 50px) right top / 12px 100% no-repeat,
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px 10px) right top / 6px 100% no-repeat;
}

.a-regle-curseur {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--chantier);
  top: 0;
  will-change: transform;
}

.a-regle-curseur span {
  position: absolute;
  left: 28px;
  top: -9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--blanc);
  background: var(--chantier);
  padding: 2px 6px;
  white-space: nowrap;
}

@media (min-width: 1320px) {
  .a-regle {
    display: block;
  }
}

/* ══════════ HERO ══════════ */
.a-hero {
  position: relative;
  background-color: var(--nuit);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px -1px;
  color: var(--blanc);
  overflow: hidden;
}

.a-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 72% 45%, rgba(232, 101, 13, 0.10), transparent 70%);
  pointer-events: none;
}

.a-hero-grille {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 62px);
  padding-top: 88px;
  padding-bottom: 120px;
}

.a-surtitre {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--chantier);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.a-surtitre::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.a-titre-geant {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(54px, 6.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: none;
  margin-bottom: 28px;
  color: var(--blanc);
}

.a-mot {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.a-mot > span {
  display: inline-block;
}

.a-devise {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  color: var(--brume);
  margin-bottom: 22px;
}

.a-chapo {
  font-size: 18px;
  line-height: 1.6;
  color: #C9D6DF;
  max-width: 46ch;
  margin-bottom: 36px;
}

.a-chapo strong {
  color: var(--blanc);
  font-weight: 600;
}

.a-garanties {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brume-2);
}

.a-garanties li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.a-garanties li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--chantier);
}

/* —— Planche —— */
.a-planche-zone {
  position: relative;
  padding-bottom: 200px;
  margin-bottom: -120px;
}

.a-planche {
  margin: 0;
  background: rgba(15, 39, 55, 0.55);
  cursor: crosshair;
}

.a-planche svg {
  display: block;
  width: 100%;
  height: auto;
}

.p-nom {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  fill: rgba(255, 255, 255, 0.72);
  text-anchor: middle;
}

.p-surf {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  fill: var(--blanc);
  text-anchor: middle;
}

.p-surf.p-petit {
  font-size: 13px;
}

.p-cotes-txt text {
  font-family: var(--mono);
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.85);
  text-anchor: middle;
}

.p-scan {
  opacity: 0;
}

.c-titre {
  font-family: var(--display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  fill: var(--blanc);
}

.c-txt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  fill: var(--brume);
}

.c-val {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  fill: var(--chantier);
}

.p-reticule {
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.a-planche.vise .p-reticule {
  opacity: 1;
}

.p-reticule line {
  stroke: rgba(232, 101, 13, 0.75);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

#ret-bulle {
  fill: var(--chantier);
}

#ret-txt {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--blanc);
}

/* —— Ticket de pré-chiffrage —— */
.a-ticket {
  position: absolute;
  left: -32px;
  bottom: 0;
  width: 290px;
  background: var(--blanc);
  color: var(--encre);
  border: 1px solid var(--encre);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  padding: 16px 20px 18px;
}

.a-ticket::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--chantier);
}

.a-ticket-tete {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-muted);
  margin: 4px 0 10px;
}

.a-ticket-ok {
  color: var(--chantier);
}

.a-ticket ul {
  list-style: none;
}

.a-ticket li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--ligne);
}

.a-ticket li b {
  font-family: var(--display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.a-ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--encre);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.a-ticket-total b {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--encre);
}

.a-rejouer {
  position: absolute;
  right: 0;
  bottom: 6px;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brume-2);
  cursor: pointer;
  padding: 4px 0;
}

.a-rejouer:hover {
  color: var(--blanc);
}

/* —— Animation du hero (déclenchée par .joue, posée en JS) —— */
@keyframes a-trace {
  to { stroke-dashoffset: 0; }
}

@keyframes a-apparait {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes a-monte {
  from { opacity: 0; transform: translateY(105%); }
  to { opacity: 1; transform: none; }
}

@keyframes a-ticket {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes a-scan {
  0% { transform: translateY(32px); opacity: 0; }
  8% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(332px); opacity: 0; }
}

.js .a-mot > span {
  animation: a-monte 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d) both;
}

.joue .p-murs path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: a-trace 1s var(--d) cubic-bezier(0.6, 0, 0.3, 1) forwards;
}

.joue .p-menuis { opacity: 0; animation: a-apparait 0.5s 1.9s forwards; }
.joue .p-portes { opacity: 0; animation: a-apparait 0.5s 2s forwards; }
.joue .p-cotes { opacity: 0; animation: a-apparait 0.6s 2.05s forwards; }
.joue .p-cotes-txt { opacity: 0; animation: a-apparait 0.6s 2.2s forwards; }
.joue .p-scan { animation: a-scan 1.5s 2.3s linear forwards; }
.joue .p-piece { opacity: 0; animation: a-apparait 0.5s var(--d) forwards; }
.joue .p-cartouche { opacity: 0; animation: a-apparait 0.6s 3.6s forwards; }
.joue .a-ticket { opacity: 0; animation: a-ticket 0.7s 3.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.joue .a-ticket li { opacity: 0; animation: a-apparait 0.4s var(--d) forwards; }
.joue .a-rejouer { opacity: 0; animation: a-apparait 0.4s 6.4s forwards; }

/* ══════════ Bandeau défilant ══════════ */
.a-defile {
  background: var(--chantier);
  overflow: hidden;
  border-top: 1px solid var(--nuit);
  border-bottom: 1px solid var(--nuit);
}

.a-defile-piste {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  white-space: nowrap;
  animation: a-defile 38s linear infinite;
}

.a-defile span {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--nuit);
  line-height: 1;
}

.a-defile i {
  font-style: normal;
  color: var(--blanc);
  font-size: 22px;
}

@keyframes a-defile {
  to { transform: translateX(-50%); }
}

/* ══════════ Le temps ══════════ */
.a-temps {
  padding: 130px 0 120px !important;
}

.a-semaine {
  border: 1px solid var(--encre);
  background: var(--blanc);
  padding: 36px 36px 30px;
}

.a-semaine-ligne {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 110px;
  gap: 24px;
  align-items: center;
}

.a-semaine-ligne + .a-semaine-ligne {
  margin-top: 18px;
}

.a-semaine-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-muted);
}

.a-semaine-nafix .a-semaine-label {
  color: var(--chantier);
}

.a-jours {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.a-jours li {
  position: relative;
  height: 78px;
  border: 1px solid var(--encre);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.a-jours li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(27, 59, 80, 0.14) 0 2px, transparent 2px 9px);
  transform-origin: left;
}

.a-jours b {
  position: relative;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-muted);
}

.a-jours span {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--encre);
}

.a-semaine-nafix .a-jours li::before {
  display: none;
}

.a-jour-nafix {
  background: var(--chantier);
  border-color: var(--chantier) !important;
}

.a-jour-nafix b,
.a-jour-nafix span {
  color: var(--blanc) !important;
}

.a-jour-libre {
  border-style: dashed !important;
  border-color: var(--ligne) !important;
}

.a-jour-libre span {
  color: var(--texte-doux);
  font-weight: 500;
}

.a-jour-vide span {
  color: var(--texte-muted);
  font-weight: 400;
}

.a-semaine-total {
  font-family: var(--display);
  font-weight: 900;
  font-size: 46px;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.a-semaine-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--ligne);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--texte-muted);
}

.js .a-semaine:not(.vu) .a-jours li::before {
  transform: scaleX(0);
}

.js .a-semaine .a-jours li::before {
  transition: transform 0.45s calc(var(--i) * 0.22s + 0.2s) ease-out;
}

.js .a-semaine:not(.vu) .a-jour-nafix {
  transform: scale(0.6);
  opacity: 0;
}

.js .a-semaine .a-jour-nafix {
  transition: transform 0.5s 1.9s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s 1.9s;
}

/* ══════════ Récit : du dossier au DCE (rail gradué + planche collante) ══════════ */
.a-recit {
  background: var(--blanc);
  padding: 130px 0 90px !important;
}

/* Sans place pour la planche collante, étapes et vues s'intercalent */
.a-recit-grille {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
}

.a-rail,
.a-scene,
.a-scene-cadre,
.a-scene-vues {
  display: contents;
}

.a-etape,
.a-vue {
  order: var(--o);
}

.a-etape {
  list-style: none;
  padding-top: 56px;
  margin-bottom: 40px;
  border-top: 1px solid var(--encre);
}

.a-etape-num {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chantier);
  margin-bottom: 18px;
}

.a-etape-num span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--chantier);
  color: var(--blanc);
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.a-etape h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.a-etape p:not(.a-etape-num) {
  font-size: 17px;
  color: var(--texte-doux);
  max-width: 58ch;
}

.a-vue {
  margin-bottom: 80px;
}

.a-cartouche {
  display: none;
}

@media (min-width: 1200px) {
  .js .a-recit-grille {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 0 56px;
    max-width: 1380px;
  }

  /* L'échelle : graduation tous les 10 px, trait fort tous les 50 px, niveau orange */
  .js .a-rail {
    display: block;
    position: relative;
    padding: 0 0 calc(8vh + 40px) 54px;
    --p: 0;
  }

  .js .a-rail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 16px;
    border-left: 1px solid var(--encre);
    background:
      repeating-linear-gradient(to bottom, var(--encre) 0 1px, transparent 1px 50px) left top / 16px 100% no-repeat,
      repeating-linear-gradient(to bottom, rgba(27, 59, 80, 0.4) 0 1px, transparent 1px 10px) left top / 8px 100% no-repeat;
  }

  .js .a-rail::after {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--chantier);
    transform-origin: top;
    transform: scaleY(var(--p));
  }

  .js .a-etape {
    position: relative;
    min-height: 84vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0.26;
    transition: opacity 0.2s steps(2);
  }

  .js .a-etape.actif {
    opacity: 1;
  }

  .js .a-etape h3 {
    font-size: 30px;
  }

  .js .a-etape p:not(.a-etape-num) {
    font-size: 16px;
  }

  /* Trait de rappel du rail vers le numéro de l'étape */
  .js .a-etape-num::before {
    content: "";
    position: absolute;
    left: -54px;
    top: 50%;
    width: 54px;
    height: 1px;
    background: var(--encre);
  }

  .js .a-etape-num {
    position: relative;
  }

  .js .a-etape.actif .a-etape-num::before {
    height: 3px;
    background: var(--chantier);
  }

  .js .a-scene {
    display: block;
  }

  .js .a-scene-cadre {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    min-height: 560px;
  }

  /* La planche : cadre fin, papier quadrillé, cartouche en pied */
  .js .a-scene-vues {
    display: block;
    position: relative;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--encre);
    background-image:
      linear-gradient(rgba(27, 59, 80, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(27, 59, 80, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -1px -1px;
  }

  .js .a-vue {
    position: absolute;
    inset: 30px 40px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
  }

  .js .a-vue.actif {
    visibility: visible;
  }

  .js .a-vue .a-visuel-3 {
    grid-template-columns: 180px auto 180px;
    gap: 0 36px;
    padding-bottom: 40px;
  }

  .js .a-vue .a-visuel-large {
    gap: 26px;
    padding-left: 40px;
  }

  .js .a-vue .a-livrables {
    width: 100%;
    padding-bottom: 40px;
  }

  .js .a-vue .a-ann {
    font-size: 14px;
  }

  .js .a-vue .a-ann b {
    font-size: 16px;
  }

  .js .a-cartouche {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(150px, auto) auto;
    border: 1px solid var(--encre);
    border-top: 0;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--encre);
  }

  .a-cartouche span {
    padding: 10px 14px;
    border-left: 1px solid var(--encre);
    white-space: nowrap;
  }

  .a-cartouche span:first-child {
    border-left: 0;
    background: var(--nuit);
    color: var(--blanc);
  }

  .a-cartouche b {
    font-weight: 600;
  }

  #cart-titre {
    color: var(--chantier);
    font-weight: 600;
  }
}

/* —— Visuel annoté : capture + légendes + flèches —— */
.a-visuel {
  position: relative;
  display: grid;
}

.a-visuel-3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px) minmax(0, 1fr);
  gap: 0 56px;
  align-items: stretch;
}

.a-visuel-large {
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.a-col {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 24px;
}

/* Une fois placées par le script, les légendes s'alignent sur leur cible */
.a-visuel.place .a-col {
  justify-content: flex-start;
  gap: 0;
}

.a-visuel.place .a-rang {
  justify-content: flex-start;
  gap: 0;
}

.a-visuel.place .a-rang .a-ann {
  flex: 0 0 min(250px, calc((100% - 64px) / 3));
}

.a-col-g .a-ann {
  text-align: right;
}

.a-rang {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.a-rang .a-ann {
  flex: 0 1 260px;
}

.a-ann {
  font-size: 15px;
  line-height: 1.45;
  color: var(--texte-doux);
}

.a-ann b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--chantier);
  margin-bottom: 2px;
}

.a-ann b i,
.a-anc::after {
  display: none;
  font-style: normal;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  width: 20px;
  height: 20px;
  place-items: center;
  background: var(--chantier);
  color: var(--blanc);
}

.a-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--encre);
  background: var(--blanc);
  line-height: 0;
  overflow: hidden;
}

.a-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.a-anc {
  position: absolute;
}

/* —— Mise au net façon plan : traits de construction, hachures, trait de balayage, cote —— */
.js .a-shot,
.js .a-feuilles {
  border-color: transparent;
}

.a-shot::before,
.a-feuilles::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-1 1l2-2M0 8l8-8M7 9l2-2' stroke='%23E8650D' stroke-width='1'/%3E%3C/svg%3E");
  clip-path: inset(0 0 0 100%);
}

.js .a-vue.actif .a-shot::before,
.js .a-vue.actif .a-feuilles::before {
  animation: a-hachure 1s 0.25s cubic-bezier(0.7, 0, 0.3, 1) both;
}

@keyframes a-hachure {
  0% { clip-path: inset(0 100% 0 0); }
  50% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.js .a-vue:not(.actif) .a-shot img {
  opacity: 0;
}

.js .a-vue.actif .a-shot img {
  animation: a-sec 1.46s linear both;
}

/* Apparition sèche, à mi-course (pas de fondu) */
@keyframes a-sec {
  0%, 50% { opacity: 0; }
  51%, 100% { opacity: 1; }
}

.a-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.a-net line,
.a-net path {
  fill: none;
  stroke: var(--encre);
  stroke-width: 1;
}

.a-net .a-constr,
.a-net .a-cote-trait {
  stroke-dasharray: 1;
}

.a-net .a-trait {
  stroke: var(--chantier);
  stroke-width: 2;
  opacity: 0;
}

.a-net text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--encre);
}

.js .a-vue:not(.actif) .a-constr,
.js .a-vue:not(.actif) .a-cote-trait {
  stroke-dashoffset: 1;
}

.js .a-vue:not(.actif) .a-cote-fin {
  opacity: 0;
}

.js .a-vue.actif .a-constr {
  animation: a-trace 0.4s calc(var(--i) * 0.07s) cubic-bezier(0.6, 0, 0.2, 1) both;
}

.js .a-vue.actif .a-trait {
  animation: a-balaie 0.5s 0.75s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.js .a-vue.actif .a-cote-trait {
  animation: a-trace 0.4s 1.1s cubic-bezier(0.6, 0, 0.2, 1) both;
}

.js .a-vue.actif .a-cote-fin {
  animation: a-sec 0.15s 1.45s linear both;
}

@keyframes a-trace {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes a-balaie {
  0% { opacity: 1; transform: translateX(0); }
  99% { opacity: 1; }
  100% { opacity: 0; transform: translateX(var(--w)); }
}

.js .a-vue:not(.actif) .a-ann,
.js .a-vue:not(.actif) .a-autres li {
  opacity: 0;
}

.js .a-vue.actif .a-ann,
.js .a-vue.actif .a-autres li {
  transition: opacity 0.2s calc(1.15s + var(--n, 1) * 0.1s) steps(2);
}

.a-autres li:nth-child(1) { --n: 1; }
.a-autres li:nth-child(2) { --n: 2; }
.a-autres li:nth-child(3) { --n: 3; }
.a-autres li:nth-child(4) { --n: 4; }
.a-autres li:nth-child(5) { --n: 5; }

.a-fleches {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

.a-fleches line {
  stroke: var(--chantier);
  stroke-width: 1.5;
  stroke-dasharray: 1;
}

.a-fleches path {
  fill: var(--chantier);
}

.js .a-vue:not(.actif) .a-fleches line {
  stroke-dashoffset: 1;
}

.js .a-vue:not(.actif) .a-fleches path {
  opacity: 0;
}

.js .a-vue.actif .a-fleches line {
  animation: a-trace 0.4s calc(1.35s + var(--i) * 0.12s) cubic-bezier(0.6, 0, 0.2, 1) both;
}

.js .a-vue.actif .a-fleches path {
  animation: a-sec 0.1s calc(1.75s + var(--i) * 0.12s) linear both;
}

/* —— Détail : l'article CCTP complet, posé sur la capture de la grille —— */
.a-cctp b {
  margin-bottom: 8px;
}

.a-cctp-feuille {
  background: var(--blanc);
  border: 1px solid var(--encre);
  box-shadow: 6px 6px 0 var(--encre);
  padding: 0 1.4em 1.1em;
  font-size: 1em;
  line-height: 1.5;
  color: var(--encre);
  text-align: left;
}

.a-cctp-tete {
  display: flex;
  justify-content: space-between;
  margin: 0 -1.4em 0.9em;
  padding: 0.55em 1.4em;
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--mono);
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.a-cctp-feuille h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.6em;
}

.a-cctp-corps p {
  margin-bottom: 0.5em;
}

.a-cctp-feuille em {
  display: inline-block;
  margin-right: 0.6em;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.82em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chantier);
}

.a-cctp-feuille strong {
  font-weight: 600;
  background: rgba(232, 101, 13, 0.12);
  padding: 0 0.2em;
}

.a-cctp-feuille code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.a-cctp-corps {
  columns: 2;
  column-gap: 1.8em;
}

.a-cctp-corps p {
  break-inside: avoid;
}

/* Étape 04 : légendes à gauche, capture en haut, article CCTP complet dessous */
.a-visuel-cctp {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px 36px;
}

.a-visuel-cctp .a-col-g {
  grid-row: 1 / span 2;
}

.a-visuel-cctp .a-shot,
.a-visuel-cctp .a-cctp {
  grid-column: 2;
}

.a-visuel .a-cctp {
  font-size: 12px;
}

.js .a-vue .a-visuel .a-cctp {
  font-size: clamp(11px, 1.5vh, 13.5px);
}

.a-visuel-cctp .a-shot {
  justify-self: center;
}

.a-visuel .a-cctp > b {
  font-size: 16px;
}

/* Le détail s'imprime de haut en bas, après les flèches */
.js .a-vue.actif .a-cctp-feuille {
  animation: a-imprime 0.6s 1.9s cubic-bezier(0.7, 0, 0.3, 1) both;
}

@keyframes a-imprime {
  from { clip-path: inset(0 -10px 100% 0); }
  to { clip-path: inset(0 -10px -10px 0); }
}

/* —— Livrables : feuilles en éventail, angles vifs —— */
.a-livrables {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.a-feuilles {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: var(--acier);
  background-image:
    linear-gradient(rgba(27, 59, 80, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 59, 80, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  border: 1px solid var(--encre);
  overflow: hidden;
}

.a-feuille {
  position: absolute;
  top: 5%;
  width: 30%;
  margin: 0;
  padding: 18px 10px 10px;
  background: var(--blanc);
  border: 1px solid var(--encre);
  line-height: 0;
  transform: translateY(var(--ty));
}

.a-feuille img {
  display: block;
  width: 100%;
  height: auto;
}

/* En escalier : l'onglet de chaque feuille reste lisible au-dessus de la suivante */
.a-feuille:nth-child(1) { left: 6%; --ty: 0%; --k: 0; }
.a-feuille:nth-child(2) { left: 25%; --ty: 9%; --k: 1; }
.a-feuille:nth-child(3) { left: 44%; --ty: 18%; --k: 2; }
.a-feuille:nth-child(4) { left: 63%; --ty: 27%; --k: 3; }

/* Les feuilles se posent une à une sur la planche, une fois les hachures retirées */
.js .a-vue:not(.actif) .a-feuille {
  opacity: 0;
}

.js .a-vue.actif .a-feuille {
  animation: a-pose 0.5s calc(0.85s + var(--k) * 0.09s) cubic-bezier(0.8, 0, 0.2, 1) both;
}

@keyframes a-pose {
  0% { opacity: 0; transform: translate(calc((3 - var(--k)) * 40%), 0); }
  1% { opacity: 1; }
  100% { opacity: 1; transform: translateY(var(--ty)); }
}

.a-onglet {
  position: absolute;
  left: -1px;
  top: -1px;
  display: flex;
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.a-onglet b,
.a-onglet em {
  font-weight: 400;
  font-style: normal;
  padding: 4px 8px;
}

.a-onglet em {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 6px;
}

.f-pdf { background: #C8372D; }
.f-doc { background: #2B5797; }
.f-xls { background: #217346; }

.a-autres {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a-autres li {
  border-left: 3px solid var(--chantier);
  padding: 2px 0 2px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--texte-doux);
}

.a-autres b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  color: var(--encre);
}

/* ══════════ Chiffres ══════════ */
.a-chiffres {
  background: var(--nuit);
  color: var(--blanc);
  padding: 100px 0 56px !important;
}

.a-chiffres-grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.a-chiffre {
  padding: 8px 28px 8px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.a-chiffre-val {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 6.4vw, 100px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
  white-space: nowrap;
}

.a-chiffre-val small {
  font-size: 0.38em;
  letter-spacing: 0;
  color: var(--chantier);
  margin-left: 6px;
}

.a-chiffre-lib {
  font-size: 15px;
  color: var(--brume);
  max-width: 22ch;
}

.a-chiffres-note {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #6F8CA0;
}

/* ══════════ Traçabilité ══════════ */
.a-trace {
  padding: 130px 0 120px !important;
}

.a-trace-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  border: 1px solid var(--encre);
  background: var(--blanc);
}

.a-dpgf-tete,
.a-dpgf-ligne {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 40px 76px 108px;
  gap: 10px;
  align-items: center;
}

.a-dpgf-tete {
  background: var(--nuit);
  color: var(--brume);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
}

.a-dpgf-tete span:nth-child(n + 4),
.a-dpgf-ligne span:nth-child(n + 4) {
  text-align: right;
}

.a-dpgf-ligne {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--encre);
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ligne);
  padding: 20px 20px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
}

.a-dpgf-ligne:last-child {
  border-bottom: none;
}

.a-dpgf-ligne span:first-child {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--texte-muted);
}

.a-dpgf-ligne span:nth-child(n + 4) {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.a-dpgf-ligne:hover {
  background: #F6F8FA;
}

.a-dpgf-ligne.est-active {
  background: #FFF4EC;
  box-shadow: inset 4px 0 0 var(--chantier);
}

.a-source {
  position: relative;
  border-left: 1px solid var(--encre);
  background-color: #F8FAFB;
  background-image: repeating-linear-gradient(45deg, rgba(27, 59, 80, 0.035) 0 1px, transparent 1px 10px);
  min-height: 320px;
}

.a-source-carte {
  position: absolute;
  inset: 0;
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.a-source-carte.est-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.a-source-type {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chantier);
  margin-bottom: 8px;
}

.a-source-doc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--texte-muted);
  word-break: break-all;
}

.a-source blockquote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--encre);
  margin: 22px 0 auto;
  padding-left: 18px;
  border-left: 2px solid var(--encre);
}

.a-source mark {
  background: rgba(232, 101, 13, 0.16);
  color: inherit;
  padding: 0 3px;
  box-shadow: inset 0 -2px 0 var(--chantier);
}

.a-source-pied {
  margin-top: 24px;
  font-size: 14px;
  color: var(--texte-doux);
}

.a-source code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--acier);
  border: 1px solid var(--ligne);
  padding: 1px 6px;
}

.a-trois {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.a-trois li {
  border-top: 2px solid var(--encre);
  padding-top: 18px;
  font-size: 15px;
  color: var(--texte-doux);
}

.a-trois b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--encre);
  margin-bottom: 6px;
}

/* ══════════ Métiers ══════════ */
.a-metiers {
  background: var(--blanc);
  padding: 130px 0 130px !important;
}

.a-metiers-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--encre);
  margin-top: 20px;
}

.a-metier {
  position: relative;
  min-height: 400px;
  padding: 40px 32px 34px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--encre);
  overflow: hidden;
  transition: background 0.35s, color 0.35s;
}

.a-metier:not(:last-child) {
  border-right: 1px solid var(--encre);
}

.a-metier-num {
  position: absolute;
  right: 22px;
  top: 14px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 130px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--ligne);
  transition: -webkit-text-stroke-color 0.35s, transform 0.5s;
}

.a-metier-qui {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chantier);
  margin-top: 150px;
}

.a-metier h3 {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: 27px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 14px 0 12px;
  max-width: 17ch;
}

.a-metier p {
  position: relative;
  font-size: 16px;
  color: var(--texte-doux);
  flex-grow: 1;
  transition: color 0.35s;
}

.a-fleche {
  position: relative;
  font-family: var(--display);
  font-size: 30px;
  color: var(--chantier);
  margin-top: 18px;
  transition: transform 0.35s;
}

.a-metier:hover {
  background: var(--nuit);
  color: var(--blanc);
}

.a-metier:hover p {
  color: var(--brume);
}

.a-metier:hover .a-metier-num {
  -webkit-text-stroke-color: rgba(232, 101, 13, 0.7);
  transform: translateY(-6px);
}

.a-metier-remede {
  position: relative;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--ligne);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--encre);
  transition: color 0.35s, border-color 0.35s;
}

.a-metier:hover .a-metier-remede {
  color: var(--blanc);
  border-top-color: rgba(255, 255, 255, 0.2);
}

.a-metier:hover .a-fleche {
  transform: translateX(12px);
}

/* ══════════ Tarifs ══════════ */
.a-tarifs {
  padding: 130px 0 120px !important;
}

.a-tarifs-tete {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}

.a-tarifs-tete .a-h2 {
  margin-bottom: 0;
}

.a-bascule {
  display: inline-flex;
  border: 1px solid var(--encre);
  background: var(--blanc);
}

.a-bascule button {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--encre);
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.a-bascule button em {
  font-style: normal;
  font-size: 11px;
  color: var(--chantier);
  margin-left: 6px;
}

.a-bascule button.est-active {
  background: var(--encre);
  color: var(--blanc);
}

.a-bascule button.est-active em {
  color: #FFB98A;
}

.a-offres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--encre);
}

.a-offre {
  background: var(--blanc);
  padding: 40px 34px 38px;
}

.a-offre:not(:last-child) {
  border-right: 1px solid var(--encre);
}

.a-offre-duo {
  background: var(--nuit);
  color: var(--blanc);
  position: relative;
}

.a-offre-duo::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--chantier);
}

.a-offre-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--chantier);
  color: var(--blanc);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.a-offre-nom {
  font-family: var(--display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.01em;
}

.a-offre-desc {
  font-size: 15px;
  color: var(--texte-doux);
  margin-top: 4px;
  min-height: 2.8em;
}

.a-offre-duo .a-offre-desc {
  color: var(--brume);
}

.a-prix {
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  margin: 26px 0 6px;
  white-space: nowrap;
}

.a-prix b {
  display: inline-block;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.a-prix span {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--texte-muted);
}

.a-offre-duo .a-prix span {
  color: var(--brume-2);
}

.a-prix b.bouge {
  animation: a-bouge 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes a-bouge {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

.a-offre-siege {
  font-size: 14px;
  color: var(--texte-doux);
}

.a-offre-duo .a-offre-siege {
  color: var(--brume);
}

.a-offre ul {
  list-style: none;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--ligne);
}

.a-offre-duo ul {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.a-offre li {
  position: relative;
  font-size: 15px;
  padding: 6px 0 6px 22px;
}

.a-offre li::before {
  content: "/";
  position: absolute;
  left: 2px;
  color: var(--chantier);
  font-weight: 600;
}

.a-tarifs-note {
  margin: 26px 0 30px;
  font-size: 15px;
  color: var(--texte-doux);
}

.a-tarifs-note b {
  color: var(--encre);
}

/* ══════════ FAQ ══════════ */
.a-faq {
  background: var(--blanc);
  padding: 130px 0 120px !important;
}

.a-faq-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.a-faq-liste details {
  border-top: 1px solid var(--encre);
}

.a-faq-liste details:last-child {
  border-bottom: 1px solid var(--encre);
}

.a-faq-liste summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.a-faq-liste summary::-webkit-details-marker {
  display: none;
}

.a-faq-liste summary::after {
  content: "+";
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: var(--chantier);
  transition: transform 0.3s;
}

.a-faq-liste details[open] summary::after {
  transform: rotate(45deg);
}

.a-faq-liste details p {
  font-size: 16px;
  color: var(--texte-doux);
  max-width: 62ch;
  padding-bottom: 26px;
}

/* ══════════ Final ══════════ */
.a-final {
  background-color: var(--nuit);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--blanc);
  padding: 130px 0 !important;
}

.a-final-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: center;
}

.a-titre-final {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-transform: none;
  color: var(--blanc);
  margin-bottom: 0;
}

.a-signature {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 44px;
}

.a-monogramme,
.a-photo {
  flex: none;
  width: 76px;
  height: 76px;
  border: 1px solid var(--chantier);
}

.a-monogramme {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 26px;
  color: var(--chantier);
}

.a-photo {
  object-fit: cover;
}

.a-monogramme img {
  filter: brightness(0) invert(1);
}

.a-citation {
  font-size: 18px;
  line-height: 1.55;
  color: #C9D6DF;
  max-width: 50ch;
}

.a-auteur {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brume-2);
}

.a-final-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.a-final-tel {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brume-2);
  text-align: center;
  margin-top: 6px;
}

.a-final-tel a {
  color: var(--blanc);
}

/* ══════════ Apparitions au défilement ══════════ */
.js .a-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .a-rv.vu {
  opacity: 1;
  transform: none;
}

.a-metiers-grille .a-rv:nth-child(2),
.a-offres .a-rv:nth-child(2),
.a-chiffres-grille .a-rv:nth-child(2) { transition-delay: 0.1s; }
.a-metiers-grille .a-rv:nth-child(3),
.a-offres .a-rv:nth-child(3),
.a-chiffres-grille .a-rv:nth-child(3) { transition-delay: 0.2s; }
.a-chiffres-grille .a-rv:nth-child(4) { transition-delay: 0.3s; }

/* ══════════ Page rendez-vous : l'agenda de Vincent, sans autre formulaire ══════════ */
.a-rdv {
  background: var(--blanc);
  padding: 96px 0 110px !important;
}

.a-rdv-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.a-rdv-pas {
  list-style: none;
  counter-reset: pas;
  margin: 36px 0 32px;
  border-top: 1px solid var(--encre);
}

.a-rdv-pas li {
  counter-increment: pas;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ligne);
  font-size: 16px;
  color: var(--texte-doux);
}

.a-rdv-pas li::before {
  content: "0" counter(pas);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--chantier);
  color: var(--blanc);
  font-family: var(--display);
  font-weight: 900;
  font-size: 18px;
}

.a-rdv-pas b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--encre);
}

.a-rdv-alt {
  font-size: 14px;
  color: var(--texte-muted);
}

.a-rdv-alt a {
  color: var(--encre);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* L'agenda vient du CRM : on masque son bandeau de 45 px pour ne garder que les créneaux */
.a-rdv-agenda {
  position: relative;
  height: 860px;
  border: 1px solid var(--encre);
  overflow: hidden;
  background: #EEF2F5;
}

.a-rdv-agenda iframe {
  display: block;
  width: 100%;
  height: calc(100% + 45px);
  margin-top: -45px;
  border: 0;
}

@media (max-width: 900px) {
  .a-rdv {
    padding: 64px 0 80px !important;
  }

  .a-rdv-grille {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .a-rdv-agenda {
    height: 900px;
    margin: 0 -22px;
    border-left: 0;
    border-right: 0;
  }
}

/* ══════════ Adaptations ══════════ */
@media (max-width: 1100px) {
  .a-hero-grille {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 56px;
    padding-top: 72px;
  }

  .a-planche-zone {
    max-width: 680px;
  }

  .a-planche-zone {
    margin-bottom: 0;
  }

  .a-ticket {
    left: 24px;
  }

  .a-chiffres-grille {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 900px) {
  .a-wrap {
    padding-left: 22px;
    padding-right: 22px;
  }

  .a-trace-grille,
  .a-faq-grille,
  .a-final-grille {
    grid-template-columns: minmax(0, 1fr);
  }

  .a-livrables {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .a-etape {
    padding-top: 40px;
    margin-bottom: 28px;
  }

  .a-vue {
    margin-bottom: 56px;
  }

  .a-visuel-3,
  .a-visuel-large,
  .a-visuel-cctp {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .a-visuel .a-shot {
    order: -1;
    margin-bottom: 10px;
  }

  .a-col,
  .a-rang {
    display: contents;
  }

  .a-ann,
  .a-rang .a-ann {
    order: var(--n);
    flex: none;
  }

  .a-visuel .a-cctp {
    font-size: 14px;
  }

  .a-cctp-corps {
    columns: 1;
  }

  .a-col-g .a-ann {
    text-align: left;
  }

  .a-ann b {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .a-ann b i,
  .a-anc::after {
    display: grid;
  }

  .a-anc::after {
    content: attr(data-n);
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    z-index: 1;
  }

  .a-source {
    border-left: none;
    border-top: 1px solid var(--encre);
    min-height: 300px;
  }

  .a-metiers-grille,
  .a-offres,
  .a-trois {
    grid-template-columns: minmax(0, 1fr);
  }

  .a-metier:not(:last-child),
  .a-offre:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--encre);
  }

  .a-metier {
    min-height: 0;
  }

  .a-metier-qui {
    margin-top: 70px;
  }

  .a-metier-num {
    font-size: 96px;
  }
}

@media (max-width: 700px) {
  .a-temps,
  .a-recit,
  .a-trace,
  .a-metiers,
  .a-tarifs,
  .a-faq,
  .a-final {
    padding-top: 84px !important;
    padding-bottom: 84px !important;
  }

  .a-hero-grille {
    padding-top: 56px;
    padding-bottom: 72px;
  }

  .a-planche-zone {
    padding-bottom: 0;
  }

  .a-ticket {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: -28px 14px 0 auto;
    max-width: 300px;
  }

  .a-rejouer {
    position: static;
    margin-top: 10px;
  }

  .a-actions .a-btn {
    width: 100%;
  }

  .a-semaine {
    padding: 24px 18px 20px;
  }

  .a-semaine-ligne {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .a-semaine-ligne .a-jours {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 3px;
  }

  .a-semaine-total {
    font-size: 30px;
  }

  .a-jours li {
    height: 50px;
    padding: 6px 4px;
    justify-content: center;
    align-items: center;
  }

  .a-jours b {
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  .a-jour-nafix b {
    font-size: 0;
  }

  .a-jour-nafix b::after {
    content: "5 min";
    font-size: 9.5px;
  }

  .a-jours span {
    display: none;
  }

  .a-chiffre {
    padding: 4px 14px;
  }

  .a-dpgf-tete,
  .a-dpgf-ligne {
    grid-template-columns: 46px minmax(0, 1fr) 64px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .a-dpgf-tete span:nth-child(3),
  .a-dpgf-tete span:nth-child(5),
  .a-dpgf-ligne span:nth-child(3),
  .a-dpgf-ligne span:nth-child(5) {
    display: none;
  }

  .a-source-carte {
    padding: 26px 22px;
  }

  .a-prix b {
    font-size: 56px;
  }

  .a-bascule {
    width: 100%;
  }

  .a-bascule button {
    flex: 1;
    padding: 12px 10px;
  }
}

/* —— Mouvement réduit : tout est affiché dans son état final —— */
@media (prefers-reduced-motion: reduce) {
  .js .a-mot > span,
  .joue *,
  .a-defile-piste {
    animation: none !important;
  }

  .joue .p-murs path {
    stroke-dashoffset: 0;
  }

  .js .a-rv {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .a-semaine:not(.vu) .a-jours li::before {
    transform: none;
  }

  .js .a-semaine:not(.vu) .a-jour-nafix {
    transform: none;
    opacity: 1;
  }

  .a-source-carte {
    transition: none;
  }

  .js .a-vue *,
  .js .a-vue *::before {
    animation: none !important;
    transition: none !important;
  }

  .js .a-etape {
    transition: none;
  }

  .a-fleches * {
    opacity: 1 !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}
