/* Sections de contenu reprises du site actuel : chiffres, services, E85, réalisations, marques, boutique, réseau pro, pied de page. */

.block { position: relative; padding: clamp(72px, 12vh, 150px) var(--gutter); background: var(--bg); }
.block--deep { background: var(--deep); }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(30px, 5vh, 60px); }
.block-head .display { font-size: clamp(30px, 4.2vw, 68px); }
.more {
  flex: none;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 8px;
}
.more:hover, .more:focus-visible { color: var(--yellow); }

/* ---------- Chiffres clés ---------- */

/* Bandeau des chiffres du réseau : une ligne qui défile. Sans script ou en mouvement réduit, les chiffres restent posés côte à côte. */
.ticker { display: flex; overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); }
.ticker-group { flex: none; display: flex; flex-wrap: wrap; justify-content: space-around; min-width: 100%; margin: 0; padding: 0; list-style: none; }
.ticker li { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 24px); padding: clamp(20px, 3.4vh, 36px) clamp(24px, 3vw, 56px); }
.ticker b { font-weight: 900; font-style: italic; font-size: clamp(36px, 4.2vw, 68px); line-height: 1; color: var(--yellow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticker p { margin: 0; }
.ticker strong { display: block; font-weight: 900; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.ticker span { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); white-space: nowrap; }
/* La note Google : cinq étoiles au-dessus du nombre d'avis, et un lien vers la fiche. */
.ticker .stars { display: flex; gap: 2px; margin: 0 0 6px; }
.ticker .stars svg { width: 15px; height: 15px; fill: var(--yellow); }
.ticker a { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); white-space: nowrap; }
.ticker a:hover, .ticker a:focus-visible { color: var(--yellow); }
/* Une barre jaune penchée sépare les chiffres, dans l'esprit des boutons du site. */
.ticker li::after { content: ""; flex: none; width: 3px; height: 44px; margin-left: clamp(24px, 3vw, 56px); background: var(--yellow); transform: skewX(-12deg); opacity: 0.7; }
.ticker.is-rolling .ticker-group { flex-wrap: nowrap; animation: ticker 38s linear infinite; }
.ticker.is-rolling li { padding-right: 0; }
.ticker:hover .ticker-group, .ticker.is-away .ticker-group { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
/* Les bords du bandeau s'estompent : les chiffres entrent et sortent sans coupure nette. */
.ticker.is-rolling { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0; background: var(--line); border-block: 1px solid var(--line); }
.stats div { padding: clamp(28px, 5vh, 56px) var(--gutter); background: var(--bg); }
.stats b { display: block; font-weight: 900; font-style: italic; font-size: clamp(38px, 5vw, 80px); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stats strong { display: block; margin-top: 10px; font-weight: 900; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); }

/* ---------- Services ---------- */

.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.service { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(320px, 46vh, 460px); overflow: hidden; background: var(--deep); }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 0.4s, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.service::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 13, 15, 0.96) 18%, rgba(14, 13, 15, 0) 70%); }
.service:hover img { opacity: 0.8; transform: scale(1.05); }
.service-body { position: relative; z-index: 1; padding: 20px 18px 22px; }
.service i { display: block; font-style: italic; font-weight: 900; font-size: 13px; letter-spacing: 0.14em; color: var(--yellow); }
.service h3 { margin: 8px 0 8px; font-weight: 900; font-style: italic; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.08; text-transform: uppercase; }
.service p { margin: 0; font-size: 14px; color: var(--mute); }

/* ---------- Avis Google : la note en très grand à gauche, un avis à la fois en grand à droite ---------- */

.avis { display: grid; grid-template-columns: minmax(240px, 0.7fr) minmax(0, 2fr); gap: clamp(30px, 6vw, 120px); align-items: center; }
.avis-score .kicker { margin: 0; }
.avis-score b { display: block; margin: 0.06em 0 0 -0.04em; font-weight: 900; font-style: italic; font-size: clamp(96px, 13vw, 250px); line-height: 0.9; letter-spacing: -0.04em; color: var(--yellow); }
.avis .stars { display: flex; gap: 5px; margin-top: 14px; }
.avis .stars svg { width: clamp(20px, 1.7vw, 30px); height: auto; aspect-ratio: 1; fill: var(--yellow); }
.avis-score strong { display: block; margin-top: 14px; font-weight: 900; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.avis-score .more { display: inline-block; margin-top: 26px; }

.avis-stage { position: relative; padding-left: clamp(26px, 3.4vw, 64px); border-left: 2px solid var(--yellow); }
/* Le grand guillemet, en filigrane derrière le texte. */
.avis-stage::before { content: "«"; position: absolute; left: clamp(18px, 2.6vw, 48px); top: -0.42em; font-weight: 900; font-style: italic; font-size: clamp(140px, 17vw, 320px); line-height: 1; color: rgba(255, 237, 0, 0.08); pointer-events: none; }
.reviews { position: relative; display: grid; gap: clamp(30px, 5vh, 56px); margin: 0; padding: 0; list-style: none; }
.reviews blockquote { margin: 0; max-width: 34em; font-weight: 600; font-size: clamp(20px, 2.1vw, 38px); line-height: 1.4; letter-spacing: -0.01em; }
.reviews li.is-long blockquote { max-width: 46em; font-size: clamp(16px, 1.3vw, 23px); line-height: 1.5; letter-spacing: 0; }
.reviews blockquote p { margin: 0; text-wrap: pretty; }
.reviews blockquote p + p { margin-top: 0.7em; }
.reviews footer { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; margin-top: clamp(20px, 3vh, 34px); }
.reviews footer b { grid-row: span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--bg); font-weight: 900; font-style: italic; font-size: 17px; }
.reviews cite { font-style: normal; font-weight: 900; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.reviews footer span { font-size: 13px; color: var(--mute); }

/* Avec le script : les avis sont empilés au même endroit, un seul est visible, et les tirets du bas donnent le rythme. */
.avis.is-rolling .reviews { gap: 0; align-items: center; }
.avis.is-rolling .reviews li { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s, visibility 0s 0.5s; }
.avis.is-rolling .reviews li.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s 0.15s, transform 0.5s 0.15s; }
.avis-nav { display: flex; gap: 8px; margin-top: clamp(26px, 4vh, 44px); }
.avis-nav button { position: relative; flex: 0 1 64px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }
.avis-nav button::before, .avis-nav button::after { content: ""; position: absolute; left: 0; top: 12px; height: 3px; transform: skewX(-20deg); }
.avis-nav button::before { right: 0; background: var(--line); transition: background 0.2s; }
.avis-nav button::after { width: 0; background: var(--yellow); }
.avis-nav button:hover::before, .avis-nav button:focus-visible::before { background: rgba(255, 255, 255, 0.4); }
/* Le tiret de l'avis affiché se remplit ; quand il est plein, on passe au suivant. Au survol, tout s'arrête. */
.avis-nav button.is-on::after { animation: avis-fill var(--read, 8s) linear forwards; }
.avis:hover .avis-nav button.is-on::after, .avis:focus-within .avis-nav button.is-on::after, .avis.is-away .avis-nav button.is-on::after { animation-play-state: paused; }
@keyframes avis-fill { from { width: 0; } to { width: 100%; } }

@media (max-width: 900px) {
  .avis { grid-template-columns: 1fr; }
  .avis-stage { padding-left: 20px; }
}

/* ---------- E85 ---------- */

.e85 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.e85 figure { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; }
.e85 figure img { width: 100%; height: 100%; object-fit: cover; }
.e85 .display { font-size: clamp(30px, 4vw, 64px); }

.sim { margin-top: 30px; padding: clamp(18px, 2.4vw, 30px); background: var(--deep); border: 1px solid var(--line); }
.sim-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.sim label { display: grid; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.sim input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-variant-numeric: tabular-nums; }
.sim input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
.sim-out { margin: 22px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.sim-out b { font-weight: 900; font-style: italic; font-size: clamp(34px, 4vw, 60px); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.sim-out span { font-size: 14px; color: var(--mute); }
.sim-note { margin: 12px 0 0; font-size: 12px; color: var(--mute); }

/* ---------- Réalisations ---------- */

.builds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.build figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--deep); }
.build img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.build:hover img { transform: scale(1.05); }
.build-info { padding-top: 16px; }
.build-tag { display: inline-block; padding: 8px 14px; background: var(--yellow); color: var(--bg); font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; transform: skewX(-8deg); }
.build h3 { margin: 12px 0 4px; font-weight: 900; font-style: italic; font-size: clamp(19px, 1.7vw, 26px); text-transform: uppercase; }
.build p { margin: 0; font-size: 14px; color: var(--mute); }

/* ---------- Boutique ---------- */

.shop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); }
.shop figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: #fff; }
.shop img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.shop li:hover img { transform: scale(1.06); }
.shop h3 { margin: 12px 0 0; font-weight: 900; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Horsepower TV et réseau pro ---------- */

.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.tv { position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 52vh, 520px); overflow: hidden; color: inherit; text-decoration: none; background: var(--deep); }
.tv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.4s, transform 0.7s; }
.tv:hover img { opacity: 0.85; transform: scale(1.04); }
.tv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 13, 15, 0.95), rgba(14, 13, 15, 0) 65%); }
.tv-body { position: relative; z-index: 1; padding: clamp(20px, 3vw, 36px); }
.tv-play { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; background: var(--yellow); color: var(--bg); font-size: 22px; padding-left: 4px; }
.tv .display { font-size: clamp(26px, 3vw, 46px); }

.pro { display: grid; gap: clamp(8px, 1vw, 14px); }
.pro a { display: grid; align-content: center; gap: 6px; padding: clamp(18px, 2.2vw, 30px); border: 1px solid var(--line); background: var(--deep); color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.pro a:hover, .pro a:focus-visible { border-color: var(--yellow); transform: translateX(6px); }
.pro b { font-weight: 900; font-style: italic; font-size: clamp(18px, 1.6vw, 24px); text-transform: uppercase; }
.pro span { font-size: 14px; color: var(--mute); }

/* ---------- Pied de page ---------- */

.site-foot { position: relative; z-index: 1; padding: clamp(50px, 8vh, 90px) var(--gutter) 30px; background: var(--deep); border-top: 1px solid var(--line); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 60px); }
.site-foot img { height: 34px; width: auto; margin-bottom: 16px; }
.site-foot p { margin: 0 0 6px; color: var(--mute); }
.site-foot h2 { margin: 0 0 14px; font-weight: 900; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--yellow); }
/* Réseaux sociaux : le logo dans une pastille penchée, comme les boutons du site. */
.site-foot .foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.foot-social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); font-weight: 900; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; transform: skewX(-8deg); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.foot-social a > * { transform: skewX(8deg); }
.foot-social svg { width: 20px; height: 20px; margin: 0; fill: currentColor; }
.site-foot .foot-social a:hover, .site-foot .foot-social a:focus-visible { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }
.site-foot .foot-brands { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: clamp(36px, 6vh, 60px); padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); }
.foot-legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; color: var(--mute); }

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 1200px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .block-head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 240px; }
  .e85, .duo { grid-template-columns: 1fr; }
  .builds { grid-template-columns: 1fr; }
  .build figure { aspect-ratio: 4 / 3; }
  .shop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .service img, .build img, .shop img, .tv img, .pro a { transition: none; }
}

/* ---------- Configurateur ---------- */

.config-fields { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; margin-top: 26px; }
.config-fields label { display: grid; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.config-fields select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: rgba(14, 13, 15, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.config-fields select:focus-visible { outline: 2px solid var(--yellow); outline-offset: 1px; }
/* Avec le script, les deux listes du navigateur laissent la place à des menus aux couleurs du site (js/dropdown.js). */
.config-fields label.is-dressed { position: relative; }
.config-fields label.is-dressed select { display: none; }
.config-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); background: rgba(14, 13, 15, 0.85); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; text-align: left; cursor: pointer; transition: border-color 0.2s; }
.config-pick > span { display: flex; align-items: center; gap: 12px; min-width: 0; }
.config-pick b, .config-list b { font-weight: 800; white-space: nowrap; }
.config-pick span span, .config-list span { font-size: 13px; font-weight: 600; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.config-pick::after { content: ""; flex: none; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(45deg); transition: transform 0.2s, margin 0.2s; }
.config-pick[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
.config-pick:hover, .config-pick:focus-visible, .config-pick[aria-expanded="true"] { border-color: var(--yellow); outline: none; }
.config-list { position: absolute; left: 0; top: calc(100% + 6px); z-index: 6; min-width: 100%; margin: 0; padding: 6px; list-style: none; background: #121114; border: 1px solid var(--line); border-top: 2px solid var(--yellow); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6); color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; animation: centre-list 0.16s ease-out; }
.config-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-left: 2px solid transparent; cursor: pointer; }
.config-list li.is-active { background: rgba(255, 237, 0, 0.08); }
.config-list li.is-active b { color: var(--yellow); }
.config-list li[aria-selected="true"] { border-left-color: var(--yellow); }
/* Les marques, sur deux colonnes : la liste reste courte et tient à l'écran sans défiler. */
.config-list--brands { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); }
.config-list[hidden] { display: none; }
/* Le logo d'une marque : son tracé sert de pochoir sur un aplat blanc (jaune sur la ligne survolée). */
.brand-logo { flex: none; width: 24px; height: 24px; background: #fff; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; font-style: normal; }
.config-list li.is-active .brand-logo { background: var(--yellow); }
.brand-logo--letters { display: grid; place-items: center; background: none; -webkit-mask: none; mask: none; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; font-size: 11px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; color: #fff; }
.config-list li.is-active .brand-logo--letters { background: none; border-color: var(--yellow); color: var(--yellow); }
.config .stages { margin-top: 16px; }
.config .stages button:disabled { opacity: 0.3; cursor: not-allowed; }
.config .btn { margin-top: 26px; }

/* Le second film occupe tout l'écran : un voile en bas garde les titres lisibles. */
.engine .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 13, 15, 0.9) 0%, rgba(14, 13, 15, 0) 42%); pointer-events: none; }
.engine .chapter { z-index: 1; }

@media (max-width: 900px) {
  /* Sur téléphone, le graphe occupe le haut de l'écran et le panneau le bas : le panneau reste compact (marque et
     modèle côte à côte, menus plus bas) pour ne pas remonter sur le graphe. */
  .config-fields { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 8px; margin-top: 10px; }
  .config-fields label { gap: 4px; }
  .config-pick { min-height: 42px; padding: 6px 10px; gap: 8px; font-size: 13px; }
  .config-pick > span { gap: 8px; }
  .config-pick span span { display: none; } /* le détail du moteur reste dans la liste ouverte */
  .config .brand-logo { width: 20px; height: 20px; }
  .config-list { font-size: 14px; }
  .config-list--brands { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 2 * var(--gutter)); }
  .config-fields label:nth-child(2) .config-list { left: auto; right: 0; min-width: min(300px, calc(100vw - 2 * var(--gutter))); }
  .config .stages { margin-top: 10px; }
  .config .btn { margin-top: 10px; }
  .config .display { font-size: 24px; }
  .config .kicker { margin-bottom: 4px; }
}

/* ---------- Configurateur : résultat et étiquettes du graphe ---------- */

.config .display { font-size: clamp(30px, 3.4vw, 60px); }
.gains { margin: 28px 0 0; display: grid; gap: 14px; }
.gains div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.gains dt { font-weight: 900; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.gains dd { margin: 0; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gains .was { font-weight: 600; font-size: clamp(16px, 1.3vw, 20px); color: var(--mute); }
.gains i { font-style: normal; color: var(--mute); }
.gains b { font-weight: 900; font-style: italic; font-size: clamp(30px, 2.8vw, 46px); line-height: 1; color: var(--yellow); }
.gains .unit { font-weight: 900; font-style: italic; font-size: clamp(16px, 1.3vw, 20px); }
.gains em { margin-left: auto; font-style: normal; font-weight: 900; font-size: 13px; letter-spacing: 0.06em; color: var(--ink); }
.config-source { margin: 14px 0 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.config-source::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }

.chart-labels { position: absolute; inset: 0; display: none; pointer-events: none; }
html.gl-on .chart-labels { display: block; }
.chart-label, .chart-tick { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; will-change: transform; }
.chart-label { font-weight: 900; font-style: italic; font-size: clamp(15px, 1.2vw, 20px); line-height: 1; }
.chart-label--power { color: var(--yellow); }
.chart-label--torque { color: var(--ink); }
.chart-label--stock { font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: 0.04em; color: var(--mute); }
.chart-tick { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .gains { margin-top: 12px; gap: 8px; }
  .gains div { padding-top: 8px; grid-template-columns: 96px 1fr; }
  .gains dd { gap: 7px; }
  .config-source { margin-top: 8px; }
  .chart-label--stock, .chart-tick { display: none; }
}

/* ---------- Ouverture en cercle de la section E85, à la fin du film moteur ---------- */

.iris-anchor, .iris-tail, .iris-ring { display: none; }
html.iris-on .engine { height: 500vh; }
/* La section remonte sous le film et reste épinglée pendant que le cercle s'ouvre. */
/* overflow-x : la photo arrive agrandie ; sans cette coupe, elle élargissait toute la page sur téléphone. */
html.iris-on .iris { position: relative; z-index: 2; margin-top: -200vh; overflow-x: clip; }
/* La section apparaît à travers un masque rond aux bords très fondus (posé par le script) : pas de découpe nette. */
html.iris-on .iris .e85 { position: sticky; top: 0; min-height: 100vh; align-content: center; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 0); mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 0); }
/* Pendant l'ouverture, la photo vient sans ses deux anneaux : ils n'apparaissent qu'une fois la section en place. */
html.iris-on .iris .e85 figure::before, html.iris-on .iris .e85 figure::after { opacity: var(--side, 1); }
html.iris-on .iris-tail { display: block; height: 100vh; }
html.iris-on .iris-anchor { display: block; position: absolute; top: 100vh; }
/* Là où la section se fond dans le film : une lueur orangée, de la couleur du métal chaud du turbo. Aucun trait. */
html.iris-on .iris-ring { display: block; position: fixed; left: 0; top: 0; z-index: 3; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 120, 20, 0) 46%, rgba(255, 170, 70, 0.42) 70%, rgba(255, 110, 20, 0.3) 82%, rgba(255, 90, 10, 0) 100%); mix-blend-mode: screen; opacity: 0; pointer-events: none; }

/* ---------- Section E85 : elle sort d'un cercle, elle en garde la forme ---------- */

/* Le contenu ne s'étale plus d'un bord à l'autre : il reste groupé au centre. */
.e85 { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); padding-inline: max(var(--gutter), calc((100% - 1380px) / 2)); }
/* La photo reprend le rond du turbo, avec deux anneaux autour. */
.e85 figure { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; overflow: visible; }
.e85 figure img { border-radius: 50%; object-position: 62% 50%; }
.e85 figure::before, .e85 figure::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.e85 figure::before { inset: -16px; border: 1px solid var(--yellow); }
.e85 figure::after { inset: -46px; border: 1px solid var(--line); }
/* Le simulateur n'est plus une boîte : une ligne de séparation, des champs arrondis. */
.sim { padding: 26px 0 0; background: none; border: 0; border-top: 1px solid var(--line); }
.sim-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.sim input { padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); }
.sim input:focus-visible { outline-offset: 2px; }

@media (max-width: 1200px) {
  .sim-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .e85 { grid-template-columns: 1fr; }
  .e85 figure { width: min(64vw, 300px); margin-block: 30px 10px; }
  .e85 figure::after { inset: -30px; }
}

/* ---------- Réseau, sur ordinateur : la liste ne garde que les noms, le détail est dans la carte posée sur la France ---------- */

@media (min-width: 901px) {
  html.gl-on .centres { counter-reset: centre; margin-top: 30px; display: grid; gap: 2px; width: max-content; }
  html.gl-on .centres li { counter-increment: centre; display: flex; align-items: baseline; gap: 16px; padding: 7px 0; border: 0; opacity: 0.45; }
  html.gl-on .centres li::before { content: "0" counter(centre); min-width: 22px; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; color: var(--mute); font-variant-numeric: tabular-nums; }
  html.gl-on .centres b { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.1; transition: color 0.3s; }
  html.gl-on .centres span, html.gl-on .centres a { display: none; }
  html.gl-on .centres li:hover, html.gl-on .centres li:focus-visible { opacity: 0.9; }
  html.gl-on .centres li.is-on { opacity: 1; }
  html.gl-on .centres li.is-on b, html.gl-on .centres li.is-on::before { color: var(--yellow); }
}

/* ---------- Boutique : produits en volume, dessinés par js/shop3d.js (la photo reste si le 3D n'est pas disponible) ---------- */

.shop figure { position: relative; background: radial-gradient(circle at 50% 36%, #4a494e 0%, #2c2b2f 55%, #1c1b1e 100%); }
/* L'ombre du produit, posée sur le fond de la vignette. */
.shop figure::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 7%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); }
.shop img { position: relative; z-index: 1; object-fit: contain; padding: 8%; }
.shop li:hover img { transform: none; }
.shop canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.shop figure.is-3d img { visibility: hidden; }
/* Tant que la 3D se prépare, la photo reste cachée (classe posée dès l'en-tête de la page) ; un produit dont l'objet
   n'a pas pu être fabriqué retrouve sa photo. */
html.shop-3d .shop figure:not(.is-photo) img { visibility: hidden; }
.shop li { cursor: grab; }

/* ---------- Section E85 : la photo ronde est posée au centre, à l'emplacement du turbo ---------- */

/* Trois colonnes : le texte à gauche, la photo au centre (là où le cercle s'ouvre), le simulateur à droite. */
@media (min-width: 1101px) {
  .e85 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(72px, 6vw, 120px); padding-inline: max(var(--gutter), calc((100% - 1760px) / 2)); }
  .e85 .e85-intro { grid-column: 1; grid-row: 1; justify-self: end; max-width: 460px; }
  .e85 figure { grid-column: 2; grid-row: 1; width: clamp(280px, min(27vw, 46vh), 520px); transform: translate(var(--hub-dx, 0px), var(--hub-dy, 0px)) scale(var(--photo, 1)); }
  /* Pendant l'ouverture du cercle, le texte et le simulateur partent du centre et rejoignent leurs côtés. */
  .e85 .e85-intro { opacity: var(--side, 1); transform: translateX(calc((1 - var(--side, 1)) * 44px)); }
  .e85 .sim { opacity: var(--side, 1); transform: translateX(calc((1 - var(--side, 1)) * -44px)); }
  .e85 .sim { grid-column: 3; grid-row: 1; margin-top: 0; max-width: 460px; }
  .e85 .display { font-size: clamp(28px, 2.7vw, 54px); }
  .e85 .sim-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Écrans moyens : la photo reste centrée en haut, le texte et le simulateur passent dessous. */
@media (min-width: 901px) and (max-width: 1100px) {
  .e85 { grid-template-columns: 1fr 1fr; }
  .e85 figure { grid-column: 1 / -1; width: min(40vw, 340px); margin-block: 20px 30px; }
}

/* ---------- Réalisations : une voiture à la fois (activé par le script ; sans lui, la grille de trois reste) ---------- */

.build-gain { display: flex; align-items: baseline; gap: 12px; margin: 0 0 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.build-gain span { font-weight: 600; font-size: clamp(18px, 1.6vw, 26px); color: var(--mute); }
.build-gain i { font-style: normal; color: var(--mute); }
.build-gain b { font-weight: 900; font-style: italic; font-size: clamp(34px, 3.2vw, 56px); line-height: 1; color: var(--yellow); }
.build-gain em { font-style: italic; font-weight: 900; font-size: clamp(18px, 1.6vw, 26px); color: var(--ink); }
.build-nav { display: none; }

#realisations.is-show { padding-inline: max(var(--gutter), calc((100% - 1380px) / 2)); }
.is-show .builds { display: grid; grid-template-columns: 1fr; gap: 0; }
.is-show .build {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s, visibility 0s 0.45s;
}
.is-show .build.is-on { opacity: 1; visibility: visible; transition: opacity 0.45s 0.1s, visibility 0s; }
/* La photo est affichée près de sa taille réelle : plus nette qu'étirée sur un tiers d'écran. */
.is-show .build figure { width: min(42vw, 460px, 46vh); aspect-ratio: 3 / 4; }
.is-show .build img { transform: scale(1.06); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.is-show .build.is-on img { transform: none; }
.is-show .build-info { padding-top: 0; }
.is-show .build h3 { margin: 18px 0 14px; font-size: clamp(30px, 3.6vw, 64px); line-height: 1.02; }
.is-show .build-info > p:last-child { max-width: 38ch; font-size: clamp(15px, 1.1vw, 18px); }

.is-show .build-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 24px); margin-top: clamp(28px, 5vh, 56px); }
.build-nav button {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0 6px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--mute);
  font: inherit;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(14px, 1.2vw, 19px);
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.build-nav button i { font-style: normal; font-size: 11px; letter-spacing: 0.12em; }
.build-nav button:hover, .build-nav button:focus-visible { color: var(--ink); outline: none; }
.build-nav button:focus-visible { border-top-color: var(--ink); }
.build-nav button[aria-selected="true"] { color: var(--yellow); border-top: 2px solid var(--yellow); padding-top: 15px; }

@media (max-width: 900px) {
  .is-show .build { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .is-show .build figure { width: min(100%, 44vh); }
  .build-nav button { flex-direction: column; gap: 4px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-show .build, .is-show .build.is-on, .is-show .build img { transition: none; }
  .is-show .build img { transform: none; }
}

/* ---------- Liens des cartes : toute la carte est cliquable ---------- */

.service h3 a { color: inherit; text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.service:has(a:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }
.is-show .build-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- Section E85 sur téléphone et tablette : la photo se cale aussi sur le moyeu du turbo ---------- */

@media (max-width: 1100px) {
  html.iris-on .iris .e85 { align-content: start; }
  html.iris-on .iris .e85 figure { margin-top: var(--hub-push, 30px); transform: translateX(var(--hub-dx, 0px)) scale(var(--photo, 1)); }
  /* Le texte et le simulateur n'apparaissent qu'une fois le cercle assez ouvert pour ne plus les couper. */
  html.iris-on .iris .e85 .e85-intro, html.iris-on .iris .e85 .sim { opacity: var(--side, 1); }
}

/* ---------- Chiffre géant du plan fixe : une enseigne sur le mur du fond, derrière la voiture ---------- */

/* Le masque reproduit le mur du fond du film (assets/wall-mask.png, voir scripts/wall_mask.py) : la voiture cache
   ce qui passe derrière elle. Le script donne la taille et la position exactes du film à l'écran.
   Le chiffre est posé sur le pan de mur à gauche, sa base glissée derrière le toit.
   Sur téléphone ce pan de mur est hors cadre : le chiffre y reste affiché par-dessus, au centre. */
@media (min-width: 900px) {
  html.gl-on .bigcount {
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(50vh - var(--film-h, 56.25vw) * 0.333) 0 0 max(var(--gutter), calc(50% - var(--film-w, 100vw) * 0.46));
    font-size: calc(var(--film-w, 100vw) * 0.08);
    -webkit-mask-image: url("../assets/wall-mask.png");
    mask-image: url("../assets/wall-mask.png");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: var(--film-w, 100vw) var(--film-h, 56.25vw);
    mask-size: var(--film-w, 100vw) var(--film-h, 56.25vw);
    /* --film-y : la voiture s'abaisse à pleine charge, le masque descend avec elle. */
    -webkit-mask-position: 50% calc(50% + var(--film-y, 0px));
    mask-position: 50% calc(50% + var(--film-y, 0px));
  }
  /* L'unité se place en haut à droite du chiffre, sur le mur, au lieu de disparaître derrière le toit. */
  html.gl-on .bigcount-zoom { align-items: flex-start; transform-origin: 0 86%; }
  /* La jauge au-dessus du chiffre, calée sur le film : des segments épais, comme un compte-tours. Les segments éteints
     sont là d'emblée ; ils s'allument un à un, de gauche à droite, pendant que le chiffre monte (--draw, donné par le script). */
  html.gl-on .bigcount-lead {
    display: block; position: absolute; overflow: visible;
    /* La montée est presque aussi penchée que les chiffres, et placée à leur gauche : elle les longe sans les couper. */
    left: calc(max(var(--gutter), 50% - var(--film-w, 100vw) * 0.46) - var(--film-w, 100vw) * 0.014); top: calc(50vh - var(--film-h, 56.25vw) * 0.322);
    width: calc(var(--film-w, 100vw) * 0.23); height: calc(var(--film-h, 56.25vw) * 0.112);
    fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: butt; stroke-linejoin: round; stroke-dasharray: 6 6; /* segments courts, bouts droits */
  }
  html.gl-on .bigcount-track { stroke: rgba(255, 255, 255, 0.2); }
  /* Le halo est sur l'enveloppe et la découpe sur le dessin : appliqué après la découpe, le halo n'est pas tranché net
     là où le trait allumé s'arrête, il s'y éteint en douceur. */
  html.gl-on .bigcount-fill { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.5)); }
  html.gl-on .bigcount-fill svg {
    position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: none;
    clip-path: inset(-30px calc((1 - var(--draw, 1)) * (100% + 40px) - 40px) -60px -30px);
  }
  /* L'unité se pose sur la ligne de base, juste après la dernière case de chiffre. */
  html.gl-on .bigcount-zoom > span { margin: 4.5em 0 0 -0.9em; }
}

/* Téléphone et tablette debout : le mur où se pose le chiffre sur grand écran est hors cadre. Le chiffre se range
   donc en haut à gauche, sous l'en-tête, au lieu de flotter au milieu de la voiture. */
@media (max-width: 899px) {
  .bigcount { align-items: flex-start; justify-content: flex-start; padding: clamp(72px, 9.2vh, 92px) var(--gutter) 0; font-size: clamp(60px, 17vw, 104px); }
  .bigcount-zoom { transform-origin: 0 50%; }
}

/* Le nombre et son unité grossissent ensemble ; leur conteneur (et son masque) reste immobile. */
.bigcount-zoom { display: flex; align-items: center; gap: 0.06em; transform: scale(var(--zoom, 1)); }
