/* PRIVATE DRAFT, NOT BROWSER-VERIFIED.
 * Link this file only in the 14 reviewed trade-homepage templates, never globally.
 * Existing words, image files, links, forms, logos and #prestations section box remain.
 * The native v3 photo rules use !important; transform the FIGURE, not its IMG.
 */
main>.hero-c>.ms-photo-strip{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px;padding:24px 22px;overflow:visible;
}
main>.hero-c>.ms-photo-strip>.ms-photo-frame{
  box-sizing:border-box;position:relative;min-width:0;aspect-ratio:1;
  border:3px solid #2f6f73;border-bottom-color:var(--accent,#f08a24);
  background:var(--paper,#fff);
  box-shadow:6px 7px 0 #1c4345,13px 19px 25px rgba(28,67,69,0.15);
  transform:perspective(900px) rotateX(2deg) rotateY(-4deg);
  transform-origin:center;transition:transform .25s ease,box-shadow .25s ease;
  outline-color:#1c4345;
}
@media(hover:hover) and (pointer:fine){
  main>.hero-c>.ms-photo-strip>.ms-photo-frame:hover{transform:perspective(900px) rotateX(-1deg) rotateY(4deg)}
}
@media(max-width:700px){
  main>.hero-c>.ms-photo-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px;padding:18px 16px}
  main>.hero-c>.ms-photo-strip>.ms-photo-frame{border-width:2px;box-shadow:4px 5px 0 #1c4345,8px 12px 17px rgba(28,67,69,0.15)}
  main>.hero-c>.ms-photo-strip>.ms-photo-frame:last-child:nth-child(odd){grid-column:1/-1;justify-self:center;width:calc((100% - 15px)/2)}
}
@media(max-width:319px){
  main>.hero-c>.ms-photo-strip{grid-template-columns:1fr!important}
  main>.hero-c>.ms-photo-strip>.ms-photo-frame:last-child:nth-child(odd){grid-column:auto;width:100%}
}
@media(prefers-reduced-motion:reduce){
  main>.hero-c>.ms-photo-strip>.ms-photo-frame,main>.hero-c>.ms-photo-strip>.ms-photo-frame:hover{transition:none;transform:none}
}
@media(min-width:1200px){
  @supports(grid-template-columns:subgrid){
    main{
      display:grid;align-items:start;
      grid-template-columns:minmax(16px,1fr) repeat(6,minmax(0,calc(1168px / 6))) minmax(16px,1fr);
    }
    main>.hero-c{display:contents}
    main>.hero-c>.ms-photo-strip{grid-column:1/-1;grid-row:1}
    main>.hero-c>.panel-wrap{
      grid-column:2/span 4;grid-row:2;width:800px;max-width:none;
      margin-left:0;margin-right:0;padding-left:0;padding-right:0;
    }
    main>.cost{grid-column:6/span 2;grid-row:2/span 4;margin-top:20px;padding-left:54px;min-width:0;align-self:start}
    main>.cost>.wrap{display:block;max-width:none;width:100%;padding:0;margin:0}
    main>.cost h2{font-size:25px;line-height:1.16;margin:0 0 18px;text-wrap:balance}
    main>.cost .txt{min-width:0}
    main>.cost .txt p{font-size:16px;line-height:1.6;margin:0 0 15px;max-width:none}
    main>.cost .txt p.fin{margin-top:20px!important;padding-top:13px;border-top-width:3px;font-size:21px!important;line-height:1.25!important}
    main>:not(.hero-c):not(.cost){grid-column:1/-1}
    main>section.metiers.sec{
      grid-column:2/span 6;grid-row:3/span 6;min-width:0;
      display:grid;grid-template-columns:subgrid;grid-template-rows:subgrid;
    }
    main>section.metiers.sec>.wrap{display:contents}
    main>section.metiers.sec>.wrap>h2{grid-column:1/span 4;grid-row:1;margin:24px 0 12px}
    main>section.metiers.sec>.wrap>.lead{grid-column:1/span 4;grid-row:2;margin:0 0 22px}
    main>section.metiers.sec>.wrap>.ph-grid{display:contents!important}
    main>section.metiers.sec .ph-grid>.tile{min-width:0;margin:0 8px 12px 0;border:1px solid var(--rule,#d9d3c7)}
    main>section.metiers.sec .ph-grid>.tile:nth-child(1){grid-column:1/span 2!important;grid-row:3}
    main>section.metiers.sec .ph-grid>.tile:nth-child(2){grid-column:3/span 2!important;grid-row:3}
    main>section.metiers.sec .ph-grid>.tile:nth-child(3n+3){grid-column:1/span 2!important}
    main>section.metiers.sec .ph-grid>.tile:nth-child(3n+4){grid-column:3/span 2!important}
    main>section.metiers.sec .ph-grid>.tile:nth-child(3n+5){grid-column:5/span 2!important}
  }
}
