/* Nouveau style pour Les Mains de Pascal */
:root {
    --cream: #fbf7ef;
    --white: #ffffff;
    --green: #8aa89b;
    --brown: #b08a6f;
    --text: #333333;
    --muted: #6b6b6b;
    --image-bg: #faf6f1;

    /* limites personnalisables pour le carousel */
    --carousel-max-width: 700px;
    --carousel-max-height: 460px;
}

/* reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typographie / lisibilité */
.main-prose,
main.container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section p,
.section .small,
.section li {
    line-height: 1.75;
    color: var(--text);
    font-size: 1rem;
}

/* titres */
.section h2,
main.container h1 {
    margin-bottom: 0.8rem;
    color: var(--brown);
    letter-spacing: 0.2px;
}
.section h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #2f5247;
}

/* paragraphes */
.section p {
    margin: 0.5rem 0 1rem;
    padding-right: 0.2rem;
}

/* Listes */
.section ul {
    list-style: none;
    margin: 0.6rem 0 1rem;
    padding: 0;
}
.section ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
}
.section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--brown));
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.section ul ul li::before {
    width: 6px;
    height: 6px;
    background: rgba(138, 168, 155, 0.5);
    left: 0.8rem;
}

/* séparateurs */
.section hr,
main.container hr {
    border: 0;
    height: 1px;
    margin: 1.2rem 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06),
        rgba(0, 0, 0, 0.03)
    );
}

/* FAQ */
main.container h1 + .section,
main.container .section:first-of-type {
    padding-top: 0;
}
main.container .section > h3 {
    padding-top: 0.3rem;
}
main.container .section > p {
    margin-bottom: 0.9rem;
}

.faq-quiet {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.02)
    );
    padding: 0.6rem 1rem;
    border-radius: 6px;
}

/* liens & transitions */
a.cta,
a {
    transition: all 0.14s ease;
}
a:hover {
    transform: translateY(-1px);
}

/* container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 0.9rem;
}

@media (min-width: 1200px) {
    .container {
        padding: 1.5rem 1rem;
    }
}

/* header / nav */
nav.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.brand {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}
.logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green), var(--brown));
    flex: 0 0 56px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand-text .site-title {
    font-weight: 700;
    color: var(--brown);
    font-size: 1rem;
}
.brand-text .small {
    font-size: 0.85rem;
    color: var(--muted);
}

/* nav menu desktop */
.site-menu {
    list-style: none;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    z-index: 10;
}
.site-menu a {
    color: var(--text);
    text-decoration: none;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
}
.site-menu a.active,
.site-menu a:hover {
    background: rgba(138, 168, 155, 0.12);
}

/* nav toggle (mobile) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    padding: 0.4rem;
    cursor: pointer;
}

/* dropdown menu styles */
.has-dropdown {
    position: relative;
}
.dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--white);
    min-width: 220px;
    border-radius: 8px;
    padding: 0.4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 80;
}
.dropdown li {
    list-style: none;
}
.dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--text);
    text-decoration: none;
}
.dropdown a:hover {
    background: rgba(138, 168, 155, 0.08);
}
.dropdown .small {
    font-size: 0.85rem;
}

.dropdown-toggle {
    background: transparent;
    border: 0;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
}
.dropdown-toggle:focus {
    outline: 2px solid rgba(138, 168, 155, 0.28);
    outline-offset: 2px;
}

/* desktop dropdown */
@media (min-width: 821px) {
    .has-dropdown:hover > .dropdown {
        display: block;
    }
}

/* mobile behaviour */
@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }
    .site-menu {
        position: absolute;
        right: 1rem;
        top: 74px;
        flex-direction: column;
        background: var(--white);
        padding: 0.6rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        display: none;
        min-width: 200px;
    }
    .site-menu li {
        width: 100%;
    }
    .site-menu a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 0.4rem;
        display: none;
    }
    .dropdown.open {
        display: block;
    }
    .has-dropdown .dropdown-toggle {
        width: 100%;
        text-align: left;
    }
}

/* hero */
.hero {
    padding: 1rem 0 0;
}
.hero .hero-inner {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}
.hero .intro {
    width: 460px;
    padding: 0.4rem;
}
.hero h1 {
    color: var(--brown);
    font-size: 2rem;
    margin-bottom: 0.4rem;
}
.hero p.lead {
    color: var(--muted);
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .hero .intro h1 {
        font-size: 2.6rem;
    }
}

@media (min-width: 1200px) {
    .hero .intro {
        padding: 0.2rem;
    }
}

/* carousel */
.carousel {
    flex: 1;
    position: relative;
    overflow: hidden; /* masque les voisins */
    border-radius: 12px;
    background: transparent;
    transition: height 0.36s ease; /* animation lors du changement de slide */
    height: auto; /* sera contrôlé par le JS */
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    align-items: flex-start; /* laisse chaque slide avoir sa propre hauteur */
    will-change: transform;
}

/* chaque slide occupe 100% de la largeur */
.carousel-item {
    min-width: 100%;
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.5rem;
}

/* masquer visuellement les slides non actives (JS applique aria-hidden/visibility) */
.carousel-item[aria-hidden='true'] {
    visibility: hidden;
    pointer-events: none;
}

/* image responsive (déjà présentes) */
.carousel-item img {
    width: auto;
    height: auto;
    max-width: var(--carousel-max-width);
    max-height: var(--carousel-max-height);
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

@media (min-width: 900px) {
    .carousel-item {
        height: var(--carousel-max-height);
    }
}

.carousel-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.carousel-controls button {
    pointer-events: auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 0;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
}
.carousel-controls .prev {
    left: 1rem;
}
.carousel-controls .next {
    right: 1rem;
}

/* sections / cards */
.section {
    padding: 2.5rem 0;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}
.card {
    background: var(--white);
    padding: 0.9rem;
    border-radius: 9px;
    box-shadow: 0 6px 18px rgba(19, 19, 30, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.card h3 {
    color: var(--green);
    margin-bottom: 0.35rem;
    font-size: 1rem;
}
.card p {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

@media (min-width: 1200px) {
    .cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* clickable card */
.clickable-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
.clickable-card .card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.clickable-card:hover .card {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(19, 19, 30, 0.08);
}

/* gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.image-slot {
    background: var(--image-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    aspect-ratio: 1 / 1;
    width: 100%;
}
.image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 900px) {
    .image-slot {
        height: 160px;
    }
}

@media (min-width: 1200px) {
    .image-slot {
        height: 140px;
    }
}

/* Lightbox / modal pour les galeries */
.gallery .image-slot {
    cursor: zoom-in;
}
.gallery .image-slot img {
    transition: transform 0.18s ease;
}
.gallery .image-slot img:focus {
    outline: 3px solid rgba(138, 168, 155, 0.18);
}

/* modal overlay */
.lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.66);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    backdrop-filter: blur(4px);
}

/* show */
.lb-overlay.open {
    display: flex;
}

/* container image */
.lb-viewer {
    max-width: calc(100% - 48px);
    max-height: calc(100% - 48px);
    width: min(1100px, 92%);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* image */
.lb-viewer img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    display: block;
}

/* caption */
.lb-caption {
    margin-top: 10px;
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
}

/* controls (prev / next / close) */
.lb-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition:
        transform 0.12s ease,
        background 0.12s ease;
}
.lb-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}
.lb-close {
    right: 10px;
    top: 10px;
}
.lb-prev {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.lb-next {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* hide controls on small screens except close */
@media (max-width: 820px) {
    .lb-prev,
    .lb-next {
        display: none;
    }
    .lb-viewer img {
        max-height: 70vh;
    }
}

/* small transition on open */
.lb-overlay .lb-viewer {
    transform: scale(0.98);
    transition: transform 0.18s ease;
}
.lb-overlay.open .lb-viewer {
    transform: scale(1);
}

/* detail */
.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1rem;
}
.detail-prices {
    margin-top: 0.8rem;
    font-weight: 700;
    color: var(--brown);
}

/* footer */
.footer {
    background: #faf7f4;
    padding: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 2rem;
}
.footer-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}
.footer .contact {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--muted);
}
.footer .social-links {
    display: flex;
    gap: 0.6rem;
}
.footer a {
    color: var(--brown);
    text-decoration: none;
    font-weight: 600;
}

/* style pour les liens téléphoniques (comme dans le footer) */
.phone-link {
    color: var(--brown);
    text-decoration: none;
    font-weight: 600;
    transition:
        color 0.14s ease,
        transform 0.14s ease;
}
.phone-link:hover,
.phone-link:focus {
    color: var(--green);
    transform: translateY(-1px);
    outline: none;
}

/* utilities */
.cta {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}
.small {
    font-size: 0.95rem;
    color: var(--muted);
}

/* lead figure (image à gauche du texte) */
.intro {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-direction: row;
    padding: 0.4rem;
}
.lead-figure {
    flex: 0 0 auto;
    width: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(19, 19, 30, 0.06);
    background: var(--image-bg);
    aspect-ratio: 4 / 3;
}
.lead-figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.lead-content {
    flex: 1 1 auto;
}
.lead-content div {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    text-align: center;
    h1 {
        font-size: 1.6rem;
        color: var(--brown);
    }
    p {
        color: var(--muted);
    }
}
.lead-content p {
    margin-top: 0.4rem;
}

@media (max-width: 820px) {
    .intro {
        flex-direction: column;
    }
    .lead-figure {
        width: 100%;
        border-radius: 8px;
    }
    .lead-figure img {
        max-height: 300px;
        object-fit: cover;
    }
}

/* title figure (petite image avant titre) */
.title-figure {
    display: inline-block;
    width: 140px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 0.75rem;
    vertical-align: middle;
    flex: 0 0 auto;
    background: var(--image-bg);
    box-shadow: 0 6px 18px rgba(19, 19, 30, 0.04);
}
.title-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 820px) {
    .title-figure {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-right: 0;
        margin-bottom: 0.6rem;
        border-radius: 8px;
    }
    .lead-content div {
        display: block;
        font-size: 1.8rem;
    }
}

/* gift cards */
.gift-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
    margin-top: 0.6rem;
}
.gift-card {
    background: var(--white);
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.gift-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}
.gift-card figcaption {
    font-weight: 600;
    color: var(--brown);
    margin-top: 0.5rem;
}
.gift-card a {
    color: var(--green);
    font-weight: 600;
}

/* impression : cacher éléments non utiles et s'assurer que les images prennent la page */
@media print {
    header,
    nav,
    .site-nav,
    #site-header,
    #site-footer,
    .nav-toggle,
    .carousel-controls {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
    .container {
        max-width: 100%;
        padding: 0;
    }
    .gift-card-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .gift-card {
        box-shadow: none;
        border: none;
        padding: 0;
        page-break-inside: avoid;
    }
    .gift-card img {
        width: 100%;
        height: auto;
        max-height: 120mm;
        object-fit: contain;
    }
    button,
    a[href^='javascript:'] {
        display: none;
    }
}

/* Ajustements pour petits écrans : image d'accueil réduite + padding latéral */
@media (max-width: 820px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .intro {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
}

/* Sur très petits écrans (smartphone) : image-titre compacte */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* petite vignette avant le titre */
    .title-figure {
        width: 70px;
        height: 100px;
        margin-right: 0.5rem;
        border-radius: 8px;
        overflow: hidden;
        vertical-align: middle;
        flex: 0 0 auto;
    }
    .title-figure img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* titre légèrement plus petit pour tenir sur une ligne */
    .lead-content div {
        font-size: 1.15rem;
        line-height: 1.1;
        display: inline-block;
        vertical-align: middle;
        margin: 0;
    }

    /* éviter que l'intro occupe trop de place */
    .hero .hero-inner,
    .hero .intro {
        gap: 0.6rem;
    }
}
