/* Modèle « agence corporate » : bandeau turquoise, navigation blanche, hero gris clair avec carte prix,
   trois cartes turquoise numérotées 01-02-03 à pointe basse, section circuit, bande d'appel turquoise.
   Thème clair unique, choisi pour suivre le modèle fourni. */
:root {
  --teal: #0c8f93;
  --teal-dark: #076a72;
  --teal-soft: #e3f3f3;
  --orange: #f28c18;
  --orange-dark: #d97606;
  --ink: #1d2428;
  --muted: #56636a;
  --line: #dde5e7;
  --grey: #f2f5f6;
  --white: #ffffff;
  --green: #2e8b57;
  --shadow: 0 2px 6px rgba(12, 40, 48, .08), 0 14px 32px rgba(12, 40, 48, .10);

  --f-head: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.35rem;
  --step-3: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --step-4: clamp(2rem, 1.3rem + 2.8vw, 3.3rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-head); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
li + li { margin-top: .35em; }
button { font: inherit; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1140px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Bandeau contact */
.topbar { background: var(--teal); color: var(--white); font-size: var(--step--1); }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 8px; }
.topbar .contact { display: flex; flex-wrap: wrap; gap: 4px 20px; user-select: all; }
.topbar .contact span { user-select: text; }

/* Navigation */
.navbar { background: var(--white); border-bottom: 1px solid var(--line); }
.navbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.15rem/1 var(--f-head); letter-spacing: .04em; color: var(--ink); }
.brand small { display: block; font: 700 .62rem/1.4 var(--f-head); letter-spacing: .28em; color: var(--teal); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  background: var(--teal); color: var(--white); font: 800 1.2rem/1 var(--f-head);
}
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.nav button {
  appearance: none; background: none; border: 0; cursor: pointer;
  font: 700 .8rem/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  padding: 10px 10px; border-bottom: 2px solid transparent;
}
.nav button:hover { color: var(--teal); }
.nav button[aria-expanded="true"] { color: var(--teal); border-bottom-color: var(--teal); }

/* Hero */
.hero { background: linear-gradient(115deg, var(--grey) 0 62%, var(--teal-soft) 62% 100%); }
.hero-in { display: grid; gap: 32px; padding-block: 48px 56px; align-items: center; }
.hero-text { display: grid; gap: 18px; min-width: 0; }
.kicker { font: 700 var(--step--1)/1.3 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.hero h1 { font-weight: 800; font-size: var(--step-4); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.hero-lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-cta {
  appearance: none; border: 0; cursor: pointer; background: var(--orange); color: var(--white);
  font: 700 .85rem/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 4px; box-shadow: 0 6px 16px rgba(242, 140, 24, .35);
}
.btn-cta:hover { background: var(--orange-dark); }
.btn-ghost {
  appearance: none; cursor: pointer; background: transparent; color: var(--teal-dark);
  border: 2px solid var(--teal); border-radius: 4px;
  font: 700 .85rem/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; padding: 13px 20px;
}
.btn-ghost:hover, .btn-ghost[aria-expanded="true"] { background: var(--teal); color: var(--white); }

.price-card {
  background: var(--white); border-radius: 8px; box-shadow: var(--shadow);
  border-top: 6px solid var(--teal); padding: 24px; display: grid; gap: 6px; min-width: 0;
}
.price-tag { font: 700 var(--step--1)/1.2 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); }
.price-what { font: 700 var(--step-1)/1.3 var(--f-head); }
.price-amount { font: 800 2.6rem/1.1 var(--f-head); color: var(--teal-dark); font-variant-numeric: tabular-nums; margin-top: 6px; }
.price-amount span { font-size: 1.1rem; font-weight: 700; }
.price-when { color: var(--muted); }
.price-total { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: var(--step--1); }
.price-total div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.price-total dt { color: var(--muted); }
.price-total dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Phases */
.phases { padding-block: 56px 40px; }
.section-title { font-weight: 800; font-size: var(--step-3); text-transform: uppercase; text-align: center; margin-bottom: 40px; }
.phase-list { list-style: none; padding: 0; display: grid; gap: 40px; }
.phase { margin: 0; display: grid; justify-items: center; }
.phase-card {
  position: relative; width: 100%; color: var(--white);
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
  padding: 46px 24px 64px; display: grid; gap: 8px; text-align: center;
}
.phase-num {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--teal-dark); border-radius: 0 0 10px 10px;
  font: 800 1.15rem/1 var(--f-head); padding: 10px 16px 12px; font-variant-numeric: tabular-nums;
}
.phase-card h3 { font-weight: 800; font-size: var(--step-2); text-transform: uppercase; letter-spacing: .02em; }
.phase-meta { font: 600 var(--step--1)/1.3 var(--f-head); opacity: .9; }
.phase-price { font: 700 var(--step-0)/1.3 var(--f-head); background: rgba(255, 255, 255, .16); border-radius: 4px; padding: 6px 10px; justify-self: center; margin-top: 4px; font-variant-numeric: tabular-nums; }
.phase-icon {
  appearance: none; cursor: pointer; margin-top: -30px; position: relative;
  width: 68px; height: 68px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--teal); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--teal-dark);
  transition: transform .15s ease;
}
.phase-icon:hover, .phase-icon[aria-expanded="true"] { transform: translateY(-3px); background: var(--orange); border-color: var(--orange); color: var(--white); }
.phase-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phase-hint { text-align: center; color: var(--muted); font-size: var(--step--1); margin-top: 20px; }
@media (min-width: 760px) {
  .phase-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

/* Circuit */
.method { padding-block: 48px 64px; }
.method-in { display: grid; gap: 32px; align-items: center; }
.method-text { display: grid; gap: 16px; min-width: 0; }
.method-text h2 { font-weight: 800; font-size: var(--step-3); color: var(--teal); text-transform: uppercase; line-height: 1.15; }
.method-text p { color: var(--muted); max-width: 56ch; }
.method-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.link {
  appearance: none; background: none; border: 0; padding: 0; cursor: pointer;
  font: 700 var(--step--1)/1.4 var(--f-head); color: var(--teal-dark);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
}
.link:hover { color: var(--orange-dark); }
.circuit { list-style: none; padding: 0; display: grid; gap: 0; position: relative; min-width: 0; }
.circuit li { margin: 0; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 20px; position: relative; }
.circuit li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.c-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; }
.c-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.circuit li.done .c-ico { background: var(--green); color: var(--white); }
.circuit strong { display: block; font: 800 var(--step-1)/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .02em; }
.circuit li > span:last-child { color: var(--muted); padding-top: 4px; }
@media (min-width: 860px) {
  .method-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}

/* Bande turquoise */
.band { background: linear-gradient(90deg, var(--teal-dark), var(--teal)); color: var(--white); }
.band-in { display: grid; gap: 24px; padding-block: 40px; align-items: center; }
.band h2 { font-weight: 800; font-size: var(--step-3); margin-bottom: 12px; }
.band ul { display: grid; gap: 6px; }
.band li { margin: 0; }
@media (min-width: 860px) { .band-in { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

/* Proposition complète */
.full { padding-block: 40px; background: var(--grey); }
.full-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.full-head h2 { font-weight: 800; font-size: var(--step-2); text-transform: uppercase; }
.doc { display: grid; gap: 36px; max-width: 780px; margin-top: 28px; }
.doc > *, .doc section > * { min-width: 0; }
.doc section { display: grid; gap: 16px; }
.doc h2 { font-weight: 800; font-size: var(--step-3); text-transform: uppercase; color: var(--teal-dark); border-bottom: 3px solid var(--teal); padding-bottom: 8px; }

.footer { background: var(--ink); color: #c9d3d6; font-size: var(--step--1); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 18px; }

/* Panneau de détail */
.scrim { position: fixed; inset: 0; background: rgba(13, 30, 36, .5); z-index: 20; }
.drawer {
  position: fixed; z-index: 21; top: 0; right: 0; bottom: 0; width: min(640px, 100%);
  background: var(--white); color: var(--ink);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .2);
  padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
}
.drawer-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  background: var(--teal); color: var(--white);
  padding: calc(18px + env(safe-area-inset-top, 0px)) 24px 18px;
}
.drawer-step { font: 700 .75rem/1.3 var(--f-head); letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.drawer-head h2 { font-weight: 800; font-size: var(--step-3); text-transform: uppercase; line-height: 1.1; }
.drawer-close {
  appearance: none; cursor: pointer; flex: none; background: var(--white); color: var(--teal-dark);
  border: 0; border-radius: 4px; padding: 9px 12px; font: 700 .8rem/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em;
}
.drawer-body { overflow-y: auto; padding: 22px 24px 28px; display: grid; gap: 16px; align-content: start; }
.drawer-body > * { min-width: 0; }
.drawer-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--grey); }
.btn-small {
  appearance: none; cursor: pointer; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px;
  font: 700 .78rem/1.2 var(--f-head); display: inline-flex; gap: 8px; align-items: center; text-align: left;
}
.btn-small:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-small[disabled] { opacity: .4; cursor: default; }
@media (max-width: 520px) {
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
}

/* Contenu des branches */
.lead { font-size: var(--step-1); }
.small { font-size: var(--step--1); color: var(--muted); }
.callout { background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 4px; padding: 12px 14px; }
.callout strong { color: var(--teal-dark); }
.callout--price { background: #fff4e6; border-left-color: var(--orange); display: grid; gap: 4px; }
.callout--price .eyebrow { font: 700 .75rem/1.3 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); }
.callout--price .big { font: 800 2rem/1.1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; }

details { border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
details > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font: 700 var(--step-0)/1.35 var(--f-head);
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "Afficher +"; flex: none; font: 700 .75rem/1 var(--f-head); letter-spacing: .04em; color: var(--teal-dark); }
details[open] > summary::after { content: "Masquer −"; color: var(--orange-dark); }
details[open] > summary { border-bottom: 1px solid var(--line); }
details.is-target { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-soft); }
details > .inner { padding: 12px 14px 14px; display: grid; gap: 10px; }

.flow { list-style: none; padding: 0; display: grid; gap: 8px; }
.flow li { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.chip { display: inline-block; text-align: center; font: 700 .78rem/1.2 var(--f-head); padding: 5px 8px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.chip--done { background: var(--green); color: var(--white); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .72rem/1.3 var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
td.r, th.r { text-align: right; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--teal); }

.timeline { display: grid; gap: 8px; }
.tl-scale, .tl-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; align-items: center; }
.tl-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; }
.tl-scale .tl-grid span { font: 600 11px/1 var(--f-head); color: var(--muted); text-align: center; }
.tl-bar { background: var(--teal); color: var(--white); border-radius: 4px; font: 700 12px/1 var(--f-head); padding: 7px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-bar--a { grid-column: 1 / span 2; }
.tl-bar--b { grid-column: 3 / span 4; }
.tl-bar--c { grid-column: 7 / span 7; }
.tl-row .name { font: 700 var(--step--1)/1.3 var(--f-head); }
.gates { display: grid; gap: 6px; font-size: var(--step--1); color: var(--muted); }

.roles { display: grid; gap: 10px; }
.role { border-left: 4px solid var(--line); padding: 2px 0 2px 12px; }
.role h4 { margin: 0 0 4px; font-size: var(--step-0); }
.role--me { border-left-color: var(--orange); }
.role--tech { border-left-color: var(--teal); }

@media (min-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
