/* --------------------------------------- DESKTOP --------------------------------------- */

/* --------------------------------------- page --------------------------------------- */

body {
    font-family: 'Source Sans 3', sans-serif;
    margin: 0 10dvw 2dvh 10dvw;
    box-sizing: border-box;
    color: #333;
}

html {
    box-sizing: border-box;
}

p {
    line-height: 1.04;
    margin:0;
}

/* --------------------------------------- header --------------------------------------- */

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100dvh;
}

@media screen and (max-width: 900px) {
  .header {
    height: 60dvh;
  }
}

.logo {
    max-height: 85%;
    max-width: 85%;
    aspect-ratio: 1/1;
}



/* --------------------------------------- menu --------------------------------------- */

.menu {
    font-family: 'TT Moons Trial';
    color: #333;
    font-size: 1rem;
    font-weight: bold; 
    flex-wrap: wrap;
    display:flex;
    text-align: center;
    justify-content: space-between;
    padding: 0 20dvw 5dvh 20dvw;
}

@media screen and (max-width: 900px) {
  .menu {
    display:none;
  }
}

.menu-element:hover {
    color: #466b2e;
    border-radius: 999px;
    cursor: pointer;
}

/* --------------------------------------- Bouton retour en haut --------------------------------------- */

.scroll-to-top-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    border: none;
    border-radius: 999px;
    width: 3rem;
    height: 3rem;
    background-color: #466b2e;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    background-color: #fff;
    color:#466b2e
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media screen and (max-width: 900px) {
    .scroll-to-top-btn {
        right: 1rem;
        bottom: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* --------------------------------------- Sections --------------------------------------- */

.section-title {
    font-family: 'TT Moons Trial';
    color: #466b2e;
    font-weight: bold;
    font-size:1.5rem;
    text-align: center;
    margin:0 0 5dvh 0;
}

@media screen and (max-width: 900px) {
  .section-title {
    margin:0 0 3dvh 0;
  }
}

/* --------------------------------------- Welcome Section --------------------------------------- */

.welcome-section {
    background-color:#f4f3f1;
    width: calc(100% + 20dvw);
    margin: 0 0 0 -10dvw;
    padding: 5dvh 0 5dvh 0;
}

@media screen and (max-width: 900px) {
  .welcome-section {
    padding:3dvh 0 3dvh 0;
  }
}

.welcome-text {
    display:flex;
    flex-direction: column;
    margin: 0 12dvw 0 12dvw;
    text-align: center;
    font-size: 1.2rem;
}

.welcome-text .headline {
    font-weight: bold;
    font-size: 1.2rem;
}

/* --------------------------------------- Who Section --------------------------------------- */

.who-section {
    margin: 2dvh auto auto 0;
    padding: 5dvh 0 5dvh 0;
}

@media screen and (max-width: 900px) {
  .who-section {
    padding: 3dvh 0 3dvh 0;
  }
}

.who-grid {
    display: grid;
    grid-template-columns: calc(55%) calc(40%);
    gap: 5%;
    height: 80dvh;
    justify-content: center;
    align-items: center;
}

@media (max-width: 900px) {
    .who-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        gap:5dvh;
        max-height: fit-content;
    }
}

.who-text {
    display: flex;
    flex-direction: column;
    font-size: clamp(12px, 1.2vw, 40px);
    justify-content: center;
    text-align: justify;
    font-style: italic;
}

@media (max-width: 900px) {
    .who-text {
        display:none;
    }
}

.who-text-mobil {
    display:none;
}

@media (max-width: 900px) {
    .who-text-mobil {
        order: 2;
        display: flex;
        flex-direction: column;
        font-size: clamp(15px, 1.5vw, 40px);
        justify-content: center;
        text-align: justify;
        font-style: italic;
    }
}

.signature {
    font-style: normal;
    margin-top: 1dvh;
    text-align: right;
    font-size: clamp(12px, 1.2vw, 40px);
}

@media (max-width: 900px) {
    .signature {
        display:none;
    }
}

.signature-mobil {
    display:none;
}

@media (max-width: 900px) {
    .signature-mobil {
        display:block;
        font-style: normal;
        margin-top: 1dvh;
        text-align: right;
        font-size: clamp(15px, 1.5vw, 40px);
    }
}

.who-frame {
    flex: 0 1 calc(40%); /* ou un ratio qui correspond à ta photo */
    height: 80dvh;
    display: flex;
    border-radius: 10%;
    align-items: center;
    justify-content: center;
    border: 3px solid #333;
    margin: 0;
    overflow: hidden;
}

@media (max-width: 900px) {
    .who-frame {
        order: 1;
        height: 50dvh;
    }
}

.who-frame .who-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {
    .who-frame .who-image {
        object-position: center;
    }
}

/* --------------------------------------- product Section --------------------------------------- */

.product-section {
    background-color:#f4f3f1;
    width: calc(100% + 20dvw);
    margin: 0 0 0 -10dvw;
    padding: 5dvh 0 5dvh 0;
}

@media screen and (max-width: 900px) {
  .product-section {
    padding:3dvh 0 3dvh 0;
  }
}

.product-headline {
    display:flex;
    flex-direction: column;
    margin: 0 15.5dvw 4dvh 15.5dvw;
    text-align: center;
    font-size: 1.2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3%;
    row-gap: 3dvh;
    padding:0 10dvw;
}

@media screen and (max-width: 900px) {
  .product-grid {
    display: flex;
    flex-direction: column;
  }
}

.product-elements {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    text-align: center;
    margin: 1.5dvh 0 1.5dvh 0; 
    padding: 1.5dvh 0 1.5dvh 0; 
    gap: 2.5dvh;
    border-radius: 30px;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    --product-hover-alpha: 0.7;  /* Contrôle de l'alpha (0 = transparent, 1 = opaque) */
    transition: transform 1s ease-in-out, filter 1s ease, border-radius 1s ease;
}

.product-elements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-out;
    z-index: -1;
}

.product-elements:hover {
    transform: none;
}

.product-elements:hover::before {
    opacity: 0;
}

.product-title {
    font-weight: bold;
    margin:0;
}

.product-frame {
    position: relative;
    width: 40%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 10px;
    border: 3px solid #333;
    box-sizing: border-box;
}

.product-frame .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
    transition: opacity 0.4s ease;
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
}

.product-frame:hover .product-overlay,
.product-frame:focus-within .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.product-frame:hover .product-image,
.product-frame:focus-within .product-image {
    opacity: 1;
}

.product-variant {
    border: none;
    background: #fff;
    border-radius: 2px;
    background: #466b2e;
    border:#314a20 2px solid;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
    min-width: 10rem;
}

.product-variant:hover,
.product-variant:focus {
    transform: translateY(-2px);
    background: #fff;
    border:#314a20 2px solid;
    color: #466b2e;
}

@media screen and (max-width: 900px) {
    .product-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    .product-elements:hover .product-image,
    .product-elements:focus-within .product-image {
        opacity: 1;
    }
}

.product-content {
    margin:0 5dvw 0 5dvw;
}

.product-bottomline {
    display:flex;
    flex-direction: column;
    margin: 4dvh 15.5dvw 4dvh 15.5dvw;
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
}

/* --------------------------------------- Whyme Section --------------------------------------- */

.whyme-section {
    padding: 5dvh 0 5dvh 0;
}

@media screen and (max-width: 900px) {
  .whyme-section {
    padding:3dvh 0 3dvh 0;
  }
}

.whyme-grid {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

@media screen and (max-width: 900px) {
  .whyme-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.whyme-frame {
    flex: 0 0 10rem;
    aspect-ratio: 1 / 1;
    border-radius: 10%;
    border: 3px solid #333;
    overflow: hidden;
}

@media screen and (max-width: 900px) {
  .whyme-frame .whyme-image {
    flex-direction: column;
  }
}

.whyme-frame .whyme-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

@media screen and (max-width: 900px) {
  .whyme-frame .whyme-image {
    flex-direction: column;
  }
}

.whyme-text {
    flex: 1 1 75%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.2rem;
    text-align:justify;
}

@media screen and (max-width: 900px) {
  .whyme-text {
    display:none;
  }
}

.whyme-text-mobil {
    display:none;
}

@media screen and (max-width: 900px) {
  .whyme-text-mobil {
    flex: 1 1 75%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.2rem;
    text-align:center;
  }
}


/* --------------------------------------- Contact Section --------------------------------------- */

.contact-section {
    background-color:#f4f3f1;
    width: calc(100% + 20dvw);
    margin: 0 0 0 -10dvw;
    padding: 5dvh 0 5dvh 0;
}

@media screen and (max-width: 900px) {
  .contact-section {
    padding:3dvh 0 3dvh 0;
  }
}

.contact-frame {
    width: 10rem;
    aspect-ratio: 1 / 1;
    overflow:hidden;
    border-radius: 50%;
    border: 3px solid #333;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.contact-frame .contact-image {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-content {
    display:flex;
    flex-direction: column;
    margin: 0dvh 10dvw 0 10dvw;
    text-align: center;
    gap:3dvh;
    font-size:1.2rem;
}

.phone-text, .mail-text {
    font-weight: bold;
}

/* ------- Réseaux sociaux ---------- */

.social-links {
    display: flex;
    gap: 1.5dvw;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 900px) {
  .social-links {
    gap: 7dvw;
  }
}

.social-icon {
    width: 3dvw;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

@media screen and (max-width: 900px) {
  .social-icon {
    width: 12dvw;
  }
}

.social-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* --------------------------------------- Prestations Popup --------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 80dvw;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-height: 80dvh;        /* Limite la hauteur du contenu */
    overflow-y: auto;         /* Active le scroll vertical si dépassement */
    overflow-x: hidden;       /* Cache le scroll horizontal */
}

.modal-close {
    position: absolute;
    top: 1dvh;
    right: 1dvw;
    border: none;
    background: transparent;
    font-size:1.5rem;
    cursor: pointer;
}

.modal-title {
    color: #466b2e;
    margin-top: 0;
}

.modal-description {
    margin-top: 1dvh;
    color: #333;
    font-weight: bold;
}

.modal-body {
    margin-top: 1.5rem;
    color: #333;
    line-height: 1.7;
}

.modal-body p + p {
    margin-top: 0.75rem;
}

.modal-body ul {
    margin: 0.75rem 0 0 1.25rem;
    padding: 0;
}

.modal-body li {
    margin-bottom: 0.35rem;
}

.modal-sub-title {
    margin-top: 0.9rem;
    color: #333;
    font-weight: bold;
}

.modal-gallery {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gallery-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.gallery-image-wrapper {
    width: 100%;
    max-width: 30rem;
    max-height: 50vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f3f1;
}

.gallery-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 50vh;
    display: block;
}

.gallery-caption {
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #5b5b5b;
}

.gallery-arrow {
    border: none;
    background: #466b2e;
    color: #fff;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-arrow:hover {
    background: #466b2e;
}

.gallery-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    background: #314a20;
}

.modal-outro {
    font-size: 0.8rem;
    font-style: italic;
    color: #333;
    margin-top: 1.5rem;
}

/* --------------------------------------- Footer --------------------------------------- */

.page-footer {
    background-color: #ffffff;
    padding: 2dvh;
    color: #666;
    margin-top: 2dvh;
    display: flex;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------- Hyperliens ---------- */

a {
    color: #333;
    text-decoration: none;  }

a:visited {
    color: #333; 
}

a:hover {
    color: #466b2e; 
}

a:active {
    color: #333;
}

/* --------------------------------------- Mentions Légales Popup --------------------------------------- */

.legal-content {
    color: #333;
    line-height: 1.8;
    max-height: 60dvh;
    overflow-y: auto;
}

.legal-content h3 {
    margin-top: 1.5dvh;
    margin-bottom: 0.75dvh;
    color: #466b2e;
    font-size: clamp(0.3rem, 1rem, 1.7rem);
}

.legal-content p {
    margin: 0.75dvh 0;
    font-size: clamp(0.3rem, 1rem, 1.7rem);
}

.legal-content a {
    color: #466b2e;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

/* ------------------------------- Responsive Design --------------------------------------- */