/* Accueil TCS — « La pyramide de la prévention » */
.ac-hero { position: relative; overflow: hidden; background: radial-gradient(90% 120% at 85% 30%, #1d3a5c 0%, var(--nuit) 55%, #0a1828 100%); color: #d6dfe9; }
.ac-hero::before { content: ""; position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(60deg, #fff 1px, transparent 1px), linear-gradient(-60deg, #fff 1px, transparent 1px); background-size: 46px 80px; }
.ac-hero__grille { position: relative; display: grid; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 2rem + 5vw, 6.5rem); }
@media (min-width: 64em) { .ac-hero__grille { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; } }
.ac-hero h1 { margin: 0 0 1.4rem; color: #fff; font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.7rem); line-height: 1.08; letter-spacing: -.025em; }
.ac-surligne { position: relative; display: inline-block; padding: 0 .18em; color: #fff; z-index: 0; }
.ac-surligne::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .42em; background: #c8432b; z-index: -1; transform-origin: left; animation: ac-trait 1s .5s cubic-bezier(.2,.7,.2,1) both; }
.ac-surligne--vert::after { background: var(--vert); animation-delay: .9s; }
@keyframes ac-trait { from { transform: scaleX(0); } }
.ac-hero__chapo { max-width: 38rem; margin: 0 0 2rem; font-size: 1.12rem; line-height: 1.65; }

.ac-pyramide { margin: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
.ac-pyramide svg { width: 100%; height: auto; display: block; overflow: visible; }
.ac-etage { transition: opacity .3s, filter .3s; transform-box: fill-box; transform-origin: bottom; animation: ac-monte .7s cubic-bezier(.2,.7,.2,1) both; }
.ac-etage--4 { fill: var(--vert); animation-delay: .1s; }
.ac-etage--3 { fill: var(--jaune); animation-delay: .35s; }
.ac-etage--2 { fill: var(--orange); animation-delay: .6s; }
.ac-etage--1 { fill: #c8432b; animation-delay: .85s; }
@keyframes ac-monte { from { transform: scaleY(0); opacity: 0; } }
.ac-pyramide__chiffres text { font-family: var(--titre); font-weight: 700; font-size: 34px; fill: #fff; text-anchor: middle; pointer-events: none; animation: ac-apparait .6s 1.2s both; }
.ac-pyramide__chiffres text:nth-child(3) { fill: var(--nuit); }
@keyframes ac-apparait { from { opacity: 0; } }
.ac-pyramide__legende { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ac-pyramide__legende li { padding: .55rem .75rem; border-left: 3px solid rgba(255,255,255,.2); font-size: .92rem; line-height: 1.35; color: #c6d1dd; cursor: default; transition: .25s; }
.ac-pyramide__legende b { display: block; font-family: var(--titre); font-size: 1.35rem; color: #fff; line-height: 1; }
.ac-pyramide__legende em { display: block; margin-top: .3rem; font-style: normal; font-weight: 700; color: var(--jaune); font-size: .82rem; letter-spacing: .04em; }
.ac-pyramide__legende li[data-etage="1"] { border-color: #c8432b; }
.ac-pyramide__legende li[data-etage="2"] { border-color: var(--orange); }
.ac-pyramide__legende li[data-etage="3"] { border-color: var(--jaune); }
.ac-pyramide__legende li[data-etage="4"] { border-color: var(--vert); background: rgba(47,125,91,.18); }
.ac-pyramide figcaption { grid-column: 1 / -1; font-size: .78rem; color: #8fa0b3; }
.ac-pyramide.est-survole .ac-etage { opacity: .25; }
.ac-pyramide.est-survole .ac-etage.est-actif { opacity: 1; filter: drop-shadow(0 0 12px rgba(255,255,255,.35)); }
.ac-pyramide__legende li.est-actif { background: rgba(255,255,255,.08); color: #fff; }
@media (max-width: 30em) { .ac-pyramide { grid-template-columns: 1fr; } }

/* Ruban de chantier */
.ac-ruban { overflow: hidden; background: repeating-linear-gradient(-45deg, #f2b632 0 22px, #10233a 22px 44px); padding: .55rem 0; }
.ac-ruban__piste { display: flex; width: max-content; gap: 1.5rem; align-items: center; padding: .45rem 1.5rem; background: #f2b632; animation: ac-defile 40s linear infinite; }
.ac-ruban span { font-family: var(--titre); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--nuit); white-space: nowrap; }
.ac-ruban i { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--nuit); }
@keyframes ac-defile { to { transform: translateX(-50%); } }

/* Offres en signalétique */
.ac-panneaux { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-bottom: 1.5rem; }
.ac-panneau { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.4rem 1.3rem 1.2rem; border: 2px solid var(--ligne); border-radius: var(--rayon); background: #fff; text-align: left; font: inherit; color: var(--encre); cursor: pointer; transition: .25s; }
.ac-panneau:hover { border-color: var(--orange); transform: translateY(-3px); }
.ac-panneau[aria-selected="true"] { border-color: var(--nuit); background: var(--nuit); color: #d6dfe9; box-shadow: 0 1.5rem 2.5rem -1.5rem rgb(16 35 58 / .7); }
.ac-panneau b { font-family: var(--titre); font-size: 1.3rem; color: var(--nuit); }
.ac-panneau[aria-selected="true"] b { color: #fff; }
.ac-panneau small { font-size: .9rem; line-height: 1.45; color: var(--gris); }
.ac-panneau[aria-selected="true"] small { color: #b9c6d4; }
.ac-panneau em { margin-top: .3rem; font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-fonce); }
.ac-panneau[aria-selected="true"] em { color: var(--jaune); }
.ac-signe { position: relative; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin-bottom: .5rem; font-family: var(--titre); font-weight: 700; font-size: 1.15rem; }
.ac-signe--avertissement { background: #10233a; clip-path: polygon(50% 0, 100% 92%, 0 92%); }
.ac-signe--avertissement::before { content: ""; position: absolute; inset: 5px 6px 8px; background: var(--jaune); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ac-signe--avertissement span { position: relative; margin-top: .9rem; color: var(--nuit); }
.ac-signe--obligation { border-radius: 50%; background: #1f5fa8; color: #fff; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px #1f5fa8; }
.ac-signe--secours { border-radius: 6px; background: var(--vert); color: #fff; }
.ac-signe--secours::before, .ac-signe--secours::after { content: ""; position: absolute; background: rgba(255,255,255,.25); }
.ac-signe--secours::before { width: 60%; height: 18%; }
.ac-signe--secours::after { width: 18%; height: 60%; }
.ac-signe--secours span { position: relative; }
.ac-signe--progres { background: var(--orange); color: #fff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ac-liste { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.ac-liste[hidden] { display: none; }
.ac-offre { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-radius: var(--rayon); background: var(--sable); color: var(--encre); text-decoration: none; transition: .2s; animation: ac-glisse .45s calc(var(--i) * 60ms) both; }
.ac-offre:hover { background: #fff; box-shadow: 0 0 0 2px var(--orange); }
.ac-offre__num { font-family: var(--titre); font-weight: 700; color: var(--orange-fonce); }
.ac-offre__titre { flex: 1; font-weight: 600; line-height: 1.35; color: var(--nuit); }
.ac-offre__fleche { color: var(--orange); font-weight: 700; transition: transform .2s; }
.ac-offre:hover .ac-offre__fleche { transform: translateX(4px); }
@keyframes ac-glisse { from { opacity: 0; transform: translateY(8px); } }

/* Tableau de sécurité */
.ac-tableau { padding-block: 0 clamp(3rem, 2rem + 3vw, 5rem); }
.ac-panneau-chantier { position: relative; padding: 2.2rem clamp(1.25rem, 1rem + 2vw, 2.5rem) 2rem; border-radius: 18px; background: #2f7d5b; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 9px #2f7d5b, 0 2rem 3rem -2rem rgb(16 35 58 / .6); color: #fff; }
.ac-panneau-chantier::before, .ac-panneau-chantier::after { content: ""; position: absolute; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #d9e4dd; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.ac-panneau-chantier::before { left: 16px; }
.ac-panneau-chantier::after { right: 16px; }
.ac-panneau-chantier__titre { margin: 0 0 1.4rem; text-align: center; font-family: var(--titre); font-weight: 700; text-transform: uppercase; letter-spacing: .2em; font-size: .95rem; }
.ac-compteurs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.ac-compteurs > div { text-align: center; }
.ac-afficheur { display: inline-block; min-width: 4ch; padding: .35rem .8rem; border-radius: 8px; background: #fff; color: var(--nuit); font-family: var(--titre); font-weight: 700; font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); line-height: 1.1; font-variant-numeric: tabular-nums; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.ac-compteurs small { display: block; margin-top: .6rem; font-size: .92rem; color: #e3efe8; }

/* Engagement */
.ac-engagement__grille { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60em) { .ac-engagement__grille { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.ac-engagement__texte { font-size: 1.08rem; color: var(--gris); }
.ac-casque { position: relative; padding: 2.4rem 2.2rem 2rem; border-radius: 28px 28px 14px 14px; background: linear-gradient(160deg, #1b3555, var(--nuit)); color: #d6dfe9; box-shadow: 0 2rem 3rem -2rem rgb(16 35 58 / .7); overflow: hidden; }
.ac-casque::before { content: ""; position: absolute; right: -62px; top: -58px; width: 140px; height: 130px; background: var(--orange); opacity: .9; clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: rotate(12deg); }
.ac-casque .contenu { position: relative; }
.ac-casque .contenu * { color: #d6dfe9 !important; }
.ac-casque .contenu li::marker { color: var(--jaune); }

/* Clients */
.ac-clients { padding-block: 0 clamp(3rem, 2rem + 3vw, 5rem); overflow: hidden; }
.ac-clients__piste { display: flex; width: max-content; gap: 1rem; animation: ac-defile 45s linear infinite; }
.ac-clients:hover .ac-clients__piste { animation-play-state: paused; }
.ac-client { display: grid; place-items: center; width: 11rem; height: 5.5rem; padding: .8rem 1.2rem; border-radius: 12px; border: 1px solid var(--ligne); background: #fff; }
.ac-client img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ac-client--carre { padding: .25rem; }
.ac-client--carre img { height: 5rem; width: auto; max-height: none; }

@media (prefers-reduced-motion: reduce) {
  .ac-ruban__piste, .ac-clients__piste, .ac-etage, .ac-surligne::after, .ac-offre, .ac-pyramide__chiffres text { animation: none; }
}
@media (max-width: 40em) {
  .ac-panneaux { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .ac-panneau { padding: 1rem .9rem; }
  .ac-panneau small { display: none; }
  .ac-panneau b { font-size: 1.05rem; }
  .ac-signe { width: 2.6rem; height: 2.6rem; font-size: .95rem; }
  .ac-pyramide__legende { grid-template-columns: 1fr 1fr; }
}
