/*
Theme Name: TCA Corporate
Theme URI: https://www.trustcompanyafrica.com
Author: Congo Innova Corporation
Author URI: https://www.cicodrc.com
Description: Thème vitrine sur mesure pour Trust Company Africa SARL (Lubumbashi).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: tca
*/

/* ---------- Variables ---------- */
:root {
    --ink: #12161c;
    --coal: #1b2027;
    --paper: #f5f1ea;
    --paper-2: #ece6da;
    --brand: #c9281a;
    --brand-dark: #a51f13;
    --green: #2e9e3e;
    --blue: #1f4fd1;
    --line: #ddd5c8;
    --text: #23272e;
    --muted: #5d626b;
    --on-dark: #cfd3da;
    --radius: 18px;
    --shadow: 0 18px 40px rgba(18, 22, 28, .14);
    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --serif: "Fraunces", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.12; margin: 0 0 .55em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.28rem; line-height: 1.25; }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0; padding: 0; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 840px); }
.center { text-align: center; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
.icon { flex: none; }

.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-dark); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ffb4aa; }
.lead-serif { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.38; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }

/* ---------- Boutons ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1.4rem; min-height: 48px; border-radius: 999px; font: 700 .96rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--ink)); transform: translateY(101%); transition: transform .4s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn .icon { transition: transform .3s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--primary { background: var(--brand); color: #fff; --fill: var(--ink); box-shadow: 0 10px 22px rgba(201, 40, 26, .3); }
.btn--primary:hover { color: #fff; }
.btn--dark { background: var(--ink); color: #fff; --fill: var(--brand); }
.btn--dark:hover { color: #fff; }
.btn--light { background: #fff; color: var(--ink); --fill: var(--ink); }
.btn--light:hover { color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); --fill: #fff; }
.btn--ghost:hover { color: var(--ink); border-color: #fff; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.02rem; min-height: 54px; }
.btn--sm { padding: .6rem 1.1rem; min-height: 42px; font-size: .9rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; text-decoration: none; color: var(--brand-dark); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Barre de progression et barre d'information ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 300; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.topbar { background: var(--ink); color: var(--on-dark); font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar__contacts { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; margin: 0; }
.topbar__contacts li, .topbar__webmail { display: flex; align-items: center; gap: .45rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .icon { color: #ff8a7d; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .3s; }
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(18, 22, 28, .1); }
.site-header.is-hidden { transform: translateY(-101%); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); transition: min-height .3s; }
.is-stuck .header__inner { min-height: 64px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand__logo { height: 52px; width: auto; transition: height .3s; }
.is-stuck .brand__logo { height: 44px; }
.brand__name { display: grid; line-height: 1.15; min-width: 0; }
.brand__name strong { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand__name small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nav { display: flex; align-items: center; }
.nav__list { list-style: none; display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; }
.nav__list a { position: relative; display: block; padding: .6rem .85rem; color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none; }
.nav__list a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .25rem; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after, .nav__list .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.nav__list a:hover { color: var(--ink); }
.nav__extras { display: none; }
.header__tools { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle__bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 6px; }
.nav-toggle__bars i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Sélecteur de langue */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: .4rem; height: 42px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 700 .86rem var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.lang__btn:hover { border-color: var(--ink); }
.lang__btn .icon:last-child { transition: transform .3s var(--ease); }
.lang__btn[aria-expanded="true"] .icon:last-child { transform: rotate(180deg); }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: .4rem; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 20; }
.lang__list[hidden] { display: none; }
.lang__list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .8rem; border: 0; background: transparent; border-radius: 10px; font: 600 .94rem var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.lang__list button:hover, .lang__list button[aria-current="true"] { background: var(--paper); }
.lang__list button[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.lang__native { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barre d'actions rapides (mobile) */
.dock { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero__topo, .page-head__topo, .cta-band__topo, .site-footer__topo { position: absolute; inset: 0; background: url("assets/img/topo-light.svg") center / cover no-repeat; pointer-events: none; }
.hero__topo { animation: drift 40s ease-in-out infinite alternate; transform-origin: center; }
@keyframes drift { from { transform: scale(1.05) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-2%, 2%, 0); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6.5rem); }
.kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #ffb4aa; margin: 0 0 1.4rem; }
.kicker__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(201, 40, 26, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(201, 40, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 40, 26, 0); } }
.hero__title { color: #fff; margin-bottom: .55em; font-size: clamp(2.2rem, 4.8vw, 4rem); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-right: .22em; }
.w__in { display: inline-block; }
.js .w__in { transform: translateY(110%); }
.is-ready .w__in { transform: none; transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms + .15s); }
.hero__lead { font-size: 1.14rem; color: var(--on-dark); max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2rem; }
.link-call { display: inline-flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; font-weight: 700; }
.link-call .icon { padding: 13px; box-sizing: content-box; width: 20px; height: 20px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; transition: background .3s, border-color .3s; }
.link-call:hover { color: #fff; }
.link-call:hover .icon { background: var(--brand); border-color: var(--brand); }
.link-call span { display: grid; line-height: 1.25; }
.link-call small { color: var(--on-dark); font-weight: 500; font-size: .8rem; }
.js .hero__lead, .js .hero__actions, .js .kicker { opacity: 0; transform: translateY(16px); }
.is-ready .hero__lead, .is-ready .hero__actions, .is-ready .kicker { opacity: 1; transform: none; transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.is-ready .kicker { transition-delay: .05s; }

.hero__visual { position: relative; padding: 0 0 2.5rem 2.5rem; }
.hero__frame { border-radius: 260px 260px 22px 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--coal); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.js .hero__frame { clip-path: inset(100% 0 0 0); }
.is-ready .hero__frame { clip-path: inset(0); transition: clip-path 1.3s var(--ease) .2s; }
.js .hero__frame img { transform: scale(1.25); }
.is-ready .hero__frame img { transform: none; transition: transform 1.8s var(--ease) .2s; }
.hero__inset { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 6px solid var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.hero__inset img { width: 100%; height: 100%; object-fit: cover; }
.js .hero__inset { opacity: 0; transform: translateY(30px); }
.is-ready .hero__inset { opacity: 1; transform: none; transition: opacity .9s var(--ease) 1s, transform .9s var(--ease) 1s; }
.hero__seal { position: absolute; right: -14px; top: 6%; width: 124px; height: 124px; animation: spin 26s linear infinite; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .35)); }
.hero__seal text { fill: #fff; font: 700 13.4px var(--sans); letter-spacing: .09em; }
.hero__seal .seal__year { font: 700 30px var(--serif); letter-spacing: 0; animation: spin-back 26s linear infinite; transform-origin: 100px 100px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-back { to { transform: rotate(-360deg); } }

.ticker { position: relative; background: var(--brand); color: #fff; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .15); }
.ticker__track { display: flex; align-items: center; width: max-content; gap: 1.6rem; padding: .95rem 0; animation: marquee 38s linear infinite; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; white-space: nowrap; }
.ticker__track i { width: 8px; height: 8px; border-radius: 50%; background: #fff; opacity: .6; flex: none; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1.6rem 2.2rem 0; display: grid; gap: .25rem; align-content: start; }
.stat + .stat { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.stat strong { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.1; color: var(--ink); font-weight: 600; }
.stat > span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--paper { background: var(--paper); }
.section__head { max-width: 46rem; margin: 0 auto 3.2rem; text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head--row { max-width: none; margin: 0 0 2.4rem; text-align: left; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section__head--row .eyebrow { justify-content: flex-start; }
.section__head--row h2 { margin: 0; }

/* Services : liste éditoriale avec aperçu */
.services__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.services__side { position: sticky; top: 110px; }
.services__side p { color: var(--muted); }
.preview { position: relative; aspect-ratio: 4 / 3; margin-top: 2.2rem; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.preview__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1s var(--ease); }
.preview__img.is-active { opacity: 1; transform: none; }
.preview__img img { width: 100%; height: 100%; object-fit: cover; }
.services__list { list-style: none; border-bottom: 1px solid var(--line); }
.svc { border-top: 1px solid var(--line); }
.svc a { display: grid; grid-template-columns: 3.2rem 1fr 3rem; gap: 1rem; align-items: center; padding: 1.7rem 0; text-decoration: none; color: inherit; transition: padding-left .45s var(--ease); }
.svc a:hover, .svc.is-hover a { padding-left: .9rem; }
.svc__n { font-family: var(--serif); font-size: 1.05rem; color: var(--brand); font-weight: 600; }
.svc__img { display: none; }
.svc h3 { margin: 0 0 .3rem; font-size: 1.32rem; transition: color .3s; }
.svc a:hover h3 { color: var(--brand-dark); }
.svc p { margin: 0; color: var(--muted); font-size: .98rem; }
.svc__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease); }
.svc a:hover .svc__arrow { background: var(--brand); color: #fff; border-color: var(--brand); transform: rotate(-45deg); }

/* À propos (accueil) */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__text p:not(.eyebrow):not(.lead-serif) { color: var(--muted); }
.about__media { position: relative; padding-bottom: 14%; }
.about__img { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-2); }
.about__img > div, .story__img > div, .split__media > div, .svc-block__media > div { height: 100%; transform: translate3d(0, var(--py, 0), 0) scale(1.17); will-change: transform; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { width: 82%; aspect-ratio: 4 / 5; }
.about__img--b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 7px solid #fff; }

/* Mission et vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; }
.mv__col { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 4.5rem); color: #fff; }
.mv__col--dark { background: var(--ink); }
.mv__col--red { background: var(--brand); }
.mv__inner { max-width: 33rem; margin-inline: auto; }
.mv__col:first-child .mv__inner { margin-left: auto; }
.mv__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); margin-bottom: 1.4rem; }
.mv__col--red .eyebrow--light { color: #ffd9d4; }
.mv__text { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.4; margin: 0; font-weight: 500; }

/* Valeurs */
.keys { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
.key { padding: 1.8rem 0 2.2rem; border-top: 2px solid var(--ink); }
.key__n { display: block; font-family: var(--serif); font-size: 1rem; color: var(--brand); margin-bottom: .6rem; font-weight: 600; }
.key h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.key p { color: var(--muted); margin: 0; }

/* Étapes */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); opacity: .25; }
.step { position: relative; }
.step__n { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.25rem var(--serif); margin-bottom: 1.3rem; box-shadow: 0 0 0 8px var(--paper); }
.step p { color: var(--muted); margin: 0; }

/* Mosaïque (accueil) */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.mosaic__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.mosaic__item--0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic__item a { display: block; height: 100%; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.mosaic__item:hover img { transform: scale(1.07); opacity: .85; }
.mosaic__item figcaption, .gallery__item figcaption { position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.1rem 1rem; color: #fff; font-size: .9rem; font-weight: 600; background: linear-gradient(transparent, rgba(18, 22, 28, .88)); transform: translateY(40%); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
.mosaic__item:hover figcaption, .gallery__item:hover figcaption, .gallery__item a:focus-visible figcaption { transform: none; opacity: 1; }

/* Bandeau d'appel à l'action */
.cta-band { position: relative; background: var(--brand); color: #fff; padding: clamp(3rem, 6vw, 5rem) 0; overflow: hidden; }
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.cta-band p { margin: 0; color: #ffe2de; font-size: 1.08rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Pages intérieures ---------- */
.page-head { position: relative; background: var(--ink); color: #fff; padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(2.8rem, 6vw, 5rem); overflow: hidden; }
.page-head .container { position: relative; }
.page-head__title { color: #fff; margin: .6rem 0 .4rem; font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.page-head__lead { color: var(--on-dark); font-size: 1.15rem; max-width: 40rem; margin: .6rem 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .86rem; color: var(--on-dark); }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .5; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.story { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story__text p:not(.eyebrow):not(.lead-serif) { color: var(--muted); }
.dropcap::first-letter { float: left; font: 600 4.3rem/.8 var(--serif); padding: .35rem .6rem 0 0; color: var(--brand); }
.story__aside { position: sticky; top: 110px; }
.story__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__card { position: relative; margin: -2.2rem 0 0 1.5rem; background: #fff; border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); display: grid; gap: .2rem; max-width: 20rem; }
.story__card strong { font: 600 2.4rem/1 var(--serif); color: var(--brand); }
.story__card span { color: var(--muted); font-size: .95rem; line-height: 1.45; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.checks { list-style: none; display: grid; gap: .9rem; margin: 1.4rem 0 1.8rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks .icon { color: var(--green); margin-top: .15rem; }
.checks--cols { grid-template-columns: repeat(2, 1fr); gap: .6rem 1.4rem; font-size: .96rem; }

/* Page Services */
.svc-page { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-nav { position: sticky; top: 110px; }
.svc-nav__title { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.svc-nav ol { list-style: none; border-left: 2px solid var(--line); }
.svc-nav a { display: flex; gap: .7rem; padding: .6rem 0 .6rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); text-decoration: none; font-weight: 600; font-size: .94rem; line-height: 1.35; transition: border-color .3s, color .3s, padding-left .3s var(--ease); }
.svc-nav a span { color: var(--brand); font-family: var(--serif); }
.svc-nav a:hover, .svc-nav a.is-active { border-left-color: var(--brand); color: var(--brand-dark); padding-left: 1.3rem; }
.svc-block { padding-bottom: 4rem; margin-bottom: 4rem; border-bottom: 1px solid var(--line); }
.svc-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-block__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: var(--shadow); margin-bottom: 2rem; }
.svc-block__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-block__n { font: 600 1rem var(--serif); color: var(--brand); margin-bottom: .4rem; }
.svc-block h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.svc-block p { color: var(--muted); }

/* Visuel de remplacement (service sans photo) */
.noimg { display: grid; place-content: center; justify-items: center; gap: .8rem; width: 100%; height: 100%; min-height: 100%; padding: 1.5rem; text-align: center; color: #fff; background: radial-gradient(circle at 30% 20%, rgba(201, 40, 26, .35), transparent 55%), var(--ink); }
.noimg b { font: 600 1.05rem var(--serif); max-width: 16rem; }
.svc-block__media > div .noimg { min-height: 100%; }
.svc-block__items-title { margin: 1.4rem 0 0; font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

/* Travaux d'exploration */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.work h3 { margin: .2rem 0 .4rem; font-size: 1.15rem; }
.work p:last-child { color: var(--muted); font-size: .95rem; margin: 0; }
.work__img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: var(--paper-2); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work:hover .work__img img { transform: scale(1.06); }
.work__where { display: flex; align-items: center; gap: .4rem; margin: 0 0 .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); }

/* Réalisations */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filters__btn { padding: .55rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 700 .9rem var(--sans); color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.filters__btn:hover { border-color: var(--ink); }
.filters__btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 1rem; }
.gallery__item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.gallery__item:nth-child(5n+1) { grid-row: span 2; }
.gallery__item[hidden] { display: none; }
.gallery__item a { display: block; height: 100%; position: relative; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.gallery__item:hover img { transform: scale(1.07); opacity: .85; }
.gallery__zoom { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); transform: scale(0); transition: transform .4s var(--ease); }
.gallery__item:hover .gallery__zoom { transform: scale(1); }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__info { background: var(--paper); border-radius: var(--radius); padding: 2.2rem; }
.info-list { list-style: none; display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.info-list li { display: flex; gap: 1rem; }
.info-list__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--brand-dark); flex: none; box-shadow: 0 4px 12px rgba(18, 22, 28, .08); }
.info-list div { display: grid; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.contact > *, .story > *, .split > *, .about__grid > *, .services__grid > *, .hero__grid > *, .svc-page > * { min-width: 0; }
.info-list strong { color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.note { color: var(--muted); font-size: .92rem; margin: 0; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: grid; gap: .35rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field textarea { width: 100%; font: inherit; padding: .85rem 1rem; border: 1.5px solid #cfc7b9; border-radius: 12px; background: #fff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 79, 209, .15); }
.field--check { display: flex; gap: .7rem; align-items: flex-start; }
.field--check input { width: 20px; height: 20px; margin-top: .25rem; flex: none; accent-color: var(--brand); }
.field--check label { font-weight: 400; font-size: .92rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.4rem; font-size: .96rem; }
.alert--ok { background: #e8f6ec; color: #145a24; border: 1px solid #b6e2c1; }
.alert--err { background: #fdecea; color: #7d1b12; border: 1px solid #f3bbb5; }

/* Texte éditorial */
.prose { font-size: 1.04rem; }
.prose--justify { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.1em; }
.prose li { margin-bottom: .35em; }
.prose img { border-radius: var(--radius); }
.post-cover { margin: 0 0 2rem; border-radius: var(--radius); overflow: hidden; }
.meta { font-size: .88rem; color: var(--muted); margin: 0 0 .3rem; }
.empty { text-align: center; padding: 3rem 0; }

/* Actualités */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__title { font-size: 1.3rem; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand-dark); }
.card__body p { color: var(--muted); font-size: .98rem; margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: .6rem; }
.navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.page-numbers { padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-form { display: flex; gap: .5rem; max-width: 28rem; margin: 1.5rem auto 0; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: .8rem 1rem; border: 1.5px solid #cfc7b9; border-radius: 999px; font: inherit; }
.search-form .search-submit { padding: .8rem 1.3rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .95rem var(--sans); cursor: pointer; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--on-dark); font-size: .96rem; overflow: hidden; }
.site-footer__topo { opacity: .6; }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.2fr; gap: 2.5rem; padding: 4.5rem 0 3rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; margin-bottom: 1.1rem; }
.footer__brand img { height: 56px; width: auto; background: #fff; border-radius: 14px; padding: 6px; }
.footer__brand span { display: grid; line-height: 1.2; }
.footer__brand strong { font-family: var(--serif); font-size: 1.15rem; }
.footer__brand small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }
.footer__title { font: 700 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer__list { list-style: none; display: grid; gap: .6rem; margin: 0; padding: 0; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn--light, .site-footer .btn--light:hover { text-decoration: none; }
.site-footer .btn--light { color: var(--ink); }
.site-footer .btn--light:hover { color: #fff; }
.footer__contact { list-style: none; display: grid; gap: .85rem; margin: 0 0 1.3rem; padding: 0; }
.footer__contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact .icon { margin-top: .22rem; color: #ff8a7d; }
.footer__bottom { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.3rem 0; font-size: .88rem; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer__bottom p { margin: 0; }
.footer__credit a { color: #fff; font-weight: 700; }

/* ---------- Visionneuse ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: min(94vw, 1100px); max-width: none; max-height: 94vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(10, 13, 18, .92); }
.lightbox__fig { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 12px; animation: zoom-in .4s var(--ease); }
@keyframes zoom-in { from { opacity: 0; transform: scale(.95); } }
.lightbox figcaption { margin: .9rem 0 0; font-size: .98rem; }
.lightbox__count { display: block; font-size: .82rem; opacity: .65; margin-top: .2rem; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: transform .25s var(--ease), background .25s; }
.lightbox button:hover { transform: scale(1.08); background: var(--brand); color: #fff; }
.lightbox__close { top: -3.4rem; right: 0; }
.lightbox__prev, .lightbox__next { top: 38%; }
.lightbox__prev { left: -1.2rem; }
.lightbox__next { right: -1.2rem; }
.lightbox__prev .icon { transform: rotate(180deg); }

/* ---------- Animations d'apparition ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Le rideau s'applique à l'enfant : l'élément lui-même reste observable par le script */
.js .reveal--img { opacity: 1; transform: none; }
.js .reveal--img > * { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) var(--d, 0s); }
.js .reveal--img.is-visible > * { clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal, .js .reveal--img > *, .js .hero__frame, .js .hero__inset, .js .hero__lead, .js .hero__actions, .js .kicker { opacity: 1; transform: none; clip-path: none; }
    .js .w__in, .js .hero__frame img { transform: none; }
    .about__img > div, .story__img > div, .split__media > div, .svc-block__media > div { transform: scale(1.02); }
}

/* ---------- Tablette ---------- */
@media (max-width: 1060px) {
    .works { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    .svc-page { grid-template-columns: 1fr; }
    .svc-nav { position: static; }
    .svc-nav ol { display: flex; flex-wrap: wrap; gap: .5rem; border: 0; }
    .svc-nav a { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; margin: 0; }
    .svc-nav a:hover, .svc-nav a.is-active { padding-left: 1rem; border-color: var(--brand); }
}

/* ---------- Mobile et petite tablette ---------- */
@media (max-width: 1100px) {
    :root { --header-h: 68px; }
    .topbar { display: none; }
    .header__inner { gap: .6rem; }
    .brand__logo { height: 44px; }
    .brand__name strong { font-size: .95rem; white-space: normal; line-height: 1.1; }
    .brand__name small { font-size: .62rem; }
    .lang__btn { height: 40px; padding: 0 .6rem; gap: .3rem; }
    .lang__btn .icon:last-child { display: none; }
    .header__tools { gap: .5rem; }
    .header__cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1rem 1.25rem calc(90px + env(safe-area-inset-bottom)); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
    .nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav__list a { padding: 1.05rem .2rem; border-bottom: 1px solid var(--line); font: 600 1.45rem var(--serif); }
    .nav__list a::after { display: none; }
    .nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--brand-dark); }
    .nav__extras { display: grid; gap: .7rem; margin-top: 1.6rem; }
    .nav__label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .2rem; }
    .extra { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--paper); }
    .extra .icon { color: var(--brand-dark); }
    .extra span { display: grid; line-height: 1.3; min-width: 0; font-size: .92rem; overflow-wrap: break-word; }
    .extra small { font-weight: 500; font-size: .78rem; color: var(--muted); }
    .extra--call { background: var(--brand); border-color: var(--brand); color: #fff; }
    .extra--call .icon, .extra--call small { color: #fff; }
    .dock { display: grid; grid-template-columns: 1fr 1.6fr; gap: .6rem; position: fixed; inset: auto 0 0 0; z-index: 150; padding: .65rem .8rem calc(.65rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(18, 22, 28, .12); }
    .dock__btn { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; border-radius: 999px; font: 700 .95rem var(--sans); text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
    .dock__btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
    body { padding-bottom: 76px; }
    body.nav-open .dock { display: none; }
}
@media (max-width: 960px) {

    .hero__grid, .about__grid, .story, .split, .contact { grid-template-columns: 1fr; }
    .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
    .story__aside { position: static; }
    .services__grid { grid-template-columns: 1fr; }
    .services__side { position: static; }
    .preview { display: none; }
    .svc a { grid-template-columns: 2.4rem 1fr 2.6rem; }
    .svc__img { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 1rem; }
    .svc__img img { width: 100%; height: 100%; object-fit: cover; }
    .svc__arrow { width: 40px; height: 40px; }
    .mv { grid-template-columns: 1fr; }
    .mv__inner, .mv__col:first-child .mv__inner { margin: 0; max-width: none; }
    .keys, .steps { grid-template-columns: 1fr; }
    .steps::before { display: none; }
    .step { display: grid; grid-template-columns: 54px 1fr; gap: 0 1.1rem; }
    .step__n { grid-row: span 2; margin: 0; }
    .step h3 { margin-bottom: .2rem; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .field-row { grid-template-columns: 1fr; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: -3.4rem; }
    .lightbox__prev { left: calc(50% - 56px); }
    .lightbox__next { right: calc(50% - 56px); }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .works { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .work__img { aspect-ratio: 1; }
    .cards { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; padding: 3rem 0 2rem; }
    .stats__grid { grid-template-columns: 1fr 1fr; }
    .stat { padding: 1.5rem .8rem 1.5rem 0; }
    .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
    .stat:nth-child(even) { padding-left: 1rem; }
    .stat > span:last-child { font-size: .88rem; }
    .hero__visual { padding-left: 1.4rem; }
    .hero__seal { width: 96px; height: 96px; right: -4px; }
    .hero__actions { gap: 1.1rem; }
    .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
    .checks--cols { grid-template-columns: 1fr; }
    .about__img--b { border-width: 5px; }
    .gallery { grid-auto-rows: 150px; gap: .6rem; }
    .mosaic { grid-auto-rows: 140px; gap: .6rem; }
    .brand__name small { display: none; }
}
@media (max-width: 380px) {
    .brand__logo { height: 38px; }
    .brand__name strong { font-size: .84rem; }
}
