/* Explain: Styles for visual elements, including header, cards, and legal mentions. */
.site-header {
    background: linear-gradient(180deg, rgba(245, 235, 214, 0.95), rgba(245, 235, 214, 0.76));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(255, 252, 244, 0.86), rgba(245, 235, 214, 0.6));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.hero-frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hero-frame.hero-frame-rotated {
    aspect-ratio: 3 / 4;
}

.hero-frame-rotated img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 133.333%;
    height: 75%;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center;
    object-fit: cover;
}

.floating-note {
    position: relative;
    right: auto;
    bottom: auto;
    display: flex;
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: 0.7rem;
    margin: -1.4rem auto 0;
    border-radius: 1.3rem;
    padding: 0.75rem 0.9rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.45;
}

.service-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 1.8rem;
    padding: 1.9rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: rgba(140, 90, 40, 0.48);
    box-shadow: 0 26px 70px rgba(58, 42, 26, 0.13);
    transform: translateY(-4px);
}

.service-icon {
    display: inline-flex;
    height: 2.9rem;
    width: 2.9rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.service-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-muted);
    font-size: 1.24rem;
    line-height: 1.3;
}

.service-list li::before {
    position: absolute;
    left: 0;
    top: 0.58rem;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--accent-color);
    content: "";
}

.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 252, 244, 0.78);
    padding: 0.42rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.story-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-width: 310px;
    border: 1px solid var(--glass-border);
    border-radius: 2rem 2rem 5rem 2rem;
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.story-frame img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.quiet-detail {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 252, 244, 0.66);
    padding: 1.5rem;
}

.quiet-detail span {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 600;
}

.quiet-detail p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.step-card {
    height: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(255, 252, 244, 0.7);
    padding: 1.6rem;
}

.step-number {
    display: inline-flex;
    height: 2.4rem;
    width: 2.4rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--button-color);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.review-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: rgba(255, 252, 244, 0.72);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
}

.review-stars {
    display: inline-flex;
    gap: 0.2rem;
    color: var(--accent-color);
    font-size: 0.78rem;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.35rem;
    background: rgba(255, 252, 244, 0.78);
}

.faq-item + .faq-item {
    margin-top: 0.85rem;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    flex-shrink: 0;
    color: var(--accent-color);
    transition: transform 300ms ease;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-answer {
    margin: 0;
    padding: 0 1.3rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    background: rgba(255, 252, 244, 0.66);
    padding: 1.2rem;
}

.contact-panel {
    border-radius: 2rem;
    padding: clamp(1.5rem, 4vw, 2.4rem);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status {
    min-height: 1.25rem;
}

.form-status.success {
    color: #4F6B3A;
}

.form-status.error {
    color: #A6402A;
}

#apropos p:not(.section-kicker) {
    font-weight: 500;
}

.mobile-cta-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(245, 235, 214, 0.92);
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.5rem;
    }

    .hero-frame {
        aspect-ratio: 1 / 1;
    }

    .hero-frame.hero-frame-rotated {
        aspect-ratio: 3 / 4;
    }

    .hero-frame-rotated img {
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .floating-note {
        position: relative;
        right: auto;
        bottom: auto;
        max-width: 100%;
        margin: -1.75rem auto 0;
    }

    .service-card {
        padding: 1.5rem;
    }
}

#top #apropos p:not(.section-kicker) {
    font-weight: 700;
}

.realisation-card {
    display: flex;
    flex-direction: column;
}

.realisation-caption {
    margin: 0.7rem 0 0;
    padding-inline: 0.15rem;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.55;
}

.realisation-trigger {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: var(--surface-color);
    padding: 0;
    box-shadow: var(--shadow-soft);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.realisation-trigger:hover,
.realisation-trigger:focus-visible {
    border-color: rgba(140, 90, 40, 0.5);
    box-shadow: 0 26px 60px rgba(58, 42, 26, 0.16);
    transform: translateY(-3px);
}

.realisation-trigger:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.realisation-trigger img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: transform 400ms ease;
}

.realisation-trigger:hover img {
    transform: translate(-50%, -50%) scale(1.04);
}

.realisation-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem);
    background: rgba(58, 42, 26, 0.88);
    backdrop-filter: blur(6px);
}

.realisation-lightbox.is-open {
    display: flex;
}

.realisation-lightbox-figure {
    display: flex;
    max-height: 100%;
    max-width: min(94vw, 68rem);
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
}

.realisation-lightbox-stage {
    position: relative;
    display: flex;
    width: min(92vw, 68rem);
    max-width: 100%;
    height: min(74vh, 62rem);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.2rem;
    background: rgba(255, 252, 244, 0.12);
}

.realisation-lightbox-stage img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 1.2rem;
    object-fit: contain;
    transition: opacity 300ms ease;
}

.realisation-lightbox-stage img.is-loading {
    opacity: 0;
}

.realisation-lightbox-spinner {
    color: #FFFCF4;
    font-size: 1.5rem;
}

.realisation-lightbox-caption {
    color: #FFFCF4;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}

.realisation-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    height: 2.9rem;
    width: 2.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 252, 244, 0.45);
    border-radius: 999px;
    background: rgba(255, 252, 244, 0.16);
    color: #FFFCF4;
    transition: background 300ms ease;
}

.realisation-lightbox-close:hover {
    background: rgba(255, 252, 244, 0.32);
}

.realisation-lightbox-close:focus-visible {
    outline: 2px solid #FFFCF4;
    outline-offset: 3px;
}

/* Photo affichée dans son orientation d’origine. */
.realisation-trigger img.is-upright {
    width: 100%;
    aspect-ratio: 3 / 4;
}

/* Photos de la galerie affichées pivotées d’un quart de tour vers la droite. */
.realisation-trigger img.is-rotated-right {
    transform: translate(-50%, -50%) rotate(90deg) scale(1.3334);
}

.realisation-trigger:hover img.is-rotated-right {
    transform: translate(-50%, -50%) rotate(90deg) scale(1.3867);
}

/* Photos de la galerie affichées retournées d’un demi-tour. */
.realisation-trigger img.is-rotated-half {
    width: 100%;
    aspect-ratio: 3 / 4;
    transform: translate(-50%, -50%) rotate(180deg);
}

.realisation-trigger:hover img.is-rotated-half {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.04);
}

.realisation-lightbox-stage.is-rotated-right {
    width: min(78vh, 86vw, 56rem);
    height: min(78vh, 86vw, 56rem);
    max-height: none;
}

.realisation-lightbox-stage.is-rotated-right img {
    max-width: 100%;
    max-height: 100%;
    transform: rotate(90deg);
}

.realisation-lightbox-stage.is-rotated-half img {
    transform: rotate(180deg);
}

/* Photos de la galerie affichées pivotées d’un quart de tour vers la gauche. */
.realisation-trigger img.is-rotated-left {
    transform: translate(-50%, -50%) rotate(-90deg) scale(1.3334);
}

.realisation-trigger:hover img.is-rotated-left {
    transform: translate(-50%, -50%) rotate(-90deg) scale(1.3867);
}

.realisation-lightbox-stage.is-rotated-left {
    width: min(78vh, 86vw, 56rem);
    height: min(78vh, 86vw, 56rem);
    max-height: none;
}

.realisation-lightbox-stage.is-rotated-left img {
    max-width: 100%;
    max-height: 100%;
    transform: rotate(-90deg);
}

/* Trait horizontal de séparation sous la mention légale, bien visible sur le fond crème. */
.legal-divider {
    display: block;
    width: 100%;
    height: 1px;
    border: 0;
    background: rgba(140, 90, 40, 0.45);
}

/* Mention légale affichée en petit, sur une seule ligne dès que l’écran le permet. */
.legal-mention {
    display: block;
    margin: 0 auto 1.6rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0.01em;
    text-align: center;
}

@media (min-width: 640px) {
    .legal-mention {
        font-size: 0.82rem;
    }
}

@media (min-width: 1024px) {
    .legal-mention {
        font-size: min(0.92rem, 1.4vw);
        letter-spacing: 0.005em;
        white-space: nowrap;
    }
}