/* Page « À propos de Demat » — html/com_content/article/apropos.php, js/apropos.js (desktop + mobile: same file) */

/* Hero: the big title « Pensé pour / par des humains » */
.heros-local.apropos-heros .accueil-titre { font-size: clamp(2.5rem, 6.4vw, 5.5rem); max-width: 16ch; line-height: 0.98; word-spacing: 0.08em; margin-bottom: 1.25rem; }
.heros-local.apropos-heros .accueil-titre span { color: inherit; } /* the hero colours every title span */
.heros-local.apropos-heros .accueil-titre .apropos-pp { color: #9fdde4; }
.apropos-pp-anim { display: none; }
/* JS on (.est-anime): both words stacked in one cell; the cell's width follows the shown word (300 ms), so the spacing stays normal */
.apropos-pp.est-anime .apropos-pp-statique { display: none; }
.apropos-pp.est-anime .apropos-pp-anim { display: inline-grid; vertical-align: baseline; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; transition: width 300ms ease; } /* width set by js/apropos.js */
@media (prefers-reduced-motion: reduce) { .apropos-pp-anim { transition: none; } }
.apropos-pp-anim > span { grid-area: 1 / 1; justify-self: start; white-space: nowrap; opacity: 0; transform: translateY(0.3em); transition: opacity 450ms ease, transform 450ms ease; }
.apropos-pp[data-etat="par"] [data-mot="par"], .apropos-pp[data-etat="pour"] [data-mot="pour"] { opacity: 1; transform: none; }
.apropos-heros .accueil-lede { max-width: 56ch; }
.apropos-heros .accueil-lede a { color: #9fdde4; text-decoration: underline; text-underline-offset: 0.18em; }

/* Body: one reading column (~65ch), centred; photos and the timeline go full width */
.apropos { max-width: var(--largeur-site); margin-inline: auto; }
.actu-corps.apropos-corps { max-width: none; }
.actu-corps.apropos-corps > :is(p, h2, h3, ul, ol) { max-width: 42rem; margin-left: auto; margin-right: auto; } /* ~65ch of body text, in rem so headings share the column */
.apropos-corps > p { font-size: 1.08rem; line-height: 1.7; }
.apropos-corps h2 { display: flex; align-items: center; margin-top: clamp(3rem, 7vw, 5rem); margin-bottom: 1.25rem; font-size: clamp(1.6rem, 3vw, 2.25rem); text-wrap: balance; }
.apropos-corps h2::before { content: ""; display: inline-block; width: 1.1em; height: 0.85em; margin-right: 0.5em; flex: none; background: linear-gradient(var(--bleu-glaz), var(--bleu-glaz)) top left / 100% 22% no-repeat, linear-gradient(var(--bleu-glaz), var(--bleu-glaz)) left center / 62% 22% no-repeat, linear-gradient(var(--bleu-glaz), var(--bleu-glaz)) bottom left / 81% 22% no-repeat; } /* .barres */
.apropos-corps ul { padding-left: 1.2rem; }
.apropos-corps li { margin-bottom: 0.75rem; line-height: 1.6; }
.apropos-corps li::marker { color: var(--bleu-glaz); }

/* Large photos, edge to edge (B&W like the heroes) */
.apropos-grande { width: 100vw; max-width: none; margin: clamp(3rem, 8vw, 6rem) calc(50% - 50vw); }
.apropos-grande img { display: block; width: 100%; height: clamp(320px, 62vh, 760px); object-fit: cover; filter: grayscale(1) contrast(1.05); }
.apropos-grande figcaption, .apropos-duo figcaption { max-width: 65ch; margin: 0.6rem auto 0; padding-inline: var(--gouttiere, 1.1rem); font-size: 0.85rem; color: var(--granit); }
/* Two photos side by side, wider than the column */
.apropos-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.5rem); max-width: var(--largeur-site); margin: clamp(2.5rem, 6vw, 4.5rem) auto; }
.apropos-duo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; filter: grayscale(1) contrast(1.05); }
@media (max-width: 47.99em) { .apropos-duo { grid-template-columns: 1fr; } }

/* Pull quotes in the display font */
.actu-corps.apropos-corps > blockquote.apropos-citation { max-width: none; margin: clamp(3.5rem, 9vw, 6.5rem) auto; padding: 0; border: 0; text-align: center; }
.apropos-citation p { max-width: 15em; margin: 0 auto; font-family: var(--police-titres); font-weight: 400; font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1.04; color: var(--noir-goemon); text-wrap: balance; }
.apropos-citation p::before { content: ""; display: block; width: 3rem; height: 4px; margin: 0 auto 1.5rem; background: var(--bleu-glaz); border-radius: 2px; }

/* Timeline: full width, the track scrolls edge to edge */
.apropos-frise { margin: clamp(3rem, 8vw, 6rem) 0; }
.apropos-frise .frise { margin: 0; }
.apropos-frise .frise-piste { margin-inline: calc(50% - 50vw); padding-inline: max(var(--gouttiere, 1.1rem), calc(50vw - var(--largeur-site, 100vw) / 2 + var(--gouttiere, 1.1rem))); scroll-padding-inline: max(var(--gouttiere, 1.1rem), calc(50vw - var(--largeur-site, 100vw) / 2 + var(--gouttiere, 1.1rem))); }

/* « Ce que nous rendons visible » */
.apropos-visible { margin: clamp(2.5rem, 6vw, 4.5rem) calc(50% - 50vw); padding: clamp(2.5rem, 6vw, 4rem) max(var(--gouttiere, 1.1rem), calc(50vw - var(--largeur-site, 100vw) / 2 + var(--gouttiere, 1.1rem))); background: var(--noir-goemon); color: var(--blanc-ecume); }
.apropos-visible-entete h2 { margin: 0 0 2rem; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--blanc-ecume); }
.apropos-visible-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); margin: 0; padding: 0; list-style: none; }
.apropos-visible-carte { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1.35rem 1.25rem 1.4rem; border: 1px solid rgba(251, 250, 247, 0.18); border-radius: 16px; color: var(--blanc-ecume); text-decoration: none; transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease; }
.apropos-visible-carte:hover, .apropos-visible-carte:focus-visible { background: rgba(251, 250, 247, 0.08); border-color: #9fdde4; }
.apropos-visible-carte strong { font-family: var(--police-titre); font-size: 1.15rem; }
.apropos-visible-carte strong::after { content: " \2192"; color: #9fdde4; }
.apropos-visible-carte span { font-size: 0.95rem; line-height: 1.45; color: rgba(251, 250, 247, 0.78); }
.apropos-visible-icone { width: 32px; height: 32px; margin-bottom: 0.4rem; color: #9fdde4; }

.apropos-contact { display: inline-flex; align-items: center; min-height: 44px; padding: 0.6rem 1.3rem; border-radius: 999px; background: var(--noir-goemon); color: var(--blanc-ecume) !important; font-weight: 600; text-decoration: none !important; }
.apropos-contact:hover, .apropos-contact:focus-visible { background: var(--bleu-glaz); }
.apropos-corps > p.apropos-ecrire { margin-top: clamp(3rem, 7vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--ligne); font-size: 1.25rem; }
