/* GTI — Groupe Toiture Industrie — gti.css (page de transition)
   Layout: the commercial brochure on screen — white and light-grey pages, anthracite blocks, orange
   slanted bars cutting the top corner, rounded cards, bold geometric uppercase headlines. */

:root {
  --ink: #23272B;
  --ink-2: #2E3338;
  --ink-3: #3B4147;
  --orange: #E8520F;
  --orange-deep: #C4440A;
  --grey: #F2F3F5;
  --grey-2: #E2E5E9;
  --white: #FFFFFF;
  --muted: #5B6168;
  --font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1240px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.02; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.g-section { padding-block: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; }
.g-section--grey { background: var(--grey); }
.g-section--dark { background: var(--ink); color: var(--white); --muted: #C9CED3; }
.g-title { font-size: clamp(34px, 4.6vw, 60px); }
.g-lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 60ch; }
.g-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 5vw, 96px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.g-head .g-lede { margin-top: 14px; }
@media (max-width: 900px) { .g-head { grid-template-columns: 1fr; } }

/* slanted bars, as on the brochure cover */
.stripes { position: absolute; top: -12%; right: 6%; width: 22%; height: 124%; pointer-events: none; }
.stripes i { position: absolute; top: 0; bottom: 0; display: block; transform: skewX(-14deg) translateY(-120%); }
.stripes i:nth-child(1) { left: 0; width: 42%; background: var(--orange); animation: g-drop 1s .2s var(--ease-out) forwards; }
.stripes i:nth-child(2) { left: 48%; width: 34%; background: var(--ink-3); animation: g-drop 1s .4s var(--ease-out) forwards; }
.stripes--small { top: -10%; right: 4%; width: 12%; height: 60%; }
@keyframes g-drop { to { transform: skewX(-14deg) translateY(0); } }

/* buttons */
.g-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 30px; border-radius: 6px; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; position: relative; isolation: isolate; overflow: hidden; transition: color .25s, transform .2s; }
.g-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-102%) skewX(-14deg); transition: transform .45s var(--ease-out); }
.g-btn:hover::before, .g-btn:focus-visible::before { transform: translateX(0) skewX(0); }
.g-btn:active { transform: scale(.98); }
.g-btn svg { flex: none; transition: transform .3s var(--ease-out); }
.g-btn:hover svg { transform: translateX(4px); }
.g-btn--primary { background: var(--orange); color: var(--white); }
.g-btn--primary::before { background: var(--ink); }
.g-btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.g-btn--ghost::before { background: var(--white); }
.g-btn--ghost:hover { color: var(--ink); }
.g-btn--dark { background: var(--ink); color: var(--white); }
.g-btn--dark::before { background: var(--orange); }
.g-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* gate / hero */
.gate { position: relative; background: var(--ink); color: var(--white); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-height: min(100dvh, 960px); }
.gate__bg { position: absolute; inset: 0; }
.gate__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; transform: scale(1.2); animation: g-settle 3s var(--ease-out) forwards; }
.gate__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(35, 39, 43, 1) 0%, rgba(35, 39, 43, .82) 50%, rgba(35, 39, 43, .4) 100%); }
@keyframes g-settle { to { transform: scale(1.1); } }
.gate__top, .gate__main, .gate__foot { position: relative; z-index: 2; }
.gate__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px var(--gutter); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.gate__swap { display: flex; align-items: center; gap: 18px; }
.gate__swap img { height: 56px; width: auto; }
.gate__swap .lockup { background: var(--white); border-radius: 10px; padding: 6px 12px; }
.gate__swap .arrow { color: var(--orange); }
.gate__status { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #C9CED3; }
.gate__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: g-blink 1.4s infinite; }
@keyframes g-blink { 0%, 100% { opacity: 1 } 50% { opacity: .25 } }
.gate__main { display: grid; align-content: center; gap: 28px; padding: clamp(48px, 7vw, 100px) var(--gutter); max-width: 1180px; }
.gate__title { font-size: clamp(48px, 8.4vw, 136px); font-weight: 900; line-height: .92; letter-spacing: -.02em; }
.gate__title .line { display: block; overflow: hidden; }
.gate__title .line > span { display: block; transform: translateY(110%); animation: g-rise .9s var(--ease-out) forwards; }
.gate__title .line:nth-child(2) > span { animation-delay: .14s; color: var(--orange); }
@keyframes g-rise { to { transform: translateY(0); } }
.gate__lede { max-width: 58ch; font-size: clamp(17px, 1.4vw, 20px); color: #C9CED3; opacity: 0; animation: g-fade .8s .5s forwards; }
.gate__lede strong { color: var(--white); }
@keyframes g-fade { to { opacity: 1; } }
.loader { max-width: 640px; display: grid; gap: 10px; opacity: 0; animation: g-fade .6s .7s forwards; }
.loader__meta { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #C9CED3; }
.loader__meta output { color: var(--orange); font-variant-numeric: tabular-nums; }
.loader__track { height: 10px; background: rgba(232, 82, 15, .28); border-radius: 999px; overflow: hidden; }
.loader__fill { height: 100%; width: 38%; background: linear-gradient(90deg, rgba(232, 82, 15, 0) 0%, var(--orange) 30%, var(--orange) 70%, rgba(232, 82, 15, 0) 100%); border-radius: 999px; animation: g-sweep 1.6s linear infinite; }
@keyframes g-sweep { 0% { transform: translateX(-100%) } 100% { transform: translateX(265%) } }
.loader__eta { color: var(--orange); }
.dots b { display: inline-block; font-weight: inherit; animation: g-blink 1.4s infinite; }
.dots b:nth-child(2) { animation-delay: .25s } .dots b:nth-child(3) { animation-delay: .5s }
.loader__hint { font-size: 14px; color: #8E959C; }
.gate .g-btn-row { opacity: 0; animation: g-fade .7s .9s forwards; }
.gate__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px var(--gutter); border-top: 1px solid rgba(255, 255, 255, .12); font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8E959C; }
@media (max-width: 700px) { .gate__swap img { height: 40px; } .gate__status { display: none; } .stripes { width: 30%; } }

/* "pourquoi" stat cards */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }
.why__card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 32px; border-radius: 14px; background: var(--grey); }
.why__card--dark { background: var(--ink); color: var(--white); --muted: #C9CED3; }
.why__fig { font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 5.4vw, 76px); line-height: .9; color: var(--orange); font-variant-numeric: tabular-nums; }
.why__card h3 { font-size: 19px; letter-spacing: .02em; }
.why__card p { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* activity cards with parallelogram icons */
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .acts { grid-template-columns: 1fr; } }
.act { padding: 30px; border-radius: 14px; background: var(--grey); display: grid; gap: 14px; align-content: start; transition: transform .35s var(--ease-out), box-shadow .35s; }
.g-section--grey .act { background: var(--white); }
.act:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(35, 39, 43, .12); }
.act__icon { width: 64px; height: 56px; background: var(--orange); color: var(--white); display: grid; place-items: center; clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.act h3 { font-size: 20px; letter-spacing: .04em; }
.act p { font-size: 15px; color: var(--muted); }

/* law rows */
.law { display: grid; gap: 14px; }
.law__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) minmax(0, 6fr); gap: 16px 32px; align-items: center; padding: 26px 32px; border-radius: 14px; background: var(--ink-2); }
.law__fig { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4.4vw, 60px); line-height: .9; color: var(--orange); font-variant-numeric: tabular-nums; white-space: nowrap; }
.law__row h3 { font-size: 18px; letter-spacing: .04em; }
.law__row p { font-size: 15px; color: #C9CED3; }
@media (max-width: 800px) { .law__row { grid-template-columns: 1fr; gap: 8px; } }
.law__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; }
.law__cta p { font-family: var(--font-display); font-weight: 800; font-size: clamp(17px, 1.6vw, 22px); text-transform: uppercase; color: var(--orange); max-width: 60ch; }

/* changes */
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .diff { grid-template-columns: 1fr; } }
.diff > div { padding: 32px; border-radius: 14px; background: var(--grey); }
.diff > div + div { background: var(--ink); color: var(--white); }
.diff h3 { font-size: 19px; letter-spacing: .04em; color: var(--orange); }
.diff ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
.diff li { display: flex; gap: 12px; align-items: flex-start; }
.diff li svg { flex: none; margin-top: 3px; color: var(--orange); }
.diff strong { font-weight: 700; }

/* final cta */
.g-cta { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.g-cta__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 3fr) auto; gap: 32px; align-items: center; padding-block: clamp(72px, 9vw, 120px); }
.g-cta__in .g-lede { color: #C9CED3; margin-top: 14px; }
@media (max-width: 900px) { .g-cta__in { grid-template-columns: 1fr; } }
.g-cta .lockup { background: var(--white); border-radius: 10px; padding: 8px 14px; width: fit-content; margin-top: 24px; }
.g-cta .lockup img { height: 54px; width: auto; }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s !important; }
[data-delay="2"] { transition-delay: .2s !important; }
[data-delay="3"] { transition-delay: .3s !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .gate__title .line > span { transform: none; }
  .gate__lede, .loader, .gate .g-btn-row { opacity: 1; }
  .stripes i { transform: skewX(-14deg); }
  .loader__fill { animation: none; width: 100%; transform: none; }
}
