/* Avenor V2 : vue éclatée */
:root {
  --ink: #140f1f;
  --ink-2: #1e1731;
  --ink-3: #2b2142;
  --paper: #f4eff8;
  --mist: #bfb5cf;
  --lilac: #ece6f3;
  --lilac-ink: #1a1426;
  --orange: #ff6a2b;
  --magenta: #e5398f;
  --violet: #9a6bff;
  --focus: #ffd2b8;
  --gutter: clamp(20px, 4vw, 64px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "DejaVu Sans", "Liberation Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink-3); border-radius: 6px; }
.skip:focus { top: 12px; }

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Liens et boutons */
.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 44px;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: rgba(244, 239, 248, .35);
  text-underline-offset: .3em;
  text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-color: currentColor; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: .7rem 1.2rem;
  border-radius: 8px;
  background: var(--ink-3);
  border: 1px solid #5d4b8e;
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.25;
}
.btn:hover { background: #352953; border-color: var(--violet); }

/* En-tête */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(244, 239, 248, .08); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; padding: 6px 0; }
.brand img { width: 158px; height: auto; }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  color: var(--mist); text-decoration: none; font-size: .975rem; border-radius: 6px;
}
.nav a:hover { color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.support-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid rgba(244, 239, 248, .28); border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.support-link:hover { border-color: var(--paper); }
/* Langue : contrôle secondaire, plus discret que Support */
.lang-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 .6rem;
  color: var(--mist); text-decoration: none; font-weight: 600; font-size: .9375rem; border-radius: 8px;
}
.lang-link:hover { color: var(--paper); }
.menu-toggle {
  display: none;
  min-height: 44px; min-width: 44px; padding: 0 1rem;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(244, 239, 248, .28); border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
}

@media (max-width: 900px) {
  .header-row { flex-wrap: wrap; gap: .5rem 1rem; }
  .header-actions { margin-left: auto; }
  /* Sans JS : navigation simple, en ligne défilante */
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: .5rem; }
  .nav a { white-space: nowrap; padding: 0 .6rem; }
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; }
  .js.menu-open .nav {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: .5rem var(--gutter) 1rem;
    background: var(--ink-2);
    border-bottom: 1px solid rgba(244, 239, 248, .1);
  }
  .js.menu-open .nav a { min-height: 48px; font-size: 1.0625rem; color: var(--paper); }
}
@media (max-width: 380px) {
  .brand img { width: 128px; }
  .support-link, .menu-toggle { padding: 0 .75rem; }
  .lang-link { padding: 0 .4rem; }
}

/* Ouverture : titre en escalier */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-top { display: grid; gap: 1.5rem; }
.stair {
  --step: clamp(1rem, 7vw, 7rem);
  font-size: clamp(2.1rem, 5.4vw + .3rem, 5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
}
.stair span { display: block; }
.stair .s2 { margin-left: var(--step); }
.stair .s3 { margin-left: calc(var(--step) * 2); }
.hero-lede { max-width: 34ch; color: var(--mist); font-size: 1.0625rem; }

@media (min-width: 1100px) {
  .hero-top { grid-template-columns: 1fr 22rem; }
  .stair { grid-column: 1 / -1; grid-row: 1; }
  .hero-lede { grid-column: 2; grid-row: 1; align-self: start; padding-top: .6rem; }
}

/* Vue éclatée */
.explode { overflow-x: clip; padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.explode-grid { display: grid; gap: 1.5rem; }

.stage { position: relative; }
.stage-art {
  position: relative;
  height: clamp(260px, 62vw, 580px);
}
.stack {
  --g: clamp(48px, 9vw, 110px);
  position: absolute; left: 50%; top: 50%;
  width: 74%;
  aspect-ratio: 1901 / 899;
  transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-32deg);
  transform-style: preserve-3d;
}
.plate {
  position: absolute; inset: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 60px rgba(0, 0, 0, .45);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .45s ease, box-shadow .45s ease;
  animation: settle .9s cubic-bezier(.2, .7, .2, 1) .15s backwards;
}
.plate-front { transform: translateZ(var(--g)); border: 1px solid var(--orange); background: #0d0a14; }
.plate-front img { width: 100%; height: 100%; object-fit: cover; }
.plate-tools { transform: translateZ(0); border: 1px solid var(--magenta); background: #221830; }
.plate-care { transform: translateZ(calc(var(--g) * -1)); border: 1px solid var(--violet); background: #1a1430; }
@keyframes settle { from { transform: translateZ(0); opacity: 0; } }

.js .plate { cursor: pointer; }

/* Schéma des outils (décoratif) */
.tools-art {
  position: absolute; inset: 9% 7%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%;
  align-items: start;
}
.t-card {
  display: grid; gap: .5em;
  padding: 8% 9%;
  border: 1px solid rgba(229, 57, 143, .65);
  border-radius: 6px;
  font-size: clamp(7px, 1.05vw, 14px);
  line-height: 1.2;
}
.t-card b { font-weight: 700; color: #f6d4e6; }
.t-card i { display: block; height: .5em; border-radius: 2px; background: rgba(244, 239, 248, .16); }
.t-card i:nth-child(odd) { width: 70%; }
.t-line { position: absolute; left: 10%; right: 10%; bottom: 8%; height: 1px; background: rgba(229, 57, 143, .55); }

/* Questions de veille (décoratif, pas des états) */
.care-art {
  position: absolute; inset: 12% 9%;
  display: grid; align-content: space-between;
  font-size: clamp(8px, 1.35vw, 18px);
  color: #d9cbff;
  font-weight: 600;
}
.care-art p { display: flex; align-items: center; gap: .7em; }
.care-art p::before { content: ""; width: .9em; height: .9em; border: 1.5px solid var(--violet); border-radius: 50%; flex: none; }

/* États choisis (JS) */
.stage[data-view] .plate { opacity: .4; }
.stage[data-view="presence"] .plate-front,
.stage[data-view="quotidien"] .plate-tools,
.stage[data-view="tranquillite"] .plate-care { opacity: 1; }
.stage[data-view="presence"] .plate-front { box-shadow: 0 0 0 2px var(--orange), 0 40px 60px rgba(0, 0, 0, .5); }
.stage[data-view="quotidien"] .plate-tools { box-shadow: 0 0 0 2px var(--magenta), 0 40px 60px rgba(0, 0, 0, .5); }
.stage[data-view="tranquillite"] .plate-care { box-shadow: 0 0 0 2px var(--violet), 0 40px 60px rgba(0, 0, 0, .5); }
/* Les couches du dessus glissent de côté pour dégager celle qu'on regarde */
.stage[data-view="quotidien"] .plate-front { transform: translate3d(46%, 0, calc(var(--g) * 1.3)); opacity: .18; }
.stage[data-view="tranquillite"] .plate-front { transform: translate3d(58%, 0, calc(var(--g) * 1.5)); opacity: .14; }
.stage[data-view="tranquillite"] .plate-tools { transform: translate3d(34%, 0, calc(var(--g) * .5)); opacity: .22; }

.stage-cap { margin-top: .75rem; max-width: 62ch; color: var(--mist); font-size: .875rem; line-height: 1.5; }

/* Légende = onglets */
.legend { display: grid; gap: .5rem; align-content: center; }
.layer-tab {
  --c: var(--orange);
  display: grid; gap: .2rem;
  min-height: 44px;
  padding: .9rem 1.1rem;
  border-left: 3px solid var(--c);
  border-radius: 0 8px 8px 0;
  text-decoration: none;
  color: var(--paper);
}
.layer-tab:hover { background: rgba(244, 239, 248, .04); }
.layer-name { color: var(--c); font-size: .875rem; font-weight: 600; }
.layer-q { font-size: clamp(1.0625rem, 1.4vw, 1.3rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.l-presence { --c: var(--orange); }
.l-quotidien { --c: var(--magenta); }
.l-tranquillite { --c: var(--violet); }
.js .layer-tab[aria-selected="false"] { border-left-color: rgba(244, 239, 248, .14); }
.js .layer-tab[aria-selected="false"] .layer-q { color: var(--mist); }
.js .layer-tab[aria-selected="true"] { background: var(--ink-2); }

@media (min-width: 1000px) {
  .explode-grid { grid-template-columns: 21rem 1fr; gap: 2rem; align-items: center; }
  .legend { grid-column: 1; grid-row: 1; }
  .stage { grid-column: 2; grid-row: 1; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .legend { grid-template-columns: repeat(3, 1fr); }
  .layer-tab { border-left: 0; border-top: 3px solid var(--c); border-radius: 0 0 8px 8px; align-content: start; }
  .js .layer-tab[aria-selected="false"] { border-top-color: rgba(244, 239, 248, .14); }
}
@media (max-width: 999px) {
  .stage { order: -1; }
}

/* Panneaux */
.panels { padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(4rem, 8vw, 7rem); }
.panel {
  --c: var(--orange);
  display: grid; gap: 1.25rem 3rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ink-2);
  border-radius: 12px;
  border-top: 3px solid var(--c);
}
.panel + .panel { margin-top: 1.25rem; }
.panel[hidden] { display: none; }
.js .panel + .panel { margin-top: 0; }
.panel-name { color: var(--c); font-size: .9375rem; font-weight: 600; }
.panel-lead { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.45; font-weight: 500; max-width: 32ch; }
.situations { display: grid; gap: .25rem; }
.situations li {
  position: relative; padding: .75rem 0 .75rem 1.5rem;
  border-bottom: 1px solid rgba(244, 239, 248, .1);
  color: var(--mist); max-width: 60ch;
}
.situations li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem;
  width: .6rem; height: 2px; background: var(--c);
}
.panel-links { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; }
.panel-links .btn { margin-left: auto; }
@media (min-width: 900px) {
  .panel { grid-template-columns: 5fr 7fr; }
  .panel-name, .panel-lead { grid-column: 1; }
  .panel-name { grid-row: 1; }
  .panel-lead { grid-row: 2 / span 2; }
  .situations { grid-column: 2; grid-row: 1 / span 2; }
  .panel-links { grid-column: 2; grid-row: 3; }
}
@media (max-width: 600px) {
  .panel-links .btn { margin-left: 0; width: 100%; }
}
.panels-note { margin-top: 1.25rem; color: var(--mist); font-size: .9375rem; max-width: 70ch; }

.catalog { margin-top: 2rem; border-top: 1px solid rgba(244, 239, 248, .12); }
.catalog summary, .faq summary {
  cursor: pointer; min-height: 48px; display: flex; align-items: center;
  font-weight: 600; list-style-position: outside;
}
.catalog summary { padding: .75rem 0; }
.catalog-list { display: grid; gap: .25rem; padding-bottom: 1rem; }
.catalog-list a { display: inline-flex; min-height: 44px; align-items: center; color: var(--mist); }
.catalog-list a:hover { color: var(--paper); }

/* Titres de section */
.h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  max-width: 20ch;
}

/* Réalisations */
.work { background: #0e0a17; padding: clamp(4rem, 8vw, 7rem) 0; }
.project { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.project-shot img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(244, 239, 248, .12);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .7);
}
.p-mf .project-shot img { border-color: rgba(255, 106, 43, .45); }
.p-villa .project-shot img { border-color: rgba(154, 107, 255, .45); }
.project-info { display: grid; gap: 1.5rem 2.5rem; padding-top: 1.75rem; }
.project-id h3 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.project-id p { margin-top: .5rem; color: var(--mist); max-width: 32ch; }
.sides { display: grid; gap: 1rem 2rem; }
.sides dt { font-weight: 700; font-size: .9375rem; }
.sides dd { color: var(--mist); max-width: 40ch; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; align-content: start; }
@media (min-width: 700px) { .sides { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .project-info { grid-template-columns: 4fr 6fr 3fr; }
  .project-actions { flex-direction: column; align-items: flex-start; }
}

/* Équipe : seule bande claire */
.team { background: var(--lilac); color: var(--lilac-ink); padding: clamp(4rem, 9vw, 8rem) 0; }
.team-grid { display: grid; gap: 2rem 4rem; }
.team-title {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  font-weight: 800; line-height: .95; letter-spacing: -.045em;
  max-width: 10ch;
}
.team-body { display: grid; gap: 1.25rem; max-width: 62ch; }
.team-body p { color: #3c3350; }
.team-body .team-lead { color: var(--lilac-ink); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 600; }
.team-values { display: grid; gap: 1rem; margin-top: .5rem; }
.team-values div { padding-top: 1rem; border-top: 1px solid rgba(26, 20, 38, .18); }
.team-values dt { font-weight: 700; }
.team-values dd { color: #3c3350; }
.text-link.dark { color: var(--lilac-ink); text-decoration-color: #6a4fd0; font-weight: 600; }
.team :focus-visible { outline-color: #5a3fc0; }
@media (min-width: 960px) {
  .team-grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .team-values { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* Suivi */
.care { padding: clamp(4rem, 8vw, 7rem) 0; }
.care-head { display: grid; gap: 1.25rem; }
.care-head p { color: var(--mist); max-width: 58ch; }
.split { display: grid; gap: 1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.split > div { padding: 1.5rem; border-radius: 12px; }
.split h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: .5rem; }
.split p { color: var(--mist); max-width: 46ch; }
.split-auto { border: 1.5px dashed rgba(154, 107, 255, .6); }
.split-human { background: var(--ink-2); border: 1.5px solid var(--violet); }
.split .hours { margin-top: .75rem; color: var(--paper); font-weight: 600; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

.care-cases { margin-top: clamp(3rem, 6vw, 4.5rem); }
.care-cases-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 1rem; max-width: 30ch; }
.case { display: grid; gap: .5rem 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(244, 239, 248, .12); }
.case h4 { font-size: 1.125rem; font-weight: 700; line-height: 1.35; max-width: 34ch; }
.case p { color: var(--mist); max-width: 60ch; }
@media (min-width: 900px) { .case { grid-template-columns: 5fr 7fr; } }
.care-foot { display: grid; gap: 1.25rem; margin-top: 2rem; justify-items: start; }
.care-foot p { color: var(--mist); font-size: .9375rem; max-width: 66ch; }

/* Méthode */
.method { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid rgba(244, 239, 248, .1); }
.steps { display: grid; gap: 1.5rem; margin-top: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 2px solid var(--ink-3); }
.steps li::before { content: counter(step); display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--violet); margin-bottom: .75rem; }
.steps h3 { font-size: 1.125rem; font-weight: 700; }
.steps p { color: var(--mist); font-size: .9875rem; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid rgba(244, 239, 248, .1); }
.faq-list { display: grid; gap: 0 3rem; margin-top: 2rem; }
.faq details { border-top: 1px solid rgba(244, 239, 248, .12); }
.faq summary { padding: .75rem 0; }
.faq details p { color: var(--mist); padding-bottom: 1rem; max-width: 60ch; }
@media (min-width: 900px) { .faq-list { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact { background: var(--ink-2); padding: clamp(4rem, 8vw, 7rem) 0; border-top: 3px solid var(--violet); }
.contact-grid { display: grid; gap: 2rem 4rem; }
.contact-title { font-size: clamp(2.4rem, 5.6vw, 4.8rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; max-width: 12ch; }
.contact-body { display: grid; gap: 1.5rem; justify-items: start; align-content: end; }
.contact-body p { color: var(--mist); max-width: 50ch; }
.btn-big { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.0625rem; border-color: var(--violet); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; } }

/* Pied de page */
.footer { padding: 3rem 0 2rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 150px; }
.footer-brand p { margin-top: 1rem; color: var(--mist); font-size: .9375rem; max-width: 36ch; }
.footer ul { display: grid; gap: .1rem; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mist); text-decoration: none; }
.footer nav a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(244, 239, 248, .1); color: var(--mist); font-size: .875rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; } }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plate { animation: none; transition: opacity .01s; }
}
