/* KALYPRO. Variables de marque : marque/commun/kalypro.css */
/* Polices hébergées sur le site (SIL OFL, licences dans assets/fonts/) */
@font-face { font-family: Imbue; src: url('/assets/fonts/imbue-latin.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('/assets/fonts/schibsted-grotesk-latin.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
:root {
  --os: #F1ECE2; --vin: #3A0C1C; --prune: #7A1832; --tilleul: #DCE38A;
  --titres: Imbue, 'Times New Roman', serif;
  --texte: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --g: clamp(20px, 3.2vw, 48px);
  --gout: clamp(16px, 1.8vw, 24px);
  --bloc: clamp(72px, 10vw, 152px);
  --courbe: cubic-bezier(.2, .7, .2, 1);
  --lh: .84;
  /* Couleurs du contexte, redéfinies par chaque thème */
  --fond: var(--os); --enc: var(--vin); --muet: #5A3A44; --ligne: rgba(58, 12, 28, .22); --acc: var(--prune); --focus: var(--prune);
}
.t-os { --fond: var(--os); --enc: var(--vin); --muet: #5A3A44; --ligne: rgba(58, 12, 28, .22); --acc: var(--prune); --focus: var(--prune); background: var(--fond); color: var(--enc); }
.t-vin { --fond: var(--vin); --enc: var(--os); --muet: #D9CFC9; --ligne: rgba(241, 236, 226, .24); --acc: var(--tilleul); --focus: var(--tilleul); background: var(--fond); color: var(--enc); }
.t-tilleul { --fond: var(--tilleul); --enc: var(--vin); --muet: #4A2030; --ligne: rgba(58, 12, 28, .3); --acc: var(--vin); --focus: var(--vin); background: var(--fond); color: var(--enc); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; background: var(--os); }
body { margin: 0; background: var(--os); color: var(--vin); font: 400 16px/1.55 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; font-weight: 400; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.evitement { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--vin); color: var(--os); transition: top .2s; }
.evitement:focus { top: 12px; }

/* Passage d'une page à l'autre : le pli remonte */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: pli-monte .42s var(--courbe); }
@keyframes pli-monte { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Typographie */
.titre-xl, .titre-l, .titre-m, .pli { font-family: var(--titres); font-weight: 500; font-variation-settings: 'opsz' 100; letter-spacing: -.006em; }
.titre-xl { font-size: clamp(56px, 11vw, 176px); line-height: .88; }
.titre-l { font-size: clamp(46px, 7.2vw, 112px); line-height: .92; text-wrap: balance; }
.titre-m { font-size: clamp(34px, 3.9vw, 58px); line-height: .98; font-variation-settings: 'opsz' 70; text-wrap: balance; }
.titre-s { font: 500 clamp(25px, 2.2vw, 32px)/1.06 var(--titres); font-variation-settings: 'opsz' 40; }
.etq { font-size: 14px; color: var(--acc); margin-bottom: 14px; }
.grand-txt { font: 400 clamp(23px, 2.2vw, 32px)/1.16 var(--titres); font-variation-settings: 'opsz' 30; text-wrap: pretty; }
.courant { max-width: 38em; color: var(--muet); text-wrap: pretty; }
.courant + .courant { margin-top: 14px; }
.env { padding-inline: var(--g); }
.bloc { padding-block: var(--bloc); }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); }

/* Boutons et liens */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 52px; padding: 14px 22px; background: var(--enc); color: var(--fond); font-weight: 500; transition: color .25s; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--acc); transform: scaleY(0); transform-origin: bottom; transition: transform .32s var(--courbe); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--fond); }
.t-vin .btn:hover, .t-vin .btn:focus-visible { color: var(--vin); }
.btn-accent { background: var(--tilleul); color: var(--vin); }
.btn-accent::before { background: var(--os); }
.btn-accent:hover, .btn-accent:focus-visible { color: var(--vin); }
.fleche { width: 26px; height: 13px; flex: none; transition: transform .32s var(--courbe); }
.btn:hover .fleche, a:hover > .lien-fleche .fleche, .lien-fleche:hover .fleche, .fin:hover .fleche { transform: translateX(5px); }
.lien { background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--courbe), color .2s; }
.lien:hover { background-size: 0 1px; background-position: right bottom; color: var(--acc); }
.lien-fleche { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
a.lien-fleche { min-height: 44px; background: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 72px; padding: 12px var(--g); background: var(--os); color: var(--vin); transition: transform .3s var(--courbe), box-shadow .2s; --enc: var(--vin); --fond: var(--os); --acc: var(--prune); --focus: var(--prune); }
.entete.a-defile { box-shadow: 0 1px 0 rgba(58, 12, 28, .2); }
.entete.cache { transform: translateY(-100%); }
.logo { display: block; width: 140px; height: auto; }
.entete-logo { display: block; flex: none; padding-block: 6px; }
.entete-menu { display: none; min-height: 44px; min-width: 64px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); flex: 1; justify-content: space-between; margin-left: clamp(16px, 2.6vw, 40px); }
.nav ul { display: flex; align-items: baseline; gap: clamp(16px, 2.2vw, 32px); }
.nav ul a { position: relative; display: inline-block; padding-block: 10px; font-size: 15px; }
.nav ul a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--courbe); }
.nav ul a:hover::after, .nav ul a[aria-current]::after { transform: scaleX(1); }
.nav ul a[aria-current]::after { height: 2px; }
.nav .nav-princ { font: 500 22px/1 var(--titres); font-variation-settings: 'opsz' 40; }
.btn-nav { min-height: 44px; padding: 8px 16px; font-size: 14px; gap: 14px; flex: none; }
.btn-nav .fleche { width: 20px; height: 10px; }

@media (max-width: 1080px) {
  .entete { min-height: 64px; }
  .logo { width: 118px; }
  .entete-menu { display: block; }
  .js .nav { position: fixed; inset: 64px 0 0; margin: 0; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; padding: 32px var(--g); background: var(--vin); color: var(--os); overflow-y: auto; --enc: var(--os); --fond: var(--vin); --acc: var(--tilleul); --focus: var(--tilleul); }
  .js.menu-ouvert .nav { display: flex; }
  .js.menu-ouvert body { overflow: hidden; }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav ul a { font-size: 19px; padding-block: 10px; }
  .nav .nav-princ { font-size: clamp(40px, 11vw, 60px); line-height: 1; margin-bottom: 10px; }
  .btn-nav { min-height: 56px; font-size: 16px; }
  html:not(.js) .entete { flex-wrap: wrap; }
  html:not(.js) .entete-menu { display: none; }
  html:not(.js) .nav { flex-basis: 100%; margin: 0; flex-wrap: wrap; }
  html:not(.js) .nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* LE PLI. Le titre est doublé ; la copie inversée n'apparaît que sous la coupure. */
.pli { position: relative; display: block; line-height: var(--lh); --cut: calc(((var(--n) - 1 + .55) / var(--n)) * 100%); }
.pli-l { display: block; white-space: nowrap; }
.pli-a, .pli-b { display: block; }
.pli-b { position: absolute; inset: 0; color: var(--os); clip-path: inset(var(--cut) -1em -.5em -1em); transform: translateX(calc(.012em + var(--decalage, 0px))); pointer-events: none; }

/* Titre posé à cheval sur deux sections */
.pont { padding-inline: var(--g); font-size: clamp(64px, 12.4vw, 200px); --cut2: calc(((var(--n) - 1 + .55) / var(--n)) * 100%); }
.pont-os-vin { background: linear-gradient(var(--os) var(--cut2), var(--vin) var(--cut2)); color: var(--vin); }
.pont .pli { font-size: inherit; }

/* Accueil : premier écran */
.heros { --t: min(18.4vw, 30svh); display: flex; flex-direction: column; min-height: calc(100svh - 72px); background: var(--os); }
.heros-haut { position: relative; z-index: 2; padding-inline: var(--g); }
.heros .pli { font-size: var(--t); margin-top: 4px; --n: 2; }
.pli-j { display: inline; }
.heros-bas { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); align-items: end; margin-top: calc(var(--t) * var(--lh) * -.45); padding: calc(var(--t) * var(--lh) * .45 + clamp(20px, 4svh, 56px)) var(--g) clamp(24px, 4svh, 44px); }
.heros-offre { grid-column: 1 / 7; }
.heros-princ { display: block; padding-block: 4px 16px; }
.heros-princ .etq { margin-bottom: 8px; }
.heros-princ strong { display: flex; align-items: flex-end; gap: 14px; font: 500 clamp(38px, 4.4vw, 68px)/.96 var(--titres); font-variation-settings: 'opsz' 80; }
.heros-princ .fleche { margin-bottom: .4em; }
.heros-princ:hover .fleche { transform: translateX(6px); }
.heros-princ:hover strong { color: var(--tilleul); }
.heros-princ strong { transition: color .25s; }
.heros-comp { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gout); border-top: 1px solid var(--ligne); padding-top: 12px; }
.heros-comp a { display: block; font-size: 15px; font-weight: 500; padding-block: 4px; }
.heros-comp a span { display: block; font-weight: 400; font-size: 14px; color: var(--muet); line-height: 1.35; }
.heros-comp a:hover { color: var(--tilleul); }
.heros-propos { grid-column: 8 / -1; }
.heros-propos .grand-txt { font-size: clamp(21px, 1.85vw, 27px); line-height: 1.14; }
.heros-propos .courant { margin-top: 10px; font-size: 15px; line-height: 1.45; }
.heros-propos .actions { margin-top: 18px; gap: 12px 22px; }
.js .heros-bas { animation: pli-monte .8s var(--courbe) backwards; }
.js .heros .pli-b { animation: copie-monte .8s var(--courbe) backwards; }
@keyframes copie-monte { from { clip-path: inset(100% -1em -.5em -1em); } }

@media (max-width: 860px) {
  .heros { --t: 26.5vw; min-height: 0; --lh: .88; }
  .heros .pli { --n: 3; }
  .pli-j { display: block; }
  .heros-bas { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .heros-propos { order: -1; }
  .heros-propos .grand-txt { font-size: 25px; }
  .heros-propos .courant { font-size: 16px; }
  .heros-propos .btn { width: 100%; }
  .heros-comp { grid-template-columns: 1fr; row-gap: 8px; }
  .heros-princ strong { font-size: 44px; }
}

/* Apparitions */
.js [data-r] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--courbe) var(--d, 0ms), transform .6s var(--courbe) var(--d, 0ms); }
.js [data-r].vu { opacity: 1; transform: none; }

/* Ce qu'un site doit faire */
.mission-grille { margin-top: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gout); }
.mission-grille li { border-top: 1px solid var(--ligne); padding-top: 14px; }
.mission-grille h3 { margin-bottom: 8px; }
.mission-grille p { font-size: 15px; color: var(--muet); }
.mission-tech { margin-top: clamp(28px, 4vw, 48px); padding-top: 16px; border-top: 1px solid var(--ligne); color: var(--muet); max-width: 52em; }

/* Création web */
.metier-intro { grid-column: 1 / 6; }
.metier-liste { grid-column: 7 / -1; }
.metier-liste li { border-top: 1px solid var(--ligne); }
.metier-liste li:last-child { border-bottom: 1px solid var(--ligne); }
.metier-ligne { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gout); align-items: baseline; padding-block: 15px; transition: transform .35s var(--courbe); }
.metier-ligne h3 { transition: color .25s; }
.metier-ligne p { font-size: 15px; color: var(--muet); }
li:hover > .metier-ligne { transform: translateX(8px); }
li:hover > .metier-ligne h3 { color: var(--acc); }

/* Maquettes en unités du cadre : elles restent nettes à toutes les tailles */

/* Réalisations */
.projets { display: grid; gap: clamp(64px, 9vw, 136px); margin-top: clamp(36px, 5vw, 72px); }
.projet-lien { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); align-items: end; }
.projet-visuels { grid-column: 1 / 10; position: relative; padding-bottom: 6%; }
.projet-texte { grid-column: 10 / -1; padding-bottom: 6%; }
.projet-inv .projet-visuels { grid-column: 4 / -1; order: 2; }
.projet-inv .projet-texte { grid-column: 1 / 4; order: 1; }
.projet-texte h3 { margin-bottom: 12px; transition: color .25s; }
.projet-texte p:not(.etq) { font-size: 15px; color: var(--muet); margin-bottom: 14px; }
.projet-lien:hover .projet-texte h3 { color: var(--acc); }
.vue { overflow: hidden; background: #fff; outline: 1px solid var(--ligne); }
.vue img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 7s cubic-bezier(.35, 0, .5, 1); }
.vue-desktop { aspect-ratio: 16 / 10; }
.vue-mobile { position: absolute; right: 3%; bottom: 0; width: 19%; aspect-ratio: 390 / 780; box-shadow: 0 0 0 6px var(--fond); }
.projet-inv .vue-mobile { right: auto; left: 3%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a:hover .vue img, a:focus-visible .vue img, .vue[tabindex]:hover img { object-position: bottom; transition-duration: 9s; }
}
@media (max-width: 860px) {
  .projet-lien { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .projet-visuels { padding-bottom: 10%; }
  .vue-mobile { width: 28%; right: 4%; }
  .projet-inv .vue-mobile { left: auto; right: 4%; }
  .projet-inv .projet-visuels { order: 0; }
  .projet-inv .projet-texte { order: 1; }
  .projet-texte { padding-bottom: 0; }
}

/* En complément : le pli devient vertical */
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > * { padding: clamp(48px, 7vw, 104px) var(--g); display: flex; flex-direction: column; align-items: flex-start; }
.duo .courant { margin-top: 14px; }
.duo .puces { margin-top: 18px; }
.duo .actions { margin-top: auto; padding-top: 28px; }
.puces li { position: relative; padding: 5px 0 5px 18px; font-size: 15px; }
.puces li::before { content: ''; position: absolute; left: 0; top: 1em; width: 10px; height: 1px; background: currentColor; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* Méthode */
.methode-tete { grid-column: 1 / 6; position: sticky; top: 104px; align-self: start; }
.methode-liste { grid-column: 7 / -1; counter-reset: e; }
.etape { padding-block: clamp(20px, 2.6vw, 36px); border-top: 1px solid var(--ligne); }
.etape:last-child { border-bottom: 1px solid var(--ligne); }
.etape h3 { margin-bottom: 8px; }
.etape p { color: var(--muet); max-width: 34em; }
@media (max-width: 860px) { .methode-tete, .methode-liste { grid-column: 1 / -1; position: static; } .methode-liste { margin-top: 32px; } }

/* Dernier appel */
.fin { display: block; padding: clamp(40px, 6vw, 88px) var(--g) clamp(36px, 5vw, 72px); transition: background .3s; }
.fin-sous { display: block; margin-bottom: 16px; }
.fin-titre { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; font: 500 clamp(52px, 11.2vw, 180px)/.9 var(--titres); font-variation-settings: 'opsz' 100; }
.fin-titre .fleche { width: clamp(40px, 8vw, 128px); height: auto; margin-bottom: .22em; }
.fin:focus-visible { outline-offset: -6px; }

/* Pied de page */
.pied { padding: clamp(48px, 6vw, 80px) var(--g) 32px; }
.pied-haut { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--ligne); }
.pied-logo { width: clamp(200px, 34vw, 480px); }
.pied-phrase { max-width: 24em; color: var(--muet); font-size: 15px; }
.pied-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gout); padding-top: 28px; font-size: 15px; }
.pied-cols li { padding-block: 4px; }
.pied-cols .lien { background-size: 0 1px; background-position: right bottom; }
.pied-cols .lien:hover { background-size: 100% 1px; background-position: left bottom; color: var(--tilleul); }
.pied-cols .etq { margin-bottom: 8px; }
@media (max-width: 760px) { .pied-cols { grid-template-columns: 1fr 1fr; } }

/* Têtes de pages */
.tete { background: var(--os); }
.tete-bas { background: var(--vin); color: var(--os); }
.tete-pli { --t: clamp(68px, 13.6vw, 212px); padding: clamp(28px, 5vw, 72px) var(--g) 0; }
.tete-pli .pli { font-size: var(--t); }
.tete-suite { margin-top: calc(var(--t) * var(--lh) * -.45); padding: calc(var(--t) * var(--lh) * .45 + clamp(32px, 5vw, 64px)) var(--g) clamp(40px, 6vw, 88px); }
.tete-pli { position: relative; z-index: 1; }
.tete-pli .etq { margin-bottom: 18px; }
.tete-suite .grand-txt { grid-column: 1 / 8; }
.tete-suite .courant, .tete-suite .actions { grid-column: 1 / 7; }
.tete-suite .courant { margin-top: 16px; }
.t-filet { position: relative; }
.filet { height: 1px; background: var(--tilleul); margin-inline: calc(var(--g) * -1); }
.decale { transform: translateX(clamp(6px, 1.1vw, 18px)); }
.tete-simple { padding: clamp(36px, 6vw, 96px) var(--g) clamp(36px, 5vw, 72px); }
.ariane { font-size: 14px; color: var(--muet); margin-bottom: 18px; }
.ariane ol { display: flex; flex-wrap: wrap; gap: 6px; }
.ariane li + li::before { content: '/'; margin-right: 6px; opacity: .6; }
.ariane a { display: inline-block; padding-block: 6px; }
.ariane a:hover { color: var(--acc); }

/* Colonnes de contenu */
.col-titre { grid-column: 1 / 5; }
.col-corps { grid-column: 6 / -1; }
.col-corps > * + h3 { margin-top: 36px; }
@media (max-width: 860px) { .col-titre, .col-corps { grid-column: 1 / -1; } .col-corps { margin-top: 24px; } }
.lignes > li { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gout); padding-block: clamp(18px, 2.2vw, 30px); border-top: 1px solid var(--ligne); }
.lignes > li:last-child { border-bottom: 1px solid var(--ligne); }
.lignes p { color: var(--muet); }
.lignes p + p { margin-top: 10px; }
@media (max-width: 620px) { .lignes > li { grid-template-columns: 1fr; gap: 8px; } }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gout); margin-top: clamp(32px, 5vw, 64px); }
.trio > * { border-top: 1px solid var(--ligne); padding-top: 14px; }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--muet); font-size: 15px; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; row-gap: 28px; } }
.encart { padding: clamp(24px, 3vw, 40px); }
.encart h2, .encart h3 { margin-bottom: 12px; }

/* Questions */
.faq details { border-top: 1px solid var(--ligne); }
.faq details:last-child { border-bottom: 1px solid var(--ligne); }
.faq summary { position: relative; display: block; min-height: 48px; padding: 14px 40px 14px 0; cursor: pointer; list-style: none; font: 500 clamp(22px, 1.9vw, 27px)/1.1 var(--titres); font-variation-settings: 'opsz' 40; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 400 26px/1 var(--texte); transition: transform .3s var(--courbe); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--acc); }
.faq details > div { padding-bottom: 20px; max-width: 42em; color: var(--muet); }

/* Usages des QR codes */
.usages { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); margin-top: clamp(28px, 4vw, 48px); }
.usages-liste { grid-column: 1 / 7; }
.usages-liste button { display: flex; align-items: baseline; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px 0; background: none; border: 0; border-top: 1px solid var(--ligne); text-align: left; cursor: pointer; font: 500 clamp(24px, 2.6vw, 38px)/1.05 var(--titres); font-variation-settings: 'opsz' 50; color: var(--muet); transition: color .2s, padding .3s var(--courbe); }
.usages-liste button:hover { color: var(--enc); }
.usages-liste button[aria-pressed="true"] { color: var(--acc); padding-left: 12px; }
.usages-sortie { grid-column: 8 / -1; position: sticky; top: 104px; align-self: start; min-height: 11em; padding-top: 14px; border-top: 2px solid var(--acc); }
.usages-sortie p:last-child { font: 400 clamp(23px, 2.2vw, 32px)/1.16 var(--titres); font-variation-settings: 'opsz' 30; }
@media (max-width: 760px) { .usages-liste, .usages-sortie { grid-column: 1 / -1; position: static; } .usages-sortie { order: -1; min-height: 8em; margin-bottom: 20px; } }

/* Études de cas */
.cas-faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gout); margin-top: 32px; font-size: 15px; }
.cas-faits > div { border-top: 1px solid var(--ligne); padding-top: 10px; }
.cas-faits dt { font-size: 13px; color: var(--acc); }
.cas-visuel { padding-inline: var(--g); }
.cas-visuel .vue-desktop { aspect-ratio: 16 / 10; }
.cas-duo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); align-items: start; }
.cas-duo .vue-grande { grid-column: 1 / 9; }
.cas-duo .vue-tel { grid-column: 10 / -1; }
.vue-defile { overflow: auto; background: #fff; outline: 1px solid var(--ligne); }
.vue-defile img { width: 100%; height: auto; }
.vue-grande.vue-defile { max-height: min(78svh, 760px); }
.vue-tel.vue-defile { max-height: min(78svh, 760px); }
.legende { margin-top: 8px; font-size: 13px; color: var(--muet); }
.cas-suite { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .cas-faits { grid-template-columns: 1fr; row-gap: 12px; }
  .cas-duo .vue-grande, .cas-duo .vue-tel { grid-column: 1 / -1; }
  .cas-duo .vue-tel { margin-top: 28px; }
  .vue-grande.vue-defile { max-height: 60svh; }
  .vue-tel.vue-defile { max-width: 300px; }
}

/* Formulaire */
.contact-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); align-items: start; }
.form { grid-column: 1 / 8; display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gout); }
.contact-cote { grid-column: 9 / -1; }
.champ { display: flex; flex-direction: column; }
.champ-l { grid-column: 1 / -1; }
.champ label { font-weight: 500; margin-bottom: 6px; }
.champ label small { font-weight: 400; color: var(--muet); font-size: 14px; }
.champ input, .champ select, .champ textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: #FBF8F2; border: 1px solid rgba(58, 12, 28, .55); border-radius: 0; transition: border-color .2s, box-shadow .2s; }
.champ textarea { min-height: 150px; resize: vertical; }
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--vin); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--vin); box-shadow: inset 0 -3px 0 var(--prune); }
.champ.invalide input, .champ.invalide select, .champ.invalide textarea { border-color: #A3122E; box-shadow: inset 3px 0 0 #A3122E; }
.champ-erreur { margin-top: 6px; font-size: 14px; color: #8E0F27; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-pied { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form button.btn { border: 0; cursor: pointer; }
.form-rgpd { grid-column: 1 / -1; font-size: 14px; color: var(--muet); max-width: 44em; }
.form-message { grid-column: 1 / -1; padding: 14px 16px; }
.form-message.attention { background: var(--vin); color: var(--os); }
.form-message.ok { background: var(--tilleul); color: var(--vin); }
.form-message:focus { outline: 2px solid var(--prune); outline-offset: 2px; }
.prochaines li { padding-block: 12px; border-top: 1px solid var(--ligne); }
.prochaines h3 { font-weight: 600; }
.prochaines p { color: var(--muet); font-size: 15px; }
@media (max-width: 860px) {
  .form, .contact-cote { grid-column: 1 / -1; }
  .contact-cote { margin-top: 48px; }
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
}

/* Pages de texte */
.texte { max-width: 44em; }
.texte h2 { margin-top: 40px; margin-bottom: 10px; }
.texte h2:first-child { margin-top: 0; }
.texte p, .texte li { color: var(--muet); }
.texte p + p { margin-top: 10px; }
.page-404 { min-height: 70svh; display: flex; align-items: center; }
.page-404 .env { padding-block: 64px; }
.page-404 .grand-txt { margin-top: 20px; }

/* Notes à compléter : visibles avant la mise en ligne seulement */
.todo { display: block; margin-block: 8px; padding: 8px 12px; border: 1px dashed currentColor; font-size: 14px; color: var(--enc); }
.todo-i { display: inline; margin: 0; padding: 1px 6px; }

/* Composition mobile */
@media (max-width: 860px) {
  .g12 > * { grid-column: 1 / -1 !important; }
  .mission-grille { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .metier-liste { margin-top: 32px; }
  .metier-ligne { grid-template-columns: 1fr; gap: 4px; }
  .tete-suite { padding-bottom: 56px; }
}
@media (max-width: 480px) { .mission-grille { grid-template-columns: 1fr; } }

/* Moins d'animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-r] { opacity: 1; transform: none; }
  ::view-transition-new(root) { animation: none; }
}

/* Texte réservé aux lecteurs d'écran */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Variante longue du pli pour les têtes de page */
.tete-pli .pli-petit { --t2: clamp(52px, 10.4vw, 164px); font-size: var(--t2); }
.tete:has(.pli-petit) .tete-pli, .tete:has(.pli-petit) .tete-suite { --t: clamp(52px, 10.4vw, 164px); }
@media (max-width: 620px) {
  .tete-pli .pli-petit { --t2: 14.6vw; }
  .tete:has(.pli-petit) .tete-pli, .tete:has(.pli-petit) .tete-suite { --t: 14.6vw; }
}

/* Fil d'Ariane : alignement */
.ariane ol { align-items: center; }
.ariane li { display: flex; align-items: center; gap: 6px; }
.ariane li + li::before { margin-right: 0; }

/* ------------------------------------------------------------------ V3 */

/* Le pli se referme au défilement, là où le navigateur sait le faire */
@property --pont-cut { syntax: '<percentage>'; inherits: true; initial-value: 55%; }
.pont { --cut2: var(--pont-cut); }
.pont .pli { --cut: var(--pont-cut); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pont { animation: pont-pli linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes pont-pli { from { --pont-cut: 100%; } to { --pont-cut: 55%; } }

/* Menu mobile : le pli descend */
@media (max-width: 1080px) {
  .js.menu-ouvert .nav { animation: menu-pli .32s var(--courbe); }
  @keyframes menu-pli { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Cibles du pied de page */
.pied-cols .lien, .contact-cote .lien { display: inline-block; padding-block: 4px; }

.ce-tete { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gout); align-items: end; }
.ce-tete > div { grid-column: 1 / 9; }
.ce-tete > p { grid-column: 9 / -1; }

/* Mesures en direct */
.mesure { margin-top: clamp(28px, 4vw, 48px); padding-top: 16px; border-top: 1px solid var(--ligne); }
html:not(.js) .mesure { display: none; }
.mesure-t { font-size: 14px; color: var(--acc); }
.mesure dl { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px var(--gout); }
.mesure dt { font-size: 13px; color: var(--muet); line-height: 1.3; }
.mesure dd { margin: 4px 0 0; font: 500 clamp(30px, 3.6vw, 48px)/1 var(--titres); font-variation-settings: 'opsz' 70; font-variant-numeric: tabular-nums; }
.mesure-n { margin-top: 12px; font-size: 13px; color: var(--muet); }

/* Réalisations : le téléphone chevauche toujours le côté le moins dense */
.vue-mobile { width: 17%; right: 3%; }
.projet-inv .vue-mobile { left: auto; right: 3%; }
.projet-livre { font-weight: 500; color: var(--enc) !important; }
.vue picture { display: block; width: 100%; height: 100%; }

/* Premier écran commenté */
.demo-tete { max-width: 46em; margin-bottom: clamp(24px, 4vw, 48px); }
.pc { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.pc-vue { position: relative; }
.pc-vue img { width: 100%; height: auto; outline: 1px solid var(--ligne); }
.pc-vue picture { display: block; position: relative; }
.pc-vue figcaption { margin-top: 8px; font-size: 13px; color: var(--muet); }
.pc-m { position: absolute; width: clamp(24px, 2.4vw, 34px); height: clamp(24px, 2.4vw, 34px); display: grid; place-items: center; transform: translate(-50%, -50%); background: var(--tilleul); color: var(--vin); font-size: clamp(12px, 1.1vw, 15px); font-weight: 600; transition: transform .25s var(--courbe), background .25s; pointer-events: none; }
.pc-liste li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--ligne); }
.pc-liste li:last-child { border-bottom: 1px solid var(--ligne); }
.pc-liste li > span { width: 28px; height: 28px; display: grid; place-items: center; background: var(--tilleul); font-size: 14px; font-weight: 600; }
.pc-liste h3 { font-weight: 600; }
.pc-liste p { font-size: 15px; color: var(--muet); }
.pc:has(li[data-n="1"]:hover) .pc-m[data-n="1"], .pc:has(li[data-n="2"]:hover) .pc-m[data-n="2"], .pc:has(li[data-n="3"]:hover) .pc-m[data-n="3"], .pc:has(li[data-n="4"]:hover) .pc-m[data-n="4"] { transform: translate(-50%, -50%) scale(1.35); background: var(--os); }

/* Deux identités */
.ids { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gout); align-items: end; }
.ids img { width: 100%; height: auto; outline: 1px solid var(--ligne); }
.ids figcaption { margin-top: 12px; font-size: 15px; color: var(--muet); }
.ids b { display: block; color: var(--enc); font: 500 clamp(24px, 2.2vw, 32px)/1.05 var(--titres); font-variation-settings: 'opsz' 40; margin-bottom: 8px; }
.ids-c { display: flex; gap: 4px; margin-bottom: 8px; }
.ids-c i { display: block; width: 24px; height: 24px; outline: 1px solid var(--ligne); }

/* Responsive réel */
.rw { display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); gap: var(--gout); align-items: end; margin-top: clamp(24px, 3vw, 40px); }
.rw img { width: 100%; height: auto; outline: 1px solid var(--ligne); }
.rw figcaption { margin-top: 8px; font-size: 13px; color: var(--muet); }
.vitesse { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gout) clamp(24px, 4vw, 64px); align-items: end; margin-top: var(--bloc); }
.vitesse .mesure { margin-top: 0; }

/* Ce que vous obtenez */
.obtient { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gout); }
.obtient li { padding: 12px 0 12px 20px; position: relative; border-top: 1px solid var(--ligne); }
.obtient li::before { content: ''; position: absolute; left: 0; top: 1.5em; width: 10px; height: 1px; background: var(--acc); }

/* Études de cas */
.cas-resume { max-width: 28em; margin-top: clamp(20px, 3vw, 36px); }
.cas-une { display: grid; grid-template-columns: minmax(0, 1fr) clamp(150px, 20vw, 300px); gap: var(--gout); align-items: end; padding-inline: var(--g); background: linear-gradient(var(--os) 62%, var(--vin) 62%); padding-bottom: clamp(32px, 5vw, 64px); }
.cas-une img { display: block; width: 100%; height: auto; }
.cas-une-d img, .cas-une-m img { outline: 1px solid rgba(58, 12, 28, .25); }
.cas-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(24px, 5vw, 80px); }
.cas-deux h2 { margin-bottom: 14px; }
.cas-voir { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin-top: clamp(40px, 6vw, 80px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--ligne); }
.cas-voir h2 { margin-bottom: 10px; }
.cas-duo .vue-grande { grid-column: 1 / 10; }
.cas-duo .vue-tel { grid-column: 10 / -1; }

/* Formats intermédiaires et petits écrans */
@media (max-width: 860px) {
  .ce-tete > div, .ce-tete > p { grid-column: 1 / -1; }
  .ce-tete > p { margin-top: 16px; }
  .mesure dl { grid-template-columns: 1fr 1fr; }
  .pc, .rw, .vitesse, .cas-deux { grid-template-columns: minmax(0, 1fr); }
  .ids { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .obtient { grid-template-columns: minmax(0, 1fr); }
  .rw-m { max-width: 240px; }
  .cas-une { grid-template-columns: minmax(0, 1fr) 30%; background: linear-gradient(var(--os) 55%, var(--vin) 55%); }
  .cas-duo .vue-grande, .cas-duo .vue-tel { grid-column: 1 / -1; }
  .vue-mobile { width: 26%; }
  .projet-inv .vue-mobile { right: 4%; }
}
@media (max-width: 380px) {
  .heros-comp a span { font-size: 15px; }
  .btn { padding-inline: 16px; gap: 14px; }
}

/* Démonstration : deux vrais sites, séparés par le pli */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dv { --p: 100%; margin-top: clamp(28px, 4vw, 52px); }
.dv-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: 12px; }
.dv-chapitres { display: flex; gap: clamp(14px, 2vw, 28px); }
.dv-chapitres button { min-height: 44px; padding: 8px 0; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muet); cursor: pointer; font: 500 15px/1.1 var(--texte); transition: color .2s, border-color .3s; }
.dv-chapitres button:hover { color: var(--enc); }
.dv-chapitres button[aria-pressed="true"] { color: var(--enc); border-bottom-color: var(--tilleul); }
.dv-appareils { display: inline-flex; box-shadow: inset 0 0 0 1px var(--ligne); }
.dv-appareils button { min-height: 44px; padding: 8px 16px; background: none; border: 0; color: var(--muet); cursor: pointer; font: 500 14px/1 var(--texte); transition: background .25s, color .25s; }
.dv-appareils button:hover { color: var(--enc); }
.dv-appareils button[aria-pressed="true"] { background: var(--os); color: var(--vin); }
.dv-zone { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
.dv-cadre { min-width: 0; width: 100%; margin-inline: auto; background: var(--vin); box-shadow: 0 0 0 1px var(--ligne); transition: width .55s var(--courbe); }
.dv[data-device="telephone"] .dv-zone { grid-template-columns: minmax(0, 390px) 48px; justify-content: center; }
.dv[data-device="telephone"] .dv-url { display: none; }
.dv-curseur input:focus-visible { outline-offset: -3px; }
.dv-chrome { display: flex; align-items: center; gap: 14px; min-height: 40px; padding: 0 14px; background: var(--os); color: var(--vin); font-size: 13px; }
.dv-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-fictif { flex: none; padding: 2px 7px; background: var(--vin); color: var(--os); font-size: 12px; }
.dv-chrome a { flex: none; margin-left: auto; min-height: 40px; display: flex; align-items: center; gap: 5px; font-weight: 500; color: var(--vin); text-decoration: underline; text-underline-offset: 3px; }
.dv-ecran { position: relative; height: clamp(440px, 70vh, 760px); overflow: hidden; background: #14120E; }
.dv-ecran iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; transform-origin: 0 0; background: #fff; }
.dv-b { clip-path: inset(var(--p) 0 0 0); }
html:not(.js) .dv-a, html:not(.js) .dv-ligne, html:not(.js) .dv-barre, html:not(.js) .dv-choix, html:not(.js) .dv-curseur, html:not(.js) .dv-note { display: none; }
html:not(.js) .dv-b { clip-path: none; }
html:not(.js) .dv-zone { grid-template-columns: minmax(0, 1fr); }
.dv-ligne { position: absolute; left: 0; right: 0; top: var(--p); height: 2px; margin-top: -1px; background: var(--tilleul); pointer-events: none; }
.dv-ligne::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 22px; background: linear-gradient(transparent, rgba(20, 8, 12, .22)); }
.dv-ligne span { position: absolute; right: 0; padding: 5px 9px; font-size: 12.5px; line-height: 1; font-weight: 500; transition: opacity .25s; }
.dv-lab-a { bottom: 2px; background: var(--vin); color: var(--os); }
.dv-lab-b { top: 2px; background: var(--tilleul); color: var(--vin); }
.aux-bords .dv-ligne { opacity: 0; }
.dv-curseur { position: relative; margin-top: 40px; }
.dv-curseur input { position: absolute; left: 0; top: -28px; width: 100%; height: calc(100% + 56px); margin: 0; writing-mode: vertical-lr; appearance: none; -webkit-appearance: none; background: linear-gradient(var(--ligne), var(--ligne)) center / 1px 100% no-repeat; cursor: ns-resize; }
.dv-curseur input::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 56px; background: var(--tilleul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v18M7 8l5-5 5 5M7 16l5 5 5-5' fill='none' stroke='%233A0C1C' stroke-width='1.4'/%3E%3C/svg%3E") center / 22px no-repeat; }
.dv-curseur input::-moz-range-thumb { width: 48px; height: 56px; border: 0; border-radius: 0; background: var(--tilleul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v18M7 8l5-5 5 5M7 16l5 5 5-5' fill='none' stroke='%233A0C1C' stroke-width='1.4'/%3E%3C/svg%3E") center / 22px no-repeat; }
.dv-choix { display: grid; grid-template-columns: 1fr 1fr; max-width: 520px; margin: 14px auto 0; box-shadow: inset 0 0 0 1px var(--ligne); }
.dv-choix button { min-height: 52px; padding: 8px 12px; background: none; border: 0; color: var(--muet); cursor: pointer; font: 500 15.5px/1.15 var(--texte); transition: background .3s, color .3s; }
.dv-choix button:hover { color: var(--enc); }
.dv-choix button[data-version="classique"][aria-pressed="true"] { background: var(--os); color: var(--vin); }
.dv-choix button[data-version="kalypro"][aria-pressed="true"] { background: var(--tilleul); color: var(--vin); }
.dv-note { margin-top: 12px; font-size: 13.5px; color: var(--muet); text-align: center; }
.dv-note-tactile { display: none; }
.dv-textes { margin-top: clamp(20px, 3vw, 36px); }
.dv-textes dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px var(--gout); }
.dv-textes dl[hidden] { display: none; }
.dv-textes dl > div { padding-top: 10px; border-top: 1px solid var(--ligne); }
.dv-textes dt { font-size: 13.5px; font-weight: 600; color: var(--acc); }
.dv-textes dd { margin: 4px 0 0; max-width: 38em; font-size: 16px; line-height: 1.42; color: var(--enc); }
@media (pointer: coarse), (max-width: 760px) {
  .dv-zone { grid-template-columns: minmax(0, 1fr); }
  .dv-curseur { display: none; }
  .dv-note-souris { display: none; }
  .dv-note-tactile { display: inline; }
}
@media (pointer: coarse) {
  .dv-ecran iframe { pointer-events: none; }
}
@media (max-width: 760px) {
  .dv-barre { display: block; margin-bottom: 8px; }
  .dv-appareils { display: none; }
  .dv-chapitres { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px; }
  .dv-chapitres button { font-size: 14px; }
  .dv-url { display: none; }
  .dv-ecran { height: min(62vh, 600px); min-height: 400px; }
  .dv-choix { max-width: none; }
  .dv-textes dl { grid-template-columns: minmax(0, 1fr); }
  .dv-note { text-align: left; }
}
@media (max-width: 350px) {
  .dv-chapitres { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .dv-chapitres button { text-align: left; }
  .dv-fictif { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-cadre { transition: none; }
}

/* Introduction de l'accueil. Le fond est posé avant le premier affichage ; s'il arrive malheur au script, il s'efface seul. */
html.intro-on::before { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--vin); animation: intro-secours .4s 5.2s forwards; pointer-events: none; }
html.intro-actif::before { display: none; }
@keyframes intro-secours { to { opacity: 0; visibility: hidden; } }
html.intro-actif .entete-logo .logo { visibility: hidden; }
.intro { position: fixed; inset: 0; z-index: 1000; overflow: hidden; }
.intro.intro-sort { pointer-events: none; }
.intro-sous { position: absolute; inset: 0; }
.intro-panneau { position: absolute; inset: 0; background: var(--vin); color: var(--os); }
.intro-toile { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-logo { position: absolute; display: block; visibility: hidden; transform-origin: 0 0; }
.intro-passer { position: absolute; right: var(--g); bottom: max(20px, env(safe-area-inset-bottom)); min-height: 44px; padding: 8px 2px; background: none; border: 0; border-bottom: 1px solid rgba(241, 236, 226, .4); color: var(--os); font: 400 14px/1.2 var(--texte); cursor: pointer; opacity: .72; animation: intro-passer .5s .5s both; transition: opacity .2s; pointer-events: auto; }
.intro-passer:hover, .intro-passer:focus-visible { opacity: 1; }
.intro-passer:focus-visible { outline: 2px solid var(--tilleul); outline-offset: 3px; }
@keyframes intro-passer { from { opacity: 0; } }
.intro-sort .intro-passer { display: none; }

/* Labs reste discret dans la navigation : en italique, après les pages de l’agence */
.nav .nav-labs { font-style: italic; }
@media (min-width: 1025px) and (max-width: 1260px) {
  /* Entre la tablette et le grand écran, la place manque : Labs reste dans le pied de page et le menu mobile. */
  .nav li:has(.nav-labs) { display: none; }
}
