/* ---- PAGE ACCUEIL — Styles spécifiques ---- */

/* ===== HERO ===== */
.hero {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    position: relative;
    overflow: hidden;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(7rem, 12vw, 9rem) var(--gutter) clamp(3rem, 6vw, 5rem);
    padding-left: clamp(2rem, 8vw, 8rem);
    position: relative;
    z-index: 2;
}

.hero-left::before {
    content: '';
    position: absolute;
    left: clamp(1rem, 5vw, 4.5rem);
    top: 20%;
    bottom: 25%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--sauge-clair) 30%, var(--sauge-clair) 70%, transparent);
    opacity: 0.3;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 9.5vw, 7.5rem);
    font-weight: 300;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--encre);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-style: italic;
    font-weight: 300;
    color: var(--sauge);
    margin-bottom: 2.2rem;
}

.hero-intro {
    max-width: 440px;
    font-size: 1.05rem;
    color: var(--encre-douce);
    line-height: 1.95;
    margin-bottom: 2.5rem;
}

.hero-specialites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--sable);
    border-radius: var(--radius-pill);
    color: var(--bois);
    transition: all var(--transition);
}

.hero-tag:hover {
    border-color: var(--sauge-clair);
    color: var(--sauge-profond);
    background: rgba(240, 174, 175, 0.08);
}

/* Photo — côté droit */
.hero-right {
    background-color: #C8B5A4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-right::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(176, 96, 98, 0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 75%, rgba(249, 177, 153, 0.06) 0%, transparent 45%);
    pointer-events: none;
}

.hero-photo-frame {
    width: calc(100% - 1.5rem);
    height: calc(100% - 3rem);
    max-width: none;
    border: 1px solid var(--sable);
    border-radius: var(--radius);
    background: var(--blanc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 40px rgba(42, 30, 32, 0.08);
    overflow: hidden;
}

.hero-photo-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(176, 96, 98, 0.15);
    border-radius: calc(var(--radius) + 6px);
    pointer-events: none;
}

.hero-photo-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--terre);
    text-align: center;
    padding: 1rem;
}

/* Hero slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--blanc);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-dot.active {
    background: var(--blanc);
}

/* Hero arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
    backdrop-filter: blur(4px);
}

.hero-photo-frame:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--terre);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
}

.hero-arrow-prev { left: 0.5rem; }
.hero-arrow-next { right: 0.5rem; }

/* Hero slideshow cursor */
.hero-slideshow {
    cursor: pointer;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    /* visibilité immédiate pour pouvoir déplacer le focus à l'ouverture */
    transition: opacity 0.35s ease, visibility 0s;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.35s ease 0.1s, transform 0.35s ease 0.1s;
}

.lightbox.open .lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.6rem;
}

.lightbox-dots .hero-dot {
    width: 10px;
    height: 10px;
    border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-dots .hero-dot.active {
    background: #fff;
    border-color: #fff;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: clamp(2rem, 8vw, 8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--terre);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.scroll-hint-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--terre), transparent);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ===== BIENVENUE / PRÉSENTATION ===== */
.welcome {
    padding: var(--section-y) 0;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 0.38fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.welcome-aside {
    position: sticky;
    top: 120px;
}

.welcome-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-style: italic;
    font-weight: 300;
    color: var(--encre);
    line-height: 1.5;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--sauge-clair);
}

.welcome-quote cite {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 500;
    color: var(--terre);
    margin-top: 1rem;
    letter-spacing: 0.06em;
}

.welcome-text {
    max-width: 620px;
}

.welcome-text p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--encre-douce);
}

/* Lettrine éditoriale */
.welcome-text p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.8rem;
    float: left;
    line-height: 0.78;
    margin-right: 0.5rem;
    margin-top: 0.12rem;
    color: var(--sauge);
    font-weight: 400;
}

/* ===== APPROCHES ===== */
.approach-preview {
    padding: var(--section-y) 0;
}

.approach-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.approach-card {
    background: var(--blanc);
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(234, 207, 180, 0.25);
    border-radius: var(--radius);
    position: relative;
    transition: all var(--transition);
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 0;
    transition: height 0.7s var(--ease-out);
}

.approach-card:nth-child(1)::before { background: var(--sauge-clair); }
.approach-card:nth-child(2)::before { background: var(--terracotta-doux); }

.approach-card:hover::before { height: 100%; }

.approach-card:hover {
    box-shadow: 0 16px 50px rgba(42, 30, 32, 0.08);
    transform: translateY(-3px);
}

.section--dark .approach-card {
    border-color: transparent;
}

.approach-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--sable);
    line-height: 1;
    margin-bottom: 1rem;
}

.approach-card h3 {
    margin-bottom: 1rem;
    color: var(--encre);
}

.approach-card p {
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--encre-douce);
}

.approach-link {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sauge-profond);
    padding-bottom: 3px;
    border-bottom: 1px solid var(--sauge-clair);
    transition: all var(--transition);
}

.approach-link:hover {
    color: var(--terracotta);
    border-color: var(--terracotta);
}

/* ===== GALERIE ===== */
.gallery {
    padding: var(--section-y) 0 0;
}

/* Ordinateur : 5 photos au format paysage, deux grandes puis trois.
   Téléphone / tablette : les mêmes vues au format portrait (voir plus bas). */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.6rem, 1.2vw, 1.1rem);
    max-width: 1100px;
    margin: 3rem auto 0;
    padding: 0 var(--gutter);
}

.gallery-item {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: var(--sable);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(42, 30, 32, 0.06);
    transition: box-shadow var(--transition), transform var(--transition);
}

.gallery-item { aspect-ratio: 4 / 3; grid-column: span 2; }
.gallery-item:nth-child(-n+2) { grid-column: span 3; }

.gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Photo disponible uniquement en portrait : cadrage paysage sur ordinateur */
.gallery-item--recadre img { object-position: 50% 45%; }
.gallery-item--recadre-bas img { object-position: 50% 63%; }

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
}

.gallery-item:hover {
    box-shadow: 0 16px 50px rgba(42, 30, 32, 0.12);
    transform: translateY(-3px);
}

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

.gallery-item:focus-visible {
    outline: 2px solid var(--sauge);
    outline-offset: 4px;
}

/* Tablette / téléphone : format portrait, une grande photo puis deux par deux */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 620px;
    }
    .gallery-item,
    .gallery-item:nth-child(-n+2) { aspect-ratio: 3 / 4; grid-column: auto; }
    .gallery-item:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-item img { transition: none; }
    .gallery-item:hover,
    .gallery-item:hover img { transform: none; }
}

/* ===== CTA ===== */
.cta-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
}

.cta-section h2 {
    font-style: italic;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.cta-section p {
    max-width: 480px;
    margin: 0 auto 2rem;
    font-size: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 7.5rem var(--gutter) 3rem;
        text-align: center;
        align-items: center;
    }

    .hero-left::before { display: none; }
    .hero-name { letter-spacing: -0.02em; }
    .hero-intro { text-align: center; }
    .hero-specialites { justify-content: center; }

    .hero-right {
        padding: 3rem var(--gutter);
    }

    .hero-photo-frame {
        width: calc(100% - 2rem);
        height: auto;
        aspect-ratio: 3 / 4;
        max-width: 360px;
    }

    .hero-photo-frame::before { display: none; }

    .scroll-hint { display: none; }

    .welcome-grid {
        grid-template-columns: 1fr;
    }

    .welcome-aside {
        position: static;
    }

    .approach-cards {
        grid-template-columns: 1fr;
    }

}

/* ===== Accessibilité : zone cliquable des points (min. 24px) ===== */
.hero-dot { position: relative; }
.hero-dot::before {
    content: "";
    position: absolute;
    inset: -8px;
}

.hero-slideshow:focus-visible {
    outline: 2px solid var(--sauge);
    outline-offset: 4px;
    border-radius: var(--radius);
}
