@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Birthstone&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: visible;
    color: #33473E;
}

body {
    background-color: white;
    padding-top: 160px;
}

html {
    scroll-padding-top: 160px;
}


/* TEXTE */
.title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #33473E;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #33473E;
}

.text {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    color: #33473E;
    line-height: 1.4;
    text-align: justify;
}

.citation {
    font-family: 'Birthstone', cursive;
    font-size: 2rem;
    color: #33473E;
    font-style: italic;
    text-align: center;
}

.a-propos-cote {
    letter-spacing: 3px;
    font-size: 2.2rem;
}

.link {
    color: #33473E;
    text-decoration: none;
}

.link:hover {
    color: #c4a36d;
}


/* HEADER */
.desktop-nav,
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* DESKTOP */
.desktop-nav {
    display: flex;
}

/* MOBILE */
.mobile-header {
    display: none;
}

.phone-icon {
    display: inline-flex;
    animation: beat 2s infinite ease-in-out;
}

.fa-phone2 {
    color: #c4a36d;
    font-size: 2rem;
    margin-right: 10px;
}


/* SWITCH RESPONSIVE */
@media (max-width: 992px) {

    .desktop-nav {
        display: none !important;
    }

    .mobile-header {
        display: block !important;
    }
}

.logo {
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.15);
}

.rdv-button {
    background: #c4a36d;
    color: white !important;
    padding: 15px 25px;
    border: 2px solid #c4a36d;
    border-radius: 15px;
    font-size: 1.125rem;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    animation: beat 2s infinite ease-in-out;
}

.rdv-button a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
}

.rdv-button:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    color: #c4a36d !important;
}

.rdv-button:hover a {
    color: #c4a36d !important;
}

/* Animation téléphone */
@keyframes beat {
    0%{ transform: scale(1); } 
    50% { transform: scale(1.05); } 
    100% { transform: scale(1); } 
} 

.menu-item, .menu-item a {
    color: #292A47;
    transition: all 0.3s ease-in-out;
    font-family: "Lato", sans-serif;
    font-size : 1.125rem;
    text-decoration: none;
    font-weight: bold;
}

.menu-item a:hover {
    color: #c4a36d;
}

.dropdown-menu {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-menu .dropdown-item {
    color: #292A47;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
    color: #c4a36d;
    background-color: #f8f9fa;
}

.bi-list {
    color: #c4a36d;
    font-size: 2.5rem;
    margin-right: 20px;
}


/* SECTION 1 - TEXTE PRINCIPAL */
.maintext-container {
    background-color: #CAE1DC;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 3rem;
}

.image-container img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.employees {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
}

.employee {
    flex: 1;
}

.employee-photo-home {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #c4a36d;
}

.employee-name-home {
    font-weight: 600;
    font-size: 1.2rem;
}

.employee-role-home {
    font-weight: 600;
    margin-top: 10px;
}


@media (max-width: 768px) {

    .employees {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .employee {
        width: 100%;
    }

}

@media (max-width: 991px) {
    .image-container {
        padding-right: 0 !important;
    }
}


/* TEMOIGNAGES */
.testimonial-container {
    width: 50%;
    margin: 0 auto;
}

.testimonial-slider {
    position: relative;
}

/* Chaque couche garde exactement la grille d'origine */
.testimonial-layer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
    width: 100%;
    transition: opacity .7s ease;
}

/* Deuxième couche superposée */
.layer-two {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

/* Animation fondu */
.testimonial-slider.show-second .layer-one {
    opacity: 0;
}

.testimonial-slider.show-second .layer-two {
    opacity: 1;
}

/* Carte */
.card-testimonial {
    border: 2px solid #d9a06b;
    padding: 25px;
    position: relative;
    background: white;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-testimonial .name {
    align-self: flex-end;
    font-style: italic;
    color: #d9a06b;
}

/* Coins des cartes */
.layer-one .card-testimonial:nth-child(1),
.layer-two .card-testimonial:nth-child(1) {
    border-radius: 50px 0 0 0;
}

.layer-one .card-testimonial:nth-child(2),
.layer-two .card-testimonial:nth-child(2) {
    border-radius: 0 50px 0 0;
}

.layer-one .card-testimonial:nth-child(3),
.layer-two .card-testimonial:nth-child(3) {
    border-radius: 0 0 0 50px;
}

.layer-one .card-testimonial:nth-child(4),
.layer-two .card-testimonial:nth-child(4) {
    border-radius: 0 0 50px 0;
}

.layer-one .card-testimonial,
.layer-two .card-testimonial {
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

@media (max-width:1200px) {
    .testimonial-container {
        width:75%;
    }
}

@media (max-width:768px) {
    .testimonial-container {
        width:80%;
    }

    .testimonial-layer {
        grid-template-columns:1fr;
    }

    .card-testimonial {
        max-width:400px;
    }

    .layer-one .card-testimonial:nth-child(1),
    .layer-one .card-testimonial:nth-child(3),
    .layer-two .card-testimonial:nth-child(1),
    .layer-two .card-testimonial:nth-child(3)
     {
        border-radius: 50px 0 0 0;
    }

    .layer-one .card-testimonial:nth-child(2),
    .layer-one .card-testimonial:nth-child(4),
    .layer-two .card-testimonial:nth-child(2),
    .layer-two .card-testimonial:nth-child(4) {
        border-radius: 0 0 50px 0;
    }
}


/* SECTION 3 - REALISATIONS */
.realisation-container {
    background-color: #a3ccc2;
    padding-top: 50px;
    padding-bottom: 50px;
}


/* zone visible */
.home-image-slider {
    overflow: hidden;
}

/* piste qui défile */
.slider-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

/* image */
.slider-item {
    flex: 0 0 auto;
}

.slider-item img {
    width: 350px;
    height: 350px;
    object-fit: cover;
}

.slider-item img {
    transition: transform 0.3s ease;
}

.slider-item img:hover {
    transform: scale(1.05);
}

.slider-track:hover {
    animation-play-state: paused;
}

/* animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* SECTION 4 - SERVICES */
.service-container {
    width: 100%;
}

@media (min-width: 1400px) {
    .service-container {
        width: 75%;
        margin: 0 auto;
    }
}

.service {
    padding: 20px;
}

.service-item {
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
}

.service1 {
    background-color: #c7a571;
}

.service2 {
    background-color: #D5BC95;
}

.service3 {
    background-color: #E2D1B7;
}


/* PAGE - ÉQUIPE */
.team-container {
    background-color: #8cc0b3;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
}

.employee-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    width: 100%;
    height: 100%;
}

@media (min-width: 992px) {
    .ec1{
        border-radius: 50px 0 0 50px;
    }

    .ec2{
        border-radius: 0 0 0 0;
    }

    .ec3{
        border-radius: 0 50px 50px 0;
    }
}

.employee-photo {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #8cc0b3;
}

.employee-name{
    font-size: 1.5rem;
    font-weight: 600;
}

.employee-role{
    color: #8cc0b3;
    font-weight: 600;
    margin-bottom: 20px;
}

.employee-description{
    line-height: 1.6;
}


/* PAGE - REALISATIONS */
.realization-page {
    background-color: #a3ccc2;
}

.realization-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    width: 100%;
    height: 100%;
}

.realization-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
}

.realization-description {
    font-size: 1rem;
    margin-top: 15px;
    text-align: justify;
}


/* FOOTER */
footer {
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
}




/* =========================
   GALLERIE
========================= */

/* Galerie photos */
.gallery-photo{
    width:100%;
    height:300px;
    object-fit:cover;
    border-radius:20px;
    display:block;
    transition:0.3s ease;
}

.gallery-photo:hover{
    transform:scale(1.02);
}


/* =========================
   PAGE GALERIE UNIQUEMENT
========================= */

.gallery-page {
    background-color: #D5BC95;
}

/* =========================
   HEADER
========================= */

.gallery-page .title {
    color: white;
}


/* =========================
   CARTE IMAGE
========================= */

.gallery-card {
    background: white;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 20px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* IMAGE UNIFORME */
.gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    border-radius: 10px;
    cursor: pointer;

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* animation scroll */
.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item:hover {
    transform: scale(1.03);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;

    border-radius: 12px;
    transition: transform 0.2s ease;

    cursor: zoom-in;
}

.lightbox-img.zoomed {
    transform: scale(1.8);
    cursor: zoom-out;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;

    font-size: 40px;
    color: white;

    cursor: pointer;
    user-select: none;
}


/* =========================
   MENTIONS LEGALES
========================= */

.legal-notice-page {
    background-color: #D5BC95;
}


/* =========================
   LIGHTBOX
========================= */

.lightbox {
    position: fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.lightbox-img {
    max-width:90%;
    max-height:85vh;
    object-fit:contain;
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag:none;
    cursor:zoom-in;
    transition:.3s;
}

.lightbox-img.zoomed {
    transform:scale(1.8);
    cursor:zoom-out;
}

/* FERMETURE */
.lightbox-close {
    position:absolute;
    top:25px;
    right:35px;
    border:none;
    background:none;
    color:white;
    font-size:3rem;
    cursor:pointer;
}

/* BOUTONS */
.lightbox-prev,
.lightbox-next {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,.45);
    color:white;
    font-size:1.5rem;
    cursor:pointer;
    transition:.25s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background:#d9a06b;
    transform:
        translateY(-50%)
        scale(1.1);
}

.lightbox-prev {
    left:30px;
}

.lightbox-next {
    right:30px;
}

/* COMPTEUR */
.lightbox-counter {
    position:absolute;
    bottom:30px;
    color:white;
    font-size:1.1rem;
}

/* MOBILE */
@media(max-width:768px){
    .lightbox-prev,
    .lightbox-next {
        width:45px;
        height:45px;
        font-size:1rem;
    }

    .lightbox-prev {
        left:10px;
    }

    .lightbox-next {
        right:10px;
    }

    .lightbox-img.zoomed {
        transform:scale(1.4);
    }
}