/* Thème « Atelier » — Lutherie de Guitare Laslandes */
:root {
    --bg: #0b0907;
    --bg2: #15110d;
    --line: #2a221a;
    --text: #e9e1d6;
    --muted: #a3978a;
    --accent: #c98a4b;
    --accent2: #e2b07a;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-link-color-rgb: 226, 176, 122;
    --bs-link-hover-color-rgb: 201, 138, 75;
}

html {
    scroll-behavior: smooth;
}

/* Japonais : les polices latines n'ont pas les glyphes, on ajoute Noto en secours
   et on évite l'italique synthétique, illisible sur les kanji */
:root:lang(ja) {
    --serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
    --sans: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
}

:lang(ja) em,
:lang(ja) .interlude,
:lang(ja) .band p,
:lang(ja) blockquote.atelier,
:lang(ja) .signature p,
:lang(ja) .fst-italic {
    font-style: normal !important;
}

:lang(ja) body {
    line-break: strict;
    word-break: normal;
    font-variant-numeric: lining-nums;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
}

img {
    max-width: 100%;
    height: auto;
}

.icon {
    display: inline-block;
    vertical-align: -0.125em;
}

a {
    color: var(--accent2);
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, .serif {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: .4em 0 .5em;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrap-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-size: .72rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--accent);
}

.text-muted-warm {
    color: var(--muted);
}

.section {
    padding: 120px 0;
}

.section-sm {
    padding: 80px 0;
}

.bg-alt {
    background: var(--bg2);
}

/* Boutons */
.btn-atelier {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid var(--accent);
    color: var(--accent2);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    transition: .25s;
}

.btn-atelier:hover,
.btn-atelier.fill {
    background: var(--accent);
    color: #120d08;
}

.btn-atelier.fill:hover {
    background: var(--accent2);
}

.btn-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Hero d'accueil */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    background: #000;
}

.hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 42%;
    transform-origin: 28% 50%;
    animation: hero-zoom 16s cubic-bezier(.2, .6, .2, 1) both;
}

/* Vignettage chaud + fondus vers le texte et vers la page */
.hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 45% 40% at 32% 48%, rgba(201, 138, 75, .10), transparent 70%),
        radial-gradient(ellipse 80% 75% at 32% 45%, transparent 45%, rgba(11, 9, 7, .55) 80%, #0b0907 100%),
        linear-gradient(to left, rgba(11, 9, 7, .9) 0%, rgba(11, 9, 7, .45) 38%, transparent 58%),
        linear-gradient(to top, #0b0907 0%, rgba(11, 9, 7, 0) 28%);
}

.hero-text {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 560px;
    margin-right: max(24px, calc((100vw - 1200px) / 2 + 24px));
    padding: 140px 0 11vh;
    text-align: right;
}

/* Le h1 de l'accueil porte les mots-clés ; il garde l'apparence d'un surtitre */
.hero h1.eyebrow {
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 400;
    line-height: 1.75;
    margin: 0;
}

.hero .hero-title {
    font-family: var(--serif);
    color: var(--text);
    max-width: none;
    font-size: clamp(3.2rem, 7vw, 6.4rem);
    font-weight: 400;
    line-height: 1.02;
    margin: .3em 0 .35em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .6);
}

.hero .hero-title span,
.hero .hero-title em {
    display: block;
}

.hero .hero-title em {
    color: var(--accent2);
}

.hero .eyebrow,
.hero p {
    text-shadow: 0 1px 12px #000, 0 0 3px #000;
}

.hero p {
    max-width: 440px;
    margin-left: auto;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero .btn-row {
    justify-content: flex-end;
}




.hero-scroll {
    position: absolute;
    z-index: 2;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: .66rem;
    letter-spacing: .3em;
    color: var(--muted);
    text-transform: uppercase;
    text-decoration: none;
}

.hero-scroll:hover {
    color: var(--accent2);
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(var(--accent), transparent);
    transform-origin: top;
    animation: hero-scroll-line 2.2s ease-in-out infinite;
}

/* Apparition échelonnée (délai via --d) */
.hero-in {
    opacity: 0;
    animation: hero-in 1.1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards;
}

.hero-scroll.hero-in {
    animation-name: hero-in-fade;
}

@keyframes hero-zoom {
    from { transform: scale(1.14); filter: brightness(.6); }
    to { transform: scale(1); filter: brightness(1); }
}

@keyframes hero-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

@keyframes hero-in-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hero-scroll-line {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo img,
    .hero-scroll-line,
    .hero-in {
        animation: none;
        opacity: 1;
    }
}

/* En-tête des pages intérieures */
.page-head {
    position: relative;
    padding: 110px 0 70px;
    border-bottom: 1px solid var(--line);
    background-size: cover;
    background-position: center;
}

.page-head.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(#0b0907cc, #0b0907f2);
}

.page-head .wrap {
    position: relative;
}

.page-head h1 {
    font-size: clamp(3rem, 7vw, 5.2rem);
    font-weight: 400;
    margin: .1em 0 0;
}

.page-head p {
    color: var(--muted);
    max-width: 620px;
    margin: 18px 0 0;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent2);
}

/* Services */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 60px;
}

.service {
    background: var(--bg);
    padding: 56px 48px;
}


.service h3 {
    font-size: 2rem;
    margin: 0 0 .6em;
}

.service p {
    color: var(--muted);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tags span {
    border: 1px solid var(--line);
    padding: 4px 12px;
    font-size: .75rem;
    color: var(--muted);
    letter-spacing: .05em;
}

/* Image + texte */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.frame {
    position: relative;
    z-index: 0;
}

.frame img {
    display: block;
    width: 100%;
}

.frame::before {
    content: "";
    position: absolute;
    inset: 20px -20px -20px 20px;
    border: 1px solid var(--accent);
    opacity: .4;
    z-index: -1;
}

blockquote.atelier {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--accent2);
    border-left: 2px solid var(--accent);
    padding-left: 24px;
    margin: 32px 0;
}

/* Bandeau citation */
.band {
    position: relative;
    padding: 160px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #0b0907b3;
}

.band .wrap {
    position: relative;
}

.band p {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-style: italic;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.4;
}

.band small {
    display: block;
    margin-top: 24px;
    color: var(--accent);
    letter-spacing: .3em;
    font-size: .72rem;
    text-transform: uppercase;
    font-style: normal;
    font-family: var(--sans);
}

/* Cartes de galeries */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    flex-wrap: wrap;
}

.gallery-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.gallery-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: #000;
    aspect-ratio: 3 / 4;
    color: var(--text);
    text-decoration: none;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: transform .8s, opacity .4s;
}

.gallery-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.gallery-card .cap {
    position: absolute;
    inset: auto 0 0 0;
    padding: 40px 20px 18px;
    background: linear-gradient(#0000, #000d);
}

.gallery-card .cap h3 {
    font-size: 1.7rem;
    margin: 0;
    color: var(--text);
}

.gallery-card .cap span {
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
}

.gallery-card .placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 4rem;
    color: var(--line);
}

/* Grille d'une galerie */
.photo-grid {
    columns: 4 260px;
    column-gap: 14px;
}

.photo-grid a {
    display: block;
    margin-bottom: 14px;
    break-inside: avoid;
    overflow: hidden;
    background: #000;
}

.photo-grid img {
    display: block;
    width: 100%;
    opacity: .92;
    transition: transform .6s, opacity .3s;
}

.photo-grid a:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.empty-state {
    border: 1px solid var(--line);
    padding: 48px;
    text-align: center;
    color: var(--muted);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: #000e;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
}

.lightbox button {
    position: absolute;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 2.6rem;
    cursor: pointer;
    padding: 20px;
    line-height: 1;
}

.lightbox .lb-close {
    top: 10px;
    right: 20px;
}

.lightbox .lb-prev {
    left: 10px;
}

.lightbox .lb-next {
    right: 10px;
}

.lightbox .lb-count {
    position: absolute;
    bottom: 20px;
    font-size: .75rem;
    letter-spacing: .2em;
    color: var(--muted);
}

/* Présentation : parcours */
.story {
    position: relative;
}

.story-step {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: center;
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}

.story-step.reverse {
    grid-template-columns: 1fr 320px;
}

.story-step.reverse .frame {
    order: 2;
}

.story-step.text-only {
    grid-template-columns: 1fr;
}

.story-step .eyebrow {
    margin-bottom: 8px;
}

.story-step h2,
.story-step h3 {
    font-size: 2rem;
    margin: 0 0 16px;
}

.story-step p {
    color: var(--muted);
}

.interlude {
    text-align: center;
    padding: 70px 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.5;
    color: var(--accent2);
}

.interlude small {
    display: block;
    margin-top: 12px;
    font-size: 1.1rem;
    color: var(--muted);
}

.signature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 0 0;
}

.signature .frame {
    max-width: 380px;
    justify-self: center;
}

.signature p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.5;
}

/* Conseils */
.advice-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.advice-nav a {
    border: 1px solid var(--line);
    padding: 6px 16px;
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
}

.advice-nav a:hover,
.advice-nav a.is-current {
    border-color: var(--accent);
    color: var(--accent2);
}

.advice {
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 100px;
}

.advice:last-child {
    border-bottom: 0;
}


.advice h2 {
    margin-top: 0;
}

.advice h3 {
    font-size: 1.5rem;
    color: var(--accent2);
    margin: 32px 0 12px;
}

.advice p,
.advice li {
    color: var(--muted);
}

.advice ul {
    list-style: none;
    padding: 0;
}

.advice li {
    border-left: 2px solid var(--line);
    padding: 4px 0 4px 20px;
    margin-bottom: 20px;
}

.advice li strong,
.advice p strong {
    color: var(--text);
    font-weight: 500;
}

.key-figures {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 32px 0;
}

.key-figures div {
    background: var(--bg2);
    padding: 28px;
}

.key-figures b {
    display: block;
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--accent2);
    line-height: 1.1;
}

.key-figures span {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Remerciements */
.thanks-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    margin-top: 56px;
}

.thanks-list div {
    background: var(--bg);
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.thanks-list b {
    display: block;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
}

.thanks-list span {
    font-size: .9rem;
    color: var(--muted);
}

/* Contact */
.contact-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
}

.contact-block .portrait-photo {
    width: 300px;
}

.contact-block .portrait-photo img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.contact-block .portrait {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}

.contact-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.contact-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
}

.contact-list li b {
    flex: 0 0 120px;
    font-weight: 500;
    color: var(--accent);
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    padding-top: 4px;
}

.contact-list a {
    color: var(--text);
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--accent2);
}

.map {
    width: 100%;
    height: 380px;
    border: 1px solid var(--line);
    filter: grayscale(.6) contrast(1.05);
}

/* Formulaires (connexion) */
.form-card {
    max-width: 440px;
    margin: 0 auto;
    border: 1px solid var(--line);
    background: var(--bg2);
    padding: 48px 40px;
}

.form-card .form-control {
    background: var(--bg);
    border-color: var(--line);
    color: var(--text);
    border-radius: 0;
}

.form-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: none;
}

.form-card label {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 16px 0 6px;
}

/* Pied de page */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 60px 0 40px;
    font-size: .85rem;
    color: var(--muted);
}

.site-footer .cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.site-footer h4 {
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 6px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent2);
}

.site-footer .brand {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--text);
}

.site-footer .bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .75rem;
}

/* Apparition au défilement */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s, transform 1s;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Transitions entre pages */
body {
    opacity: 0;
    transition: opacity .25s ease-in-out;
}

body.fade-in {
    opacity: 1;
}

body.fade-out {
    opacity: 0;
}

@media (max-width: 991px) {
    .hero-photo img {
        object-position: 24% 40%;
    }

    .hero-shade {
        background:
            radial-gradient(ellipse 90% 60% at 30% 40%, transparent 40%, rgba(11, 9, 7, .5) 100%),
            linear-gradient(to top, #0b0907 0%, rgba(11, 9, 7, .85) 38%, rgba(11, 9, 7, 0) 70%);
    }

    .hero {
        justify-content: flex-start;
    }

    .hero-text {
        margin: 0 24px;
        padding-bottom: 110px;
        text-align: left;
    }

    .hero p {
        margin-left: 0;
    }

    .hero .btn-row {
        justify-content: flex-start;
    }

    .services,
    .split,
    .contact-block,
    .signature,
    .story-step,
    .story-step.reverse,
    .site-footer .cols {
        grid-template-columns: 1fr;
    }

    .story-step.reverse .frame {
        order: 0;
    }

    .story-step .frame,
    .contact-block .portrait-photo {
    width: 300px;
}

.contact-block .portrait-photo img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.contact-block .portrait {
        max-width: 320px;
    }

    .split {
        gap: 56px;
    }

    .section {
        padding: 90px 0;
    }

    .service {
        padding: 40px 28px;
    }

    .band {
        background-attachment: scroll;
    }

}

@media (max-width: 575px) {
    /* Photo en haut, texte dessous */
    .hero-photo img {
        height: 62%;
        object-position: 22% 50%;
    }

    .hero-shade {
        background: linear-gradient(to top, #0b0907 0%, #0b0907 40%, rgba(11, 9, 7, .2) 62%, rgba(11, 9, 7, 0) 75%);
    }

    .hero-text {
        padding-top: 52vh;
        padding-bottom: 96px;
    }

    .key-figures {
        grid-template-columns: 1fr;
    }

    .contact-list li {
        flex-direction: column;
        gap: 2px;
    }

    .contact-list li b {
        flex-basis: auto;
    }
}
