/* Tenonia, site vitrine v4. Page noire continue, une famille (Noto Sans, fichiers locaux), deux graisses (400, 700),
   une échelle de tailles, une couleur d'accent (le bois clair du logo), le bleu du logo réservé au bouton « Demander une démo ».
   Grille de 12 colonnes, 1296 px. */
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/caveat-500.woff2") format("woff2"); }

:root {
  --noir: #000; --noir-2: #0d0d0d; --noir-3: #161616; --ligne: #333;
  --blanc: #fff; --gris-1: #d9d9d9; --gris-2: #b3b3b3;
  --accent: #e0b06a;           /* bois clair du logo : 10,5:1 sur noir */
  --bleu: #0057b8;             /* bouton « Demander une démo » seulement */
  --police: "Noto Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --t-12: 12px; --t-14: 14px; --t-16: 16px; --t-20: 20px; --t-24: 24px; --t-32: 32px; --t-48: 48px;
  --rayon: 4px; --rayon-carte: 8px;
  --marge: 72px; --cadre: 1296px; --rang: 96px; --espace: 24px;
  --ico-fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.2' d='M10 .6a9.4 9.4 0 1 0 0 18.8A9.4 9.4 0 0 0 10 .6Z'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round' d='M5.8 10h8.2M10.6 6.6 14 10l-3.4 3.4'/%3E%3C/svg%3E");
}
@media (max-width: 1100px) { :root { --marge: 40px; --rang: 72px; } }
@media (max-width: 700px) { :root { --marge: 16px; --rang: 56px; --t-24: 20px; --t-32: 24px; --t-48: 32px; --espace: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; background: #000; }
body { margin: 0; font-family: var(--police); font-size: var(--t-16); line-height: 1.5; color: #fff; background: #000; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.evitement { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 16px; background: #fff; color: #000; border-radius: var(--rayon); }
.evitement:focus { top: 8px; }
[hidden] { display: none !important; }
.accent { color: var(--accent); }

.cadre { width: 100%; max-width: calc(var(--cadre) + 2 * var(--marge)); margin: 0 auto; padding: 0 var(--marge); }
.grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--espace); }

h1, h2, h3 { font-weight: 700; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: var(--t-48); line-height: 1.17; }
h2 { font-size: var(--t-32); line-height: 1.25; }
h3 { font-size: var(--t-24); line-height: 1.3; }
.surtitre { font-size: var(--t-14); line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: var(--t-16); line-height: 1.5; color: var(--gris-1); max-width: 36em; }
.corps { font-size: var(--t-16); line-height: 1.5; color: var(--gris-1); max-width: 54ch; }

/* boutons et liens */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 20px; border-radius: var(--rayon); border: 2px solid transparent; font-size: var(--t-14); font-weight: 700; line-height: 1.25; text-decoration: none; cursor: pointer; background: none; transition: background-color .15s, color .15s, border-color .15s; }
.bouton-blanc { background: #fff; color: #000; border-color: #fff; }
.bouton-blanc:hover { background: var(--gris-1); border-color: var(--gris-1); }
.bouton-contour { color: #fff; border-color: #fff; }
.bouton-contour:hover { background: #fff; color: #000; }
.bouton-demo { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.bouton-demo:hover { background: #00458f; border-color: #00458f; }
.bouton-petit { min-height: 32px; padding: 4px 16px; }
.lien-fleche { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-14); font-weight: 700; line-height: 1.3; text-decoration: none; color: #fff; background: none; border: 0; padding: 0; cursor: pointer; }
.lien-fleche::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--ico-fleche) center / contain no-repeat; mask: var(--ico-fleche) center / contain no-repeat; }
.lien-fleche:hover { text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }

/* ------------------------------------------------------------------ en-tête à deux étages */
.entete { background: #000; color: #fff; position: relative; z-index: 30; }
.entete-1 { border-bottom: 1px solid var(--ligne); }
.entete-1 .cadre { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: block; line-height: 0; }
.logo img { height: 24px; width: auto; }
.entete-2 .cadre { height: 42px; display: flex; align-items: center; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: -12px; }
.menu-lien, .menu-declencheur { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; background: none; border: 0; color: #fff; font-size: var(--t-14); font-weight: 700; text-decoration: none; cursor: pointer; }
.menu-declencheur svg { width: 12px; height: 12px; transition: transform .15s; }
.menu-declencheur[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-lien:hover, .menu-declencheur:hover, .menu-declencheur[aria-expanded="true"] { background: #1c1c1c; }
.menu-groupe { position: relative; }
.menu-panneau { position: absolute; left: 0; top: 100%; min-width: 300px; padding: 8px; background: #111; border: 1px solid var(--ligne); border-top: 0; border-radius: 0 0 var(--rayon) var(--rayon); box-shadow: 0 12px 32px rgba(0,0,0,.6); }
.menu-panneau a { display: block; padding: 10px 12px; border-radius: var(--rayon); text-decoration: none; font-size: var(--t-16); }
.menu-panneau a small { display: block; font-size: var(--t-14); color: var(--gris-2); }
.menu-panneau a:hover { background: #222; }
.bouton-menu { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.bouton-menu svg { width: 24px; height: 24px; }
.menu-demo { display: none; }
.bandeau { background: var(--bleu); color: #fff; font-size: var(--t-14); }
.bandeau .cadre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.bandeau a { color: #fff; text-decoration: none; }
.bandeau p a { font-weight: 700; margin-left: 4px; }
.bandeau p a:hover { text-decoration: underline; }
.bandeau .bouton { min-height: 28px; padding: 2px 14px; font-size: var(--t-12); border-width: 1px; border-color: #fff; color: #fff; }
.bandeau .bouton:hover { background: #fff; color: var(--bleu); }
@media (max-width: 960px) {
  .entete-1 .bouton { display: none; }
  .bouton-menu { display: inline-flex; }
  .entete-2 { display: none; }
  .entete[data-ouvert="true"] .entete-2 { display: block; border-bottom: 1px solid var(--ligne); }
  .entete-2 .cadre { height: auto; display: block; padding-bottom: 16px; }
  .menu { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .menu-lien, .menu-declencheur { width: 100%; height: 48px; padding: 0; justify-content: space-between; font-size: var(--t-16); border-bottom: 1px solid var(--ligne); }
  .menu-declencheur svg { width: 14px; height: 14px; }
  .menu-lien:hover, .menu-declencheur:hover, .menu-declencheur[aria-expanded="true"] { background: none; }
  .menu-panneau { position: static; box-shadow: none; background: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; }
  .menu-demo { display: inline-flex; margin-top: 16px; }
  .bandeau .bouton { display: none; }
}

/* ------------------------------------------------------------------ héros plein écran sur vidéo */
.heros { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: clamp(660px, calc(100svh - 98px - 40px), 860px); background: #000 center / cover no-repeat url("../images/heros-affiche.jpg"); }
.heros-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.78) 32%, rgba(0,0,0,.18) 68%, rgba(0,0,0,0) 100%), linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 38%); }
.heros > .cadre { position: relative; z-index: 2; }
.heros-corps { flex: 1; display: flex; align-items: center; padding-top: 48px; padding-bottom: 32px; }
.heros-texte { max-width: 560px; }
.heros-texte h1 { max-width: 15ch; }
.heros-texte .lead { margin-top: 20px; }
.heros-texte .actions { margin-top: 28px; }
.video-ctrl { position: absolute; z-index: 3; top: 24px; right: var(--marge); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.video-ctrl:hover { background: #000; box-shadow: 0 0 0 1px #fff; }
.video-ctrl svg { width: 16px; height: 16px; fill: currentColor; }
.video-ctrl .i-lire { display: none; }
.video-ctrl[aria-pressed="true"] .i-lire { display: block; }
.video-ctrl[aria-pressed="true"] .i-pause { display: none; }
.video-lien { margin-top: 20px; }
.video-lien button { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; color: #fff; font-size: var(--t-14); font-weight: 700; cursor: pointer; }
.video-lien i { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.video-lien svg { width: 12px; height: 12px; fill: #000; margin-left: 2px; }
.video-dialogue { width: min(960px, 94vw); padding: 0; border: 1px solid var(--ligne); border-radius: var(--rayon-carte); background: #000; color: #fff; }
.video-dialogue::backdrop { background: rgba(0,0,0,.85); }
.video-dialogue video { width: 100%; max-height: 80vh; background: #000; }
.video-absente { padding: 48px 24px; text-align: center; }

/* « Explorez par métier » : par-dessus le bas du héros */
.explorer { padding-bottom: 32px; }
.rang-titre { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rang-titre h2 { font-size: var(--t-20); }
.fleches { display: flex; gap: 8px; flex: none; }
.fleche { width: 32px; height: 32px; border-radius: 50%; border: 0; background: #fff; color: #000; display: grid; place-items: center; cursor: pointer; padding: 0; }
.fleche svg { width: 16px; height: 16px; }
.fleche:disabled { background: #3a3a3a; color: #8c8c8c; cursor: default; }
.piste { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--marge)); padding: 6px var(--marge); scroll-padding-left: var(--marge); }
.piste::-webkit-scrollbar { display: none; }
.piste > * { scroll-snap-align: start; flex: none; }
.tuile, .vignette { position: relative; display: block; overflow: hidden; border-radius: var(--rayon); background: #0b0b0b; color: #fff; text-decoration: none; border: 2px solid transparent; transition: transform .2s, border-color .2s; }
.tuile img, .vignette img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tuile::before, .vignette::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 62%); }
.tuile:hover, .tuile:focus-visible, .vignette:hover, .vignette:focus-visible { transform: scale(1.04); border-color: var(--accent); outline: none; z-index: 2; }
.tuile { width: 256px; height: 128px; }
.tuile span { position: absolute; z-index: 2; left: 12px; bottom: 10px; right: 40px; font-size: var(--t-12); line-height: 1.3; }
.tuile::after, .vignette::after { content: ""; position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 20px; height: 20px; background: var(--accent); -webkit-mask: var(--ico-fleche) center / contain no-repeat; mask: var(--ico-fleche) center / contain no-repeat; opacity: 0; transition: opacity .2s; }
.tuile:hover::after, .tuile:focus-visible::after, .vignette:hover::after, .vignette:focus-visible::after { opacity: 1; }
@media (max-width: 700px) { .tuile { width: 172px; height: 96px; } }

/* ------------------------------------------------------------------ « Les modules » */
.fond-motif { position: relative; background: #000; }
.fond-motif::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(118deg, rgba(255,255,255,.09) 0 1px, transparent 1px 15px); -webkit-mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.35) 45%, transparent 80%); mask-image: linear-gradient(100deg, #000 0%, rgba(0,0,0,.35) 45%, transparent 80%); }
.fond-motif > * { position: relative; }
.rang { padding: var(--rang) 0; }
.rang-grand-titre { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.vignette { width: 236px; height: 316px; }
.vignette .nom { position: absolute; z-index: 2; left: 16px; right: 44px; bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: var(--t-16); font-weight: 700; line-height: 1.25; }
.vignette::after { bottom: 16px; right: 14px; }
.pastille { flex: none; width: 24px; height: 24px; border-radius: var(--rayon); background: var(--accent); display: grid; place-items: center; }
.pastille svg { width: 16px; height: 16px; fill: none; stroke: #000; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 700px) { .vignette { width: 70vw; height: 300px; } }

/* ------------------------------------------------------------------ « Points forts » */
.points-forts .grille { row-gap: var(--espace); }
.grande-carte { grid-column: span 6; position: relative; display: block; min-height: 420px; overflow: hidden; border-radius: var(--rayon-carte); border: 2px solid var(--ligne); background: #0b0b0b; color: #fff; text-align: left; cursor: pointer; padding: 0; font: inherit; transition: border-color .2s; }
.grande-carte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grande-carte::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.88) 34%, rgba(0,0,0,.3) 62%, rgba(0,0,0,0) 80%); }
.grande-carte:hover, .grande-carte:focus-visible { border-color: var(--accent); outline: none; }
.grande-carte:hover img { transform: scale(1.03); }
.grande-carte .texte { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; }
.grande-carte h3 { margin-bottom: 8px; }
.grande-carte p { color: var(--gris-1); margin-bottom: 16px; max-width: 46ch; }
.grande-carte .lien-fleche { pointer-events: none; }
@media (max-width: 960px) { .grande-carte { grid-column: 1 / -1; min-height: 340px; } }

/* ------------------------------------------------------------------ réalisations (onglets sur scène 3D) */
.realisations { position: relative; overflow: hidden; min-height: 680px; background: radial-gradient(ellipse 60% 70% at 66% 55%, #242424 0%, #0b0b0b 65%, #000 100%); }
.realisations .scene { position: absolute; inset: 0; }
.realisations .maquette-attente { color: var(--gris-2); }
.realisations .scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.realisations::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.82) 36%, rgba(0,0,0,0) 68%); }
.realisations > .cadre { position: relative; z-index: 2; pointer-events: none; }
.realisations .onglets, .realisations .real-texte { pointer-events: auto; }
.onglets { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 40px 0 8px; margin: 0 calc(-1 * var(--marge)); padding-left: var(--marge); padding-right: var(--marge); }
.onglets::-webkit-scrollbar { display: none; }
.onglet { flex: none; min-height: 40px; padding: 6px 24px; border-radius: 999px; border: 1px solid #5c5c5c; background: rgba(0,0,0,.6); color: #fff; font-size: var(--t-14); font-weight: 700; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.onglet:hover { border-color: #fff; }
.onglet[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #000; }
.real-texte { max-width: 460px; padding: 88px 0 96px; }
.real-texte .surtitre { margin-bottom: 20px; }
.real-texte h2 { font-size: var(--t-24); line-height: 1.4; }
.real-texte .detail { margin-top: 16px; color: var(--gris-1); }
.real-texte .actions { margin-top: 28px; }
.real-note { position: absolute; z-index: 2; right: var(--marge); bottom: 16px; font-size: var(--t-12); color: var(--gris-2); }

/* ------------------------------------------------------------------ « Découvrir Tenonia » */
.decouvrir { background: #000 radial-gradient(ellipse 50% 90% at 25% 50%, #1b1b1b 0%, #000 70%); position: relative; }
.decouvrir::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(118deg, rgba(255,255,255,.06) 0 1px, transparent 1px 15px); -webkit-mask-image: linear-gradient(270deg, #000, transparent 70%); mask-image: linear-gradient(270deg, #000, transparent 70%); }
.decouvrir .grille { align-items: center; position: relative; }
.objet { grid-column: 1 / span 6; position: relative; aspect-ratio: 4 / 3; max-height: 460px; }
.objet { -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 100%); }
.objet canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.decouvrir-texte { grid-column: 8 / span 5; }
.decouvrir-texte .actions { margin-top: 24px; }
.objet-legende { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: var(--t-12); color: var(--gris-1); }
.objet-legende i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) { .objet, .decouvrir-texte { grid-column: 1 / -1; } .decouvrir .grille { row-gap: 24px; } .objet { max-height: 340px; } }

/* ------------------------------------------------------------------ deux cartes sombres */
.deux .grille { row-gap: var(--espace); }
.carte-sombre { grid-column: span 6; display: flex; flex-direction: column; min-height: 280px; padding: 24px; background: var(--noir-3); border: 2px solid var(--ligne); border-radius: var(--rayon-carte); text-decoration: none; color: #fff; transition: border-color .2s; }
.carte-sombre:hover, .carte-sombre:focus-visible { border-color: var(--accent); outline: none; }
.carte-sombre .icone { width: 56px; height: 56px; margin-bottom: auto; fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.carte-sombre h3 { margin-top: 32px; }
.carte-sombre p { margin-top: 8px; color: var(--gris-1); }
.carte-sombre .lien-fleche { margin-top: 20px; pointer-events: none; }
@media (max-width: 960px) { .carte-sombre { grid-column: 1 / -1; min-height: 0; } }

/* ------------------------------------------------------------------ pied de page */
.pied { background: #000; border-top: 1px solid var(--ligne); font-size: var(--t-14); }
.pied-int { padding-top: 56px; padding-bottom: 32px; }
.pied-colonnes { row-gap: 32px; }
.pied-col { grid-column: span 3; }
.pied h2 { font-size: var(--t-16); color: var(--accent); margin-bottom: 16px; }
.pied li + li { margin-top: 12px; }
.pied a { text-decoration: none; color: #fff; }
.pied a:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
.pied-col p { color: var(--gris-1); max-width: 28em; }
.pied-mention { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ligne); max-width: 72ch; color: var(--gris-1); }
.pied-legal { border-top: 1px solid var(--ligne); font-size: var(--t-12); color: var(--gris-1); }
.pied-legal .cadre { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 16px; padding-bottom: 16px; }
.pied-legal a { color: var(--gris-1); text-decoration: none; }
.pied-legal a:hover { text-decoration: underline; color: #fff; }
.pied-legal span[aria-hidden] { color: #8c8c8c; }
@media (max-width: 960px) { .pied-col { grid-column: span 6; } }
@media (max-width: 560px) { .pied-col { grid-column: span 12; } }

/* ------------------------------------------------------------------ dialogues (animation, maquette) */
.dlg { width: min(1100px, 96vw); max-height: 94svh; padding: 0; border: 1px solid var(--ligne); border-radius: var(--rayon-carte); background: #000; color: #fff; overflow: hidden; }
.dlg::backdrop { background: rgba(0,0,0,.88); }
.dlg-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--ligne); }
.dlg-barre h2 { font-size: var(--t-16); }
.dlg-fermer { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: var(--t-20); line-height: 1; cursor: pointer; }
.dlg-corps { position: relative; }
.dlg-maquette { height: min(640px, calc(94svh - 62px)); background: radial-gradient(ellipse 70% 70% at 50% 55%, #262626 0%, #0b0b0b 70%); }
.dlg-maquette .maquette { position: absolute; inset: 0; }
.maquette canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.maquette-attente { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; font-size: var(--t-14); color: var(--gris-2); }
.pret .maquette-attente { display: none; }
.fiche-piece { position: absolute; z-index: 3; left: 12px; bottom: 12px; width: min(300px, calc(100% - 24px)); padding: 16px; background: #fff; color: #000; border-radius: var(--rayon); font-size: var(--t-14); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.fiche-piece h3 { font-size: var(--t-16); padding-right: 24px; }
.fiche-piece dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin-top: 8px; }
.fiche-piece dt { color: #595959; }
.fiche-piece dd { font-weight: 700; }
.fiche-piece p { margin-top: 8px; color: #3c3c3c; }
.fiche-piece button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; background: none; border: 0; font-size: var(--t-20); line-height: 1; cursor: pointer; color: #000; }
.dlg-aide { padding: 10px 20px; font-size: var(--t-12); color: var(--gris-2); border-top: 1px solid var(--ligne); }

.cq-scene { position: relative; aspect-ratio: 16 / 10; width: 100%; background: #f3f3f0; color: #000; }
.cq-toile, .cq-calque { position: absolute; inset: 0; width: 100%; height: 100%; }
.cq-calque { pointer-events: none; overflow: visible; }
.cq-legende { position: absolute; z-index: 2; left: 28px; right: 28px; top: 16px; display: grid; height: 24px; }
.cq-etape { grid-area: 1 / 1; font-size: var(--t-14); line-height: 24px; font-weight: 700; color: #000; opacity: 0; transition: opacity .3s; }
.cq-etape.active { opacity: 1; }
.cq-commandes { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 12px; display: flex; align-items: center; gap: 16px; }
.cq-bouton { flex: none; min-height: 32px; padding: 2px 16px; border: 2px solid #000; border-radius: var(--rayon); background: #fff; color: #000; font-size: var(--t-14); font-weight: 700; cursor: pointer; }
.cq-bouton:hover { background: #000; color: #fff; }
.cq-barre { position: relative; flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; }
.cq-barre::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: rgba(0,0,0,.2); border-radius: 3px; }
.cq-barre i { position: relative; display: block; width: 100%; height: 3px; background: #000; border-radius: 3px; transform-origin: left; transform: scaleX(0); }
.cq-btlx { position: absolute; z-index: 1; visibility: hidden; opacity: 0; box-sizing: border-box; padding: 10px 12px 8px; border-radius: var(--rayon); background: #0b0b0b; color: #d9d9d9; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.cq-btlx-titre { margin: 0 0 4px; font: 700 11px/1.3 var(--police); color: #b3b3b3; display: flex; gap: 8px; align-items: center; }
.cq-btlx-titre span { padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 400; }
.cq-btlx pre { margin: 0; font: inherit; line-height: 1.6; white-space: pre; overflow: hidden; }
.cq-ligne { display: block; clip-path: inset(0 calc((1 - var(--r, 0)) * 100%) 0 0); }
.cq-btlx u { text-decoration: none; color: #8ec0ff; }
.cq-btlx i { font-style: normal; color: #e7c48f; }
.cq-btlx b { font-weight: 400; color: #a5e3b5; }
.cq-btlx s { text-decoration: none; color: #8a8a8a; }
.cq-btlx b[data-cle] { opacity: 0; border-radius: 3px; padding: 0 1px; }
.cq-btlx b[data-cle].arrive { opacity: 1; background: rgba(224,176,106,.35); color: #fff; }
.cq-relu { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font: 700 12px/1.3 var(--police); color: #8fe3ac; opacity: 0; transition: opacity .4s; }
.cq-relu svg { width: 14px; height: 14px; flex: none; }
.cq-relu.vu { opacity: 1; }
.cq-vols { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cq-vol { position: absolute; left: 0; top: 0; padding: 1px 6px; border-radius: var(--rayon); background: #000; color: var(--accent); font: 700 12px/1.3 var(--police); white-space: nowrap; will-change: transform; }
.fiche-taille-svg { max-width: none; }
@media (max-width: 800px) { .cq-scene { aspect-ratio: 1 / 1.5; } .cq-legende, .cq-commandes { left: 16px; right: 16px; } }

/* ------------------------------------------------------------------ pages intérieures */
.fil { display: flex; align-items: center; gap: 8px; padding-top: 24px; font-size: var(--t-14); color: var(--gris-2); }
.fil a { color: var(--gris-2); text-decoration: none; }
.fil a:hover { color: #fff; text-decoration: underline; }
.fil [aria-current] { color: #fff; }
.fil svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.produit-heros { position: relative; overflow: hidden; background: #000 radial-gradient(ellipse 50% 80% at 78% 55%, #1c1c1c 0%, #000 70%); }
.produit-heros-int { align-items: center; min-height: 460px; padding: 40px 0 64px; }
.produit-heros-texte { grid-column: 1 / span 6; }
.pastille-nom { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: var(--t-16); font-weight: 700; }
.produit-heros h1 { max-width: 16ch; }
.produit-heros .lead { margin-top: 20px; }
.produit-heros-visuel { grid-column: 7 / span 6; }
.produit-heros-visuel img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; -webkit-mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 60%, transparent 100%); }
.entete-page { padding: 24px 0 72px; background: #000 radial-gradient(ellipse 50% 100% at 85% 40%, #1a1a1a 0%, #000 70%); }
.entete-page h1 { max-width: 18ch; margin-top: 24px; }
.entete-page .lead { margin-top: 20px; }

.produit-grille { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 72px; }
.points { align-self: start; position: sticky; top: calc(50vh - 110px); margin-top: 96px; display: flex; flex-direction: column; align-items: center; padding: 12px 0; background: #1a1a1a; border: 1px solid var(--ligne); border-radius: 24px; z-index: 5; }
.points a { display: grid; place-items: center; width: 48px; height: 32px; }
.points a i { width: 8px; height: 8px; border-radius: 50%; background: #7a7a7a; transition: transform .2s, background-color .2s; }
.points a:hover i { background: #d9d9d9; }
.points a[aria-current="true"] i { background: var(--accent); transform: scale(1.5); }
.points :focus-visible { outline-offset: -4px; border-radius: 50%; }
.rangee { padding: 64px 0; border-top: 1px solid #1d1d1d; }
.produit-sections > .rangee:first-child { padding-top: 96px; border-top: 0; }
.rangee-int { align-items: center; }
.rangee-visuel { grid-column: 1 / span 6; }
.rangee-texte { grid-column: 7 / span 6; padding-left: 32px; }
.rangee.inverse .rangee-visuel { grid-column: 7 / span 6; grid-row: 1; }
.rangee.inverse .rangee-texte { grid-column: 1 / span 6; grid-row: 1; padding-left: 0; padding-right: 32px; }
.rangee-texte h2 { margin-bottom: 16px; }
.cadre-visuel { border-radius: var(--rayon-carte); overflow: hidden; background: #0b0b0b; border: 1px solid var(--ligne); }
.cadre-visuel img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.bande-cta { padding: var(--rang) 0; }
.bande-cta .carte-sombre { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bande-cta h2 { max-width: 20ch; }
@media (max-width: 1100px) { .produit-grille { display: block; } .points { display: none; } .produit-sections > .rangee:first-child { padding-top: 48px; } }

.section { padding: var(--rang) 0; }
.texte-courant { max-width: 760px; }
.texte-courant h2 { margin: 48px 0 16px; }
.texte-courant h2:first-child { margin-top: 0; }
.texte-courant h3 { font-size: var(--t-20); margin: 32px 0 8px; }
.texte-courant p, .texte-courant li { color: var(--gris-1); }
.texte-courant p + p { margin-top: 12px; }
.texte-courant ul { list-style: disc; padding-left: 24px; }
.texte-courant li + li { margin-top: 8px; }
.texte-courant a, .faq a { color: var(--accent); text-underline-offset: 3px; }
.a-completer { background: #fff3c4; color: #000; padding: 0 4px; border-radius: 2px; }
.encadre { margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--noir-3); }

.cartes-tarifs .grille { row-gap: var(--espace); }
.carte-tarif { grid-column: span 4; display: flex; flex-direction: column; min-height: 340px; padding: 24px; background: var(--noir-3); border: 2px solid var(--ligne); border-radius: var(--rayon-carte); }
.carte-tarif h3 { margin-bottom: 12px; }
.carte-tarif .prix { margin-top: 16px; font-weight: 700; }
.carte-tarif .bas { margin-top: auto; padding-top: 24px; }
.carte-tarif .bas::before { content: ""; display: block; height: 1px; background: var(--ligne); margin-bottom: 24px; }
@media (max-width: 960px) { .carte-tarif { grid-column: 1 / -1; min-height: 0; } }

.faq-groupe + .faq-groupe { margin-top: 64px; }
.faq-groupe h2 { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: var(--t-20); font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' d='M2 5.5l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' d='M2 5.5l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > div { padding: 0 0 24px; max-width: 70ch; color: var(--gris-1); }
.faq details > div p + p { margin-top: 12px; }

.formulaire { max-width: 640px; padding: 32px; background: var(--noir-3); border: 2px solid var(--ligne); border-radius: var(--rayon-carte); }
.champ { display: block; margin-top: 20px; }
.champ:first-child { margin-top: 0; }
.champ span { display: block; margin-bottom: 6px; font-weight: 700; font-size: var(--t-14); }
.champ input, .champ select, .champ textarea { width: 100%; padding: 10px 12px; font: inherit; color: #fff; background: #000; border: 1px solid #8c8c8c; border-radius: var(--rayon); }
.champ textarea { min-height: 120px; resize: vertical; }
.formulaire .bouton { margin-top: 28px; }
.formulaire .note { margin-top: 12px; font-size: var(--t-14); color: var(--gris-2); }
.resultat-mail { margin-top: 24px; padding: 16px; border-radius: var(--rayon); background: #000; border: 1px solid var(--ligne); font-size: var(--t-14); }
.resultat-mail pre { white-space: pre-wrap; font: inherit; margin: 12px 0; }
.contact-grille { align-items: start; row-gap: 40px; }
.contact-form { grid-column: 1 / span 7; }
.contact-infos { grid-column: 9 / span 4; }
.contact-infos h2 { font-size: var(--t-20); margin-bottom: 8px; }
.contact-infos p + h2 { margin-top: 32px; }
.contact-infos p { color: var(--gris-1); }
@media (max-width: 960px) { .contact-form, .contact-infos { grid-column: 1 / -1; } }

@media (max-width: 960px) {
  .produit-heros-texte, .produit-heros-visuel { grid-column: 1 / -1; }
  .produit-heros-int { min-height: 0; row-gap: 8px; }
  .rangee-visuel, .rangee-texte, .rangee.inverse .rangee-visuel, .rangee.inverse .rangee-texte { grid-column: 1 / -1; grid-row: auto; padding: 0; }
  .rangee-int { row-gap: 32px; }
}
@media (max-width: 700px) {
  .heros-texte h1, .produit-heros h1 { max-width: none; }
  .formulaire { padding: 20px; }
  .faq summary { font-size: var(--t-16); }
  .video-ctrl { right: 16px; top: 16px; }
  .real-texte { padding-top: 64px; }
  .realisations { min-height: 760px; }
  .realisations::after { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.85) 55%, rgba(0,0,0,.95) 100%); }
  .real-texte { margin-top: 200px; padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
#dlg-croquis { width: min(1100px, 96vw, calc((94svh - 120px) * 1.6)); overflow: auto; }
@media (max-width: 800px) { #dlg-croquis { width: 96vw; } }
