style.scss 31 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186
  1. // GENERAL STYLES
  2. .picto {
  3. display: block;
  4. cursor: pointer;
  5. background-color: $mainColor;
  6. }
  7. .picto-url {
  8. display: inline-block;
  9. width: $pictoInlineWidth;
  10. height: $pictoInlineHeight;
  11. }
  12. h1, h2 {
  13. font-family: $titleFont;
  14. font-size: $titleFontSizeMobile;
  15. line-height: $titleLineHeight;
  16. }
  17. h4 {
  18. display: block;
  19. padding-top: 0.8rem;
  20. width: 100%;
  21. font-family: $titleFont;
  22. font-size: $currentLineHeight;
  23. cursor: pointer;
  24. a {
  25. text-decoration: underline;
  26. text-decoration-thickness: 1px;
  27. }
  28. }
  29. h4:first-of-type {
  30. padding-top: 0;
  31. }
  32. h4 + p {
  33. margin-bottom: 0.5rem !important;
  34. em {
  35. display: block;
  36. font-size: $tinySize;
  37. cursor: pointer;
  38. > img {
  39. display: inline-block;
  40. height: $tinySize;
  41. width: $tinySize !important;
  42. margin-bottom: unset !important;
  43. margin-left: 0.3rem;
  44. transform: rotate(0deg);
  45. @include transition-ease-out(transform);
  46. }
  47. > img.open {
  48. transform: rotate(180deg);
  49. }
  50. }
  51. }
  52. h4 + p + p {
  53. margin-bottom: 0 !important;
  54. padding-bottom: 0rem;
  55. font-size: $tinySize;
  56. max-height: 0px;
  57. height: auto;
  58. overflow: hidden;
  59. @include transition-ease-out(max-height, padding-bottom);
  60. }
  61. h4 + p + p.open {
  62. max-height: 50vh;
  63. padding-bottom: 1rem;
  64. }
  65. h4 + p + p + h2 {
  66. margin-top: 1.5rem;
  67. }
  68. p, ul, figcaption {
  69. font-family: $mainFont;
  70. font-size: $currentSize;
  71. line-height: $currentLineHeight;
  72. }
  73. strong {
  74. font-weight: bold;
  75. font-family: $titleFont;
  76. }
  77. em {
  78. font-style: italic;
  79. }
  80. // CASCADE
  81. body {
  82. overflow-x: hidden;
  83. color: $mainColor;
  84. background-color: $bgColor;
  85. @include transition-ease-out(background-color);
  86. header {
  87. position: fixed;
  88. top: 0;
  89. z-index: 1;
  90. width: 100%;
  91. box-sizing: border-box;
  92. #nav-container {
  93. height: $navHeight;
  94. padding: 0 $bodyMarginMobile;
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. background-color: $bgColor;
  99. @include transition-ease-out(background-color);
  100. h1 {
  101. cursor: pointer;
  102. }
  103. #burger {
  104. width: $pictoSmallWidth;
  105. height: $pictoSmallHeight;
  106. }
  107. }
  108. nav {
  109. position: absolute;
  110. background-color: $mainColor;
  111. top: -100vh;
  112. width: 100%;
  113. height: calc(100vh - #{$footerHeightMobile});
  114. display: flex;
  115. align-items: center;
  116. opacity: 0;
  117. @include transition-ease-out(opacity, top 0.7s, background-color);
  118. #crossMenu {
  119. position: absolute;
  120. top: 2vh;
  121. right: $bodyMarginMobile;
  122. background-color: $bgColor;
  123. width: $pictoSmallWidth;
  124. height: $pictoSmallHeight;
  125. }
  126. ul {
  127. display: flex;
  128. flex-direction: column;
  129. justify-content: space-between;
  130. width: 100%;
  131. li {
  132. text-align: center;
  133. color: $bgColor;
  134. a {
  135. display: block;
  136. margin: 4vh 0;
  137. padding: 2.5vh 0;
  138. width: 100%;
  139. font-family: $titleFont;
  140. font-size: $bigFontSizeMobile;
  141. }
  142. }
  143. li.selected a {
  144. color: $mainColor;
  145. background-color: $bgColor;
  146. }
  147. }
  148. }
  149. nav.mobile-nav-open {
  150. top: 0;
  151. opacity: 1;
  152. }
  153. }
  154. header:after {
  155. content: "";
  156. display: block;
  157. width: 100%;
  158. height: $navGradientHeightMobile;
  159. background: $bgGradientToBottom;
  160. opacity: 1;
  161. @include transition-ease-out(opacity);
  162. }
  163. header.plain_bg:after {
  164. opacity: 0;
  165. }
  166. main {
  167. position: relative;
  168. width: 100%;
  169. box-sizing: border-box;
  170. margin-top: calc(#{$navHeight} + #{$navGradientHeightMobile});
  171. z-index: 0;
  172. .content {
  173. position: absolute;
  174. padding: 0 $bodyMarginMobile;
  175. h2, p, ul{
  176. margin-bottom: $sectionSpacing;
  177. a {
  178. text-decoration: underline;
  179. text-underline-offset: 0.1em;
  180. @include transition-ease-out(text-underline-offset);
  181. }
  182. a:hover {
  183. text-underline-offset: 0.15em !important;
  184. }
  185. }
  186. .projet-card {
  187. cursor: pointer;
  188. position: relative;
  189. display: flex;
  190. flex-direction: column;
  191. align-items: center;
  192. justify-content: center;
  193. margin-bottom: $sectionSpacing;
  194. img, video {
  195. border-radius: 10px;
  196. width: 100%;
  197. }
  198. .loader {
  199. min-height: 200px;
  200. width: 20px;
  201. opacity: $transparency;
  202. }
  203. a {
  204. width: 100%;
  205. figcaption {
  206. color: $mainColor;
  207. background-color: transparent;
  208. padding: 0;
  209. margin-top: 5px;
  210. position: relative;
  211. font-size: $smallSize;
  212. @include transition-ease-out(opacity);
  213. .publique-title {
  214. @include publique-font;
  215. }
  216. .sociale-title {
  217. @include sociale-font;
  218. }
  219. .culturelle-title {
  220. @include culturelle-font;
  221. }
  222. }
  223. }
  224. }
  225. .card-displayed {
  226. display: block;
  227. }
  228. .card-hidden {
  229. display: none;
  230. }
  231. }
  232. #index-content {
  233. display: flex;
  234. flex-direction: column;
  235. align-items: center;
  236. .animateText {
  237. text-decoration: underline 1px;
  238. }
  239. #loader-index {
  240. position: absolute;
  241. height: 80vh;
  242. width: 100vw;
  243. background-color: $bgColor;
  244. z-index: 1;
  245. display: flex;
  246. justify-content: center;
  247. align-items: center;
  248. }
  249. #main-p-index {
  250. p {
  251. font-size: $bigFontSizeMobile;
  252. }
  253. #figureslibres {
  254. @include figures-libres-font;
  255. }
  256. #publique {
  257. @include publique-font;
  258. }
  259. #sociale {
  260. @include sociale-font;
  261. }
  262. #culturelle {
  263. @include culturelle-font;
  264. }
  265. }
  266. #extrait-projets {
  267. >div {
  268. max-height: 0vh;
  269. display: grid;
  270. grid-template-columns: repeat(2, 1fr);
  271. gap: 0px 20px;
  272. align-items: flex-start;
  273. div {
  274. figure {
  275. align-items: flex-start;
  276. }
  277. }
  278. div:last-of-type {
  279. width: auto;
  280. margin-top: 1vh;
  281. text-align: center;
  282. font-size: $currentSize;
  283. grid-column-end: span 2;
  284. p{
  285. cursor: pointer;
  286. margin-bottom: 5px;
  287. width: auto;
  288. display: flex;
  289. align-items: center;
  290. justify-content: center;
  291. span {
  292. border-bottom: solid 1px $mainColor;
  293. padding-bottom: 1px;
  294. #publique-link {
  295. @include publique-font;
  296. }
  297. #sociale-link {
  298. @include sociale-font;
  299. }
  300. #culturelle-link {
  301. @include culturelle-font;
  302. }
  303. }
  304. .picto {
  305. display: inline-block;
  306. height: $pictoInlineHeight;
  307. width: $pictoSmallWidth;
  308. margin-left: 8px;
  309. @include transition-ease-out(margin-left);
  310. }
  311. }
  312. p:first-of-type:hover + p .picto, p:last-of-type:hover .picto {
  313. margin-left: 13px;
  314. }
  315. }
  316. }
  317. }
  318. #second-p-index {
  319. p {
  320. font-size: $bigFontSizeMobile;
  321. }
  322. #commanditaires {
  323. @include commanditaires-font;
  324. }
  325. #projets {
  326. @include projets-font;
  327. }
  328. }
  329. #commanditaires-grid {
  330. width: 85vw;
  331. display: grid;
  332. grid-template-columns: repeat(2, 1fr);
  333. gap: 25px 40px;
  334. align-items: center;
  335. img {
  336. filter: grayscale(100%);
  337. opacity: 0.7;
  338. width: 100%;
  339. }
  340. }
  341. #arrow-container {
  342. margin-top: $sectionSpacing;
  343. margin-bottom: 0vh;
  344. @include transition-ease-out(transform 0.8s, margin-bottom 0.4s);
  345. .picto {
  346. width: $pictoLargeWidth;
  347. height: $pictoLargeHeight;
  348. }
  349. #arrowIndex {
  350. animation: arrowIndex 4s infinite ease-out;
  351. }
  352. }
  353. .container {
  354. overflow-y: hidden;
  355. height: auto;
  356. max-height: 0vh;
  357. margin-top: 0vh;
  358. opacity: 0;
  359. @include transition-ease-out(opacity, 0.7s, max-height 1.2s, margin-top 1s);
  360. }
  361. a {
  362. text-decoration: none;
  363. }
  364. }
  365. #projets-index {
  366. width: 100%;
  367. #filter-index {
  368. text-align: center;
  369. width: 100%;
  370. margin-bottom: $sectionSpacing;
  371. display: flex;
  372. flex-direction: column;
  373. align-items: center;
  374. justify-content: center;
  375. .filter-button {
  376. cursor: pointer;
  377. filter: grayscale(1);
  378. opacity: $transparency;
  379. padding: 0.25rem 0.75rem;
  380. border-radius: 1rem;
  381. font-size: $smallSize;
  382. min-height: $currentLineHeight;
  383. display: inline-block;
  384. @include transition-ease-out(opacity, filter);
  385. }
  386. .filter-button:hover {
  387. filter: grayscale(0) !important;
  388. opacity: 1 !important;
  389. }
  390. p {
  391. margin-bottom: 1rem;
  392. }
  393. #publique-filter {
  394. @include publique-font;
  395. background-color: $color_publique;
  396. }
  397. #sociale-filter {
  398. @include sociale-font;
  399. background-color: $color_sociale;
  400. }
  401. #culturelle-filter {
  402. @include culturelle-font;
  403. background-color: $color_culturelle;
  404. }
  405. }
  406. hr {
  407. width: 66%;
  408. margin-bottom: 4vh;
  409. opacity: $transparency;
  410. }
  411. .projets-grid {
  412. width: calc(100vw - $bodyMarginMobile * 2);
  413. display: flex;
  414. flex-direction: column;
  415. align-items: center;
  416. >div {
  417. width: 80%;
  418. }
  419. }
  420. .title-category {
  421. cursor: pointer;
  422. display: flex;
  423. align-items: center;
  424. margin-bottom: $sectionSpacing;
  425. h2 {
  426. margin: 0;
  427. max-width: 60%;
  428. }
  429. .chevron-category {
  430. display: inline-block;
  431. width: $pictoSmallWidth;
  432. height: $pictoSmallHeight;
  433. max-height: 10px;
  434. margin-left: 6px;
  435. @include transition-ease-out(transform);
  436. }
  437. .close {
  438. transform: rotate(180deg);
  439. }
  440. }
  441. }
  442. #text-content {
  443. display: flex;
  444. flex-direction: column-reverse;
  445. img {
  446. width: 100%;
  447. }
  448. }
  449. #reader {
  450. display: flex;
  451. flex-direction: column;
  452. align-items: center;
  453. figure {
  454. width: 100%;
  455. min-height: 200px;
  456. display: flex;
  457. justify-content: center;
  458. }
  459. img, video {
  460. cursor: pointer;
  461. max-width: 100%;
  462. }
  463. .loader {
  464. max-width: 20px;
  465. }
  466. #header-project {
  467. z-index: 1;
  468. display: block;
  469. position: fixed;
  470. height: 6vh;
  471. width: 100%;
  472. // background-color: $bgColor;
  473. top: -4vh;
  474. @include transition-ease-out(top);
  475. h2 {
  476. margin: 0;
  477. overflow: hidden;
  478. position: absolute;
  479. width: 100%;
  480. height: 100%;
  481. padding: 3px 0;
  482. padding-top: 1.8vh;
  483. padding-left: $bodyMarginMobile;
  484. font-size: $currentSize;
  485. span {
  486. transform: translate(0, 0);
  487. display: inline-block;
  488. white-space: nowrap;
  489. }
  490. .scrollText:after {
  491. content: attr(data-text);
  492. padding-left: 20px;
  493. white-space: nowrap;
  494. }
  495. }
  496. h2.info-project-publique {
  497. background: linear-gradient(to bottom, $color_publique, $color_publique 60%, rgba($color_publique, 0));
  498. span {
  499. @include publique-font;
  500. }
  501. }
  502. h2.info-project-sociale {
  503. background: linear-gradient(to bottom, $color_sociale, $color_sociale 60%, rgba($color_sociale, 0));
  504. span {
  505. @include sociale-font;
  506. }
  507. }
  508. h2.info-project-culturelle {
  509. background: linear-gradient(to bottom, $color_culturelle, $color_culturelle 60%, rgba($color_culturelle, 0));
  510. span {
  511. @include culturelle-font;
  512. }
  513. }
  514. #gradient-long-title {
  515. position: absolute;
  516. height: 4vh;
  517. width: 40px;
  518. top: 1.5vh;
  519. right: 16.5%;
  520. background: $bgGradientToLeft;
  521. }
  522. }
  523. #header-project + a {
  524. z-index: 2;
  525. }
  526. #close-project {
  527. position: fixed;
  528. right: $bodyMarginMobile;
  529. top: 2.3vh;
  530. width: calc(#{$pictoSmallWidth} - 5px);
  531. height: calc(#{$pictoSmallHeight} - 5px);
  532. }
  533. figure#cover-image-mobile {
  534. margin-top: -2vh;
  535. margin-bottom: 2vh;
  536. }
  537. figure#cover-image {
  538. display: none;
  539. }
  540. figure#cover-image-mobile,
  541. figure#cover-image {
  542. position: relative;
  543. margin-top: 3vh;
  544. img {
  545. filter: grayscale(0);
  546. @include transition-ease-out(filter);
  547. mix-blend-mode: normal;
  548. }
  549. }
  550. figure#cover-image-mobile:hover img,
  551. figure#cover-image:hover img {
  552. filter: grayscale(1);
  553. mix-blend-mode: darken;
  554. }
  555. figure#cover-image-mobile::before,
  556. figure#cover-image::before {
  557. position: absolute;
  558. content: '';
  559. height: 100%;
  560. width: 100%;
  561. opacity: 0;
  562. @include transition-ease-out(opacity);
  563. }
  564. figure#cover-image-mobile:hover::before,
  565. figure#cover-image:hover::before {
  566. opacity: 1;
  567. }
  568. figure#cover-image-mobile.sociale:hover::before,
  569. figure#cover-image.sociale:hover::before {
  570. background-color: $color_sociale;
  571. }
  572. figure#cover-image-mobile.culturelle:hover::before,
  573. figure#cover-image.culturelle:hover::before {
  574. background-color: $color_culturelle;
  575. }
  576. figure#cover-image-mobile.publique:hover::before,
  577. figure#cover-image.publique:hover::before {
  578. background-color: $color_publique;
  579. }
  580. #info-project {
  581. align-self: flex-start;
  582. h2 {
  583. margin-top: 2vh;
  584. margin-bottom: 0;
  585. font-size: 1.6em;
  586. line-height: $titleLineHeight;
  587. }
  588. >div {
  589. margin-top: 0.3em;
  590. margin-bottom: 2.5vh;
  591. font-weight: normal;
  592. line-height: $currentLineHeight;
  593. }
  594. }
  595. .info-project-publique {
  596. h2, >div {
  597. @include publique-font;
  598. }
  599. }
  600. .info-project-sociale {
  601. h2, >div {
  602. @include sociale-font;
  603. }
  604. }
  605. .info-project-culturelle {
  606. h2, >div {
  607. @include culturelle-font;
  608. }
  609. }
  610. #project-description {
  611. margin-top: 2.2vh;
  612. }
  613. #project-images-grid {
  614. figure {
  615. position: relative;
  616. margin-top: 3vh;
  617. img {
  618. filter: grayscale(0);
  619. @include transition-ease-out(filter);
  620. mix-blend-mode: normal;
  621. }
  622. }
  623. figure:hover img {
  624. filter: grayscale(1);
  625. mix-blend-mode: darken;
  626. }
  627. figure::before {
  628. position: absolute;
  629. content: '';
  630. height: 100%;
  631. width: 100%;
  632. opacity: 0;
  633. @include transition-ease-out(opacity);
  634. }
  635. figure:hover::before {
  636. opacity: 1;
  637. }
  638. figure:hover.sociale::before {
  639. background-color: $color_sociale;
  640. }
  641. figure:hover.publique::before {
  642. background-color: $color_publique;
  643. }
  644. figure:hover.culturelle::before {
  645. background-color: $color_culturelle;
  646. }
  647. }
  648. hr {
  649. margin-bottom: 2vh;
  650. width: 66%;
  651. opacity: 0.5;
  652. color: $mainColor;
  653. background-color: $mainColor;
  654. }
  655. #related-pages {
  656. margin-top: 5vh;
  657. width: 100%;
  658. display: flex;
  659. flex-direction: column;
  660. align-items: center;
  661. h3 {
  662. text-align: center;
  663. font-size: $titleFontSizeMobile;
  664. font-family: $titleFont;
  665. margin-bottom: 2vh;
  666. margin-top: 2vh;
  667. }
  668. #related-grid {
  669. width: 80%;
  670. .card-displayed {
  671. margin-top: 1.5vh;
  672. }
  673. }
  674. p {
  675. margin-top: 3vh;
  676. margin-bottom: 5vh;
  677. }
  678. }
  679. .swiper {
  680. position: fixed;
  681. top: 0;
  682. left: 0;
  683. height: 100vh;
  684. width: 100vw;
  685. background-color: rgba(255, 255, 255, 0.75);
  686. backdrop-filter: blur(2px);
  687. box-sizing: border-box;
  688. z-index: 3;
  689. display: none;
  690. opacity: 0;
  691. transition: opacity 0.3s ease-out;
  692. .swiper-wrapper {
  693. z-index: 9;
  694. display: flex;
  695. align-items: center;
  696. .swiper-slide {
  697. height: 100%;
  698. width: 100%;
  699. display: flex;
  700. align-items: center;
  701. justify-content: center;
  702. img {
  703. max-height: 90%;
  704. max-width: 90%;
  705. object-fit: cover;
  706. }
  707. }
  708. }
  709. .swiper-button-next, .swiper-button-prev {
  710. color: $mainColor;
  711. padding: 2rem;
  712. bottom: 5vh;
  713. top: unset;
  714. }
  715. #close-carousel {
  716. width: calc(#{$pictoSmallWidth} - 5px);
  717. height: calc(#{$pictoSmallHeight} - 5px);
  718. position: absolute;
  719. top: 5vh;
  720. right: 5vh;
  721. z-index: 10;
  722. }
  723. }
  724. }
  725. }
  726. footer {
  727. display: none;
  728. position: fixed;
  729. height: $footerHeightMobile;
  730. bottom: 0;
  731. align-items: center;
  732. justify-content: center;
  733. z-index: 1;
  734. width: 100vw;
  735. p {
  736. width: 100%;
  737. height: 100%;
  738. text-align: center;
  739. color: $bgColor;
  740. a {
  741. display: block;
  742. background: $mainColor;
  743. height: 100%;
  744. width: 100%;
  745. font-family: $titleFont;
  746. padding: $smallSize 0;
  747. color: $bgColor;
  748. }
  749. }
  750. }
  751. }
  752. @media only screen and (min-width: $minScreenWidthS) {
  753. body {
  754. header {
  755. nav {
  756. height: 100vh;
  757. }
  758. }
  759. main {
  760. #index-content {
  761. min-height: 80vh;
  762. display: flex;
  763. flex-direction: column;
  764. justify-content: center;
  765. #extrait-projets {
  766. >div {
  767. grid-template-columns: repeat(2, 1fr);
  768. div:last-of-type {
  769. overflow-x: hidden;
  770. text-align: right;
  771. grid-column-end: span 2;
  772. p {
  773. display: inline-block;
  774. .picto {
  775. margin-right: -6px;
  776. }
  777. }
  778. p:last-of-type span:first-of-type {
  779. margin-left: -5px;
  780. padding-left: 5px;
  781. }
  782. }
  783. }
  784. }
  785. #commanditaires-grid {
  786. width: auto;
  787. grid-template-columns: repeat(5, 1fr);
  788. }
  789. }
  790. #projets-index {
  791. width: auto;
  792. #filter-index {
  793. justify-content: start;
  794. flex-direction: row;
  795. max-width: 100%;
  796. p:last-of-type {
  797. margin-left: 8px;
  798. }
  799. }
  800. hr {
  801. margin-left: 0;
  802. width: 75%;
  803. }
  804. .projets-grid {
  805. width: 100%;
  806. display: grid;
  807. grid-template-columns: repeat(3, 1fr);
  808. gap: 0 10px;
  809. align-items: start;
  810. >div {
  811. width: 100%;
  812. }
  813. }
  814. }
  815. #reader {
  816. #close-project {
  817. width: $pictoInlineWidth;
  818. height: $pictoInlineHeight;
  819. top: 2.5vh;
  820. }
  821. #cover-image-mobile {
  822. display: none !important;
  823. }
  824. #cover-image {
  825. display: flex !important;
  826. margin-bottom: 5vh;
  827. }
  828. h2#main-project-title {
  829. font-size: $bigFontSizeDesktop;
  830. }
  831. #info-project {
  832. margin-top: -6vh;
  833. div {
  834. margin-top: 0;
  835. margin-bottom: 8vh;
  836. }
  837. }
  838. #project-description {
  839. font-size: $smallSize;
  840. margin-bottom: 5vh;
  841. }
  842. #project-images-grid {
  843. width: auto;
  844. display: grid;
  845. grid-template-columns: repeat(2, 1fr);
  846. grid-gap: 1em;
  847. figure {
  848. margin-top: 0;
  849. width: 100%;
  850. min-width: 40vw;
  851. img:not(.loader) {
  852. width: 100%;
  853. height: 100%;
  854. object-fit: cover;
  855. }
  856. }
  857. figure:last-child:nth-child(odd) {
  858. grid-column: span 2;
  859. }
  860. }
  861. #related-pages {
  862. #related-grid {
  863. display: grid;
  864. grid-template-columns: repeat(3, 1fr);
  865. width: auto !important;
  866. grid-column-gap: 10%;
  867. .card-displayed {
  868. margin-top: 2vh !important;
  869. width: 100%;
  870. figure {
  871. min-height: 80px !important;
  872. }
  873. }
  874. }
  875. p {
  876. margin-top: 3vh;
  877. margin-bottom: 6vh !important;
  878. }
  879. }
  880. .swiper {
  881. .swiper-button-next, .swiper-button-prev {
  882. bottom: unset;
  883. top: var(--swiper-navigation-top-offset,50%);
  884. }
  885. }
  886. }
  887. }
  888. footer {
  889. display: flex;
  890. align-items: center;
  891. justify-content: center;
  892. width: auto;
  893. padding: 0 15px;
  894. height: $footerHeightDesktop;
  895. right: $bodyMarginMobile;
  896. border-radius: 20px 20px 0 0;
  897. background-color: $mainColor;
  898. p {
  899. height: auto;
  900. font-size: $smallSize;
  901. a {
  902. padding: 0;
  903. background-color: transparent;
  904. }
  905. }
  906. }
  907. }
  908. }
  909. @media only screen and (min-width: $minScreenWidthM) {
  910. body {
  911. header {
  912. #nav-container {
  913. display: none;
  914. }
  915. nav {
  916. background-color: $bgColor;
  917. position: relative;
  918. top: 0;
  919. opacity: 1;
  920. height: $navHeight;
  921. justify-content: center;
  922. #crossMenu {
  923. display: none;
  924. }
  925. ul {
  926. width: calc(#{$bodyWidth} - 12px);
  927. max-width: $maxBodyWidth;
  928. flex-direction: row;
  929. li {
  930. width: auto;
  931. color: $mainColor;
  932. height: $smallSize;
  933. z-index: 0;
  934. a {
  935. display: inline;
  936. font-size: $smallSize;
  937. width: auto;
  938. margin: 0;
  939. padding: 0;
  940. @include transition-ease-out(color);
  941. }
  942. }
  943. li:hover a {
  944. color: $bgColor;
  945. }
  946. li.selected {
  947. a {
  948. color: $bgColor;
  949. background-color: transparent;
  950. }
  951. }
  952. li:after {
  953. content: "";
  954. display: block;
  955. position: relative;
  956. opacity: 0;
  957. height: 100%;
  958. width: 100%;
  959. $paddingX: 12px;
  960. $paddingY: 4px;
  961. padding: $paddingY $paddingX;
  962. transform: translateX(-#{$paddingX}) translateY(calc(-100% - 2px + #{$paddingY}));
  963. background-color: $mainColor;
  964. border-radius: 15px;
  965. z-index: -1;
  966. @include transition-ease-out(opacity);
  967. }
  968. .selected:after, li:hover:after {
  969. opacity: 1;
  970. }
  971. }
  972. }
  973. }
  974. header:after {
  975. height: $navGradientHeightDesktop;
  976. }
  977. main {
  978. display: flex;
  979. justify-content: center;
  980. margin-top: calc(#{$navHeight} + #{$navGradientHeightDesktop} + #{$sectionSpacing});
  981. #index-content > #extrait-projets figure a figcaption {
  982. background-color: $mainColor;
  983. color: $bgColor;
  984. }
  985. .content {
  986. width: $bodyWidth;
  987. padding: 0;
  988. .card-displayed figure a figcaption {
  989. opacity: 0;
  990. position: absolute;
  991. bottom: 0;
  992. left: 0;
  993. width: 100%;
  994. box-sizing: border-box;
  995. padding: 10px;
  996. color: $mainColor;
  997. font-size: $tinySize;
  998. border-radius: 0 0 10px 10px;
  999. }
  1000. .culturelle-card figure a figcaption {
  1001. background-color: $color_culturelle;
  1002. }
  1003. .sociale-card figure a figcaption {
  1004. background-color: $color_sociale;
  1005. }
  1006. .publique-card figure a figcaption {
  1007. background-color: $color_publique;
  1008. }
  1009. }
  1010. .card-displayed:hover figure a figcaption {
  1011. opacity: 1;
  1012. }
  1013. #index-content {
  1014. #extrait-projets {
  1015. >div {
  1016. grid-template-columns: repeat(4, 1fr);
  1017. div:last-of-type {
  1018. grid-column-end: span 4;
  1019. }
  1020. }
  1021. }
  1022. #commanditaires-grid {
  1023. grid-template-columns: repeat(8, 1fr);
  1024. }
  1025. }
  1026. #projets-index {
  1027. width: $bodyWidth;
  1028. .projets-grid {
  1029. grid-template-columns: repeat(4, 1fr);
  1030. }
  1031. }
  1032. #text-content {
  1033. .text-item {
  1034. width: 70%;
  1035. }
  1036. .text-item:first-of-type {
  1037. position: absolute;
  1038. top: 0;
  1039. width: 20vw;
  1040. left: 82%;
  1041. img {
  1042. width: 70%;
  1043. margin-bottom: 5vh;
  1044. }
  1045. }
  1046. }
  1047. #reader {
  1048. margin-top: -10vh;
  1049. width: 60vw;
  1050. #header-project {
  1051. width: 100%;
  1052. h2 {
  1053. width: 100%;
  1054. padding: 0;
  1055. span {
  1056. padding-left: 20vw;
  1057. padding-top: 1.4vh;
  1058. height: $currentLineHeight;
  1059. }
  1060. }
  1061. #gradient-long-title {
  1062. right: 34.2vw;
  1063. }
  1064. }
  1065. #cover-image {
  1066. width: 66.666%;
  1067. box-sizing: border-box;
  1068. margin: 0 10vw;
  1069. }
  1070. #info-project {
  1071. width: 100%;
  1072. box-sizing: border-box;
  1073. padding: 0 10vw;
  1074. margin-top: 2vh;
  1075. margin-bottom: 4vh;
  1076. h2 {
  1077. min-width: 95%;
  1078. border-right: solid 1px rgba(0, 0, 0, $transparency);
  1079. margin-top: 0;
  1080. margin-bottom: 1vh;
  1081. }
  1082. div {
  1083. margin-bottom: 2vh;
  1084. }
  1085. }
  1086. .info-project-culturelle {
  1087. h2 {
  1088. line-height: $currentLineHeight !important;
  1089. }
  1090. }
  1091. #close-project {
  1092. width: $pictoSmallWidth;
  1093. height: $pictoSmallHeight;
  1094. top: calc(4vh + $pictoSmallHeight / 2);
  1095. right: calc(30vw - #{$pictoSmallWidth} - 2vw);
  1096. transform: scale(1, 1);
  1097. @include transition-ease-out(top, right, transform);
  1098. }
  1099. .scrolled-cross {
  1100. top: 1.4vh !important;
  1101. right: 20vw !important;
  1102. transform: scale(0.7, 0.7) !important;
  1103. }
  1104. #project-description {
  1105. padding: 0 10vw;
  1106. align-self: flex-start;
  1107. }
  1108. #project-images-grid {
  1109. width: auto;
  1110. margin-bottom: 6vh;
  1111. figure {
  1112. min-width: 15vw;
  1113. }
  1114. }
  1115. #related-pages {
  1116. hr {
  1117. margin-bottom: 4vh;
  1118. }
  1119. h3 {
  1120. margin-top: 0;
  1121. }
  1122. #related-grid {
  1123. width: 100%;
  1124. grid-column-gap: 3%;
  1125. div figure {
  1126. min-width: 10vw;
  1127. }
  1128. }
  1129. p {
  1130. align-self: flex-end;
  1131. }
  1132. }
  1133. }
  1134. }
  1135. footer {
  1136. height: $footerHeightDesktop;
  1137. width: auto;
  1138. right: 12%;
  1139. p {
  1140. width: inherit;
  1141. a {
  1142. font-size: $currentSize;
  1143. }
  1144. }
  1145. }
  1146. }
  1147. }
  1148. @media only screen and (min-width: $minScreenWidthL) {
  1149. body {
  1150. main {
  1151. #index-content {
  1152. #main-p-index {
  1153. p {
  1154. font-size: $bigFontSizeDesktop;
  1155. }
  1156. }
  1157. #arrow-container {
  1158. margin-top: $marginTopShortContent;
  1159. .picto {
  1160. width: $pictoExtraLargeWidth;
  1161. height: $pictoExtraLargeHeight;
  1162. }
  1163. }
  1164. }
  1165. #projets-index {
  1166. .projets-grid {
  1167. column-gap: 2em;
  1168. grid-template-columns: repeat(4, 1fr);
  1169. }
  1170. }
  1171. #reader {
  1172. #related-pages {
  1173. padding: 0 10vw;
  1174. box-sizing: border-box;
  1175. }
  1176. }
  1177. }
  1178. }
  1179. }