/* ===== Offres v4 — la croix qui se déplace : au clic, les lignes glissent, les autres pictos rétrécissent, le texte apparaît ===== */
.croix { --line: rgba(255,255,255,.55); --gap: clamp(50px,6.4vw,96px); position: relative; background: var(--navy); min-height: 100svh; padding: clamp(76px,7vw,96px) 0 clamp(32px,4vw,52px); overflow: hidden; }
.croix h1 { margin: 0; text-align: center; font-size: clamp(30px,4.6vw,56px); font-weight: 400; color: #fff; letter-spacing: var(--title-tracking); font-family: var(--font-title); text-transform: uppercase; }
.croix .container { max-width: 1240px; }
.croix-cta { display: flex; justify-content: center; margin-top: clamp(20px,2.6vw,36px); }

.cross { --vx: 50%; --hy: 50%; --ease: cubic-bezier(.7,0,.2,1); position: relative; margin: clamp(18px,2.4vw,32px) auto 0; max-width: 1180px; height: clamp(440px, calc(100svh - 322px), 740px);
  display: grid; grid-template-columns: var(--vx) calc(100% - var(--vx)); grid-template-rows: var(--hy) calc(100% - var(--hy));
  transition: grid-template-columns .85s var(--ease), grid-template-rows .85s var(--ease), height .85s var(--ease); }
.cross.is-open { height: clamp(560px, 84svh, 760px); }
.cross[data-c="l"] { --vx: 76%; } .cross[data-c="r"] { --vx: 24%; }
.cross[data-r="t"] { --hy: 75%; } .cross[data-r="b"] { --hy: 25%; }
/* les deux lignes suivent les cellules */
.cross::before, .cross::after { content: ""; position: absolute; background: var(--line); pointer-events: none; z-index: 3; transition: left .85s var(--ease), top .85s var(--ease); }
.cross::before { left: var(--vx); top: 0; bottom: 0; width: 1px; }
.cross::after { top: var(--hy); left: 0; right: 0; height: 1px; }
.cross.jolt { animation: crossJolt .6s linear 1; }
@keyframes crossJolt { 0% { transform: none; } 12% { transform: translate(-4px,1px); } 26% { transform: translate(3px,-1px); } 42% { transform: translate(-2px,1px); } 60% { transform: translate(1px,0); } 100% { transform: none; } }

/* les 4 pictos (un par cellule) */
.q { position: relative; min-width: 0; min-height: 0; background: none; border: 0; padding: 0; margin: 0; color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.q::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,.07), rgba(255,255,255,0) 66%); opacity: 0; transition: opacity .45s ease; }
.q:hover::before, .q:focus-visible::before { opacity: 1; }
.q:focus-visible { outline: 2px solid var(--pink); outline-offset: -6px; }
.q-in { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; transition: left .85s var(--ease), top .85s var(--ease), opacity .45s ease; }
.q-pic { display: block; height: auto; width: clamp(80px,11vw,150px); transition: width .85s var(--ease), transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s ease; }
.q:hover .q-pic, .q:focus-visible .q-pic { transform: translateY(-8px) rotate(-5deg) scale(1.07); }
.q:hover .q-pic, .q:focus-visible .q-pic { filter: brightness(0) invert(15%) sepia(97%) saturate(7319%) hue-rotate(333deg) brightness(90%) contrast(134%); } /* blanc → #ff0046 */
.q-label b { transition: color .3s ease; }
.q:hover .q-label b, .q:focus-visible .q-label b { color: var(--pink); }
.q-label { position: relative; width: 190px; margin: 14px 0 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; opacity: 1; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.q-label b { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; letter-spacing: var(--title-tracking); line-height: 1.1; font-size: clamp(13px,1.3vw,17px); }

/* mode ouvert : l'offre choisie prend la grande cellule, les 3 autres pictos rétrécissent et se rangent contre les lignes */
.cross.is-open .q:not(.is-active) .q-pic { width: clamp(44px,6.4vw,92px); }
.cross.is-open .q.is-active .q-pic { opacity: 0; transform: scale(.6); pointer-events: none; }
.cross.is-open .q.is-active { cursor: default; }
.cross.is-open .q.is-active .q-label, .cross.is-open .q.is-active::before { display: none; }
.q.near-b .q-in { top: calc(100% - var(--gap)); } .q.near-t .q-in { top: var(--gap); }
.q.near-r .q-in { left: calc(100% - var(--gap)); } .q.near-l .q-in { left: var(--gap); }
.cross.is-open .q:not(.is-active) .q-label { width: 150px; margin: 8px 0 0; }
.cross.is-open .q:not(.is-active) .q-label b { font-size: 11px; }

/* le texte : dans la grande cellule, en fondu une fois les lignes en place */
.offer { position: relative; z-index: 2; min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(18px,2vw,30px) clamp(22px,4vw,64px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; scrollbar-width: thin; hyphens: auto; -webkit-hyphens: auto; }
.offer::before, .offer::after { content: ""; flex: 1 1 0; min-height: 0; }
.offer.on { opacity: 1; visibility: inherit; pointer-events: auto; transition: opacity .7s ease .7s, visibility 0s; }
.offer > * { max-width: 70ch; }
.offer h2 { margin: 0 0 clamp(8px,1.1vw,14px); font-family: var(--font-title); font-weight: 400; text-transform: uppercase; letter-spacing: var(--title-tracking); line-height: 1.1; color: #fff; font-size: clamp(22px,2.7vw,38px); text-wrap: balance; }
.offer p { margin: 0 0 .9em; font-size: clamp(14px,1.08vw,16px); line-height: 1.5; color: #fff; text-wrap: pretty; }
.offer .offre-hook { color: var(--pink); font-weight: 700; }
.offer .offre-quote { margin: clamp(10px,1.4vw,18px) 0 0; padding: 14px 0 0; border: 0; position: relative; }
.offer .offre-quote::before { content: ""; position: absolute; left: 50%; top: 0; width: 44px; height: 3px; margin-left: -22px; background: var(--pink); }
.offer .offre-quote p { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(13.5px,1.08vw,15px) !important; line-height: 1.5; margin: 0 0 8px !important; color: rgba(255,255,255,.8); }
.offer .offre-quote footer { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.55); }
.offer-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: 50%; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s ease, background-color .25s ease, border-color .25s ease; }
.offer.on .offer-close { opacity: 1; visibility: inherit; transition: opacity .5s ease 1.1s, background-color .25s ease, border-color .25s ease; }
.offer-close:hover, .offer-close:focus-visible { background: var(--pink); border-color: var(--pink); }
.offer-close svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* mobile : la croix reste telle quelle, le détail s'ouvre en plein écran */
@media (max-width: 820px) {
  .cross, .cross.is-open { height: min(62svh, 480px); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
  .cross::before { left: 50%; } .cross::after { top: 50%; }
  .q-pic { width: clamp(64px,24vw,110px); }
  .cross.is-open .q:not(.is-active) .q-pic { width: clamp(64px,24vw,110px); }
  .cross.is-open .q.is-active .q-pic { opacity: 1; transform: none; }
  .cross.is-open .q .q-in { left: 50% !important; top: 50% !important; }
  .offer { position: fixed; z-index: 900; inset: 0; background: var(--navy); padding: 84px 22px 40px; justify-content: flex-start; align-items: stretch; text-align: left; transform: translateY(20px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s linear .5s; }
  .offer::before, .offer::after { display: none; }
  .offer > * { max-width: none; }
  .offer.on { transform: none; transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .offer h2 { font-size: clamp(24px,7vw,32px); }
  .offer .offre-quote::before { left: 0; margin-left: 0; }
  .offer-close { position: fixed; top: 14px; right: 16px; z-index: 910; }
  .offer.on .offer-close { transition: opacity .3s ease .2s; }
  body.panel-lock { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .cross, .cross::before, .cross::after, .q-in, .q-pic, .offer, .offer.on, .q-label { transition: none !important; }
  .cross.jolt { animation: none; }
}

/* ≥ 821 px : textes des offres de gauche ferrés à droite, ceux des offres de droite ferrés à gauche (côté de la croix) */
@media (min-width: 821px) {
  #branding-txt, #preuve-txt { align-items: flex-end; text-align: right; }
  #transformation-txt, #accompagnement-txt { align-items: flex-start; text-align: left; }
  #branding-txt .offre-quote::before, #preuve-txt .offre-quote::before { left: auto; right: 0; margin-left: 0; }
  #transformation-txt .offre-quote::before, #accompagnement-txt .offre-quote::before { left: 0; margin-left: 0; }
  #branding-txt .offer-close, #preuve-txt .offer-close { right: 10px; }
}

/* page Offres : le texte d'accroche (seul texte restant) en blanc, graisse normale */
.offer .offre-hook { color: #fff; font-weight: 400; }
.offer .offre-body { color: #fff; font-weight: 400; }

/* Lot 1 v6 : mobile, les libellés ne mordent plus sur le filet central */
@media (max-width: 820px) {
  .q-label { width: min(150px, 34vw); }
  .q-label b { font-size: clamp(10.5px, 3.2vw, 14px); overflow-wrap: anywhere; }
  .cross.is-open .q:not(.is-active) .q-label { width: min(130px, 32vw); }
  .cross.is-open .q:not(.is-active) .q-label b { font-size: clamp(10px, 3vw, 11px); }
}
