/* Avenor V3b (Opus) : « Le ruban », ouverture « Le A en trois tranches » */

@font-face {
  font-family: "Syne";
  src: url("/assets/syne-wght-68b623f0e4.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/schibsted-grotesk-wght-4c8b93f431.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --nuit: #170e26;
  --prune: #23173a;
  --lait: #f3eef8;
  --brume: #bdb2d0;
  --orange: #ff6328;
  --framboise: #b52a5a;
  --violet: #5b27b8;
  --pli: #2e185d;
  --ruban: linear-gradient(90deg, #ff6328, #f04345 30%, #c12f5c 58%, #922a7b 80%, #6c2cd3);

  --display: "Syne", "Schibsted Grotesk", system-ui, sans-serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --max: 1320px;
  --focus: #ffc2a6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--lait);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--lait); color: var(--nuit); padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- Boutons : un pan de ruban incliné ---------- */
.btn {
  --bg: var(--lait); --fg: var(--nuit);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.6rem;
  color: var(--fg); font-weight: 650; font-size: 1rem; line-height: 1.25;
  text-decoration: none; text-align: center;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg); transform: skewX(-14deg); border-radius: 3px;
  transition: transform .25s ease, background-color .25s ease;
}
.btn:hover::before { transform: skewX(-14deg) scaleX(1.04); }
.btn-light { --bg: var(--lait); --fg: var(--nuit); }
.btn-light:hover { --bg: #fff; }
.btn-ink { --bg: var(--nuit); --fg: var(--lait); }
.btn-ink:hover { --bg: #000; }
.btn-big { min-height: 3.75rem; padding: 1rem 2.4rem; font-size: 1.125rem; }

.text-link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(23 14 38 / .94);
  backdrop-filter: blur(10px);
}
.header-row {
  display: flex; align-items: center; gap: 2rem;
  min-height: 4.75rem;
}
.brand { flex: none; display: block; }
.brand img { width: auto; height: 2.6rem; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .975rem; font-weight: 500; color: var(--brume); padding: .5rem 0; }
.nav a:hover { color: var(--lait); }
.support-link {
  flex: none; text-decoration: none; font-weight: 650; font-size: .95rem;
  padding: .55rem 1.15rem; color: var(--nuit); background: var(--lait); border-radius: 3px;
}
.support-link:hover { background: #fff; }
.menu-toggle {
  display: none; margin-left: auto;
  font: inherit; font-weight: 600; font-size: .95rem; color: var(--lait);
  background: transparent; border: 1px solid rgb(243 238 248 / .4); border-radius: 3px;
  padding: .5rem .9rem; cursor: pointer;
}

/* ---------- Ouverture : le A en trois tranches ----------
   Aucun overflow ni masque sur le titre : rien ne peut rogner un glyphe.
   La taille est calculée pour que « gagner du temps, » (8,94 em en Syne 700)
   tienne avec sa tranche et son nom de section. */
.hero { padding-block: clamp(2.75rem, 6.5vw, 6.5rem) clamp(1rem, 2vw, 2rem); }
.hero-inner { container-type: inline-size; }
.hero-title {
  --F: clamp(1.75rem, 9.4cqw, 5.5rem);
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--F);
  line-height: 1.05;
  letter-spacing: -.03em;
}
.ht { display: block; text-decoration: none; color: var(--lait); }
.ht + .ht { margin-top: .32em; }
.ht-text {
  background: var(--ruban) no-repeat 0 96% / 0 .06em;
  transition: background-size .45s cubic-bezier(.6,0,.2,1);
  padding-bottom: .04em;
}
.ht:hover .ht-text, .ht:focus-visible .ht-text { background-size: 100% .06em; }
.ht:focus-visible { outline-offset: 6px; }
.ht-key {
  display: flex; align-items: center; gap: .7rem;
  margin-top: .45rem;
  font-family: var(--text); font-size: 1rem; line-height: 1.3; letter-spacing: 0; font-weight: 550;
}
.slice { flex: none; width: auto; height: 1.35rem; aspect-ratio: 640 / 210; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ht-tag { color: var(--brume); transition: color .25s ease; }
.ht:hover .ht-tag, .ht:focus-visible .ht-tag { color: var(--lait); }
.ht:hover .slice, .ht:focus-visible .slice { transform: translateX(.35rem); }

.hero-foot {
  margin-top: clamp(2.25rem, 4.5vw, 4.25rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgb(243 238 248 / .16);
  display: grid; gap: 1.5rem;
}
.hero-lede { max-width: 31rem; font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

@media (min-width: 1000px) {
  .hero-title {
    /* texte 8,94 em + marge .5 em + tranche 3,2 em + nom de section (~14rem) */
    --F: clamp(3rem, calc((100cqw - 14.5rem) / 12.85), 6rem);
    display: grid;
    grid-template-columns: max-content auto minmax(0, 1fr);
    row-gap: .06em;
  }
  .ht { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
  .ht + .ht { margin-top: 0; }
  .ht-key { display: contents; }
  .ht-text { white-space: nowrap; }
  .slice { height: calc(var(--F) * 1.05); margin-inline: calc(var(--F) * .5) 1.25rem; }
  .ht:hover .slice, .ht:focus-visible .slice { transform: translateX(calc(var(--F) * .12)); }
  .ht-tag { font-size: 1.0625rem; }
  /* chaque nom suit le bord droit de sa tranche : la jambe droite du A */
  .ht-1 .ht-tag { margin-left: calc(var(--F) * -1.05); }
  .ht-2 .ht-tag { margin-left: calc(var(--F) * -.62); }
  .ht-3 .ht-tag { margin-left: calc(var(--F) * -.2); }
  .hero-foot { grid-template-columns: minmax(0, 31rem) auto; justify-content: space-between; align-items: end; column-gap: 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  /* fill-mode backwards : après l'entrée, le survol garde la main sur transform */
  .ht-text { animation: lift .8s cubic-bezier(.2,.75,.2,1) backwards; }
  .slice { animation: drop .9s cubic-bezier(.2,.75,.2,1) backwards; }
  .ht-tag { animation: fade .6s ease backwards; }
  .ht-1 .ht-text { animation-delay: .1s; }  .ht-1 .slice { animation-delay: .3s; }  .ht-1 .ht-tag { animation-delay: .9s; }
  .ht-2 .ht-text { animation-delay: .2s; }  .ht-2 .slice { animation-delay: .42s; } .ht-2 .ht-tag { animation-delay: 1s; }
  .ht-3 .ht-text { animation-delay: .3s; }  .ht-3 .slice { animation-delay: .54s; } .ht-3 .ht-tag { animation-delay: 1.1s; }
  .hero-foot { animation: fade .8s ease 1s backwards; }
}
@keyframes lift { from { opacity: 0; transform: translateY(.22em); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-60%); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Titres de section ---------- */
.h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 4.25rem);
  line-height: 1.02; letter-spacing: -.03em;
  max-width: 18ch;
}

/* ---------- Réalisations ---------- */
.work { padding-block: clamp(3.5rem, 6vw, 6rem) clamp(4rem, 8vw, 8rem); }
.work .h2 { margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-right: var(--gutter);
}
.project + .project { margin-top: clamp(4rem, 8vw, 8rem); }
.p-villa { padding-right: 0; padding-left: var(--gutter); grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
.p-villa .project-shot { order: 2; }
.project-shot img { width: 100%; }
.p-mf .project-shot img { border-radius: 0 4px 4px 0; }
.p-villa .project-shot img { border-radius: 4px 0 0 4px; }
.project-info { max-width: 30rem; }
.project-name {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1; letter-spacing: -.03em;
}
.project-line { margin-top: .9rem; font-size: 1.1875rem; line-height: 1.45; }
.sides { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.sides div { padding-left: 1rem; border-left: 3px solid var(--c, var(--orange)); }
.p-villa .sides div { --c: #8b5cf6; }
.sides dt { font-weight: 650; font-size: .95rem; }
.sides dd { color: var(--brume); font-size: 1rem; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* ---------- Besoins : trois pans de ruban ---------- */
.needs { --cut: clamp(2rem, 5vw, 5rem); padding-top: clamp(1rem, 2vw, 2rem); }
.needs-title { margin-bottom: clamp(.5rem, 1.5vw, 1.5rem); }
.band {
  position: relative;
  padding-block: calc(var(--cut) + clamp(3rem, 6vw, 6rem)) clamp(4rem, 7vw, 7rem);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
.band + .band { margin-top: calc(var(--cut) * -1); }
.b-presence { background: var(--orange); color: var(--nuit); --focus: var(--nuit); }
.b-quotidien { background: var(--framboise); color: #fff; }
.b-tranquillite { background: var(--violet); color: #fff; }
.band-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 6rem); align-items: start;
}
.band-head { display: flex; flex-direction: column; gap: 1rem; }
.band-verb {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 4.75rem); line-height: .96; letter-spacing: -.035em;
}
.band-name { font-family: var(--text); font-weight: 600; font-size: 1.125rem; letter-spacing: 0; }
.band-lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.45; max-width: 34em; }
.situations { margin-top: 1.75rem; display: grid; gap: .85rem; max-width: 36em; }
.situations li { position: relative; padding-left: 1.75rem; }
.situations li::before {
  content: ""; position: absolute; left: .1rem; top: .5em;
  width: .85rem; height: .55rem; background: currentColor; transform: skewX(-24deg); opacity: .9;
}
.band-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.band-more { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .975rem; }

/* ---------- Équipe ---------- */
.team { background: var(--lait); color: var(--nuit); padding-block: clamp(5rem, 9vw, 9rem); --focus: var(--violet); }
.team-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 6rem); }
.team-title {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(2.5rem, 5.6vw, 5.5rem); line-height: .98; letter-spacing: -.035em;
}
.team-lead { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.4; font-weight: 550; margin-bottom: 1.25rem; }
.team-body > p:not(.team-lead) { color: #3d3150; max-width: 36em; }
.team-values { margin-block: 2.5rem; display: grid; gap: 1.5rem; }
.team-values div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(23 14 38 / .18); }
.team-values dt { font-weight: 700; }
.team-values dd { color: #3d3150; }

/* ---------- Suivi ---------- */
.care { padding-block: clamp(5rem, 9vw, 9rem); }
.care-head { display: grid; gap: 1.5rem; max-width: 52rem; }
.care-head .h2 { max-width: 20ch; }
.care-head p { color: var(--brume); max-width: 38em; font-size: 1.125rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(2.5rem, 5vw, 4rem); }
.split-col { padding: clamp(1.5rem, 3vw, 2.5rem); }
.split-col h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; margin-bottom: .75rem; }
.split-auto { border: 1px solid rgb(243 238 248 / .22); border-right: 0; }
.split-human { background: var(--prune); border: 1px solid var(--prune); }
.split-col p { color: var(--brume); }
.split-human p { color: var(--lait); }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(3rem, 6vw, 5rem); }
.case h3 { font-size: 1.1875rem; font-weight: 650; line-height: 1.35; margin-bottom: .6rem; }
.case p { color: var(--brume); font-size: 1rem; }
.care-foot { margin-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; max-width: 40em; color: var(--lait); }

/* ---------- Méthode ---------- */
.method { padding-block: clamp(4rem, 8vw, 8rem); border-top: 1px solid rgb(243 238 248 / .12); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 800; font-size: 3.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--brume); margin-bottom: 1rem;
}
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.375rem; margin-bottom: .5rem; }
.steps p { color: var(--brume); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(4rem, 8vw, 8rem); border-top: 1px solid rgb(243 238 248 / .12); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.faq-list details { border-bottom: 1px solid rgb(243 238 248 / .16); }
.faq-list details:first-child { border-top: 1px solid rgb(243 238 248 / .16); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; font-size: 1.0625rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .8rem; height: .8rem; margin-top: -.55rem;
  border-right: 2px solid var(--brume); border-bottom: 2px solid var(--brume);
  transform: rotate(45deg); transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: rotate(225deg); margin-top: -.15rem; }
.faq-list details p { padding: 0 2.5rem 1.4rem 0; color: var(--brume); max-width: 40em; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: clip; padding-block: clamp(5rem, 10vw, 10rem); background: var(--prune); }
.contact-ribbon { position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 3vw, 3rem); width: min(40vw, 600px); height: auto; }
.contact-inner { position: relative; z-index: 1; }
.contact-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 7rem); line-height: .95; letter-spacing: -.04em;
  max-width: 9.5ch;
}
.contact-inner { max-width: min(var(--max), 100% - 2 * var(--gutter)); }
@media (min-width: 1000px) { .contact-inner > * { max-width: 52%; } .contact-title { max-width: 9.5ch; } }
.contact-inner p { margin-block: 1.75rem 2.25rem; max-width: 30rem; font-size: 1.125rem; }

/* ---------- Pied de page ---------- */
.footer { padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1.3fr; gap: 2.5rem; }
.footer-brand img { width: 10rem; }
.footer-brand p { margin-top: 1rem; color: var(--brume); font-size: .95rem; }
.footer ul { display: grid; gap: .5rem; }
.footer a { text-decoration: none; color: var(--brume); font-size: .95rem; }
.footer a:hover { color: var(--lait); text-decoration: underline; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(243 238 248 / .12); color: var(--brume); font-size: .875rem; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 999px) {
  .project, .p-villa { grid-template-columns: 1fr; padding: 0; gap: 1.75rem; }
  .p-villa .project-shot { order: 0; }
  .project-shot img, .p-mf .project-shot img, .p-villa .project-shot img { border-radius: 0; }
  .project-info { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; max-width: none; }

  .band-grid, .team-grid, .faq-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-auto { border-right: 1px solid rgb(243 238 248 / .22); border-bottom: 0; }
  .cases { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .contact { padding-bottom: calc(clamp(5rem, 10vw, 10rem) + 52vw); }
  .contact-ribbon { top: auto; bottom: 1.5rem; right: var(--gutter); width: 64vw; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .header-row { gap: .75rem; flex-wrap: wrap; }
  .js .nav {
    display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0;
    padding: .25rem 0 1rem;
  }
  .js.menu-open .nav { display: flex; }
  .js .nav a { padding: .75rem 0; border-top: 1px solid rgb(243 238 248 / .12); font-size: 1.0625rem; color: var(--lait); }
  /* Sans JavaScript : la navigation reste visible sur une ligne qui passe à la ligne */
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: .25rem 1.25rem; margin-left: 0; padding-bottom: .75rem; }
  html:not(.js) .support-link { margin-left: auto; }
}

@media (max-width: 560px) {
  .brand img { height: 2.2rem; }
  .support-link { padding: .5rem .85rem; }
  .menu-toggle { padding: .45rem .7rem; }
  .steps { grid-template-columns: 1fr; }
  .team-values div { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .text-link, .band-links .text-link, .project-actions .text-link { width: 100%; }
}

@media (max-width: 360px) {
  .header-row { gap: .5rem; }
  .brand img { height: 1.9rem; }
  .menu-toggle, .support-link { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Intégration production (ajout au design approuvé, qui reste intact ci-dessus) ----------
   Seul ajout : le lien de langue secondaire FR/EN, entre la navigation et Support. */
.lang-link {
  flex: none; text-decoration: none; font-weight: 600; font-size: .95rem;
  color: var(--brume); padding: .5rem .2rem; margin-right: -1rem;
}
.lang-link:hover { color: var(--lait); text-decoration: underline; text-underline-offset: .28em; }
@media (max-width: 860px) {
  .lang-link { margin-right: 0; }
  html:not(.js) .lang-link { margin-left: auto; }
  html:not(.js) .lang-link + .support-link { margin-left: 0; }
}
@media (max-width: 360px) {
  .lang-link { font-size: .875rem; padding-inline: .1rem; }
  /* Garder logo, Menu, langue et Support sur une ligne à 320 px. */
  .header-row { gap: .4rem; }
  .menu-toggle { padding-inline: .55rem; }
  .support-link { padding-inline: .7rem; }
}
/* « passionnés. » (7,53 em en Syne 750) doit tenir dans la colonne sous 348 px au lieu de déborder. */
.team-title { font-size: min(clamp(2.5rem, 5.6vw, 5.5rem), 11.5vw); }
