/* ======================
       CSS VARIABLES
 ======================= */

:root {
    --color-bg: #f4f1ea;
    --color-primary: #3a352f;
    --color-accent: #8c7b6a;
    --color-white: rgba(255,255,255,0.75);
    --color-black: rgba(0,0,0,0.75);
    --color-gold: #b8912f;
    --color-gold-light: #e9c873;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* =======================
		TYPOGRAPHIES
 ======================= */


/* ======================
       MAIN ELEMENTS
 ======================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    background: var(--color-bg);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* BUTTONS */
.btn {
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #2a2622;
}

.btn-outline {
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(0,0,0,0.05);
}

/* SECTION */
section {
    padding: 80px 60px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 32px;
    margin-bottom: 40px;
}


/* ================
       NAVBAR
 ================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.2));
    backdrop-filter: blur(5px);
    border-bottom: 3px solid transparent;
}

.navbar--admin {
    background: linear-gradient(rgba(140, 123, 106, 0.35), rgba(140, 123, 106, 0.15));
    border-bottom: 3px solid var(--color-primary);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #f4f1ea;
    background: var(--color-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
}

/* Leaves the admin area entirely, unlike the plain in-admin .nav-link
   links, so it gets its own outlined-pill look to stand out as an exit. */
.nav-link-exit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--color-primary);
    background: transparent;
    border: 1px solid var(--color-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    text-shadow: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link-exit:hover {
    background: var(--color-primary);
    color: #f4f1ea;
}

.navbar-left .nav-link {
    font-size: 20px;
    position: relative;
    font-weight: bold;
    color: var(--color-black);
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.navbar-left .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background: var(--color-primary);
    transition: 0.3s;
}

.navbar-left .nav-link:hover::after {
    width: 100%;
}

.navbar-login {
    position: relative;
    top: 0;
}

.navbar-title {
    font-family: var(--font-title);
    font-size: 30px;
    font-weight: bold;
    color: var(--color-black);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.navbar-logo img {
    max-width: 10vw;
    max-height: 120%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -10%;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* The logged-in public nav has one extra link ("Commander") compared to the
   anonymous one, wide enough to push "Accueil" under the centered logo. */
.navbar--user .navbar-logo img {
    transform: translateX(calc(-50% - 140px));
}

.nav-links a {
    margin-left: 25px;
    font-size: 20px;
    position: relative;
    font-weight: bold;
    color: var(--color-black);
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background: var(--color-primary);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-nav {
    padding: 8px 14px;
    border: 1px solid var(--color-primary);
    border-radius: 20px;
    background-color: var(--color-primary);
    color: var(--color-white) !important;
}

/* Hamburger toggle: hidden on desktop, shown by the mobile navbar query below. */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--color-black);
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    padding: 8px;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 16px;
        flex-wrap: wrap;
    }

    .navbar-left {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .navbar-title {
        font-size: 22px;
    }

    .admin-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .nav-link-exit,
    .navbar-left .nav-link {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .navbar-left .nav-link {
        border: 1px solid var(--color-primary);
        border-radius: 20px;
    }

    /* The desktop logo offset compensates for the wide inline nav-links list;
       on mobile that list is collapsed behind the toggle, so re-center it. */
    .navbar--user .navbar-logo img {
        transform: translateX(-50%);
    }

    .navbar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1rem 1.25rem 1.5rem;
        background: var(--color-bg);
        box-shadow: 0 8px 16px rgba(0,0,0,0.12);
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .nav-links a.cta-nav {
        text-align: center;
        border-bottom: none;
        margin-top: 0.5rem;
    }
}


/* ================
      HOMEPAGE
 ================= */

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.hero::before {
    background-image: url("../images/pauzcrayons-color2-e434611c927e110fa10d378f5376da3d.png");
    /* le masque fait le vrai fondu d'opacité */
    /*-webkit-mask-image: linear-gradient(to bottom, black 95%, rgba(0,0,0,0.8) 96.5%, rgba(0,0,0,0.6) 98%, rgba(0,0,0,0.4) 99.5%, rgba(0,0,0,0.35) 100%);
    mask-image: linear-gradient(to bottom, black 95%, rgba(0,0,0,0.8) 96.5%, rgba(0,0,0,0.6) 98%, rgba(0,0,0,0.4) 99.5%, rgba(0,0,0,0.35) 100%);*/
    width: 100vw;
    height: 100vh;
    position: absolute;
    content: " ";
    display: block;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0.9;
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: cover;
    background-attachment: scroll;
}

.hero-content {
    position: relative;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;

    background: var(--color-white);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 34px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 16px;
    margin-bottom: 25px;
    margin-left: 2rem;
}

.hero p .icon {
    transform: rotate(125deg);
    opacity: 0.8;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.7));
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* GALLERY */
.gallery-section {
    position: relative;
    padding-top: 2rem;
}

.gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* à ajuster selon le goût */
    /*background: linear-gradient(to bottom, #F4F1EA, transparent);*/
    z-index: 1;
    pointer-events: none; /* pour ne pas bloquer les clics sur le contenu */
}

.gallery {
   /* display: grid;
   !* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));*!
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;*/
    columns: 4;
    column-gap: 1rem;
    max-width: 90vw;
    margin: auto;
}

.gallery-item {
    max-height: 500px; /*!* hauteur fixe uniforme *!*/
    overflow: hidden;
    border-radius: 12px;
    break-inside: avoid;
    margin-bottom: 1rem;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    /*object-fit: cover; !*!* remplit le conteneur sans déformer *!*!*/
    object-position: center top; /*!* privilégie le haut — utile pour les têtes d'animaux ! *!*/
    transition: 0.4s;
}

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

/* ABOUT */

.autumn-leaves-separator {
    height: 8rem;
    display: block;
    margin: auto;
}

.autumn-leaves-separator--first {
    position: relative;
    display: block;
    top: 2rem;
}

.about {
    max-width: 600px;
    position: relative;
}

.about-socials {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    font-size: 25px;
    margin-top: 2rem;
}

.facebook {
    color: #126AFF;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,0.5));
}

.about p {
    margin-bottom: 20px;
}

.about-section {
    margin: 0 auto;
    padding: 80px 40px;
    display: flex;
    justify-content: center;
    gap: 5rem;
}

/* Photo */
.about-section-image {
    position: relative;
}

.about-section-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: sepia(15%);
    border-radius: 12px;
    opacity: 0.9;
}

/* Petit encadré décoratif en coin */
.about-section-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 60px;
    height: 60px;
    border-top: 4px solid #b5956a;
    border-left: 4px solid #b5956a;
    border-radius: 4px;
    z-index: 1;
}

.about-section-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-bottom: 4px solid #b5956a;
    border-right: 4px solid #b5956a;
    border-radius: 4px;
}

.about-section-content {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.about-section-content .section-title {
    margin-bottom: 0;
    position: relative;
    margin-left: 2rem;
}

.about-section-content .section-title img {
    position: absolute;
    left: -3rem;
    width: 8%;
    opacity: 0.9;
    transform: rotate(-20deg);
    z-index: -1;
}

.about-bulletpoint {
    margin-left: 2rem;
}

.about-section-button {
    background-color: var(--color-white);
}

/* PROCESS */

.process-section {
    padding: 3rem 0;
}

.process-section .section-title{
    text-align: center;
    position: relative;
    top: -1rem;
}

.steps {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.step-arrow {
    flex: 0 0 auto;
    width: 72px;
    height: 36px;
}

.step {
    flex: 0 1 315px;
    min-width: 190px;
    box-shadow: 2.5px 2.5px 3px var(--color-primary);
    border-radius: 12px;
    padding: 0.875rem;
    background-color: var(--color-white);
    text-align: center;
}

.step * {
    position: relative;
    top: -1.25rem;
}

.step h3 {
    margin-bottom: 9px;
    font-size: 16.5px;
    font-weight: bold;
}

.step p {
    font-size: 14.5px;
}

.step img {
    transform: scale(0.7);
}

@media (max-width: 768px) {
    .step-arrow {
        transform: rotate(90deg);
        width: 34px;
        height: 34px;
    }
}

.process-cta {
    text-align: center;
    margin-top: 2rem;
}

footer {
    padding: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 30px;
    }

    section {
        padding: 60px 20px;
    }
}

/* ================
       SHOP
 ================= */

.shop-page::before,
.news-container::before {
    background-color: var(--page-bg-color, var(--color-bg));
    background-image: var(--page-bg-image, none);
    width: 100vw;
    height: 100vh;
    position: fixed;
    content: " ";
    display: block;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0.3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
}

.shop-page {
    max-width: 1200px;
    margin: 5rem auto 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}

.shop-page,
.pricing-page {
    --space-sm: 1.5rem;
    --space-md: 2.5rem;
    --space-lg: 3.5rem;
}

.shop-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-lg) auto;
}

.shop-header h1 {
    font-family: var(--font-title);
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.shop-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.shop-empty {
    text-align: center;
    font-style: italic;
    margin-top: 4rem;
}

/* ── Grid ── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card ── */
.drawing-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}

.drawing-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

/* ── Image ── */
.card-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    cursor: zoom-in;
}

/* Wraps each news card so the pin badge (a sibling of .drawing-card) can overflow
   past the card's clipped edges — .drawing-card/.card-image use overflow: hidden
   for rounded corners and the hover zoom, which would otherwise clip the badge. */
.news-card-wrapper {
    position: relative;
}

.news-pin-badge {
    position: absolute;
    top: -0.75rem;
    left: -0.75rem;
    z-index: 2;
    font-size: 2.25rem;
    line-height: 1;
    display: inline-block;
    transform: rotateY(180deg);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.drawing-card:hover .card-image img {
    transform: scale(1.025);
}

/* ── Body ── */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-style: italic;
}

.drawing-card-description {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ── Bloc Original (mis en avant) ── */
.original-block {
    background: #faf8f3;
    border: 1px solid #ece6d8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.original-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.original-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #8a7d5f;
}

.original-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2a2a2a;
    line-height: 1.2;
}

.original-dimension {
    font-size: 0.83rem;
    color: #888;
}

/* ── Bloc Tirages (secondaire) ── */
.prints-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.prints-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #555;
}

.prints-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.print-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.825rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.print-item:last-child {
    border-bottom: none;
}

.print-details {
    color: #444;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge--sold {
    background: #fee2e2;
    color: #b91c1c;
}

.badge--stock {
    background: #dcfce7;
    color: #15803d;
}

.badge--low-stock {
    background: #fef3c7;
    color: #92400e;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(146, 64, 14, 0.25);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(146, 64, 14, 0);
    }
}

.badge--unavailable {
    background: #f3f4f6;
    color: #6b7280;
}

/* ── Visionneuse plein écran ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(20, 18, 15, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

body.lightbox-open {
    overflow: hidden;
}

.lightbox-content {
    position: relative;
    max-width: 60vw;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
    margin-top: 0.85rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.lightbox-caption span {
    display: block;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-style: italic;
}

.lightbox-counter {
    margin-top: 0.2rem;
    font-family: var(--font-body) !important;
    font-size: 0.8rem !important;
    font-style: normal !important;
    opacity: 0.8;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2rem;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

@media (max-width: 700px) {
    .lightbox-content {
        max-width: 90vw;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}

/* ================
     PORTFOLIO (public)
 ================= */

.portfolio-section {
    /* Overrides the generic `section { padding: 80px 60px }` rule above —
       this is a plain content block, not a landing-page section. */
    padding: 0;
    margin-bottom: 3rem;
}

.portfolio-section:last-child {
    margin-bottom: 0;
}

.portfolio-section-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(140, 123, 106, 0.25);
}

.portfolio-page .card-body {
    padding: 1rem 1.25rem;
}

.portfolio-page .card-title {
    font-weight: 400;
}

.shop-intro a,
.info-card-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(140, 123, 106, 0.4);
    text-underline-offset: 2px;
}

.shop-intro a:hover,
.info-card-content a:hover {
    text-decoration-color: var(--color-primary);
}

/* ================
     NEWS (public)
 ================= */

.news-detail-page {
    max-width: 800px;
}

.news-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-accent);
}

.news-back-link:hover {
    text-decoration: underline;
}

.news-link {
    align-self: flex-start;
    margin-top: auto;
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid var(--color-primary);
    font-size: 0.8rem;
    transition: 0.3s;
}

.news-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.news-detail-image {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    background: #fff;
}

.news-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.news-content p,
.news-content div {
    margin-bottom: 1rem;
}

.news-content h1,
.news-content h2,
.news-content h3 {
    font-family: var(--font-title);
    margin: 1.5rem 0 0.75rem;
}

.news-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(140, 123, 106, 0.4);
}

.news-content a:hover {
    text-decoration-color: var(--color-primary);
}

.news-content ul,
.news-content ol {
    margin: 0 0 1rem 1.25rem;
}

.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.news-gallery-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #fff;
}

/* ================
     PRICING (public)
 ================= */

.pricing-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 700px;
    margin: 0 auto var(--space-lg) auto;
    padding: 1rem 1.25rem;
    background: #fdf6e8;
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-left: 4px solid #b8860b;
    border-radius: 8px;
}

.pricing-notice-icon {
    font-size: 1.1rem;
    color: #b8860b;
    line-height: 1.5;
}

.pricing-notice p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-primary);
}

/* --- Grille de tarifs --- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 0.75rem;
}

.pricing-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.pricing-card-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(140, 123, 106, 0.2);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.pricing-table th {
    text-align: left;
    padding: 0.4rem 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-accent);
    border-bottom: 1px solid rgba(140, 123, 106, 0.2);
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
    text-align: right;
}

.pricing-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(140, 123, 106, 0.1);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-dimension {
    color: var(--color-primary);
}

.pricing-value {
    font-weight: 600;
    color: var(--color-primary);
}

.pricing-na {
    color: var(--color-accent);
    font-weight: 400;
}

/* --- footnote --- */

.pricing-footnote {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-primary);
    margin: 0 0 var(--space-lg);
    opacity: 0.75;
    padding-top: 0.75rem;
}

/* --- Sections secondaires --- */

.pricing-extra {
    margin-bottom: var(--space-md);
    padding: 20px 15px;
}

.pricing-extra:last-of-type {
    margin-bottom: 0;
}

.portfolio-section-title {
    margin-bottom: 1.25rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    background: #faf8f3;
    border: 1px solid #ece6d8;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.info-card-icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(184, 134, 11, 0.12);
    color: #b8860b;
    font-size: 1rem;
}

.info-card-content {
    flex: 1;
    min-width: 0;
}

.info-card-content p {
    margin: 0 0 0.85rem;
    line-height: 1.6;
    color: var(--color-primary);
}

.info-card-content p:last-child {
    margin-bottom: 0;
}

.delivery-advice-video-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.delivery-advice-video {
    max-width: 100%;
    border-radius: 8px;
}

/* ============================
            LOGIN
 ============================= */

.login-section::before,
.register-section::before {
    background-image: url("../images/carnet-f07bd8b56ce9dd2e3dc36d855a6e89b0.jpg");
    width: 100vw;
    height: 100vh;
    position: fixed;
    content: " ";
    display: block;
    left: 0;
    top: 0;
    z-index: -1;
    opacity: 0.5;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
}

.login-section,
.register-section {
    position: relative;
}

.login-container,
.register-container {
    margin: 20vh auto 3rem auto;
    padding: 2rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: var(--color-white);
    box-shadow: 2px 2px 2px var(--color-black);
    border-radius: 1rem;
    max-width: 25vw;
}

.login-title,
.register-title {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.login-container form,
.register-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.login-label {
    font-size: 0.9rem;
    color: var(--color-primary);
    white-space: nowrap;
}

.form-control {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(140, 123, 106, 0.4);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-primary);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(140, 123, 106, 0.15);
}

/* ============================================================
   ADMIN — Backoffice Pau'Z Crayons
   À importer dans app.css ou charger depuis base.html.twig
   ============================================================ */

/* -----------------------------------------------------------
   Layout général
   ----------------------------------------------------------- */

.admin-page {
    max-width: 1200px;
    margin: 6rem auto 3rem auto;
    padding: 2rem 2rem 3rem;
    font-family: var(--font-body);
    color: var(--color-primary);
    min-height: 100vh;
    background-color: var(--color-white);
}

/* -----------------------------------------------------------
   Header de page (titre + bouton d'action)
   ----------------------------------------------------------- */

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-accent);
}

.news-edit-header {
    /* Reserves room below the separator for the absolutely positioned
       quick-actions row, so it never overlaps the form underneath. */
    padding-bottom: 2.75rem;
}

.news-edit-header .admin-header {
    position: relative;
    /* The wrapper's padding-bottom reserves the spacing instead. */
    margin-bottom: 0;
}

.news-edit-quick-actions {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.admin-header h1 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

/* -----------------------------------------------------------
   Flash messages
   ----------------------------------------------------------- */

.flash {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.flash-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.flash-error {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.flash-warning {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffe082;
}

/* -----------------------------------------------------------
   Kaamelott toast
   ----------------------------------------------------------- */

.kaamelott-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 320px;
    padding: 0.85rem 1rem;
    background-color: var(--color-bg);
    border: 1px solid rgba(140, 123, 106, 0.35);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
}

.kaamelott-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.kaamelott-toast-icon {
    flex: 0 0 auto;
    font-size: 1.1rem;
    line-height: 1;
}

.kaamelott-toast p {
    margin: 0;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--color-primary);
    line-height: 1.5;
}

@media (max-width: 540px) {
    .kaamelott-toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* -----------------------------------------------------------
   État vide
   ----------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-accent);
    font-style: italic;
    font-size: 1rem;
}

/* -----------------------------------------------------------
   Tableau admin
   ----------------------------------------------------------- */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(58, 53, 47, 0.08);
}

.admin-table thead {
    background-color: var(--color-primary);
    color: #f4f1ea;
}

.admin-table thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid rgba(140, 123, 106, 0.15);
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background-color: rgba(140, 123, 106, 0.06);
}

.admin-table tbody tr.row-sold {
    opacity: 0.6;
}

.admin-table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: var(--color-primary);
}

/* Thumbnail dans le tableau */
.td-thumbnail {
    width: 70px;
}

.admin-thumbnail {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid rgba(140, 123, 106, 0.2);
}

.no-image {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* Colonne actions */
.td-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

/* -----------------------------------------------------------
   Boutons
   ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #f4f1ea;
}

.btn-primary:hover {
    background-color: #2a2520;
    color: #f4f1ea;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: rgba(140, 123, 106, 0.1);
}

.btn-danger {
    background-color: #c62828;
    color: #fff;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
}

/* Boutons toggle (visibilité, vendu) */
.btn-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    line-height: 1;
}

.btn-toggle:hover {
    background-color: rgba(140, 123, 106, 0.15);
}

.btn-toggle.sold {
    color: #c62828;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 0.3rem 0.6rem;
    background-color: rgba(198, 40, 40, 0.08);
    border-radius: 20px;
}

.btn-toggle.available {
    color: #2e7d32;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 0.3rem 0.6rem;
    background-color: rgba(46, 125, 50, 0.08);
    border-radius: 20px;
}

.btn-pin-toggle.inactive {
    opacity: 0.3;
    filter: grayscale(1);
}

/* -----------------------------------------------------------
   Formulaires admin
   ----------------------------------------------------------- */

.admin-form {
    margin-top: 1.5rem;
}

.pricing-filters-toggle {
    margin-top: 1.5rem;
}

.pricing-filters-toggle summary {
    width: fit-content;
    list-style: none;
}

.pricing-filters-toggle summary::-webkit-details-marker {
    display: none;
}

.pricing-filters-toggle[open] summary {
    margin-bottom: 0.5rem;
}

.pricing-filters-separator {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid rgba(140, 123, 106, 0.3);
}

.pricing-filters-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.pricing-filters-actions .btn {
    width: auto;
}

.pricing-groups {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.pricing-group-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.85rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group--full {
    grid-column: 1 / -1;
}

.form-group--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
}

.form-checkbox-row {
    display: flex;
    gap: 1rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(140, 123, 106, 0.4);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-primary);
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(140, 123, 106, 0.15);
}

.form-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--color-accent);
    font-style: italic;
    margin-top: 0.2rem;
}

/* Erreurs de validation (Symfony's default form theme renders a plain <ul> with no class) */
.form-group ul.form-errors,
.form-group .form-error,
.form-group > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #c62828;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Actions du formulaire */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(140, 123, 106, 0.2);
}

/* -----------------------------------------------------------
   Page edit — layout avec preview image
   ----------------------------------------------------------- */

.edit-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.edit-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: 6rem;
}

.preview-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin: 0;
}

.focal-point-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(140, 123, 106, 0.2);
    box-shadow: 0 4px 16px rgba(58, 53, 47, 0.1);
    cursor: crosshair;
}

.edit-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.focal-point-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted, #8c7b6a);
    margin: 0;
}

.focal-point-marker {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(198, 40, 40, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Aperçu image — pages sans point focal (ex. News) */
.news-edit-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.news-edit-preview-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(140, 123, 106, 0.2);
    box-shadow: 0 4px 16px rgba(58, 53, 47, 0.1);
    display: block;
}

/* Badges sur l'aperçu */
.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.badge-sold {
    background-color: rgba(198, 40, 40, 0.1);
    color: #c62828;
}

.badge-hidden {
    background-color: rgba(140, 123, 106, 0.15);
    color: var(--color-accent);
}

/* -----------------------------------------------------------
   Section admin (ex: tirages d'art d'un dessin)
   ----------------------------------------------------------- */

.admin-section {
    margin-top: 3rem;
}

.admin-section h2 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin: 0;
}

/* -----------------------------------------------------------
   Portfolio admin (organisation + sections réordonnables)
   ----------------------------------------------------------- */

.organize-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.organize-toggle-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--color-accent);
}

.organize-toggle-btn {
    background: var(--color-white);
    border: 1px solid rgba(140, 123, 106, 0.3);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--color-primary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.organize-toggle-btn.active {
    background: var(--color-primary);
    color: #f4f1ea;
    border-color: var(--color-primary);
}

.portfolio-admin-section {
    margin-bottom: 2.5rem;
}

.portfolio-admin-section-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.portfolio-admin-count {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-accent);
}

.portfolio-sortable-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--color-white);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 12px rgba(58, 53, 47, 0.08);
}

.portfolio-admin-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #fff;
    transition: background-color 0.15s ease;
}

.portfolio-admin-row:hover {
    background-color: rgba(140, 123, 106, 0.06);
}

.portfolio-admin-row.sortable-ghost {
    opacity: 0.4;
}

.portfolio-admin-row.sortable-chosen {
    box-shadow: 0 4px 16px rgba(58, 53, 47, 0.18);
}

.drag-handle {
    cursor: grab;
    color: var(--color-accent);
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.25rem;
}

.drag-handle:active {
    cursor: grabbing;
}

.portfolio-admin-row-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.portfolio-sortable-list.sortable-error::after {
    content: "L'ordre n'a pas pu être enregistré, réessaie.";
    display: block;
    font-size: 0.8rem;
    color: #c62828;
    padding: 0.4rem 0.75rem;
}

/* -----------------------------------------------------------
   Paramétrage (onglets)
   ----------------------------------------------------------- */

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(140, 123, 106, 0.25);
    padding-bottom: 1rem;
}

.settings-tab {
    background: var(--color-white);
    border: 1px solid rgba(140, 123, 106, 0.3);
    border-radius: 20px;
    padding: 0.45rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-primary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.settings-tab.active {
    background: var(--color-primary);
    color: #f4f1ea;
    border-color: var(--color-primary);
}

.settings-panel {
    margin-bottom: 1rem;
}

.settings-panel-intro {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* -----------------------------------------------------------
   Arrière-plans de page
   ----------------------------------------------------------- */

.bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.bg-card {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(58, 53, 47, 0.08);
    padding: 1.25rem;
}

.bg-card-title {
    font-family: var(--font-title);
    font-size: 1rem;
    margin: 0 0 0.85rem;
}

.bg-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.bg-preview-swatch {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    border: 1px solid rgba(140, 123, 106, 0.2);
    background-color: var(--page-bg-color, var(--color-bg));
    background-image: var(--page-bg-image, none);
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.bg-upload-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bg-upload-form input[type="file"] {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
}

.bg-remove-form {
    margin: 0;
}

.bg-color-section {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(58, 53, 47, 0.08);
    padding: 1.25rem;
    max-width: 420px;
}

.bg-color-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bg-color-form input[type="color"] {
    width: 48px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(140, 123, 106, 0.3);
    border-radius: 6px;
    cursor: pointer;
}

/* -----------------------------------------------------------
   Zone dangereuse
   ----------------------------------------------------------- */

.danger-zone {
    margin-top: 3rem;
    padding: 1.5rem;
    border: 1px solid rgba(198, 40, 40, 0.25);
    border-radius: 10px;
    background-color: rgba(198, 40, 40, 0.03);
}

.danger-zone h2 {
    font-family: var(--font-title);
    font-size: 1rem;
    color: #c62828;
    margin: 0 0 1rem;
}

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */

@media (max-width: 900px) {
    .edit-layout {
        grid-template-columns: 1fr;
    }

    .edit-preview {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .focal-point-wrapper {
        width: 100px;
        aspect-ratio: 1;
    }
}

@media (max-width: 640px) {
    .admin-page {
        padding: 5rem 1rem 2rem;
    }

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

    .form-group--full {
        grid-column: 1;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 0.6rem 0.6rem;
    }

    .td-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
}