/********* */

/*----- Base -----*/
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --red-color: #FF3535;
    --red-hover-color: #e93434;
    --red-line-color: #ff353546;
    --red-line-width: 3px;
    --section_light-color: #ffffff; 
    --section_dark-color: #fafafa;
    --font-color: #000;
}

* {
    margin:0;
    padding:0;
    border:0;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-smooth: always;
    font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -webkit-font-smoothing: subpixel-antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family:'Inter', sans-serif;
    font-weight:200;
    outline:none;
}

.mobile_only {
    display:none;
}

.flex {
    display:flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap:wrap;
}

.hide {
    display: none;
}

.dreamo {
    color:#005680;
    font-weight: 500;
}

.properstar {
    color:#00c6d1;
    font-weight: 500;
}

.urbanhome {
    color:#559ed4;
    font-weight: 500;
}

.dreamo:hover, .properstar:hover, .urbanhome:hover {
    opacity: 0.7;
    transition: all 0.3s ease;
}

html, body {
    scroll-behavior: smooth;
    font-size:17px;
    overflow-x:hidden;
    color:var(--font-color);
}

h5 {
    font-size: 1em;
    font-weight: 400;
    margin-bottom: 5px;
}

h4 {
    font-size: 1.2em;
    font-weight: 400;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

h1 {
    font-size:3em;
    margin-bottom: 20px;
}

b,
strong {
    font-weight:600;
}

a {
    text-decoration: none;
}

ul {
    margin: 1rem 0 1rem 1rem;
}

ul li {
    margin-left: 1rem;
}

.center-text {
    text-align: center;
    justify-content: center;
}

section {
    padding: 4vh 0;
    position: relative;
}

.inner_content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.section_dark {
    background-color: var(--section_dark-color);
}

.box {
    background-color: var(--section_dark-color);
    padding: 25px;
}

.box_wrapper {
    position: relative;
}

.box_wrapper::before {
    content:"";
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    transform: rotate(-2deg);
    background-color: #f2f2f2;
    z-index: -2;
}

.button {
    padding:0.7em 1.4em;
    margin:0.5em 0;
    border-radius: 5px;
    color:#fff;
    font-weight: 600;
    background-color: #606060;
    border:1px solid #404040;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
    text-align:center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.button svg * {
    fill: #fff;
}
.button:hover {
    background-color:#404040;
    border-color: #202020;
}
.button:hover svg * {
    fill:#ffffff;
}
.button_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.button_icon svg {
    width: 1.1em;
    height: 1.1em;
    min-width: 1.1em;
}

.link_press {
    text-transform:uppercase;
    color:var(--red-color);
    font-weight: 700;
    font-size: 1.5em;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    margin: 25px 110px 25px 0;
    overflow: hidden;
    transition: all 0.3s;
    padding: 8px 15px;
    background-color: #fff;
    width: fit-content;
    border-radius: 8px;
}
.link_press svg {
    transition: all 0.3s ease-out;
}
.link_press svg * {
    fill: var(--red-color);
}
@media (hover: hover) {
    .link_press:hover svg {
        animation: dropLoop 1.2s ease-in infinite;
    }
    .link_press:hover {
        color:var(--red-hover-color);
        transform: scale(1.02) rotate(-1deg);  
        font-weight: 800;
    }
}

@keyframes dropLoop {
      0% {
        transform: translateY(0%);
      }
      45% {
        transform: translateY(150%);
        opacity: 0;
      }
      50% {
        transform: translateY(-150%);
      }
      100% {
        transform: translateY(0);
        opacity: 1;
      }
}

/* HEADER */

#menu_top {
    position: absolute;
    top: 5px;
    right: 0;
    width: fit-content;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px;
    z-index: 20;
}

#menu_top a {
    font-size: 0.9em;
    color: #000;
    font-weight: 400;
    padding: 5px;
    line-height: 1;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.7s ease;
    border: 1px solid #fff;
}
#menu_top a:hover {
    font-weight: 500;
    border-color: var(--red-color);
}
#menu_top a.active {
    font-weight: 500;
    color: #fff;
    background-color: var(--red-color);
    border-color: var(--red-color);
}

section#header_top {
    padding: 0;
}

section#header_top .main_logo {
    position: relative;
    padding: 50px 0 20px;
}
section#header_top .main_logo svg {
    width: 350px;
    max-width: 100%;
    height: auto;
}
section#header_top .title .swiss_icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--red-color);
}

section#header_top .title svg {
    width: 20px;
    height: 20px;
}
section#header_top .title svg * {
    fill:#fff;
}

section#header_top .subtitle {
    font-weight: 300;
}

/* INTRO */

#intro::before {
    content: '';
    width: 1px;
    border-left: var(--red-line-width) solid var(--red-line-color);
    height: 100%;
    position: absolute;
    top: 0;
    left: calc(50% - 1px);
}
#intro .text {
    font-weight: 200;
}

#intro .text .press_icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    transform: translateY(100%);
}
#intro .text .press_icon.hovered svg * {
    fill: #e3e3e3;
}

#intro .text .press_icon svg {
    width: 70px;
}

#intro .text .press_icon svg * {
    fill: #F5F5F5;
    transition: all 0.5s ease;
}

#intro .text a:hover {
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* PORTAIL */
#portails::before {
    content:'';
    position: absolute;
    width: 90%;
    border-radius: 20px 20px 0 0;
    background-color: var(--section_dark-color);
    left: 5%;
    top: 30%;
    height: 70%;
}

#portails::after {
    content: '';
    width: 1px;
    border-left: var(--red-line-width) solid var(--red-line-color);
    height: 4vh;
    position: absolute;
    top: 0;
    left: calc(50% - 1px);
}

.portails_wrapper {
    position: relative;
    display: flex;
    gap: 40px;
    flex-direction: column;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
    padding: 35px 25px;
    background-color: #fff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.portails_wrapper::before {
    content: '';
    width: 1px;
    border-left: var(--red-line-width) solid var(--red-line-color);
    height: calc(100% - 90px);
    position: absolute;
    top: 0;
    left: calc(50% - 1px);
    transition: all 0.25s ease;
}

.portails_wrapper .portail {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #fff;
    z-index: 5;
    transition: all 0.5s ease;
    border-radius: 10px;
}

.portails_wrapper .portail svg,
.portails_wrapper .portail img {
    width: 100%;
    max-width: 200px;
}

.portails_wrapper .portail_urbanhome img {
    max-width: 130px;
}
.portails_wrapper .portail .logo {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.portails_wrapper .background {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.5s ease;
    z-index: 3;
    background-color: #fff;
}
.portails_wrapper .background img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.handshack {
    display: flex;
    justify-content: center;
    z-index: 5;
    transition: all 0.5s ease;
}
.handshack svg {
    width: 50px;
    height: auto;
}

@media (hover: hover) {
    .portails_wrapper.portail_hovered::before {
        height: 0;
    }
    .portails_wrapper.portail_hovered .portail {
        opacity: 0;
    }
    .portails_wrapper.portail_hovered .handshack {
        opacity: 0;
    }
    .portails_wrapper.portail_hovered .portail:hover {
        opacity: 1;
    }

    .portails_wrapper .portail:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .portails_wrapper .portail:hover + .background {
        opacity: 0.6;
    }

    .portails_wrapper .portail:hover .logo {
        transform: scale(1.05);
    }
}

/* FAQ */
#faq::before {
    content:'';
    position: absolute;
    width: 90%;
    background-color: var(--section_dark-color);
    left: 5%;
    top: 0;
    height: 100%;
}
#faq .inner_content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#faq details {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    #faq details:hover {
        border-color: #bfbfbf;
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    }
}

#faq details[open] {
    border-color: #bfbfbf;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}
#faq details summary {
    font-weight: 400;
    padding: 20px;
    cursor: pointer;
}
#faq details[open] summary {
    font-weight: 600;
}
#faq details .faq_content {
    padding: 0 20px 20px;
}

/* CONTACT */
#contact::before {
    content:'';
    position: absolute;
    width: 90%;
    background-color: var(--section_dark-color);
    left: 5%;
    top: 0;
    height: 100%;
    border-radius: 0 0 20px 20px;
}
#contact {
    padding-top: 0;
}

textarea, input, button, select { font-family: inherit; font-size: inherit; }

input, textarea, .select-css {
  border:1px solid #e3e3e3;
  border-radius: 5px;
  background-color: white;
  padding:10px 15px;
  font-size: 1rem;
  margin: 5px 0;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--font-color)
}

input:focus, textarea:focus {
  border: 1px solid #333333 !important;
  box-shadow: none;
  outline:0;
}

textarea {
  width: 100%;
  max-width: 100%;
  min-height: 200px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
       box-sizing: border-box;
}

.select-css {
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%29494942%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat, repeat;
  background-position: right .7em top 50%, 0 0;
  background-size: .65em auto, 100%;
}

/* Hide arrow icon in IE browsers */
.select-css::-ms-expand {
  display: none;
}

/* Hover style */
.select-css:hover {
  border-color: #888;
}
/* Focus style */
.select-css:focus {
  border-color: #aaa;
  outline: none;
}

/* Set options to normal weight */
.select-css option {
  font-weight:normal;
}

.contact_infos, .contact_form {
  width: 100%;
}

.form {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto auto;
  width: 100%;
}

.form_col11 {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  display: flex;
  flex-direction: column;
  margin-right: 5px;
}

.form_col12 {
  grid-column: 2 / 2;
  grid-row: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-left:5px;
}

.form_col2_12 {
  grid-column: 1 / span 2;
  grid-row: 2 / 2;
}

.form_col31 {
  grid-column: 1 / 1;
  grid-row: 3 / 3;
}

.form_col32 {
  grid-column: 2 / 2;
  grid-row: 3 / 3;
  display: flex;
  justify-content: flex-end;
}

.contact_infos { 
    display:flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.contact_box {
    display: flex;
    margin:0 auto 50px 0;
    align-items: flex-start;
    background-color: #FAFAFA;
}

.contact_box img {
    width: auto;
    max-width: 150px;
}

.contact_box div {
    margin: 0 4em 0 2em;
}

.contact_box div h4 {
    margin-top:20px;
    margin-bottom:5px;
}

.form_success, .form_error {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    margin-bottom: 5px;
}

.form_success {
    border: 1px solid lightgreen;
}

.form_error {
    border: 1px solid #b20e10;
}

/* FOOTER */

footer {
    padding: 1vh 0;
}
.portails_footer {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    padding: 15px 0;
}
.portails_footer h4 {
    font-weight: 700;
    margin: 0;
    font-size: 0.9em;
}
.portails_footer svg {
    width: 100%;
    max-width: 100px;
}
.portails_footer img {
    max-width: 50px;
}
.portails_footer .portail {
    background: none;
    padding: 0;
}
.portails_footer .logo {
    display: flex;
    align-items: center;
}
.portails_footer .background {
    display: none;
}
.footer_logo {
    margin-top: -7px;
}