/* Personnalisation des styles */

body:has(.header--bg) {
    padding-top: 9rem;
}

.header--default {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0 1.5rem;
    font-family: var(--ff-alt);

    color: var(--clr-bg);
    z-index: 999;
    transition: all 0.4s;
}
.header--default.header--bg,
.header--default.header--scrolled {
    background-color: rgba(var(--clr-text-rgb), 0.8);
}
.header--default.header--scrolled {
    padding: 0.75rem 0rem 1rem;
}
.header--default .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 6rem);
}
.menu-button {
    display: none;
}
.header--default a {
    color: inherit;
}

.header__logo {
    width: 9.125rem;
}

.nav--primary {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem;
}
.nav__link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--clr-bg);
    position: absolute;
    bottom: 0;
    left: 50%;
    translate: -50% 0;
    transition: all 0.4s;
}
.nav__link:hover::after,
.nav__link.nav__link--current::after {
    width: 100%;
}

.hero {
    background-image: url(../images/hero.jpg);
    background-size: cover;
    position: relative;
    color: var(--clr-bg);
    height: 100vh;
    display: grid;
    place-items: center;
    max-width: 100%;
    width: 100%;
}
.hero::after,
.sectionctaH::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(var(--clr-text-rgb), 0.65);
}
.hero > *,
.sectionctaH > * {
    z-index: 3;
}
.hero .wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.nav--social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav__social-link {
    border-radius: 50%;
    border: 4px solid currentColor;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    transition: all 0.4s;
}
.nav__social-link svg {
    max-width: 65%;
    transition: all 0.4s;
}
.nav__social-link:hover {
    background-color: currentColor;
}
.nav__social-link:hover svg {
    color: var(--clr-text);
}

.titre {
    font-weight: 300;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-family: var(--ff-alt);
}
.titre span {
    font-weight: bold;
}
.titre.titrehero {
    font-size: 3rem;
    max-width: 18ch;
    margin-bottom: 2rem;
}
.titre.titresmall {
    font-size: 1.5rem;
}

.titresection {
    font-family: var(--ff-alt);
    color: var(--clr-500);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.75rem !important;
    line-height: 1;
}
.sectionreverse .titresection {
    color: var(--clr-bg);
}

.herocontact,
.footercontact,
.ctacontact {
    background-color: var(--clr-text);
    padding: 1.5rem 2rem;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
}

.herobottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.heroinner p {
    font-family: 1.125rem;
    margin-bottom: 2rem;
}

.heroslider .propriete__inner,
.heroslider .propriete__tag {
    display: none !important;
}

.heroprop {
    background-color: var(--clr-text);
    color: var(--clr-bg);
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 52rem;
    flex-grow: 1;
}
.heroprop > div:first-child {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
}

.heroprop svg {
    margin-left: auto;
    width: 1.5rem;
}

.heroprop > .heroslider {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px;
    max-width: 30rem;
}

.heroslider img {
    aspect-ratio: 1;
    object-fit: cover;
}
.heroprop > .heroslider > img:not(:nth-child(-n + 3)) {
    display: none;
}

.bouton {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    color: var(--clr-bg);
    border: 1px solid var(--clr-text);
    background-color: var(--clr-text);
    display: flex;
    max-width: max-content;
    align-items: center;
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    gap: 0.5rem;
    transition: all 0.3s;
}
.bouton:hover {
    background-color: var(--clr-700);
    border: 1px solid var(--clr-700);
}

.bouton svg {
    width: 2rem;
    max-height: 1.75rem;
}

.bouton.bouton--alt {
    background-color: transparent;
    color: var(--clr-text);
}
.bouton.bouton--alt:hover {
    background-color: var(--clr-text);
    color: var(--clr-bg);
}
.bouton.bouton--alt.bouton--reverse {
    color: var(--clr-bg);
    border: 1px solid var(--clr-bg);
}

.bouton.bouton--alt.bouton--reverse:hover {
    background-color: var(--clr-bg);
    color: var(--clr-text);
}

.bouton.bouton--text {
    border: 0;
    background-color: transparent;
    padding: 0.125rem 0;
    color: var(--clr-text);
    font-size: 1rem;
    position: relative;
    z-index: 2;
}
.bouton.bouton--text svg {
    order: 5;
    width: 0.75rem;
}
.bouton.bouton--text:hover {
    color: var(--clr-bg);
}

.bouton.bouton--text::after,
.bouton.bouton--cta-propriete::after {
    content: '';
    width: 100%;
    left: 50%;
    translate: -50% 0;
    height: 1.5px;
    background-color: var(--clr-text);
    position: absolute;
    bottom: 0;
    z-index: -1;
    transition: all 0.3s;
}

.bouton.bouton--text:hover::after,
.propriete-item-home .bouton.bouton--cta-propriete:hover::after {
    width: calc(100% + 0.5rem);
    height: 100%;
}

.propriete-item-home .bouton.bouton--cta-propriete svg {
    order: 3;
    width: 1.25rem;
}
.propriete-item-home .bouton.bouton--cta-propriete {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    border: 0;
    justify-content: space-between;
    position: relative;
    z-index: 3;
}
.propriete-item-home .bouton.bouton--cta-propriete:hover {
    color: var(--clr-text);
    background-color: transparent;
}
.propriete-item-home .bouton.bouton--cta-propriete::after {
    background-color: var(--clr-bg);
}

footer {
    background-color: var(--clr-text);
    color: var(--clr-bg);
    padding-bottom: 2rem;
}

.footercontact,
.ctacontact {
    background-color: var(--clr-300);
    color: var(--clr-text);
    width: max-content;
    max-width: 100%;
    margin-left: auto;
}

.footerinner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.footeragence {
    display: flex;
    gap: 3rem;
    justify-content: start;
    align-items: center;
}
.footeragence img {
    width: 13rem;
}
a.itineraire {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
}
a.itineraire:hover {
    text-decoration: underline;
}

.itineraire svg {
    width: 0.85rem;
    rotate: -90deg;
}

footer h4 {
    text-transform: uppercase;
    font-family: var(--ff-alt);
    font-weight: bold;
    font-size: 1rem;
}
footer h4 span {
    display: block;
    text-transform: none;
}

.footeragence p {
    margin: 1.25rem 0;
}

.nav--footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem 4rem;
}
.nav--footer a::after {
    display: none !important;
}
.nav--footer a:hover {
    text-decoration: underline;
}

footer .nav--social {
    justify-content: end;
    flex-direction: row;
}

footer hr {
    border: 0;
    height: 1px;
    width: 100%;
    background-color: var(--clr-300);
    margin: 2rem 0;
}

footer .copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.75rem;
}

.section3cols .wrap {
    display: grid;
    grid-template-columns: 1fr 2.5fr 3fr;
    gap: 3rem;
    padding-top: 2rem;
}

.section3cols .wrap > div:first-child {
    margin-top: -2rem;
}

hr.titrehr {
    width: 100%;
    height: 1px;
    background-color: var(--clr-text);
    border: 0;
    margin: 2rem 0;
}

.sectionctaH {
    background-image: url(../images/acheter-vendre.jpg);
    background-size: cover;
    position: relative;
    padding-bottom: 0 !important;
}

.sectionctaH .wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15rem;
    padding-bottom: 10rem;
}
.sectionctaH .wrap > div {
    max-width: 30%;
}

.sectionctaH .boutons {
    justify-content: start;
    margin-top: 2rem;
}

.ctacontact {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 100% !important;
}

.ctacontact p {
    margin-bottom: 0 !important;
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
}

.proprieteshomewrapper {
    padding: 5rem 0 4rem;
}
.proprieteshomewrapper > .proprieteshome {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.proprieteshomewrapper > .proprieteshome > .propriete-item-home:not(:nth-child(-n + 4)) {
    display: none;
}

.propriete-item-home {
    text-decoration: none;
    position: relative;
    font-family: var(--ff-alt);
    padding-top: 3rem;
}

.propriete-item-home .propriete__img {
    aspect-ratio: 0.825;
    margin-top: 1rem;
    transition: all 0.3s;
}
.propriete-item-home:hover .propriete__img {
    filter: grayscale(1);
    opacity: 0.9;
}

.propriete-item-home .propriete__prix {
    font-size: 1.9rem;
    font-weight: 500;
    margin-bottom: 0;
}

.propriete-item-home .propriete__adresse,
.propriete-item-home .propriete__ville {
    margin-bottom: 1.5rem !important;
    font-size: 1.05rem;
}
.propriete-item-home .propriete__details {
    opacity: 1;
    text-transform: none;
    font-size: 0.75rem;
    margin-bottom: 1.5rem !important;
    min-height: 1.05rem;
}

.propriete-item-home .propriete__tag {
    display: block;
    left: 0;
    top: 1.5rem;
    padding: 0;
    margin-bottom: 0.25rem;
    margin-top: 0.25rem;
    color: var(--clr-bg);
    background-color: transparent;
    font-size: 0.9rem;
    font-weight: 400;
}

.propriete-item-home .propriete__tag + .propriete__tag {
    translate: 0;
}
.propriete-item-home .propriete__tag:has(+ .propriete__tag) {
    top: 0;
}

.sectionproprietes .controls__wrapper,
.sectiontemoignages .controls__wrapper {
    width: 100%;
}
.sectionproprietes .boutonscontrols,
.sectiontemoignages .boutonscontrols {
    margin-left: auto;
    margin-right: auto;
    width: max-content;
    max-width: 100%;
    justify-content: center;
}
.boutonscontrols--custom .bouton--customcontrol svg {
    color: var(--clr-bg);
    width: 1.85rem;
}
.sectiontemoignages .boutonscontrols--custom .bouton--customcontrol svg {
    color: var(--clr-text);
}
.boutonscontrols--custom .bouton--customcontrol {
    width: 3rem;
    max-width: 100%;
    background-color: transparent;
    border: 1.5px solid var(--clr-bg);
}
.boutonscontrols--custom .bouton--customcontrol:hover svg {
    color: var(--clr-text);
}
.sectiontemoignages .boutonscontrols--custom .bouton--customcontrol:hover svg {
    color: var(--clr-bg);
}
.sectiontemoignages .boutonscontrols--custom .bouton--customcontrol {
    border: 1.5px solid var(--clr-text);
}
.sectiontemoignages .boutonscontrols--custom .bouton--customcontrol:hover {
    background-color: var(--clr-text);
}
.temoignages-container {
    text-align: left !important;
}
.sectiontemoignages .bouton {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
}

.temoignage-element {
    border: 1px solid var(--clr-300);
}
.temoignage__icon {
    background-color: var(--clr-text);
    color: var(--clr-bg);
    border-radius: 50%;
    width: 1.9rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    position: absolute;
    top: -0.325rem;
    left: -0.325rem;
}
.temoignage__icon svg {
    width: 0.8rem;
}
.temoignage__img {
    position: relative;
    width: 4.25rem;
}
.temoignage__header {
    align-items: center;
}
.temoignage__header h4 {
    font-family: var(--ff-alt);
    font-size: 1.1rem;
}
.temoignage_note_container {
    padding-top: 1rem;
    border-top: 1px solid var(--clr-300);
    margin-top: 1rem;
}
.temoignage__note {
    margin-left: auto;
    margin-right: auto;
    filter: hue-rotate(-5deg) saturate(150%) brightness(90%);
}
.link-readmore-tem {
    margin-top: 1rem;
    opacity: 0.5;
}
/*1400*/
@media screen and (max-width: 87.5rem) {
    .header--default .wrap {
        width: calc(100% - 2rem);
        max-width: 100%;
    }
    .heroprop > div:first-child {
        padding: 1rem 1.5rem;
    }
    .heroprop > .heroslider {
        max-width: 26rem;
        width: 26rem;
    }
    .heroprop {
        max-width: 48rem;
        width: 48rem;
    }
}
/*1300*/
@media screen and (max-width: 81.25rem) {
    .heroprop {
        width: 33rem;
        max-width: 33rem;
    }
    .heroprop > .heroslider {
        grid-template-columns: 1fr 1fr;
        width: 16rem;
        max-width: 16rem;
    }
    .heroprop > div:first-child {
        width: 17rem;
        flex-shrink: 0;
        gap: 1rem;
    }
    .titre.titresmall {
        font-size: 1.4rem;
    }
    .heroprop > .heroslider > img:not(:nth-child(-n + 2)) {
        display: none;
    }
    .hero .wrap {
        width: calc(100% - 3rem);
    }
    .sectionctaH .wrap > div {
        max-width: 40%;
    }
    .temoignages-container > .temoignages__slider {
        gap: 2.5rem;
    }
    .proprieteshomewrapper > .proprieteshome {
        gap: 2.5rem;
        grid-template-columns: 1fr 1fr 1fr;
    }
}
/*1024*/
@media screen and (max-width: 64rem) {
    .nav--primary {
        display: none;
        position: absolute;
        background-color: rgba(var(--clr-text-rgb), 0.65);
        bottom: 0;
        translate: 0 100%;
        right: 0;
        padding: 0.5rem 1.5rem;
    }
    .nav--primary a {
        display: block;
        margin: 0.25rem 0;
        min-width: 30vw;
    }
    .nav__link::after {
        left: 0;
        translate: 0;
    }
    .menu-button {
        display: block;
        background-color: transparent;
        border: 0;
        color: var(--clr-bg);
        width: 2.5rem;
        cursor: pointer;
    }
    .header__logo {
        width: 7rem;
    }
    .heroprop {
        position: absolute;
        bottom: -1rem;
        right: 0;
        translate: 0 100%;
    }
    .hero {
        margin-bottom: 8rem;
    }

    .section3cols .wrap {
        grid-template-columns: 1fr 1fr;
        padding-top: 0;
        gap: 0 2rem;
    }
    .section3cols .wrap > div:first-child {
        margin-top: 0;
        grid-column: 1/3;
    }
    .sectionctaH .wrap > div {
        max-width: 50%;
    }
    .sectionctaH {
        padding-left: 0;
        padding-right: 0;
    }
    .temoignages-container > .temoignages__slider {
        gap: 2rem;
    }
    .proprieteshomewrapper > .proprieteshome {
        gap: 2rem;
    }
    .nav--footer {
        display: none;
    }
}
/*856*/
@media screen and (max-width: 53.5rem) {
    .proprieteshomewrapper > .proprieteshome {
        grid-template-columns: 1fr 1fr;
    }
}
/*750*/
@media screen and (max-width: 46.875rem) {
    .sectionhead {
        flex-wrap: wrap;
    }
    .proprieteshomewrapper > .proprieteshome {
        grid-template-columns: 1fr;
    }
    .herocontact,
    .footercontact,
    .ctacontact {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    .header__logo {
        width: 4.5rem;
    }
    .header--default {
        padding: 0.75rem 0 1rem;
    }
    .header--default.header--scrolled {
        padding: 0.5rem 0rem 0.75rem;
    }
    .header--default .wrap {
        width: calc(100% - 1rem);
    }
    .titre.titrehero {
        font-size: 2rem;
        padding-left: 0;
        padding-right: 0;
    }
    .hero .wrap {
        width: calc(100% - 1rem);
    }
    .heroprop > .heroslider {
        grid-template-columns: 1fr 1fr;
        width: 10rem;
        max-width: 10rem;
    }
    .heroprop {
        max-width: 100%;
    }
    .titre.titresmall {
        font-size: 1.125rem;
    }
    .heroprop > div:first-child {
        width: 12rem;
        padding: 0.75rem;
        gap: 0;
    }
    .hero {
        margin-bottom: 5rem;
    }
    .sectionctaH .wrap > div {
        max-width: 100%;
    }
    .sectionctaH .wrap {
        gap: 6rem;
        padding-bottom: 7rem;
    }
    .section3cols .wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section3cols .wrap > div:first-child {
        grid-column: auto;
    }
    .section3cols .wrap > div:first-child .titre {
        margin-bottom: 0 !important;
    }
    .titre {
        font-size: 1.75rem;
    }
    .footeragence img {
        width: 7rem;
    }
    .footeragence {
        gap: 1.5rem;
        font-size: 0.8rem;
        margin-top: 2.5rem;
    }
    .footeragence p {
        margin: 0.75rem 0;
    }
    footer .nav--social {
        margin-top: 2rem;
    }
    footer .copy {
        flex-wrap: wrap;
        justify-content: start;
        gap: 0.75rem;
    }
}
