style.scss 30 KB

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