/* ============================================================
   YWebsite — Thème « Ramilée »
   Baroque & doré (parchemin ivoire, ors, brun). Mêmes classes
   .yw-* que les autres thèmes : seul l'habillage change.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background:
        radial-gradient(circle at 12% 0%, rgba(184,150,11,.05), transparent 40%),
        var(--color-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; color: var(--color-primary); font-weight: 600; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.yw-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.yw-muted { color: var(--color-muted); }

/* --- Disposition : barre latérale gauche (logo + menu vertical) ------ */
.yw-layout { display: flex; align-items: stretch; min-height: 100vh; }
.yw-sidebar { width: 260px; flex-shrink: 0; background: var(--color-surface);
              border-right: 1px solid var(--color-border); padding: 34px 24px;
              position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
.yw-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yw-content .yw-main { flex: 1; }

.yw-brand { display: block; text-align: center; font-family: var(--font-display, var(--font-title));
            font-weight: 700; font-size: 1.3rem; color: var(--color-primary);
            letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; }
.yw-brand:hover { color: var(--color-accent); }
.yw-sidebar-baseline { text-align: center; font-family: var(--font-title); font-style: italic;
                       color: var(--color-muted); font-size: .95rem; margin: 6px 0 26px; }

.yw-nav { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.yw-nav a { color: var(--color-muted); padding: 2px 0 2px 8px; font-family: var(--font-title);
            font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .15em;
            border-left: 2px solid transparent;
            transition: color .4s ease, padding-left .3s ease, border-color .4s ease; }
.yw-nav a:hover { color: var(--color-accent); padding-left: 16px; border-left-color: var(--color-accent); }
.yw-nav a[aria-current="page"] { color: var(--color-accent); font-weight: 600; padding-left: 16px;
                                 border-left-color: var(--color-accent); }
.yw-nav-group { margin: 20px 0 2px; padding: 0 0 8px 8px; font-family: var(--font-title);
                font-size: .55rem; font-weight: 400; text-transform: uppercase; letter-spacing: .25em;
                color: var(--color-primary-dark); position: relative; }
.yw-nav-group::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 5px; opacity: .35;
    background: linear-gradient(to right, #b9c0cb 0%, transparent 80%) no-repeat left 0 / 100% 1px,
                linear-gradient(to right, #d64b9a 0%, transparent 60%) no-repeat left 3px / 100% 1px; }
.yw-nav-group:first-child { margin-top: 0; }

/* Barre latérale → en haut sur petits écrans */
@media (max-width: 820px) {
    .yw-layout { flex-direction: column; }
    .yw-sidebar { width: auto; height: auto; position: static; border-right: none;
                  border-bottom: 1px solid var(--color-border); padding: 18px 22px; }
    .yw-nav { flex-direction: row; flex-wrap: wrap; margin-top: 12px; }
    .yw-nav a { border-left: none; border-bottom: 2px solid transparent; }
    .yw-nav a[aria-current="page"] { border-left: none; border-bottom-color: var(--color-accent); }
}

/* --- Sections / contenu --------------------------------------------- */
.yw-main { min-height: 50vh; }
.yw-page { padding: 48px 24px 70px; }
.yw-section { margin-bottom: 40px; }

.yw-hero {
    background:
        radial-gradient(circle at 50% 0%, rgba(184,150,11,.10), transparent 60%),
        linear-gradient(180deg, var(--color-surface), var(--color-bg));
    border-bottom: 1px solid var(--color-border);
    padding: 86px 0;
    text-align: center;
    position: relative;
}
.yw-hero::after { content: "❧"; display: block; color: var(--color-accent); font-size: 1.6rem; margin-top: 14px; opacity: .8; }
.yw-hero h1 { font-family: var(--font-display, var(--font-title)); font-weight: 700;
              font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .35em; }
.yw-hero p { font-size: 1.2rem; color: var(--color-text); max-width: 700px; margin: 0 auto; font-style: italic; }

/* Texte riche */
.yw-rte > :first-child { margin-top: 0; }
.yw-rte > :last-child { margin-bottom: 0; }
.yw-rte h2 { font-size: 2rem; margin: 1.3em 0 .5em; }
.yw-rte h3 { font-size: 1.5rem; margin: 1.1em 0 .4em; color: var(--color-text); }
.yw-rte blockquote {
    margin: 1.4em 0; padding: .6em 1.4em; border-left: 3px solid var(--color-accent);
    font-family: var(--font-title); font-size: 1.4rem; font-style: italic; color: var(--color-primary);
}

/* --- Galerie --------------------------------------------------------- */
.yw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.yw-gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
                   border: 1px solid var(--color-border); }
.yw-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.yw-gallery-item:hover img { transform: scale(1.05); }

/* --- Article --------------------------------------------------------- */
.yw-article { margin-bottom: 46px; padding-bottom: 30px; border-bottom: 1px solid var(--color-border); }
.yw-article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.yw-article-date { display: block; color: var(--color-muted); font-size: .85rem; margin-bottom: 8px; font-style: italic; }

/* --- Widget « avancement » (addon regie) ---------------------------- */
.yw-progress { background: #fffdf8; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px 28px; }
.yw-progress h3 { margin: 0 0 18px; }
.yw-progress-line { margin-bottom: 15px; }
.yw-progress-line:last-child { margin-bottom: 0; }
.yw-progress-head { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.yw-progress-head .pct { font-weight: 700; color: var(--color-primary); }
.yw-progress-bar { height: 8px; background: var(--color-surface); border-radius: 999px; overflow: hidden; border: 1px solid var(--color-border); }
.yw-progress-fill { height: 100%; background: var(--color-accent); border-radius: 999px; transition: width .5s; }
.yw-progress-global .yw-progress-fill { background: var(--color-primary); }
.yw-progress-dates { margin-top: 18px; font-size: .92rem; color: var(--color-muted); display: flex; gap: 24px; flex-wrap: wrap; }
.yw-progress-dates b { color: var(--color-primary); }

/* --- Formulaires ----------------------------------------------------- */
.yw-form { max-width: 660px; margin-top: 14px; }
.yw-field { margin-bottom: 18px; }
.yw-field-row { display: flex; gap: 18px; }
.yw-field-row .yw-field { flex: 1; }
.yw-field label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: 6px;
                  text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); }
.yw-field input, .yw-field textarea {
    width: 100%; padding: 12px 14px; font: inherit; color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: var(--radius); background: #fffdf8;
}
.yw-field input:focus, .yw-field textarea:focus { outline: none; border-color: var(--color-accent); }
.yw-btn {
    display: inline-block; background: var(--color-primary); color: #fff; border: none;
    padding: 13px 30px; border-radius: var(--radius); font: inherit; font-weight: 600; cursor: pointer;
    text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
}
.yw-btn:hover { background: var(--color-primary-dark); text-decoration: none; }

.yw-alert { padding: 13px 17px; border-radius: var(--radius); margin-bottom: 20px; }
.yw-alert-ok { background: #eef3e6; border: 1px solid #cdd9b6; color: #5a6b2a; }
.yw-alert-err { background: #f6e9e0; border: 1px solid #e0c4ad; color: #8a4b2a; }

/* --- Pied de page ---------------------------------------------------- */
.yw-footer { background: var(--color-text); color: #e9e1d3; margin-top: 56px; }
.yw-footer a { color: var(--color-accent); }
.yw-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 32px 24px; }
.yw-footer-brand { font-family: var(--font-display, var(--font-title)); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.yw-footer .yw-muted { color: #b7ab97; }
.yw-footer p { margin: 0; font-size: .9rem; }

/* --- Layouts blog / galerie ----------------------------------------- */
.yw-blog { max-width: 760px; padding-top: 48px; padding-bottom: 70px; }
.yw-blog-head h1 { font-size: 2.2rem; margin: 0 0 24px; }
.yw-gallery-page { max-width: 1280px; padding-top: 48px; padding-bottom: 70px; }
.yw-gallery-head { text-align: center; }
.yw-gallery-head h1 { font-family: var(--font-display, var(--font-title)); text-transform: uppercase; letter-spacing: .06em;
                      font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 28px; }

@media (max-width: 640px) {
    .yw-field-row { flex-direction: column; gap: 0; }
    .yw-header-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; }
}

/* --- Bloc « Projet (Régie) » : fiche, description et images ---------- */
.yw-regie-infos { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .92rem; }
.yw-regie-infos b { color: var(--color-muted); font-weight: 600; margin-right: 4px; }
.yw-regie-desc { margin: 0 0 18px; color: var(--color-muted); }
.yw-regie-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.yw-regie-images figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--color-bg); }
.yw-regie-images img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.yw-regie-images figcaption { font-size: .8rem; color: var(--color-muted); padding: 6px 8px; }

/* Réseaux sociaux du pied de page (réglages social.*) */
.yw-footer-socials { display: flex; gap: 14px; align-items: center; }
.yw-footer-socials a { display: inline-flex; opacity: .85; }
.yw-footer-socials a:hover { opacity: 1; }

/* ===== Gabarits Roman / Théâtre (port du style baroque de ramilee.fr) ===== */
.oeuvre-hero { position: relative; min-height: 320px; display: flex; flex-direction: column;
               align-items: center; justify-content: center; text-align: center; padding: 60px 24px;
               background-size: cover; background-position: center; background-color: var(--color-surface); }
.oeuvre-hero::before { content: ''; position: absolute; inset: 0; background: rgba(30, 24, 14, .55); }
.oeuvre-hero > * { position: relative; }
.oeuvre-hero h1 { font-family: var(--font-display); color: #f5f0e8; font-size: 2.6rem;
                  letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px;
                  text-shadow: 0 3px 14px rgba(0,0,0,.5); }
.oeuvre-sous-titre { font-family: var(--font-title); font-style: italic; font-size: 1.2rem; color: #e8dfc9; }
.oeuvre-badge { display: inline-block; margin-top: 14px; padding: 5px 16px; border: 1px solid rgba(245,240,232,.6);
                border-radius: 20px; color: #f5f0e8; font-size: .8rem; letter-spacing: .08em; }
.baroque-frame { box-shadow: inset 0 0 0 6px rgba(184,150,11,.35), inset 0 0 0 8px rgba(245,240,232,.25); }
.oeuvre-page { max-width: 820px; margin: 0 auto; padding: 50px 26px; }
.oeuvre-accroche { font-family: var(--font-title); font-style: italic; font-size: 1.35rem;
                   text-align: center; color: var(--color-primary-dark); margin-bottom: 36px; line-height: 1.6; }
.oeuvre-synopsis { font-size: 1.05rem; line-height: 1.9; margin-bottom: 36px; }
.oeuvre-tagline { font-family: var(--font-display); text-align: center; letter-spacing: .1em;
                  color: var(--color-accent); margin: 36px 0; font-size: 1.1rem; }
.oeuvre-section { margin-bottom: 44px; line-height: 1.85; }
.section-titre-container { text-align: center; margin-bottom: 22px; }
.section-label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em;
                 color: var(--color-primary); margin: 0 0 8px; font-size: 1rem; }
.filet-double { width: 120px; margin: 0 auto; border-top: 1px solid var(--color-accent);
                border-bottom: 1px solid var(--color-accent); height: 4px; }
.separateur-fin { width: 160px; margin: 40px auto; border-top: 1px solid var(--color-border); position: relative; }
.separateur-fin::after { content: '❦'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
                         background: var(--color-bg); padding: 0 12px; color: var(--color-accent); }
.ornement-baroque { text-align: center; margin: 36px 0; }
.ornement-baroque::before { content: '✦ ❦ ✦'; color: var(--color-accent); letter-spacing: 12px; }
.fragment-oeuvre { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
                   padding: 34px 30px; margin-bottom: 40px; }
.fragment-titre { text-align: center; text-transform: uppercase; letter-spacing: 3px; margin: 0 0 26px;
                  font-family: var(--font-display); color: var(--color-primary); font-size: 1.05rem; }
.texte-oeuvre { font-family: var(--font-title); font-size: 1.12rem; line-height: 2; }
.infos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 44px; }
.info-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
             padding: 22px; font-size: .95rem; }
.info-card h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em;
                color: var(--color-primary); margin: 0 0 10px; font-size: .9rem; }
.suivi-creation { background: var(--color-surface); border: 1px solid var(--color-border);
                  border-radius: var(--radius); padding: 30px; }
.suivi-titre { font-family: var(--font-display); text-align: center; text-transform: uppercase;
               letter-spacing: .14em; color: var(--color-primary); margin: 0 0 16px; }
.suivi-intro { line-height: 1.8; }
.cta-pro { text-align: center; background: var(--color-surface); border: 1px solid var(--color-accent);
           border-radius: var(--radius); padding: 34px 28px; margin-top: 46px; }
.cta-pro h3 { font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase;
              color: var(--color-primary); margin: 0 0 12px; }
.cta-pro .cta-texte { margin-bottom: 20px; line-height: 1.7; }
.cta-bouton { display: inline-block; padding: 13px 34px; border-radius: 30px; background: var(--color-primary);
              color: #f5f0e8 !important; font-weight: 600; letter-spacing: .06em; text-decoration: none;
              transition: background .25s, transform .25s; }
.cta-bouton:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.cta-section { text-align: center; padding: 40px 20px 10px; }
@media (max-width: 700px) { .oeuvre-hero h1 { font-size: 1.8rem; } }

/* ===== Gabarit À propos ===== */
.apropos-page { max-width: 820px; margin: 0 auto; padding: 56px 26px; }
.apropos-header { display: flex; gap: 36px; align-items: center; margin-bottom: 46px; flex-wrap: wrap; }
.apropos-portrait { width: 190px; height: 190px; object-fit: cover; border-radius: 50%;
                    box-shadow: 0 8px 30px rgba(0,0,0,.2), 0 0 0 5px rgba(184,150,11,.3); }
.apropos-titre h1 { font-family: var(--font-display); font-size: 2.3rem; margin: 0 0 6px; }
.apropos-titre .apropos-metier { font-family: var(--font-title); font-style: italic; font-size: 1.25rem;
                                 color: var(--color-accent); }
.apropos-solo-title { text-align: center; margin-bottom: 40px; font-family: var(--font-display); }
.apropos-citation { font-family: var(--font-title); font-style: italic; font-size: 1.5rem; text-align: center;
                    color: var(--color-primary-dark); margin-bottom: 46px; line-height: 1.6; }
.apropos-section { margin-bottom: 38px; line-height: 1.85; }
.apropos-section h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-primary);
                      letter-spacing: .08em; margin-bottom: 16px; }

/* ===== Logo de la barre latérale (réglage site.logo) ===== */
.yw-sidebar-logo { text-align: center; margin-bottom: 12px; }
.yw-sidebar-logo-img { width: 140px; height: auto; display: inline-block; }

/* ===== Accueil (port du home de ramilee.fr) ===== */
.rm-home-head { text-align: center; padding: 70px 30px 50px; margin: 26px; background: var(--color-bg); }
.rm-home-title { font-family: var(--font-display); font-size: 3.2rem; letter-spacing: .14em;
                 color: var(--color-primary); text-transform: uppercase; margin: 0 0 14px; }
.rm-home-baseline { font-family: var(--font-accent, serif); font-style: italic; font-size: 1.3rem;
                    letter-spacing: .18em; color: var(--color-muted); margin: 0 0 26px; }
.rm-home-citation { font-family: var(--font-body); font-style: italic; font-size: 1.25rem;
                    color: var(--color-text); }
.rm-home-citation .rm-lieu { display: block; margin-top: 10px; font-family: var(--font-display);
                             font-style: normal; font-size: .85rem; letter-spacing: .22em;
                             text-transform: uppercase; color: var(--color-primary); }
.rm-home-body { padding-top: 10px; }
.rm-home-body .yw-presta-title { font-family: var(--font-display); letter-spacing: .2em;
                                 text-transform: uppercase; font-size: 1.15rem; color: var(--color-primary); }
@media (max-width: 700px) { .rm-home-title { font-size: 2rem; } }

/* ===== Cartes des œuvres sur l'accueil : style « portes » de l'ancien site ===== */
.rm-home-body .yw-presta { border-radius: 0; background: #14100a; min-height: 340px;
                           border: 1px solid rgba(139,109,43,.25); box-shadow: none; }
.rm-home-body .yw-presta img { filter: grayscale(100%) sepia(15%); opacity: .75;
                               transition: transform .8s ease, filter .5s ease, opacity .5s ease; }
.rm-home-body .yw-presta:hover img { filter: grayscale(0) sepia(5%); opacity: 1; transform: scale(1.05); }
.rm-home-body .yw-presta-ov { text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,.25) 70%, transparent 100%); }
.rm-home-body .yw-presta-ov h3 { font-family: var(--font-display); color: #c9a84c;
                                 text-transform: uppercase; letter-spacing: .08em; font-size: 1.45rem;
                                 text-shadow: 0 0 30px rgba(201,168,76,.25); }
.rm-home-body .yw-presta:hover h3 { color: #dfc06b; }
.rm-home-body .yw-presta-type { font-family: var(--font-title); color: #c9a84c; font-size: .62rem;
                                text-transform: uppercase; letter-spacing: .22em; }
.rm-home-body .yw-presta-sous { font-family: var(--font-title); color: #d8cba8; font-size: .68rem;
                                text-transform: uppercase; letter-spacing: .16em; }
.rm-home-body .yw-presta-lien { font-family: var(--font-ui, sans-serif); font-size: .78rem;
                                letter-spacing: .06em; color: #dfc06b; }
