@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --bg: #090909;
    --panel: #151515;
    --gold: #d5b45c;
    --gold-light: #f0d98f;
    --text: #f4f0e7;
    --muted: #aaa69b;
    --line: #8a6b2e;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', Arial, sans-serif;
    line-height: 1.65;
}

/* CADRE SUPERIEUR ET BANNIERE */

.top-frame {
    border: 1px solid var(--line);
    border-bottom: 0;
    margin: 0;
    background: #080808;
}

.site-banner {
    width: 100%;
    max-width: none;
    background: #080808;
    line-height: 0;
    padding: 0;
    text-align: center;
}

.site-banner img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

/* MENU FIXE */

.nav-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 8, 9, .98);
    border-top: 1px solid #6d5727;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 5px 18px #0009;
}

.nav-sticky nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vw, 64px);
    padding: 10px 18px;
}

.nav-sticky a {
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 2px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}

.nav-sticky a:hover,
.nav-sticky a.active {
    color: var(--gold-light);
    border-color: var(--gold);
}

/* CONTENU PRINCIPAL */

main {
    min-height: 55vh;
}

.home-frame {
    margin: 30px auto 46px;
    width: min(1120px, calc(100% - 44px));
    min-height: 0px;
    border: 1px solid var(--line);
    background: radial-gradient(
        ellipse at 50% 0%,
        #282015 0%,
        #12110f 48%,
        #0b0b0b 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(35px, 7vw, 86px) 28px 0px;
}

.artist-intro {
    max-width: 760px;
}

.eyebrow {
    color: var(--gold);
    letter-spacing: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.artist-intro h1 {
    font: 600 clamp(48px, 8vw, 82px)/1.05 'Playfair Display', Georgia, serif;
    margin: 12px 0;
    color: #fff;
}

.gold-rule {
    width: 90px;
    height: 2px;
    background: var(--gold);
    margin: 22px auto;
}

.artist-intro h2 {
    font: 500 clamp(22px, 3.2vw, 32px)/1.25 'Playfair Display', Georgia, serif;
    color: var(--gold-light);
    margin: 0 0 18px;
}

.artist-intro p:last-child {
    font-size: 16px;
    color: #d0c9bb;
    max-width: 680px;
    margin: 0 auto;
}

/* SECTIONS */

.section {
    padding: 30px max(5vw, 20px);
    min-height: auto;
}

.section h2 {
    font: 600 clamp(32px, 4vw, 48px)/1.15 'Playfair Display', serif;
    margin: 12px 0 20px;
}

.dark {
    background: #101011;
}

.section-head {
    margin-bottom: 12px;
}

.section-head > p:last-child,
.contact p {
    color: var(--muted);
}

/* FORMULAIRES ET ESPACE MEMBRES */

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 900px;
}

.panel {
    background: var(--panel);
    border: 1px solid #34312a;
    padding: 25px;
    margin: 0 0 22px;
}

.panel h3,
.posts h3 {
    font: 600 24px 'Playfair Display', serif;
    margin: 0 0 18px;
    color: var(--gold-light);
}

label {
    display: block;
    font-size: 13px;
    color: #c7c1b4;
    margin: 14px 0;
}

input,
textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    background: #0c0c0d;
    border: 1px solid #454039;
    color: white;
    padding: 12px;
    font: inherit;
    border-radius: 2px;
}

input:focus,
textarea:focus {
    outline: 1px solid var(--gold);
}

.gold-button {
    display: inline-block;
    border: 0;
    background: linear-gradient(135deg, var(--gold-light), #b48d37);
    color: #17130b;
    padding: 13px 23px;
    border-radius: 2px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.notice {
    padding: 12px 16px;
    border: 1px solid #7e6835;
    background: #211c11;
    color: var(--gold-light);
    max-width: 900px;
}

.member-bar,
.member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.member-bar {
    margin: 22px 0;
}

.quiet-button {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid #746039;
    padding: 8px 12px;
    cursor: pointer;
}

.member-list {
    display: grid;
    gap: 12px;
}

.member-row {
    border-top: 1px solid #34312a;
    padding-top: 12px;
}

.member-row small {
    display: block;
    color: var(--muted);
}

.publish {
    max-width: 900px;
}

.posts {
    max-width: 900px;
    margin-top: 36px;
}

.post {
    background: #151516;
    border: 1px solid #34312a;
    padding: 22px;
    margin: 18px 0;
}

.post-date {
    color: var(--gold);
    font-size: 12px;
}

.post-media {
    display: block;
    width: 100%;
    max-width: 560px;
    max-height: 280px;
    margin: 8px auto 8px 0;
    object-fit: contain;
}

.post-actions form {
    display: inline;
}

.comment {
    border-top: 1px solid #302d27;
    padding: 10px 0;
    font-size: 14px;
}

.comment b {
    color: var(--gold-light);
    margin-right: 8px;
}

.comment-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-form input {
    flex: 1;
}

/* BOUTIQUE ET CONTACT */

.shop {
    text-align: center;
    background: linear-gradient(145deg, #17130d, #0b0b0c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shop > p:not(.eyebrow) {
    color: var(--muted);
}

.coming {
    display: inline-block;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    letter-spacing: 3px;
    padding: 9px 18px;
    font-size: 11px;
    margin-top: 15px;
}

.contact {
    background: #111;
}

.contact p {
    max-width: 600px;
}

/* PIED DE PAGE */

.bottom-frame {
    border: 1px solid var(--line);
    margin: 0;
    background: #101010;
    text-align: center;
    padding: 28px 20px 22px;
}

.footer-inner {
    max-width: 1100px;
    margin: auto;
}

.footer-name {
    font: 600 20px 'Playfair Display', Georgia, serif;
    letter-spacing: 2px;
    color: #fff;
}

.footer-name span {
    color: var(--gold);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin: 12px 0;
    color: var(--gold-light);
    font-size: 12px;
    letter-spacing: 1px;
}

.copyright {
    color: #8e897d;
    font-size: 11px;
}

/* ADAPTATION TELEPHONES */

@media (max-width: 650px) {

    .site-banner img {
        height: 130px;
    }

    .nav-sticky nav {
        min-height: 62px;
        gap: 10px 18px;
        flex-wrap: wrap;
    }

    .nav-sticky a {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .home-frame {
        width: calc(100% - 24px);
        margin: 18px auto 28px;
        min-height: 360px;
        padding: 42px 20px;
    }

    .artist-intro p:last-child {
        font-size: 14px;
    }

    .section {
        padding: 48px 18px;
    }

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

    .member-row {
        align-items: flex-start;
    }

    .comment-form {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .footer-links {
        gap: 12px 20px;
    }
}
/* Présentation de la page d'accueil avec photo */
.home-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.home-content .artist-intro {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.home-photo {
    flex: 0 0 38%;
    max-width: 380px;
    transform: translateY(30px);
}

.home-photo img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border: 2px solid #c9a45c;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(201, 164, 92, 0.25);
}
.home-content::after {
    content: "";
    grid-column: 1 / -1;
    grid-row: 3;
    display: block;
    width: 100%;
    height: 1px;
    margin-top: -320px;
    background: linear-gradient(90deg, #d6b45c, #fff6b0, #d6b45c);
    box-shadow: 0 0 8px rgba(214, 180, 92, 0.45);
}
/* Adaptation pour les téléphones */
@media (max-width: 650px) {
    .home-content {
        flex-direction: column;
        gap: 25px;
    }

    .home-content .artist-intro {
        text-align: center;
    }

    .home-photo {
        flex: auto;
        width: 100%;
        max-width: 320px;
    }

    .home-photo img {
        height: auto;
        max-height: 420px;
    }
}
/* Garder la bannière et le menu visibles pendant le défilement */
.top-frame {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Le menu fait maintenant partie du cadre fixe */
.nav-sticky {
    position: relative;
    top: auto;
}
.welcome-message p {
    margin: 6px 0;
    line-height: 1.35;
}


/* EN GRANDE PREMIÈRE — disposition réservée à la page d’accueil */
@media (min-width: 651px) {
    .home-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
        grid-template-areas:
            "intro photo"
            "info  photo";
        align-items: start;
        column-gap: 40px;
        row-gap: 24px;
    }

    .home-content .artist-intro {
        grid-area: intro;
        min-width: 0;
        transform: none !important;
    }

    .home-content .home-info-section {
        grid-area: info;
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        align-self: start;
    }

    .home-content .home-photo {
        grid-area: photo;
        min-width: 0;
        transform: none;
    }
}

@media (max-width: 650px) {
    .home-content {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }

    .home-content .artist-intro {
        transform: none !important;
    }

    .home-content .home-info-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .home-content .home-photo {
        align-self: center;
    }
}


/* CORRECTION FINALE — « En grande première » sous la présentation */
@media (min-width: 651px) {
    .home-frame .home-content {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
        grid-template-areas:
            "intro photo"
            "info photo";
        align-items: start;
        column-gap: 40px;
        row-gap: 24px;
    }

    .home-frame .home-content > .artist-intro {
        grid-area: intro;
        min-width: 0;
        max-width: 600px;
        margin: 0;
        transform: translateY(-80px) !important;
    }

    .home-frame .home-content > .home-info-section {
        grid-area: info;
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        align-self: start;
        box-sizing: border-box;
    }

    .home-frame .home-content > .home-photo {
        grid-area: photo;
        min-width: 0;
        width: 100%;
        max-width: 380px;
        margin: 0;
        transform-origin: top right;
transform: translate(30px, -60px) scale(1.10);
    }
}

@media (max-width: 650px) {
    .home-frame .home-content {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .home-frame .home-content > .artist-intro {
        transform: none !important;
    }

    .home-frame .home-content > .home-info-section {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .home-frame .home-content > .home-photo {
        align-self: center;
        margin: 0;
        transform: none;
    }
}

@media (min-width: 651px) {
    .home-frame {
        align-items: start !important;
    }

    .home-frame .home-content > .home-info-section {
        transform: translateY(60px);
        margin-top: 0 !important;
    }
}

/* Style du titre En grande première */
.home-info-section h2 {
    margin-bottom: 28px !important;
    position: relative;
    padding-bottom: 18px;
}

/* Ligne dorée décorative */
.home-info-section h2::after {
    content: "";
    display: block;
    width: 300px;
    height: 2px;
    margin-top: 2px;
margin-bottom: 0;
    background: linear-gradient(
        to right,
        transparent,
        #d5b45c,
        #f0d98f,
        #d5b45c,
        transparent
    );
}

.home-info-rule {
    display: none !important;
}
/* RAPPROCHER LE TITRE, LA LIGNE ET LA PUBLICATION */

.home-info-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.home-info-section .home-info-title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.home-info-section .home-info-rule {
    display: none !important;
}

.home-info-section .home-info-title::after {
    content: "";
    display: block;
    width: 300px;
    max-width: 100%;
    height: 2px;
    margin-top: 5px;
    margin-bottom: 8px;
    background: linear-gradient(
        to right,
        transparent,
        #d5b45c,
        #f0d98f,
        #d5b45c,
        transparent
    );
}

.home-info-section .home-info-item {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* =========================================================
   OPTIMISATION MOBILE — Paul Yvon PY
   Ajouts ciblés : ne modifie pas la présentation ordinateur.
   ========================================================= */

/* Évite les débordements horizontaux sur les petits écrans */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

/* Tablettes et petits écrans : donne plus de place au contenu */
@media (max-width: 800px) {
    .home-frame .home-content {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "intro"
            "photo"
            "info" !important;
        row-gap: 24px;
    }

    .home-frame .home-content > .artist-intro,
    .home-frame .home-content > .home-photo,
    .home-frame .home-content > .home-info-section {
        grid-column: 1 !important;
        width: 100%;
        max-width: 100%;
        transform: none !important;
    }

    .home-frame .home-content > .home-photo {
        justify-self: center;
    }

    .home-frame .home-content > .home-photo img {
        height: auto;
        max-height: 460px;
        object-fit: contain;
    }

    .espace-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Téléphones */
@media (max-width: 650px) {
    html {
        scroll-padding-top: 12px;
    }

    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Le bandeau défile avec la page; seul le menu reste accessible */
    .top-frame {
        position: relative !important;
        top: auto !important;
        z-index: auto !important;
    }

    .site-banner img {
        width: 100%;
        height: auto;
        max-height: 118px;
        object-fit: contain;
    }

    .nav-sticky {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
    }

    .nav-sticky nav {
        min-height: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 8px;
        padding: 8px 6px;
    }

    .nav-sticky a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 8px 9px;
        font-size: 11px;
        letter-spacing: .6px;
        white-space: nowrap;
    }

    .home-frame {
        width: calc(100% - 20px);
        min-height: 0;
        margin: 14px auto 22px;
        padding: 28px 16px;
    }

    .home-frame .home-content {
        gap: 20px;
    }

    .home-frame .home-content > .artist-intro {
        text-align: center;
    }

    .artist-intro h1 {
        font-size: clamp(38px, 12vw, 54px);
        overflow-wrap: anywhere;
    }

    .artist-intro h2 {
        font-size: clamp(21px, 6vw, 28px);
    }

    .artist-intro p:last-child {
        font-size: 15px;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .home-frame .home-content > .home-photo {
        width: 100%;
        max-width: 280px;
    }

    .home-frame .home-content > .home-photo img {
        width: 100%;
        height: auto;
        max-height: 360px;
        object-fit: contain;
    }

    .home-info-section {
        text-align: left;
        overflow-wrap: anywhere;
    }

    .home-info-section .home-info-title {
        font-size: 25px;
    }

    .home-info-section .home-info-item {
        font-size: 15px;
        line-height: 1.55;
    }

    .section {
        padding: 30px 15px;
    }

    .section h2 {
        font-size: clamp(28px, 8vw, 36px);
    }

    .auth-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .panel,
    .post {
        padding: 17px 14px;
        min-width: 0;
    }

    .panel h3,
    .posts h3 {
        font-size: 22px;
    }

    /* Champs à 16px : évite le zoom automatique sur iPhone */
    input,
    textarea,
    select {
        width: 100%;
        min-width: 0;
        font-size: 16px;
        padding: 12px;
    }

    input[type="file"] {
        font-size: 14px;
    }

    button,
    .gold-button,
    .quiet-button {
        min-height: 44px;
        max-width: 100%;
        padding: 11px 16px;
        font-size: 15px;
        white-space: normal;
    }

    .member-bar,
    .member-row {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .member-row form,
    .member-row button {
        max-width: 100%;
    }

    .comment-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .comment-form input,
    .comment-form button {
        width: 100%;
    }

    .post-media {
        width: 100%;
        max-width: 100%;
        max-height: 320px;
        height: auto;
    }

    .espace-columns,
    .espace-main,
    .announcements-sidebar {
        width: 100%;
        min-width: 0;
    }

    .announcements-card {
        padding: 16px 14px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .bottom-frame {
        padding: 22px 14px;
    }
}

/* Très petits téléphones */
@media (max-width: 380px) {
    .nav-sticky nav {
        gap: 2px 4px;
    }

    .nav-sticky a {
        padding: 7px 6px;
        font-size: 10px;
    }

    .home-frame {
        width: calc(100% - 14px);
        padding: 24px 12px;
    }

    .panel,
    .post {
        padding: 14px 11px;
    }
}


/* Espace PY sur téléphone : afficher les actualités avant le contenu */
@media (max-width: 650px) {
    .espace-columns {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
    }

    .espace-columns > .announcements-sidebar {
        order: -1;
        width: 100%;
        margin: 0 0 22px;
    }

    .espace-columns > .espace-main {
        order: 0;
        width: 100%;
    }
}


/* CORRECTION RENFORCÉE — actualités en premier sur téléphone */
@media screen and (max-width: 767px) {
    .espace-columns {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        align-items: start !important;
    }

    .espace-columns > .announcements-sidebar {
        grid-column: 1 !important;
        grid-row: 1 !important;
        order: -999 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 22px !important;
    }

    .espace-columns > .espace-main {
        grid-column: 1 !important;
        grid-row: 2 !important;
        order: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}
