_home.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. .path-frontpage{
  2. .block-region-content{
  3. display: grid;
  4. grid-template-areas: "presentation presentation presentation presentation presentation presentation"
  5. "presentation presentation presentation presentation presentation presentation"
  6. "presentation presentation presentation presentation presentation presentation"
  7. "presentation presentation presentation presentation presentation presentation"
  8. "actus actus actus actus actus actus"
  9. "actus actus actus actus actus actus"
  10. "programme programme programme programme programme programme"
  11. "programme programme programme programme programme programme"
  12. "programme programme programme programme programme programme";
  13. grid-template-rows: auto auto auto;
  14. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  15. min-height: 100vh;
  16. // 1er bandeau home
  17. .block-views-blockhome-nodes-block-1{
  18. grid-area: presentation;
  19. // grid-row: 1;
  20. background: url("../images/pictos/forme_home_2.svg");
  21. // background: url("../images/carre_site.mp4");
  22. background-size: 75%;
  23. background-position-y: bottom;
  24. background-position-x: left;
  25. background-repeat: no-repeat;
  26. @media (max-width: 810px){
  27. background: url("../images/pictos/forme_home_2_smartphone.svg");
  28. background-size: 100%;
  29. background-position-y: bottom;
  30. background-position-x: left;
  31. background-repeat: no-repeat;
  32. }
  33. .node-type-static{
  34. div:first-child{
  35. display: grid;
  36. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  37. grid-template-rows: repeat(4, auto);
  38. .field--name-field-images{
  39. // display: none;
  40. grid-column: 4 / span 6;
  41. grid-row: 2;
  42. .field__item{
  43. display: block;
  44. width: 400px;
  45. height: 400px;
  46. @media (max-width: 1517px){
  47. width: 300px;
  48. height: 300px;
  49. }
  50. img{
  51. max-width:100%;
  52. max-height: 100%;
  53. }
  54. }
  55. }
  56. .field--name-field-accroche{
  57. grid-column: 2 /span 3;
  58. grid-row: 2 / span 2;
  59. font-size: 5rem;
  60. font-weight: 900;
  61. color: $blue-light;
  62. line-height: 6.9rem;
  63. margin-top: 2rem;
  64. margin-bottom: 5rem;
  65. width: fit-content;
  66. p{
  67. margin-top: 4rem;
  68. margin-bottom: 0;
  69. }
  70. span {
  71. background-color: $white;
  72. }
  73. @media (max-width: 810px){
  74. grid-column: 2 /span 5;
  75. grid-row: 2;
  76. font-size: 3rem;
  77. line-height: 4.3rem;
  78. margin-top: 0;
  79. margin-bottom: 1rem;
  80. p{
  81. margin-top: 0rem;
  82. }
  83. }
  84. }
  85. .field--name-title{
  86. // grid-column: 4;
  87. // grid-row: 2;
  88. grid-column: 2;
  89. grid-row: 1 / span 2;
  90. margin-top: 3rem;
  91. h2{
  92. background-color: $white;
  93. a{
  94. color: #e1000f;
  95. font-weight: 900;
  96. text-transform: uppercase;
  97. font-family: "Source Code Pro";
  98. display: table;
  99. margin: 0px auto 0px auto;
  100. // background-color: $white;
  101. }
  102. }
  103. @media (max-width: 1517px){
  104. }
  105. @media (max-width: 810px){
  106. margin-top: 1rem;
  107. grid-column: 2 / 6;
  108. grid-row: 1;
  109. }
  110. }
  111. .links.inline{
  112. grid-column: 2;
  113. grid-row: 4;
  114. max-width: 70%;
  115. min-width: fit-content;
  116. height: 1.5rem;
  117. padding: 0.4rem 1rem;
  118. font-size: 0.8rem;
  119. margin-bottom: 2.5rem;
  120. background-color: $white;
  121. border: 2px solid $blue-light;
  122. list-style: none;
  123. text-align: center !important;
  124. a{
  125. display: inline-flex;
  126. text-transform: uppercase;
  127. font-weight: 700;
  128. color: $blue-light;
  129. align-items: center;
  130. &:after{
  131. display: block;
  132. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  133. }
  134. }
  135. @media (max-width: 810px){
  136. grid-column: 2;
  137. grid-row:3;
  138. font-size: 0.6rem;
  139. a{
  140. &:after{
  141. display: none;
  142. }
  143. }
  144. }
  145. }
  146. }
  147. }
  148. }
  149. // bouton déposer candidature
  150. .block-block-content9448ca2a-90e3-488b-89cf-8ec6a986a9ca{
  151. grid-area: presentation;
  152. grid-column: 3 /span 4;
  153. grid-row: 4;
  154. align-self: flex-end;
  155. margin-bottom: 2.5rem;
  156. max-width: 25%;
  157. min-width: fit-content;
  158. .field--type-link {
  159. grid-column: 3;
  160. // justify-self: flex-end;
  161. position: relative;
  162. // max-width: 70%;
  163. // min-width: fit-content;
  164. height: 1.5rem;
  165. padding: 0.4rem 1rem;
  166. font-size: 0.8rem;
  167. margin: 0;
  168. background-color: $white;
  169. border: 2px solid $blue-light;
  170. list-style: none;
  171. top: -200%;
  172. text-align: center !important;
  173. a{
  174. display: inline-flex;
  175. text-transform: uppercase;
  176. font-weight: 700;
  177. color: $blue-light;
  178. align-items: center;
  179. .ext{
  180. display: none;
  181. }
  182. }
  183. a::after{
  184. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  185. }
  186. }
  187. @media (max-width: 810px){
  188. grid-area: presentation;
  189. grid-column: 5;
  190. grid-row: 4;
  191. .field--type-link { font-size: 0.6rem;
  192. a::after{
  193. display: none;
  194. }
  195. }
  196. }
  197. }
  198. // bouton foire aux questions
  199. .block-block-content1bb9024b-d95f-4137-894c-362abf10a483{
  200. grid-area: presentation;
  201. grid-column: 5 ;
  202. grid-row: 4;
  203. background-color: $blue-light;
  204. height: fit-content;
  205. align-self: flex-end;
  206. max-width: 70%;
  207. min-width: fit-content;
  208. .field--name-field-lien{
  209. &:before{
  210. margin-top: 1rem;
  211. display: block;
  212. content: url("../images/pictos/picto_faq.svg");
  213. }
  214. text-align: center;
  215. a{
  216. font-size: 0.8rem;
  217. font-weight: 1000;
  218. color: $blue-dark;
  219. text-transform: uppercase;
  220. }
  221. }
  222. .field--name-field-description{
  223. margin-bottom: 1rem;
  224. p{
  225. margin-top: 0;
  226. margin-bottom: 0;
  227. margin-left: 1.5rem;
  228. margin-right: 1.5rem;
  229. text-align: center;
  230. a{
  231. font-weight: 800;
  232. color: $white;
  233. font-size: 1.3rem;
  234. }
  235. }
  236. }
  237. @media (max-width: 810px){
  238. .field--name-field-lien{
  239. background-color: $white;
  240. border: 2px solid $blue-light;
  241. padding: 0.4rem 1rem;
  242. &:before{display: none;}
  243. a{
  244. display: inline-flex;
  245. text-transform: uppercase;
  246. font-weight: 700;
  247. color: $blue-light;
  248. align-items: center;
  249. font-size: 0.6rem;
  250. }
  251. a::after{
  252. display: none;
  253. }
  254. }
  255. .field--name-field-description{display: none;}
  256. }
  257. }
  258. // date limite de candidature
  259. .block-block-content7db64d87-3e22-4fbd-9c11-2b95f5bef695{
  260. grid-column: 5;
  261. grid-row: 1;
  262. height: fit-content;
  263. display: flex;
  264. justify-self: flex-end;
  265. width: 50%;
  266. margin-top: 3rem;
  267. .field--name-body{
  268. justify-content: right;
  269. display: flex;
  270. flex-direction: column;
  271. text-transform: uppercase;
  272. text-align: right;
  273. font-size: 1.3rem;
  274. :nth-child(1){
  275. &:after{
  276. display: block;
  277. content: url("../images/pictos/noun_Arrow_3771902-rouge.svg");
  278. transform: rotate(90deg);
  279. height: fit-content;
  280. position: relative;
  281. top: -30px;
  282. right: -60px;
  283. }
  284. }
  285. :nth-child(2){
  286. font-size: 2.5rem;
  287. font-weight: 900;
  288. }
  289. }
  290. @media (max-width: 810px){
  291. display: none;
  292. grid-column: 2 / span 6;
  293. grid-row: 3;
  294. width: 100%;
  295. margin-top:8rem;
  296. .field--name-body{
  297. justify-content: left;
  298. display: flex;
  299. flex-direction:row;
  300. text-transform: uppercase;
  301. text-align: left;
  302. align-items: center;
  303. font-size: 1rem;
  304. font-weight: 800;
  305. :nth-child(1){
  306. width: 25%;
  307. height: fit-content;
  308. &:after{
  309. display: inline-flex;
  310. transform: rotate(360deg) translateX(80px) translateY(-6px) scale(50%);
  311. }
  312. }
  313. :nth-child(2){
  314. margin: 0;
  315. text-align: right;
  316. justify-self: flex-end;
  317. font-size: 1.5rem;
  318. margin-left: 5rem;
  319. margin-top: 0.6rem;
  320. margin-bottom: 2rem;
  321. }
  322. }
  323. }
  324. }
  325. // bandeau actus
  326. .block-views-blockactus-blocks-pages-block-1{
  327. grid-area: actus;
  328. width: 100vw;
  329. border-bottom: 5px solid $blue-light;
  330. border-top: 5px solid $blue-light;
  331. background: $background-actus;
  332. .view-actus-blocks-pages{
  333. .view-content{
  334. display: grid;
  335. grid-template-columns: 1fr repeat(4, 2fr) 1fr;
  336. margin: auto;
  337. padding-top: 2rem;
  338. padding-bottom: 4rem;
  339. @media (max-width: 479px){
  340. display: flex;
  341. padding-left: 1rem;
  342. width: 80%;
  343. }
  344. .views-row:nth-of-type(1) { grid-column: 2; }
  345. .node-type-actualite{
  346. color: $black;
  347. line-height: 1.5rem;
  348. padding: 0.5rem;
  349. div:first-child{ // block actu dans le bandeau
  350. display: flex;
  351. flex-direction: column;
  352. // :nth-child(1) { order: 1; }
  353. // :nth-child(4) { order: 2; }
  354. // :nth-child(5) { order: 3; }
  355. }
  356. .field--name-field-images {
  357. order: 1;
  358. .field__item img{
  359. max-width: 95%;
  360. max-height: 150px;
  361. object-fit: cover;
  362. width: 100%;
  363. padding-bottom: 1rem;
  364. }
  365. }
  366. .field--name-field-date{
  367. order: 2;
  368. display: flex;
  369. flex-direction: row;
  370. justify-content: flex-start;
  371. &:not(:last-child):after{
  372. padding-right: 1rem;
  373. content: "|";
  374. }
  375. time{
  376. font-size: 0.9rem;
  377. font-weight: 800;
  378. padding-right: 1rem;
  379. width: fit-content;
  380. // :not(:last-child):after{
  381. // padding-left: 0.5rem;
  382. // content: "|";
  383. // }
  384. }
  385. }
  386. .field--name-title{
  387. order:3;
  388. }
  389. .field--name-field-sous-titre{
  390. order:4;
  391. margin-top: 0.3rem;
  392. font-weight: 800;
  393. }
  394. .field:not(.field--name-field-images){
  395. width: 100%;
  396. }
  397. h2{ margin:0; }
  398. a{ color: $black; }
  399. .inline.links{
  400. padding-top: none !important;
  401. list-style: none;
  402. width: fit-content;
  403. align-self: flex-end;
  404. padding-right: 1rem;
  405. a{
  406. display: none;
  407. }
  408. }
  409. .field--name-field-actu-type{
  410. order:5;
  411. padding-top: 1rem;
  412. }
  413. }
  414. }
  415. }
  416. }
  417. // bouton voir toutes actus du bandeau bleu
  418. .block-block-content3ee1f633-aaa7-4b4c-a42a-02206e26d3a2{
  419. grid-area: actus;
  420. grid-row: 6;
  421. grid-column: 5 / span 6;
  422. max-width: 50%;
  423. min-width: fit-content;
  424. margin-bottom: 2rem;
  425. align-self: flex-end;
  426. @media (max-width: 479px){
  427. grid-column: 3 / span 6;
  428. }
  429. .field--type-link {
  430. width: fit-content;
  431. height: fit-content;
  432. padding: 0.4rem 1rem;
  433. font-size: 0.8rem;
  434. margin: 0;
  435. background-color: $white;
  436. border: 2px solid $blue-light;
  437. list-style: none;
  438. display: inline-flex;
  439. a{
  440. text-transform: uppercase;
  441. font-weight: 700;
  442. color: $blue-light;
  443. display: inline-flex;
  444. align-items: center;
  445. }
  446. a::after{
  447. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  448. }
  449. }
  450. }
  451. // présentation programme
  452. .block-views-blockhome-nodes-block-2{
  453. grid-area: programme;
  454. .view-display-id-block_2:is(.view-id-home_nodes){
  455. padding-top: 2rem;
  456. // background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><rect x="0" y="0" width="80" height="80" transform="rotate(35) translate(430, -800) scale(15)" fill="none" stroke="rgb(0,158,227)" stroke-width="0.4px"/></svg>');
  457. background: url('../images/pictos/carre-contour-bleu.svg');
  458. // background-position-y: 50%;
  459. background-repeat: no-repeat;
  460. max-width: 100vw;
  461. background-size: cover;
  462. .node-type-static{
  463. width: 70%;
  464. margin: auto;
  465. div:first-child:not(.field__item):not(.field){
  466. display: flex;
  467. flex-direction: row;
  468. flex-wrap: wrap;
  469. :nth-child(4) { order: 3; }
  470. }
  471. .inline.links{
  472. z-index: 95;
  473. align-self: flex-end;
  474. width: fit-content;
  475. height: fit-content;
  476. padding: 0.4rem 1rem;
  477. font-size: 0.8rem;
  478. margin: 0;
  479. background-color: $white;
  480. border: 2px solid $blue-light;
  481. list-style: none;
  482. a{
  483. text-transform: uppercase;
  484. font-weight: 700;
  485. color: $blue-light;
  486. display: inline-flex;
  487. align-items: center;
  488. &:after{
  489. // display: block;
  490. content: url('data:image/svg+xml,<svg width="40" height="20" xmlns="http://www.w3.org/2000/svg" version="1.1"><polyline points="71.9,49 24.3,49 24.3,51 71.9,51 58.1,64.8 59.5,66.2 75.7,50 59.5,33.8 58.1,35.2" transform="scale(0.5) translate(0,-25)" fill="rgb(0,158,227)" stroke="rgb(0,158,227)" stroke-width="0.7"/></svg>');
  491. }
  492. }
  493. }
  494. .field--name-field-images{
  495. // grid-column: 2 / 4;
  496. .field__item{
  497. img{
  498. width: 15rem;
  499. height: auto;
  500. }
  501. }
  502. }
  503. .field--name-title{
  504. display: none;
  505. }
  506. .field--name-field-accroche{
  507. flex: 1 1 50px;
  508. // grid-column: 4 / 9;
  509. padding-left: 1rem;
  510. p{
  511. background-color: $white;
  512. font-size: 1.5rem;
  513. width: 110%;
  514. padding-bottom: 2rem;
  515. margin-block-start: 0;
  516. text-align: start !important;
  517. }
  518. }
  519. .field--name-field-videos{
  520. flex: 0 0 80%;
  521. padding-top: 4rem;
  522. margin: auto;
  523. }
  524. }
  525. }
  526. }
  527. }
  528. }