/* Pages projet (modèle CMS « Projets ») : refonte d'après la maquette pages-projet/maquette/projet-v1.html (27/10/2026).
   Version nuit (fond bleu du site, v2), grande image nette, texte en colonne étroite, galerie en mosaïque.
   Variante « reel vertical » : classe pj-vertical posée par projet.js quand la vidéo est plus haute que large.
   S'ajoute aux styles Webflow et à l'embed du lecteur vidéo, sans les remplacer. */
.main-wrapper{--fond:transparent;--carte:rgba(255,249,235,.04);--encre:#fff9eb;--doux:rgba(255,249,235,.66);--ligne:rgba(255,249,235,.14);--accent:#fc0;--jaune:#fc0;--mono:ui-monospace,"SF Mono",Menlo,monospace;--ease:cubic-bezier(.2,.8,.2,1);
  background:var(--fond);color:var(--encre)}
.main-wrapper .container-large{max-width:1200px}

/* en-tête : retour à gauche, catégorie, titre, infos et bouton à droite */
/* centré sur la colonne du texte : retour, catégorie, titre, infos, bouton, puis le filet aligné sur le texte (v4) */
.main-wrapper .projet-hero{display:flex;flex-direction:column;align-items:flex-start;max-width:680px;margin:0 auto;padding:clamp(40px,5vw,64px) 0 28px;border-bottom:1px solid var(--ligne)}
.main-wrapper .projet-hero>*{margin:0}
/* v5 : plus de lien retour ni de catégorie au-dessus du titre ; la catégorie rejoint la ligne d'infos (déplacée par projet.js) */
.main-wrapper .projet-back,.main-wrapper .projet-hero>.projet-hero-tag{display:none}
.main-wrapper .projet-hero-meta .projet-hero-tag{margin:0 0 0 6px;font-size:11px}
.main-wrapper .projet-back:hover{color:var(--encre)}
.main-wrapper .projet-hero-tag{justify-self:start;display:inline-flex;align-items:center;gap:8px;border:0;padding:0;background:none;font:12px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:18px}
.main-wrapper .projet-hero-tag::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.main-wrapper .projet-hero-title{font-weight:400;font-size:clamp(36px,4.6vw,64px);line-height:1.02;letter-spacing:-.04em;max-width:18ch;color:var(--encre)}
.main-wrapper .projet-hero-meta{margin-top:26px;font-size:14px;color:var(--doux);gap:10px}
.main-wrapper .projet-hero-meta>div:first-child{color:var(--encre)}
.main-wrapper .projet-hero-button{justify-self:start;margin-top:20px;background:var(--jaune);color:#07052a;border-radius:999px;padding:10px 18px;font-size:14px;font-weight:600;text-decoration:none}

/* média principal : grande image nette, coins arrondis, dans la largeur du contenu */
/* le média passe en premier, juste sous le menu (section déplacée au-dessus du titre dans le modèle, 27/10) */
.main-wrapper .section_projet-cover{padding:clamp(12px,1.6vw,24px) clamp(12px,1.6vw,24px) 0;max-width:1680px;margin:0 auto}
.main-wrapper .projet-cover{height:auto;border-radius:22px;overflow:hidden;background:rgba(255,249,235,.04)}
/* grande image : environ 2/3 de la hauteur de l'écran (le flou du bas d'écran mange le reste) */
.main-wrapper .projet-cover:not(.is-framed) .projet-cover-image{width:100%;height:min(66vh,56.25vw);object-fit:cover;display:block}
body:not(.pj-vertical) .main-wrapper .projet-cover.is-framed .projet-video{height:min(60vh,calc(100cqw / (var(--video-ratio,16 / 9))))}
.main-wrapper .projet-cover.is-framed{background:rgba(255,249,235,.04);padding:clamp(16px,3vw,40px);border-radius:22px}
.main-wrapper .projet-video{border-radius:14px;box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}

/* texte : colonne étroite centrée, infos en pastilles dessous */
.main-wrapper .projet-content{display:block;max-width:680px;margin:0 auto;padding:clamp(48px,6vw,80px) 0}
.main-wrapper .projet-label{display:none}
.main-wrapper .projet-description,.main-wrapper [data-projet-texte]{color:color-mix(in srgb,var(--encre) 82%,transparent);font-size:17px;line-height:1.65}
.main-wrapper [data-projet-texte]>p:first-child{font-size:clamp(19px,1.6vw,22px);line-height:1.55;color:var(--encre);margin-bottom:30px}
.main-wrapper [data-projet-texte] h2{font-weight:400;font-size:clamp(26px,2.4vw,32px);letter-spacing:-.03em;line-height:1.15;margin:44px 0 14px;color:var(--encre)}
.main-wrapper [data-projet-texte] a{color:var(--accent)}
.main-wrapper .projet-content-side{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px}
.main-wrapper .projet-content-side>div{display:contents}
.main-wrapper .projet-pills{display:flex;flex-wrap:wrap;gap:8px}
.main-wrapper .projet-side-text{width:fit-content}
.main-wrapper .projet-pill,.main-wrapper .projet-side-text{border:1px solid var(--ligne);border-radius:999px;padding:7px 13px;font-size:14px;background:none;color:var(--encre)}

/* variante verticale (reel, photo verticale) : le média à gauche, tout le texte dans un seul bloc à droite */
.pj-vertical .main-wrapper .pj-grille-reel{display:grid;grid-template-columns:minmax(280px,400px) 1fr;gap:clamp(32px,6vw,96px);align-items:start;max-width:1200px;margin:0 auto;padding:clamp(32px,4vw,56px) clamp(16px,2.8vw,40px) 0}
.pj-vertical .main-wrapper .pj-grille-reel .section_projet-cover{padding:0;margin:0;max-width:none}
.pj-vertical .main-wrapper .pj-grille-reel .projet-cover.is-framed{padding:0;background:none}
.pj-vertical .main-wrapper .pj-grille-reel .projet-video{height:auto;width:100%;border-radius:26px}
.pj-vertical .main-wrapper .pj-droite .padding-global{padding:0}
.pj-vertical .main-wrapper .pj-droite .container-large{max-width:none}
.pj-vertical .main-wrapper .pj-droite .projet-hero{max-width:none;margin:0;padding:0;border:0}
.pj-vertical .main-wrapper .pj-droite .projet-back{margin-bottom:28px;padding:0}
.pj-vertical .main-wrapper .pj-droite .projet-hero-title{font-size:clamp(34px,3.8vw,56px)}
.pj-vertical .main-wrapper .pj-droite .projet-content{margin:0;max-width:620px;padding:36px 0 clamp(48px,6vw,80px)}

/* le mot de l'équipage (masqué quand la citation est vide) */
.pj-equipe-section{padding:0 clamp(16px,2.8vw,40px)}
.pj-equipe-section:has(.pj-eq-citation.w-dyn-bind-empty){display:none}
.pj-equipe{max-width:760px;margin:clamp(24px,4vw,48px) auto clamp(48px,6vw,88px);display:grid;grid-template-columns:88px 1fr;gap:24px;align-items:start;padding:28px 30px;border-radius:26px 26px 26px 6px;background:var(--jaune);color:#07052a}
.pj-eq-photo{width:88px;height:88px;border-radius:50%;overflow:hidden;background:#f5d23b}
.pj-eq-photo img{width:100%;height:100%;object-fit:cover;display:block}
.pj-eq-tag{display:inline-flex;align-items:center;gap:8px;font:12px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;margin-bottom:12px}
.pj-eq-tag::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.main-wrapper .pj-eq-citation{font-size:clamp(19px,1.7vw,23px);line-height:1.45;letter-spacing:-.01em;margin:0}
.pj-eq-qui{margin-top:14px;font-size:14px}
.pj-eq-qui b{font-weight:600}

/* galerie : mosaïque qui garde le format de chaque image, agrandissement au clic */
.main-wrapper .section_projet-gallery{max-width:calc(1200px + 2*clamp(16px,2.8vw,40px));margin:0 auto;padding:0 clamp(16px,2.8vw,40px) clamp(56px,7vw,100px)}
.main-wrapper .section_projet-gallery::before{content:"En images";display:block;font-size:clamp(28px,3vw,40px);letter-spacing:-.035em;margin-bottom:22px}
.main-wrapper .projet-gallery{display:block;columns:3;column-gap:14px}
.main-wrapper .projet-gallery-item{break-inside:avoid;margin-bottom:14px;border-radius:16px;overflow:hidden;cursor:zoom-in;transition:transform .4s var(--ease)}
.main-wrapper .projet-gallery-item:hover{transform:scale(.985)}
.main-wrapper .projet-gallery-image{display:block;width:100%;height:auto}
.pj-zoom{position:fixed;inset:0;z-index:1000;background:rgba(7,5,42,.92);display:none;place-items:center;padding:4vw;cursor:zoom-out}
.pj-zoom.on{display:grid}
.pj-zoom img{max-width:min(1200px,100%);max-height:88vh;border-radius:14px;object-fit:contain}

/* témoignage client */
.main-wrapper .section_projet-temoignage{padding:0 clamp(16px,2.8vw,40px) clamp(56px,7vw,100px)}
.main-wrapper .projet-temoignage{background:var(--carte);border:1px solid var(--ligne);border-radius:24px;padding:clamp(28px,4vw,52px);color:var(--encre)}
.main-wrapper .projet-temoignage-stat{color:var(--accent);letter-spacing:-.05em}
.main-wrapper .projet-temoignage-stat-text,.main-wrapper .projet-temoignage-company{color:var(--doux)}
.main-wrapper .projet-temoignage-quote,.main-wrapper .projet-temoignage-name{color:var(--encre)}

/* fin de page : encart jaune pour faire ressortir l'appel à l'action (v6) */
.main-wrapper .section_projet-cta{border:0;padding:0 clamp(12px,1.6vw,24px) clamp(56px,7vw,100px)}
.main-wrapper .projet-cta{max-width:1200px;margin:0 auto;background:var(--jaune);color:#07052a;border-radius:28px;padding:clamp(40px,6vw,80px) clamp(24px,4vw,56px);text-align:center}
.main-wrapper .projet-cta-title{color:#07052a;font-weight:400;letter-spacing:-.045em}
.main-wrapper .projet-cta-text{color:rgba(7,5,42,.72)}
.main-wrapper .projet-cta-button{background:#07052a;color:#fff9eb;box-shadow:none}
.main-wrapper .projet-cta-link{color:#07052a}

@media (max-width:860px){
  .main-wrapper .projet-hero{grid-template-columns:1fr;row-gap:0;padding-top:32px}
  .main-wrapper .projet-back{grid-row:auto;grid-column:1;margin-bottom:14px}
  .main-wrapper .projet-hero>*{grid-column:1}
  .main-wrapper .projet-cover:not(.is-framed) .projet-cover-image{aspect-ratio:4/3}
  .main-wrapper .projet-cover,.main-wrapper .projet-cover.is-framed{border-radius:16px}
  .pj-vertical .main-wrapper .pj-grille-reel{grid-template-columns:1fr}
  .pj-vertical .main-wrapper .pj-grille-reel .section_projet-cover{position:static;max-width:340px;margin:0 auto;width:100%}
  .main-wrapper .projet-gallery{columns:2;column-gap:10px}
  .main-wrapper .projet-gallery-item{margin-bottom:10px;border-radius:12px}
  .pj-equipe{grid-template-columns:1fr;padding:24px}
  .pj-eq-photo{width:64px;height:64px}
}
