/* =====================================================================
   EFFETS 3D DU SITE (démonstration)
   1. Logo JTI en 3D qui tourne + formes qui flottent, sur le diaporama
   2. Cartes qui s'inclinent en 3D sous la souris ou le doigt
   3. Profondeur au défilement (les images avancent / reculent)
   Tout se coupe si le téléphone demande « moins d'animations ».
   ===================================================================== */

/* ---------- 1. Logo 3D ---------- */
.scene-3d {
  position: absolute; z-index: 2; right: 8%; top: 50%;
  width: 260px; height: 260px; margin-top: -150px;
  perspective: 900px; pointer-events: none;
}
.cube-3d {
  position: absolute; inset: 40px; transform-style: preserve-3d;
  animation: tourne-3d 14s linear infinite;
}
.cube-3d .face {
  position: absolute; inset: 0; border-radius: 22px;
  background: #fff center / 82% no-repeat url('images/logo.jpg');
  box-shadow: inset 0 0 0 4px rgba(0, 74, 173, .25), 0 0 40px rgba(239, 150, 20, .35);
  backface-visibility: hidden;
}
.cube-3d .f1 { transform: translateZ(90px); }
.cube-3d .f2 { transform: rotateY(90deg) translateZ(90px); background: linear-gradient(135deg, #004aad, #06275a); }
.cube-3d .f3 { transform: rotateY(180deg) translateZ(90px); }
.cube-3d .f4 { transform: rotateY(-90deg) translateZ(90px); background: linear-gradient(135deg, #ef9614, #c76f00); }
.cube-3d .f5 { transform: rotateX(90deg) translateZ(90px); background: linear-gradient(135deg, #2a6fd6, #004aad); }
.cube-3d .f6 { transform: rotateX(-90deg) translateZ(90px); background: linear-gradient(135deg, #ffb347, #ef9614); }
.cube-3d .f2::after, .cube-3d .f4::after { content: 'JTI'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 54px Poppins, sans-serif; letter-spacing: 2px; }
.ombre-3d { position: absolute; left: 50%; bottom: -30px; width: 170px; height: 24px; margin-left: -85px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.45), transparent 70%); animation: ombre-3d 7s ease-in-out infinite; }
@keyframes tourne-3d { from { transform: rotateX(-14deg) rotateY(0); } to { transform: rotateX(-14deg) rotateY(360deg); } }
@keyframes ombre-3d { 50% { transform: scale(.8); opacity: .7; } }

/* Formes qui flottent */
.forme-3d { position: absolute; z-index: 2; pointer-events: none; transform-style: preserve-3d; animation: flotte-3d 9s ease-in-out infinite; }
.forme-3d.anneau { width: 90px; height: 90px; border: 10px solid rgba(239, 150, 20, .85); border-radius: 50%; right: 30%; top: 16%; animation-duration: 11s; }
.forme-3d.carre { width: 54px; height: 54px; border-radius: 12px; background: rgba(42, 111, 214, .75); right: 5%; top: 18%; }
.forme-3d.carre.petit { width: 30px; height: 30px; background: rgba(255, 201, 40, .85); right: 26%; bottom: 20%; top: auto; animation-duration: 7s; }
.forme-3d.carre.trois { width: 40px; height: 40px; background: rgba(255, 255, 255, .25); right: 12%; bottom: 14%; top: auto; animation-duration: 13s; }
@keyframes flotte-3d {
  0%, 100% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0); }
  50% { transform: translate3d(0, -26px, 60px) rotateX(180deg) rotateY(120deg) rotateZ(45deg); }
}

/* ---------- 2. Cartes en 3D ---------- */
.carte-3d { transform-style: preserve-3d; will-change: transform; }
.carte-3d.vu { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); transition: transform .5s ease-out, box-shadow .3s; }
.carte-3d.vu.bouge { transition: transform .08s linear, box-shadow .3s; box-shadow: 0 26px 50px rgba(6, 39, 90, .22); }
.carte-3d .reflet-3d { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 55%); }
.carte-3d.bouge .reflet-3d { opacity: 1; }
.carte-3d .icone, .carte-3d h3 { transform: translateZ(30px); }
/* Les blocs arrivent en se dépliant en 3D */
.apparait.carte-3d:not(.vu), .apparait.arrivee-3d:not(.vu) { transform: perspective(900px) rotateX(18deg) translateY(40px); }
/* Les cartes penchées ne doivent pas élargir la page sur téléphone */
html, body { overflow-x: clip; }

/* ---------- 3. Profondeur au défilement ---------- */
.profondeur-3d { will-change: transform; }

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  /* Sur téléphone : un petit cube en bas à droite, derrière le texte */
  .scene-3d { width: 84px; height: 84px; right: 12px; top: auto; bottom: 64px; margin-top: 0; z-index: 1; opacity: .9; }
  .cube-3d { inset: 14px; }
  .cube-3d .face { border-radius: 10px; }
  .cube-3d .f1 { transform: translateZ(28px); } .cube-3d .f2 { transform: rotateY(90deg) translateZ(28px); }
  .cube-3d .f3 { transform: rotateY(180deg) translateZ(28px); } .cube-3d .f4 { transform: rotateY(-90deg) translateZ(28px); }
  .cube-3d .f5 { transform: rotateX(90deg) translateZ(28px); } .cube-3d .f6 { transform: rotateX(-90deg) translateZ(28px); }
  .cube-3d .f2::after, .cube-3d .f4::after { font-size: 17px; }
  .ombre-3d { width: 56px; margin-left: -28px; bottom: -8px; height: 12px; }
  .forme-3d.anneau { width: 40px; height: 40px; border-width: 5px; right: 18px; top: 18px; }
  .forme-3d.carre { width: 26px; height: 26px; right: 70px; top: 40px; }
  .forme-3d.carre.trois, .forme-3d.carre.petit { display: none; }
}

/* Moins d'animations demandé par le téléphone : on arrête tout */
@media (prefers-reduced-motion: reduce) {
  .cube-3d, .forme-3d, .ombre-3d { animation: none; }
  .carte-3d.vu { transform: none !important; }
}

/* =====================================================================
   PLUS DE 3D (v2 de la démo)
   ===================================================================== */
/* 4. Réseau de points en 3D derrière le texte du diaporama */
.reseau-3d { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; opacity: .75; }

/* 5. Globe 3D « Depuis Abidjan » */
.bande-globe { background: radial-gradient(ellipse at 70% 50%, #0b3a85 0%, #06275a 60%, #041a3d 100%); color: #fff; padding: 70px 0; overflow: hidden; }
.bande-globe .conteneur { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.bande-globe h2 { font-size: 2.2rem; line-height: 1.2; margin: 10px 0 14px; color: #fff; }
.bande-globe h2 span { color: #f7b452; }
.bande-globe p { color: #cfdcf0; font-size: 1.02rem; }
.bande-globe .sur-titre { color: #f7b452; }
.villes-3d { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.villes-3d span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; padding: 5px 12px; font-size: .85rem; }
.villes-3d span.abidjan { background: #ef9614; border-color: #ef9614; font-weight: 600; }
.globe-3d { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; display: block; cursor: grab; touch-action: pan-y; }

/* 6. Titre en relief 3D */
.diapo h1 span, .diapo h2 span {
  text-shadow: 0 1px 0 #d9851a, 0 2px 0 #c97a14, 0 3px 0 #b86d10, 0 4px 0 #a5600c, 0 6px 10px rgba(0,0,0,.45);
}

/* 7. Boutons en relief qui s'enfoncent */
.bouton-orange, .btn-menu { box-shadow: 0 5px 0 #b86d10, 0 10px 18px rgba(0,0,0,.25) !important; transform: translateY(0); transition: transform .12s, box-shadow .12s !important; }
.bouton-orange:active, .btn-menu:active { transform: translateY(4px); box-shadow: 0 1px 0 #b86d10, 0 4px 8px rgba(0,0,0,.25) !important; }

/* 8. Organigramme : blocs en relief, la carte entière s'incline */
.organigramme .poste { box-shadow: 0 4px 0 rgba(6,39,90,.25), 0 10px 18px rgba(6,39,90,.12); transition: transform .25s, box-shadow .25s; transform: translateZ(0); }
.organigramme .poste:hover { transform: translateY(-5px) translateZ(30px); box-shadow: 0 9px 0 rgba(6,39,90,.25), 0 18px 26px rgba(6,39,90,.18); }

/* 9. Secteurs : petites tuiles qui se retournent en 3D */
.secteurs span { transition: transform .5s, background .3s, color .3s; transform-style: preserve-3d; }
.secteurs span:hover { transform: perspective(400px) rotateX(360deg); }
.secteurs.vu span { animation: tuile-3d .7s backwards; }
.secteurs.vu span:nth-child(2n) { animation-delay: .08s; } .secteurs.vu span:nth-child(3n) { animation-delay: .16s; } .secteurs.vu span:nth-child(5n) { animation-delay: .24s; }
@keyframes tuile-3d { from { transform: perspective(400px) rotateY(90deg); opacity: 0; } }

@media (max-width: 760px) {
  .bande-globe { padding: 50px 0; }
  .bande-globe .conteneur { grid-template-columns: 1fr; }
  .bande-globe h2 { font-size: 1.6rem; }
  .globe-3d { max-width: 300px; }
  .reseau-3d { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .secteurs.vu span { animation: none; }
  .secteurs span:hover { transform: none; }
}

/* =====================================================================
   v33 : carrousel 3D des services, logiciel en 3D, escalier « Comment ça marche »
   ===================================================================== */
/* ---------- Carrousel ---------- */
.car3d { --r: 235px; margin: -20px auto 50px; text-align: center; touch-action: pan-y; user-select: none; }
.car3d-scene { height: 220px; perspective: 1100px; position: relative; }
.car3d-anneau { position: absolute; left: 50%; top: 10px; width: 170px; height: 190px; margin-left: -85px; transform-style: preserve-3d; cursor: grab; }
.car3d-anneau:active { cursor: grabbing; }
.car3d-face {
  position: absolute; inset: 0; border: 0; border-radius: 20px; cursor: pointer; font: inherit;
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r));
  background: linear-gradient(150deg, #004aad, #06275a); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px;
  box-shadow: 0 18px 40px rgba(6, 39, 90, .28), inset 0 0 0 2px rgba(255, 255, 255, .12);
  backface-visibility: hidden;
}
.car3d-face:nth-child(even) { background: linear-gradient(150deg, #ef9614, #c76f00); }
.car3d-face svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.car3d-face b { font-size: 1.02rem; line-height: 1.25; }
.car3d-face span { font-size: .75rem; opacity: .8; }
.car3d-aide { color: var(--texte-doux); font-size: .85rem; margin-top: 18px; }
.service.car3d-eclat { animation: car3d-eclat 1.6s ease; }
@keyframes car3d-eclat { 0%, 100% { box-shadow: var(--ombre); } 30% { box-shadow: 0 0 0 4px #ef9614, 0 20px 50px rgba(239, 150, 20, .35); } }
@media (max-width: 760px) {
  .car3d { --r: 150px; margin-bottom: 36px; }
  .car3d-scene { height: 180px; perspective: 800px; }
  .car3d-anneau { width: 118px; height: 150px; margin-left: -59px; }
  .car3d-face { padding: 10px; border-radius: 16px; }
  .car3d-face span { display: none; }
  .car3d-face svg { width: 34px; height: 34px; }
  .car3d-face b { font-size: .86rem; }
}

/* ---------- Logiciel JTI Gestion ---------- */
.logiciel-3d { background: radial-gradient(circle at 75% 40%, #0b3d8a, #06275a 65%); color: #fff; overflow: hidden; }
.logiciel-grille { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; }
.logiciel-texte h2 { font-size: 2.1rem; line-height: 1.25; margin: 8px 0 14px; color: #fff; }
.logiciel-texte p { color: rgba(255, 255, 255, .82); }
.logiciel-texte ul { list-style: none; padding: 0; margin: 18px 0; }
.logiciel-texte li { padding: 5px 0 5px 28px; position: relative; }
.logiciel-texte li::before { content: '✓'; position: absolute; left: 0; color: #ffc928; font-weight: 700; }
.logiciel-prix { display: inline-block; background: rgba(255, 201, 40, .14); border: 1px solid rgba(255, 201, 40, .5); color: #ffc928; padding: 8px 16px; border-radius: 30px; margin-bottom: 22px; }
.logiciel-prix b { font-size: 1.3rem; }
.logiciel-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
.logiciel-scene { perspective: 1600px; min-height: 380px; position: relative; }
.logiciel-objets {
  position: relative; height: 380px; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg)); transition: transform .5s ease-out;
  animation: logiciel-flotte 7s ease-in-out infinite;
}
@keyframes logiciel-flotte { 50% { translate: 0 -12px; } }
.ordi-3d { position: absolute; left: 0; right: 70px; top: 10px; transform-style: preserve-3d; }
.ordi-ecran {
  position: relative; aspect-ratio: 16 / 10; background: #0d1626; border: 12px solid #1b2433; border-bottom-width: 18px;
  border-radius: 14px 14px 4px 4px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.ordi-ecran img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.04); transition: opacity .9s, transform 4s linear; }
.ordi-ecran img.actif { opacity: 1; transform: scale(1); }
.ordi-titre { position: absolute; left: 10px; bottom: 10px; background: rgba(6, 39, 90, .85); color: #ffc928; font-size: .75rem; padding: 4px 10px; border-radius: 20px; }
.ordi-base { height: 16px; margin: 0 -6%; background: linear-gradient(#c9d1dc, #8e99a8); border-radius: 0 0 16px 16px; transform: rotateX(70deg); transform-origin: top; box-shadow: 0 24px 30px rgba(0, 0, 0, .35); }
.tel-3d { position: absolute; right: 0; bottom: 10px; width: 150px; transform: translateZ(70px); }
.tel-ecran { aspect-ratio: 9 / 18.5; background: #0d1626; border: 7px solid #111; border-radius: 26px; overflow: hidden; box-shadow: 0 25px 50px rgba(0, 0, 0, .5); }
.tel-ecran img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 900px) {
  .logiciel-grille { grid-template-columns: 1fr; gap: 30px; }
  .logiciel-texte h2 { font-size: 1.6rem; }
  .logiciel-scene, .logiciel-objets { min-height: 0; height: 270px; }
  .ordi-3d { right: 60px; }
  .tel-3d { width: 96px; transform: translateZ(40px); }
  .tel-ecran { border-width: 5px; border-radius: 16px; }
}

/* ---------- Escalier « Comment ça marche » ---------- */
.escalier-3d { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: end; perspective: 1400px; }
.marche-3d {
  position: relative; background: #fff; border-radius: 18px; padding: 26px 20px 22px; text-align: center;
  box-shadow: 0 14px 34px rgba(6, 39, 90, .14), 0 6px 0 #d8e2f0;
  margin-bottom: calc(var(--i) * 26px);
  opacity: 0; transform: rotateX(55deg) translateY(60px); transform-origin: bottom;
  transition: opacity .7s calc(var(--i) * .18s), transform .9s cubic-bezier(.2, .9, .3, 1.3) calc(var(--i) * .18s);
}
.escalier-3d.vu .marche-3d { opacity: 1; transform: none; }
.marche-3d:hover { transform: translateY(-8px) rotateX(8deg) !important; transition-delay: 0s; }
.marche-num { position: absolute; top: -18px; left: 50%; margin-left: -18px; width: 36px; height: 36px; border-radius: 50%; background: #ef9614; color: #fff; font-weight: 700; line-height: 36px; box-shadow: 0 6px 14px rgba(239, 150, 20, .4); }
.marche-ic { font-size: 2rem; margin: 6px 0 4px; }
.marche-3d h3 { color: var(--bleu-nuit); margin: 4px 0 8px; }
.marche-3d p { color: var(--texte-doux); font-size: .92rem; margin: 0; }
.marche-3d:nth-child(4) { background: linear-gradient(150deg, #004aad, #06275a); }
.marche-3d:nth-child(4) h3, .marche-3d:nth-child(4) p { color: #fff; }
@media (max-width: 760px) {
  .escalier-3d { grid-template-columns: 1fr 1fr; gap: 36px 14px; }
  .marche-3d { margin-bottom: calc(var(--i) * 0px); padding: 24px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .logiciel-objets { animation: none; }
  .marche-3d { transition: none; }
}

/* =====================================================================
   v34 : plaquette qui se feuillette
   --p = largeur d'une page ; le livre ouvert fait 2 pages
   ===================================================================== */
.plaquette-3d { background: linear-gradient(180deg, #f4f7fb, #e6edf7); }
.pq-cadre { --p: 360px; --h: 490px; width: calc(var(--p) * 2); max-width: 100%; height: var(--h); margin: 0 auto; perspective: 2200px; cursor: pointer; user-select: none; }
.pq-livre { position: relative; width: calc(var(--p) * 2); height: 100%; margin-left: 50%; transform-style: preserve-3d; transition: transform .8s ease; }
.pq-feuille { position: absolute; left: 50%; top: 0; width: var(--p); height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45, .05, .3, 1); }
.pq-feuille.tournee { transform: rotateY(-180deg); }
.pq-page {
  position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden;
  background: #fff; padding: 30px 28px 34px; font-size: 14px; line-height: 1.55; color: var(--texte);
  box-shadow: inset 12px 0 18px -12px rgba(6, 39, 90, .25), 0 14px 30px rgba(6, 39, 90, .18);
  border-radius: 0 10px 10px 0;
}
.pq-verso { transform: rotateY(180deg); border-radius: 10px 0 0 10px; box-shadow: inset -12px 0 18px -12px rgba(6, 39, 90, .25), 0 14px 30px rgba(6, 39, 90, .18); }
.pq-page h4 { color: var(--bleu-nuit); font-size: 1.3em; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 3px solid #ef9614; }
.pq-page p { margin: 0 0 12px; }
.pq-page ul { margin: 2px 0 0; padding-left: 18px; }
.pq-num { position: absolute; bottom: 12px; right: 18px; font-size: .8em; color: #8a97a8; }
.pq-verso .pq-num { right: auto; left: 18px; }
.pq-couv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; background: radial-gradient(circle at 30% 20%, #0b4fb0, #06275a 70%); }
.pq-couv img { width: 42%; background: #fff; border-radius: 16px; padding: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.pq-couv h3 { margin: 18px 0 4px; font-size: 1.4em; letter-spacing: 1px; }
.pq-couv p { color: #ffc928; margin: 0; }
.pq-couv em { font-style: normal; font-size: 1.15em; margin-top: 6px; }
.pq-couv small { margin-top: 10px; opacity: .75; }
.pq-trait { width: 60px; height: 3px; background: #ef9614; margin: 16px 0; }
.pq-dos { background: radial-gradient(circle at 70% 80%, #c76f00, #06275a 75%); }
.pq-valeurs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pq-valeurs span { background: #f4f7fb; border-radius: 8px; padding: 8px; font-size: .92em; }
.pq-dom { margin-bottom: 12px; }
.pq-dom b { color: var(--bleu); }
.pq-img { width: 100%; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(6, 39, 90, .2); }
.pq-prix { color: #c76f00; }
.pq-etapes { padding-left: 20px; }
.pq-etapes li { margin-bottom: 10px; }
.pq-contact { line-height: 2; word-break: break-word; }
.pq-rdv { display: inline-block; background: #ef9614; color: #fff; padding: 8px 18px; border-radius: 30px; text-decoration: none; font-weight: 600; }
.pq-commandes { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 24px; }
.pq-commandes button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bleu); color: #fff; font-size: 1rem; cursor: pointer; box-shadow: 0 6px 14px rgba(0, 74, 173, .3); }
.pq-commandes button:disabled { opacity: .35; cursor: default; }
.pq-pos { min-width: 120px; text-align: center; color: var(--texte-doux); font-weight: 600; }
@media (max-width: 759px) {
  /* téléphone : une seule page visible, le livre glisse */
  .pq-cadre { --p: min(calc(100vw - 40px), 340px); --h: calc(var(--p) * 1.45); width: var(--p); overflow: hidden; perspective: 1500px; }
  .pq-livre { margin-left: 0; }
  .pq-page { font-size: 13px; padding: 24px 20px 30px; }
}
@media (prefers-reduced-motion: reduce) { .pq-feuille, .pq-livre { transition: none; } }

/* =====================================================================
   v35 : Nos projets
   ===================================================================== */
.projets-3d { background: #fff; }
.pj-liste { display: flex; flex-direction: column; gap: 70px; }
.pj-carte { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.pj-inverse .pj-visuel { order: 2; }
.pj-visuel { perspective: 1400px; }
.pj-cadre {
  position: relative; border-radius: 16px; overflow: hidden; transform-style: preserve-3d;
  transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 6deg)); transition: transform .5s ease-out;
  box-shadow: 30px 40px 60px -20px rgba(6, 39, 90, .45), 0 0 0 1px rgba(6, 39, 90, .08);
}
.pj-inverse .pj-cadre { transform: rotateY(var(--ry, 14deg)) rotateX(var(--rx, 6deg)); box-shadow: -30px 40px 60px -20px rgba(6, 39, 90, .45), 0 0 0 1px rgba(6, 39, 90, .08); }
.pj-cadre img { display: block; width: 100%; height: auto; }
.pj-reflet { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) calc(var(--gx, 50%) - 5%), transparent 70%); }
.pj-texte h3 { font-size: 2rem; color: var(--bleu-nuit); margin: 0; }
.pj-texte h3 em { font-style: normal; color: #e0a800; }
.pj-sous { color: var(--texte-doux); font-weight: 600; margin: 4px 0 14px; }
.pj-texte p { color: var(--texte); }
.pj-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.pj-points span { border: 1px solid #c9d6ea; background: #f4f7fb; color: var(--bleu-nuit); border-radius: 30px; padding: 6px 14px; font-size: .88rem; }
@media (max-width: 860px) {
  .pj-carte { grid-template-columns: 1fr; gap: 26px; }
  .pj-inverse .pj-visuel { order: 0; }
  .pj-cadre, .pj-inverse .pj-cadre { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 8deg)); box-shadow: 0 30px 50px -20px rgba(6, 39, 90, .45); }
  .pj-texte h3 { font-size: 1.6rem; }
  .pj-liste { gap: 50px; }
}
/* Menu : avec « Projets » en plus, tout doit tenir sur une ligne */
@media (min-width: 761px) {
  nav ul { gap: 18px; }
  nav a { white-space: nowrap; font-size: 0.95rem; }
  .btn-menu { padding: 9px 18px; white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1280px) { .logo-texte small { display: none; } }
@media (min-width: 1001px) and (max-width: 1180px) { nav ul { gap: 13px; } nav a { font-size: 0.9rem; } .logo-texte { margin-right: 10px; } }

/* =====================================================================
   v36 : Notre équipe (cartes qui se retournent)
   ===================================================================== */
.equipe-3d { background: #fff; }
.eq-grille { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.eq-carte { width: 280px; height: 420px; perspective: 1200px; cursor: pointer; outline: none; }
.eq-interieur { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .9, .3, 1.15); }
@media (hover: hover) { .eq-carte:hover .eq-interieur { transform: rotateY(180deg); } }
.eq-carte:focus-visible .eq-interieur, .eq-carte.retournee .eq-interieur { transform: rotateY(180deg); }
.eq-face { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; backface-visibility: hidden; box-shadow: 0 20px 44px rgba(6, 39, 90, .22); }
.eq-avant { background: #06275a; }
.eq-photo { position: absolute; inset: 0; }
.eq-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.eq-photo span { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 4rem; font-weight: 700; color: #ffc928; background: radial-gradient(circle at 30% 20%, #0b4fb0, #06275a 70%); }
.eq-nom { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; color: #fff; background: linear-gradient(transparent, rgba(6, 39, 90, .92) 55%); }
.eq-nom b { display: block; font-size: 1.2rem; }
.eq-nom span { color: #ffc928; font-weight: 600; font-size: .92rem; }
.eq-avant::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #ef9614; }
.eq-arriere {
  transform: rotateY(180deg); background: radial-gradient(circle at 80% 10%, #0b4fb0, #06275a 70%); color: #fff;
  padding: 30px 24px; display: flex; flex-direction: column;
}
.eq-arriere > b { font-size: 1.25rem; }
.eq-poste { color: #ffc928; font-weight: 600; margin-bottom: 14px; }
.eq-arriere p { color: rgba(255, 255, 255, .85); font-size: .93rem; margin: 0 0 14px; }
.eq-comp { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-comp span { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 20px; padding: 4px 11px; font-size: .8rem; }
.eq-liens { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; }
.eq-liens a { flex: 1; text-align: center; background: #ef9614; color: #fff; text-decoration: none; padding: 9px 6px; border-radius: 30px; font-weight: 600; font-size: .88rem; }
.eq-liens a + a { background: #25d366; }
@media (prefers-reduced-motion: reduce) { .eq-interieur { transition: none; } }
@media (min-width: 761px) { .eq-grille { gap: 24px; } .eq-carte { width: 255px; height: 410px; } .eq-nom b { font-size: 1.08rem; } }
.eq-liens:empty { display: none; }
.eq-arriere { padding: 24px 20px 20px; }
.eq-arriere p { font-size: .86rem; line-height: 1.5; }
.eq-comp span { font-size: .76rem; padding: 3px 10px; }
.eq-carte { height: 450px; }
@media (min-width: 761px) { .eq-carte { height: 490px; } }
.eq-liens a { white-space: nowrap; font-size: .82rem; padding: 9px 4px; }
@media (min-width: 1100px) { .eq-grille { max-width: 820px; margin: 0 auto; } }

/* =====================================================================
   v39 : bande « Ils nous font confiance »
   ===================================================================== */
.confiance { padding: 40px 0 34px; background: #fff; text-align: center; overflow: hidden; }
.confiance .sur-titre { display: block; margin-bottom: 20px; }
.cf-bande { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cf-piste { display: flex; gap: 22px; width: max-content; animation: cf-defile var(--duree, 40s) linear infinite; }
.cf-bande:hover .cf-piste { animation-play-state: paused; }
@keyframes cf-defile { to { transform: translateX(-50%); } }
.cf-logo { display: flex; align-items: center; gap: 12px; height: 76px; padding: 0 22px; background: #f4f7fb; border: 1px solid #e3eaf4; border-radius: 16px; flex: none; transition: transform .3s, box-shadow .3s; }
.cf-logo:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(6, 39, 90, .12); }
.cf-logo img { max-height: 52px; max-width: 120px; object-fit: contain; filter: grayscale(.35); transition: filter .3s; }
.cf-logo:hover img { filter: none; }
.cf-init { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #004aad, #06275a); color: #ffc928; font-weight: 700; }
.cf-nom { text-align: left; font-weight: 600; color: var(--bleu-nuit); white-space: nowrap; line-height: 1.2; }
.cf-nom small { display: block; font-weight: 400; color: var(--texte-doux); font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .cf-piste { animation-duration: 120s; } }
