/* ═══════════════════════════════════════════════════════════════
   OFFRE — DÉVELOPPEMENT (/services-dev.html)
   Refonte du 11/10/2026 sur le modèle de l'offre Web design : la page
   charge aussi css/v4/offre-design.css (composants « od- » communs),
   et, en différé, offre-design-figma.css + offre-dev-diff.css.
   Ici, seulement ce qui doit être là au premier rendu : la place de
   l'atelier et « Ce que ça change ». Préfixe : .oc-
   ═══════════════════════════════════════════════════════════════ */

/* Le logo d'Orée, repris par <use> : sélecteurs simples (l'arbre cloné
   ne voit pas ses ancêtres), couleurs par variables. */
.o-logo-trait { fill: none; stroke: var(--o-logo-encre, var(--o-encre, #17322E)); }
.o-logo-soleil { fill: var(--o-accent, #A84E2E); stroke: var(--o-accent, #A84E2E); }
.o-logo-mot { fill: var(--o-logo-encre, var(--o-encre, #17322E)); }
.o-logo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ─── La place de l'atelier ───
   Taille définitive dès le premier rendu, contenu invisible tant que le
   script ne l'a pas construit. */
.oc-atelier-cadre { margin-top: var(--e8); max-width: 1368px; }
.oc-atelier {
  position: relative;
  height: 740px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #0E0E0E;
  color: #EDEDED;
  text-align: left;
}
.oc-atelier-repli { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); color: rgba(255, 255, 255, 0.45); font-size: var(--p-4); white-space: nowrap; }
.oc-atelier.est-pret .oc-atelier-repli { display: none; }
@media (max-width: 1100px) { .oc-atelier { height: 700px; } }
@media (max-width: 760px) {
  .oc-atelier-cadre { padding-inline: 12px; }
  .oc-atelier { height: 1180px; border-radius: 14px; }
}

/* ═══ 1. CE QUE ÇA CHANGE ═══
   À gauche, la cascade de chargement de la page d'accueil d'Orée et son
   budget de poids ; à droite, le dépôt qui change de mains. Chiffres
   fictifs. Animé à l'apparition (.est-vu) et par offre-dev.js (dépôt). */
.oc-change-planche {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--e5);
  margin-top: var(--e7);
}
.oc-change-etiquette { margin: 0 0 var(--e5); font-size: var(--p-5); letter-spacing: 0.04em; }

/* La cascade */
.oc-cascade-carte {
  position: relative;
  display: grid;
  gap: var(--e4);
  padding: var(--e6);
  overflow: hidden;
  border-radius: var(--r4);
  background: radial-gradient(120% 90% at 0% 0%, #F7FAF9 0%, #EEF3F1 45%, #DCE7E3 100%);
  color: #17322E;
}
.oc-cascade-carte .oc-change-etiquette { margin-bottom: 0; color: #4F6461; }
.oc-cascade-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.oc-cascade-tete > span:first-child { display: grid; }
.oc-cascade-tete b { font-size: var(--p-2); font-weight: 600; }
.oc-cascade-tete small { color: #4F6461; font-size: var(--p-5); }
.oc-cascade-lcp { display: grid; justify-items: end; padding: 8px 14px; border-radius: 12px; background: #17322E; color: #EEF3F1; }
.oc-cascade-lcp small { color: rgba(238, 243, 241, 0.7); }
.oc-cascade-lcp b { color: #F2D27A; font-size: 1.6rem; line-height: 1.1; }
.oc-cascade {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 16px 16px 30px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 50px -36px rgba(23, 50, 46, 0.5);
  font: 500 12px/1.2 ui-monospace, 'SF Mono', Menlo, monospace;
}
.oc-req { display: grid; grid-template-columns: 132px 52px minmax(0, 1fr); align-items: center; gap: 10px; }
.oc-req-nom { display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oc-req-nom i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.est-html { background: #4F6461; } .est-css { background: #1F6F78; } .est-police { background: #8C6BB1; } .est-image { background: #A84E2E; } .est-js { background: #D1A326; }
.oc-req small { color: #7A8C89; text-align: right; font-size: 11px; }
.oc-req-piste { position: relative; height: 12px; }
.oc-req-piste i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc(var(--l) * 1%); border-radius: 3px; background: #9DB1AD; transform-origin: left; transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 120ms + 200ms); }
.oc-req--lcp .oc-req-piste i { background: #A84E2E; box-shadow: 0 0 0 3px rgba(168, 78, 46, 0.18); }
.oc-req--differe { opacity: 0.55; }
.oc-req--differe .oc-req-piste i { background: repeating-linear-gradient(90deg, #C9D3D1 0 4px, transparent 4px 7px); }
.oc-cascade-axe { position: absolute; left: calc(16px + 132px + 52px + 20px); right: 16px; bottom: 8px; display: flex; justify-content: space-between; color: #9AAAA7; font-size: 10px; }
.oc-cascade-seuil, .oc-cascade-marque { position: absolute; top: 10px; bottom: 24px; left: calc(16px + 132px + 52px + 20px + (100% - 16px - 132px - 52px - 20px - 16px) * var(--x)); width: 0; }
.oc-cascade-seuil { --x: 0.6; border-left: 1.5px dashed #C94A3E; }
.oc-cascade-marque { --x: 0.45; border-left: 2px solid #D1A326; }
.oc-cascade-seuil span, .oc-cascade-marque span { position: absolute; top: -8px; left: 6px; padding: 1px 6px; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.oc-cascade-seuil span { background: #FBE9E7; color: #A3362B; }
.oc-cascade-marque span { left: auto; right: 6px; background: #D1A326; color: #111; }
.oc-budget { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; }
.oc-budget-txt { display: grid; }
.oc-budget-txt small { color: #4F6461; font-size: var(--p-5); }
.oc-budget-txt b { font-size: 1.5rem; line-height: 1.1; }
.oc-budget-txt span { color: #4F6461; font-size: 11.5px; }
.oc-budget-jauge { position: relative; height: 10px; border-radius: 99px; background: rgba(23, 50, 46, 0.1); overflow: hidden; }
.oc-budget-jauge i { position: absolute; inset: 0 auto 0 0; width: 60.7%; border-radius: inherit; background: linear-gradient(90deg, #1F6F78, #3E9C8F); transform-origin: left; transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) 900ms; }

/* Le dépôt */
.oc-depot-carte {
  position: relative;
  display: grid;
  align-content: center;
  padding: var(--e6);
  overflow: hidden;
  border-radius: var(--r4);
  background: radial-gradient(70% 45% at 50% 100%, rgba(209, 163, 38, 0.2), transparent 70%), var(--noir);
  color: var(--sur-noir);
}
.oc-depot-carte .oc-change-etiquette { color: var(--sur-noir-2); }
.oc-depot { display: grid; gap: 14px; padding: 18px; border-radius: 16px; background: #161616; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); font-size: 13px; }
.oc-depot-tete { display: flex; align-items: center; gap: 10px; }
.oc-depot-tete img { width: 20px; height: 20px; padding: 2px; border-radius: 50%; background: #fff; }
.oc-depot-chemin { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-size: 15px; color: #8AB4F8; }
.oc-depot-chemin b { font-weight: 600; }
.oc-depot-proprio { position: relative; display: inline-grid; justify-items: end; overflow: hidden; }
.oc-depot-proprio > span { grid-area: 1 / 1; transition: transform 600ms cubic-bezier(0.65, 0, 0.35, 1), opacity 400ms ease; }
.oc-depot-apres { color: var(--or); font-weight: 600; transform: translateY(110%); opacity: 0; }
.oc-depot.est-transfere .oc-depot-avant { transform: translateY(-110%); opacity: 0; }
.oc-depot.est-transfere .oc-depot-apres { transform: none; opacity: 1; }
.oc-depot-prive { margin-left: auto; padding: 1px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); color: var(--sur-noir-2); font-size: 11px; }
.oc-depot-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.oc-depot-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; }
.oc-depot-badges i, .oc-composant-mesures i { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 6px #3DDC84; }
.oc-commits { display: grid; gap: 2px; padding: 4px 0; border-block: 1px solid rgba(255, 255, 255, 0.08); }
.oc-commit { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; }
.oc-commit i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--or); }
.oc-commit > span { display: grid; min-width: 0; }
.oc-commit b { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.oc-commit small { color: var(--sur-noir-2); font-size: 11px; }
.oc-commit em { color: var(--sur-noir-2); font: 11px ui-monospace, 'SF Mono', Menlo, monospace; }
.oc-depot-pied { display: flex; align-items: center; gap: 10px; }
.oc-depot-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #EEF3F1; }
.oc-depot-av svg { width: 12px; height: 16px; }
.oc-depot-pied > span:nth-child(2) { display: grid; line-height: 1.2; }
.oc-depot-pied small { color: var(--sur-noir-2); font-size: 11px; }
.oc-depot-transfert { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: var(--or); color: #111; font-size: 11px; font-weight: 700; opacity: 0; transform: scale(0.8); transition: opacity 400ms ease 400ms, transform 500ms var(--ressort) 400ms; }
.oc-depot.est-transfere .oc-depot-transfert { opacity: 1; transform: none; }

/* Les principes : le libellé numéroté au-dessus du nom */
.oc-change .od-effet .temps-num { display: block; margin-bottom: 6px; color: var(--or-lisible); }

/* Entrée en scène */
.od-anime .oc-change-planche:not(.est-vu) .oc-req-piste i { transform: scaleX(0); }
.od-anime .oc-change-planche:not(.est-vu) .oc-budget-jauge i { transform: scaleX(0); }
.oc-cascade-carte, .oc-depot-carte { transition: transform 900ms var(--ressort), opacity 700ms ease; }
.oc-depot-carte { transition-delay: 150ms; }
.od-anime .oc-change-planche:not(.est-vu) .oc-cascade-carte, .od-anime .oc-change-planche:not(.est-vu) .oc-depot-carte { opacity: 0; transform: translateY(30px); }

/* La méthode : l'accroche sous le titre */
.oc-methode-lead { max-width: 46ch; margin: var(--e4) 0 0; }

@media (max-width: 1100px) {
  .oc-change-planche { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .oc-cascade-carte, .oc-depot-carte { padding: var(--e5) 14px; }
  .oc-req { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .oc-cascade-seuil span { top: auto; bottom: -4px; left: auto; right: 6px; }
  .oc-req small { display: none; }
  .oc-cascade-axe { left: calc(16px + 104px + 16px); }
  .oc-cascade-seuil, .oc-cascade-marque { left: calc(16px + 104px + 16px + (100% - 16px - 104px - 16px - 16px) * var(--x)); }
  .oc-cascade-tete { flex-direction: column; align-items: flex-start; }
}

/* ═══ LE SURVOL DES CARTES, PROPRE AU DÉVELOPPEMENT : l'inspecteur ═══
   Pas les poignées de recadrage de l'offre Web design : la carte est
   « inspectée » comme dans les outils du navigateur. Contour doré à
   distance (la marge), bande teintée à l'intérieur (le padding),
   repères pointillés et l'étiquette balise.classe + dimensions réelles
   (posée et mesurée par offre-dev.js). */
[data-oc-inspect] {
  position: relative;
  outline: 1.5px solid transparent;
  outline-offset: 10px;
  transition: outline-color 250ms ease, outline-offset 450ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease, background-color 300ms ease;
}
[data-oc-inspect]:hover { outline-color: var(--or); outline-offset: 4px; }
.oc-inspecte {
  position: absolute;
  right: 12px; top: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 5px;
  background: #1A1A1A;
  color: #fff;
  font: 500 11px/1.25 ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(209, 163, 38, 0.55), 0 12px 24px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.oc-inspecte b { color: #E6BA42; font-weight: 600; }
.oc-inspecte i { color: #F3E7C4; font-style: normal; }
.oc-inspecte u { margin-left: 9px; padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, 0.16); color: #A6A6A6; text-decoration: none; }
[data-oc-inspect]:hover > .oc-inspecte { opacity: 1; transform: none; }

/* Les trois propriétés de l'ouverture :
   l'étiquette au-dessus, avec sa flèche, et les repères pointillés
   qui débordent de part et d'autre (comme les règles de l'inspecteur). */
.oc-ouverture .od-propriete .oc-inspecte { right: auto; left: -2px; top: auto; bottom: calc(100% + 12px); transform: translateY(4px); }
.oc-ouverture .od-propriete .oc-inspecte::after { content: ''; position: absolute; left: 14px; top: 100%; border: 5px solid transparent; border-top-color: #1A1A1A; }
.oc-ouverture .od-propriete::before {
  content: '';
  position: absolute;
  inset: 0 -36px;
  z-index: 0;
  background: none;
  border-block: 1px dashed rgba(209, 163, 38, 0.7);
  opacity: 0;
  transform: scaleX(0.85);
  transition: opacity 250ms ease, transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.oc-ouverture .od-propriete:hover::before { opacity: 1; transform: none; }
.oc-ouverture .od-propriete:hover {
  background: rgba(209, 163, 38, 0.07);
  box-shadow: inset 0 0 0 12px rgba(209, 163, 38, 0.07);
}
.oc-ouverture .od-propriete:hover .od-propriete-icone { background: #111; color: var(--or); transform: none; box-shadow: 0 0 0 1px rgba(209, 163, 38, 0.6), 0 8px 18px -8px rgba(209, 163, 38, 0.6); }
.oc-ouverture .od-propriete:hover .hero-mesure-valeur { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: calc(var(--p-4) * 0.92); letter-spacing: -0.01em; }
/* Les deux cartes des principes : le contour suffit, avec l'étiquette. */
.oc-cascade-carte:hover, .oc-depot-carte:hover { outline-offset: 6px; }
@media (hover: none) {
  .oc-inspecte { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-oc-inspect], [data-oc-inspect]::before, .oc-inspecte { transition: none; }
}
