* {
    box-sizing: border-box;
}

:root {
    --clr-ink: #1f262d;
    --clr-paper: #fffdfa;
    --clr-sand: #f6efe5;
    --clr-copper: #b96f3f;
    --clr-copper-dark: #8f4e2a;
    --clr-gold: #ddb67b;
    --clr-petrol: #274a54;
    --clr-petrol-soft: #3f6c76;
    --clr-olive: #7a8b67;
    --line-soft: #e8d9c6;
    --shadow-soft: 0 16px 34px rgba(29, 33, 38, 0.12);
}

body {
    margin: 0;
    font-family: "Manrope", "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--clr-ink);
    background: var(--clr-sand);
}

h1,
h2,
h3,
.eyebrow {
    font-family: "Cormorant Garamond", "Georgia", serif;
}

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

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.public-theme {
    background:
        radial-gradient(circle at 12% 8%, rgba(185, 111, 63, 0.16), transparent 36%),
        radial-gradient(circle at 88% 16%, rgba(63, 108, 118, 0.15), transparent 34%),
        linear-gradient(180deg, #f9f5ef 0%, #f2ebe2 100%);
}

.public-theme .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: linear-gradient(120deg, rgba(24, 31, 37, 0.92), rgba(33, 52, 57, 0.9));
    border-bottom: 1px solid rgba(221, 182, 123, 0.34);
    color: #f6f1e8;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo-image {
    display: block;
    width: auto;
    height: 36px;
    max-width: 100%;
    filter: brightness(0) invert(1) contrast(1.05);
}

.nav {
    display: flex;
    gap: 1.1rem;
    align-items: center;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-toggle-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle-label span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f5f1eb;
    border-radius: 2px;
}

.public-theme .nav a {
    color: #f5f1eb;
    font-weight: 500;
    letter-spacing: 0.02rem;
    transition: color 0.2s ease;
}

.public-theme .nav a:hover {
    color: #f3d3a7;
}

.admin-header .nav {
    font-size: 0.92rem;
}

.admin-header .nav-dropdown {
    position: relative;
}

.admin-header .nav-dropdown summary {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    color: inherit;
    font: inherit;
    list-style: none;
}

.admin-header .nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.admin-header .nav-dropdown summary::after {
    content: "▾";
    font-size: 0.7em;
}

.admin-header .nav-dropdown[open] summary::after {
    content: "▴";
}

.admin-header .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 10px;
    padding: 0.4rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

.admin-header .nav-dropdown-menu a,
.admin-header .nav-dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    text-align: left;
    white-space: nowrap;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.admin-header .nav-dropdown-menu a:hover,
.admin-header .nav-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-header .nav-dropdown-menu form {
    margin: 0;
}

.main-content {
    padding: 2rem 0 3rem;
}

.main-content section + section {
    margin-top: 1.8rem;
}

.eyebrow {
    margin: 0 0 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.18rem;
    font-size: 0.74rem;
    color: var(--clr-copper-dark);
    font-weight: 700;
}

.home-hero,
.page-hero {
    background: linear-gradient(138deg, #1a2a31 0%, #2a4a53 42%, #6f4332 100%);
    color: #f7f1e8;
    border-radius: 18px;
    border: 1px solid rgba(221, 182, 123, 0.36);
    padding: clamp(1.5rem, 2.6vw, 2.7rem);
    box-shadow: 0 22px 38px rgba(28, 21, 15, 0.26);
}

.home-hero .eyebrow,
.page-hero .eyebrow {
    color: #f4d3aa;
}

.home-hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.7rem);
    line-height: 1.2;
}

.home-hero p,
.page-hero p {
    max-width: 820px;
    color: rgba(247, 241, 232, 0.9);
}

.hero-stats {
    margin: 1.3rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.hero-stat {
    padding: 0.7rem 0.6rem;
    border-radius: 12px;
    background: rgba(247, 241, 232, 0.08);
    border: 1px solid rgba(221, 182, 123, 0.28);
}

.hero-stat dt {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f4d3aa;
}

.hero-stat dd {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    line-height: 1.3;
    color: rgba(247, 241, 232, 0.88);
}

.hero-actions {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.hero-trust {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(247, 241, 232, 0.9);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.hero-rating:hover {
    color: #f4d3aa;
}

.hero-rating-icon {
    width: 16px;
    height: 16px;
}

.home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 1rem;
    align-items: stretch;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-hero-copy p {
    margin-bottom: 0;
}

.home-hero-media {
    display: grid;
    gap: 0.65rem;
}

.home-hero-media figure {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(221, 182, 123, 0.38);
    box-shadow: 0 14px 30px rgba(18, 23, 27, 0.25);
}

.hero-media-main {
    min-height: 262px;
}

.hero-media-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.hero-media-stack figure {
    min-height: 142px;
}

.home-hero-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.03);
}

.gallery-count {
    color: rgba(247, 241, 232, 0.94);
    font-weight: 600;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.home-services-showcase {
    padding: 1.15rem;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.82rem;
}

.home-service-card {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdfa 0%, #f8f1e8 100%);
    box-shadow: var(--shadow-soft);
}

.home-service-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.home-service-content {
    padding: 0.82rem;
}

.home-service-icon {
    width: 42px;
    height: 42px;
    display: block;
    margin-bottom: 0.46rem;
}

.home-service-content h3 {
    margin: 0 0 0.35rem;
    color: var(--clr-petrol);
    font-size: 1.08rem;
}

.home-service-content p {
    margin: 0;
    color: #554b40;
    line-height: 1.45;
    font-size: 0.92rem;
}

.stat-box {
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #fffdf9 0%, #f9f1e8 100%);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-box:nth-child(1) {
    border-top: 3px solid var(--clr-copper);
}

.stat-box:nth-child(2) {
    border-top: 3px solid var(--clr-petrol-soft);
}

.stat-box:nth-child(3) {
    border-top: 3px solid var(--clr-olive);
}

.stat-box:nth-child(4) {
    border-top: 3px solid var(--clr-gold);
}

.stat-box strong {
    display: block;
    font-size: 1.8rem;
    color: var(--clr-petrol);
}

.stat-box span {
    color: #5d554b;
    font-size: 0.9rem;
}

.value-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    text-align: left;
}

.value-illustration {
    width: 62px;
    height: 62px;
    display: block;
}

.value-box strong {
    font-size: 1.12rem;
    color: var(--clr-petrol);
}

.value-box span {
    font-size: 0.93rem;
    line-height: 1.45;
    color: #51483e;
}

.about-section,
.content-card,
.form-section,
.info-card,
.empty-state {
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 242, 233, 0.96));
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.9fr);
    gap: 1rem;
    align-items: center;
}

.about-copy h2 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    color: var(--clr-petrol);
}

.about-copy p {
    margin: 0 0 0.75rem;
    color: #4f463c;
    line-height: 1.6;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-photo {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
}

.about-photo img {
    width: 100%;
    display: block;
    max-height: 360px;
    object-fit: cover;
}

.legal-content h2 {
    margin: 1.2rem 0 0.55rem;
    color: var(--clr-petrol);
    font-size: 1.2rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin: 0 0 0.72rem;
    line-height: 1.58;
}

.legal-content ul {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
}

.legal-content li {
    margin-bottom: 0.35rem;
}

.info-card {
    background: linear-gradient(170deg, rgba(39, 74, 84, 0.97), rgba(47, 68, 73, 0.96));
    border-color: rgba(221, 182, 123, 0.38);
    color: #f6efe5;
}

.info-card a {
    color: #f3d3a7;
    text-decoration: underline;
}

.icon-list {
    list-style: none;
    margin: 0.2rem 0 0.92rem;
    padding: 0;
    display: grid;
    gap: 0.58rem;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.56rem;
}

.icon-list img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    margin-top: 0.08rem;
}

.icon-list span {
    line-height: 1.42;
}

.icon-list-light li {
    color: rgba(246, 239, 229, 0.95);
}

.info-card-photo {
    margin: 0.8rem 0 0;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid rgba(221, 182, 123, 0.42);
}

.info-card-photo img {
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.info-card-photo img.info-card-photo-map {
    /* Carte schématique : jamais recadrée (contrairement aux photos), pour
       ne pas couper les libellés de département quel que soit le ratio
       largeur/hauteur réel de la colonne (variable selon le point de rupture).
       Ratio propre en 4:3 (au lieu du 5:3 des photos) pour coller au
       canevas natif du SVG (640x480) et éviter un letterboxing inutile. */
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    background: #fffdf9;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 0.5rem;
}

.section-head h2 {
    margin: 0;
    color: var(--clr-petrol);
}

.highlight-section {
    padding: 0.3rem 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.9rem;
}

.photo-grid a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(34, 39, 45, 0.16);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    filter: saturate(0.95) contrast(1.02);
    transition: filter 0.2s ease;
}

.photo-grid a:hover img {
    filter: saturate(1.08) contrast(1.05);
}

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

.card {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdfa 0%, #f8f1e8 100%);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-soft);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(31, 35, 41, 0.16);
}

.card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 22%;
}

.card-body {
    padding: 1rem;
}

.card-body h2 {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
    color: var(--clr-petrol);
}

.card-meta {
    margin: 0.3rem 0 0.8rem;
    color: #6f5f4f;
    font-weight: 600;
    font-size: 0.86rem;
}

.testimonials-section {
    margin-top: 0.3rem;
}

.testimonials-section h2 {
    margin-top: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.8rem;
}

.testimonials-grid blockquote {
    margin: 0;
    border: 1px solid var(--line-soft);
    border-left: 4px solid var(--clr-gold);
    background: linear-gradient(180deg, #fffdf9 0%, #f7efe5 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.testimonials-grid p {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.testimonials-grid cite {
    font-style: normal;
    color: var(--clr-petrol-soft);
    font-size: 0.88rem;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-top: 0.95rem;
}

.engagement-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #fffdf9 0%, #f7efe5 100%);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.engagement-card:nth-child(1) {
    border-top: 3px solid var(--clr-copper);
}

.engagement-card:nth-child(2) {
    border-top: 3px solid var(--clr-petrol-soft);
}

.engagement-card:nth-child(3) {
    border-top: 3px solid var(--clr-olive);
}

.engagement-card:nth-child(4) {
    border-top: 3px solid var(--clr-gold);
}

.engagement-icon {
    width: 46px;
    height: 46px;
    display: block;
}

.engagement-card strong {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--clr-petrol);
    font-size: 1.05rem;
}

.engagement-card p {
    margin: 0;
    color: #51483e;
    font-size: 0.93rem;
    line-height: 1.45;
}

.social-cta {
    margin-top: 1.1rem;
    padding: 1.3rem 1.1rem;
    text-align: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--clr-petrol) 0%, var(--clr-petrol-soft) 100%);
    box-shadow: var(--shadow-soft);
}

.social-cta .social-cta-title {
    margin: 0 0 0.8rem;
    font-weight: 700;
    color: #f6f1e8;
    font-size: 1.05rem;
}

.social-cta-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-cta .btn-outline {
    color: #f4d3aa;
    border-color: rgba(244, 211, 170, 0.88);
}

.social-cta .btn-outline:hover {
    background: rgba(244, 211, 170, 0.15);
    color: #f7efe2;
    border-color: #f4d3aa;
}

.social-icon {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.about-copy .about-experience-badge {
    display: inline-block;
    margin: 0.2rem 0 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--clr-petrol);
    color: #f6f1e8;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02rem;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
    gap: 1rem;
}

.form-section h2,
.info-card h2 {
    margin-top: 0;
}

.form-section.narrow {
    max-width: 460px;
}

.form-legal-note {
    margin: 0.15rem 0 0.95rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #5f554a;
}

.form-legal-note a {
    color: var(--clr-petrol);
    text-decoration: underline;
}

.obf-contact-link {
    text-decoration: underline;
}

.photobooth-hero p {
    max-width: 760px;
}

.photobooth-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.photobooth-visuals-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 0.75rem;
}

.photobooth-visuals-grid figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
    background: #ffffff;
}

.visual-main {
    grid-row: 1 / span 2;
    min-height: 320px;
}

.photobooth-visuals-thumbs {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.visual-side {
    min-height: 154px;
}

.photobooth-visuals-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photobooth-visual-caption {
    margin-bottom: 0;
    margin-top: 0.68rem;
    font-size: 0.84rem;
    color: #6b6054;
}

.photobooth-card h2 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    color: var(--clr-petrol);
}

.photobooth-card p {
    margin: 0 0 0.72rem;
    line-height: 1.58;
    color: #4f463c;
}

.photobooth-list {
    margin: 0 0 0.9rem 1.05rem;
    padding: 0;
}

.photobooth-list li {
    margin-bottom: 0.4rem;
    line-height: 1.45;
}

.photobooth-list.compact {
    margin-top: 0.7rem;
}

.photobooth-note {
    margin-bottom: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(39, 74, 84, 0.08);
    font-size: 0.9rem;
}

.photobooth-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.package-card {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf9 0%, #f7efe5 100%);
    padding: 0.9rem;
}

.package-card h3 {
    margin: 0;
    color: var(--clr-petrol);
}

.package-price {
    margin: 0.32rem 0 0.55rem;
    font-weight: 700;
    color: var(--clr-copper-dark);
}

.photobooth-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.7rem;
}

.step-card {
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    padding: 0.85rem;
    background: linear-gradient(180deg, #fffefb 0%, #f8f0e6 100%);
    box-shadow: var(--shadow-soft);
}

.step-card h3 {
    margin: 0 0 0.35rem;
    color: var(--clr-petrol);
}

.step-card p {
    margin: 0;
    color: #564c41;
    line-height: 1.45;
    font-size: 0.92rem;
}

.photobooth-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.8rem;
    margin-top: 0.75rem;
}

.proof-card {
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    padding: 0.85rem;
    background: linear-gradient(180deg, #fffefb 0%, #f8f0e6 100%);
}

.proof-card h3 {
    margin: 0 0 0.4rem;
    color: var(--clr-petrol);
    font-size: 1.02rem;
}

.proof-card p {
    margin: 0;
    color: #554b40;
    line-height: 1.48;
}

.proof-kicker {
    margin-bottom: 0.38rem;
    font-size: 0.78rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    color: var(--clr-copper-dark);
    font-weight: 700;
}

.faq-grid {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.faq-item {
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: linear-gradient(180deg, #fffefb 0%, #f8f0e6 100%);
    padding: 0.68rem 0.78rem;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: var(--clr-petrol);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1rem;
    color: var(--clr-copper-dark);
    flex: 0 0 auto;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin: 0.58rem 0 0;
    color: #564c41;
    line-height: 1.5;
}

.photobooth-sticky-spacer {
    height: 0;
}

.photobooth-sticky-cta {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(221, 182, 123, 0.55);
    border-radius: 12px;
    padding: 0.58rem;
    background: linear-gradient(140deg, rgba(26, 42, 49, 0.97) 0%, rgba(39, 74, 84, 0.95) 65%, rgba(96, 56, 38, 0.95) 100%);
    box-shadow: 0 14px 30px rgba(25, 31, 36, 0.28);
    animation: stickyCtaIn 0.35s ease-out;
}

.photobooth-sticky-cta p {
    margin: 0;
    color: #f6ede2;
    font-size: 0.84rem;
    line-height: 1.35;
    max-width: 220px;
}

.photobooth-sticky-cta .btn {
    padding: 0.52rem 0.82rem;
    font-size: 0.84rem;
    white-space: nowrap;
}

.photobooth-sticky-cta .btn-outline {
    color: #f7efe4;
    border-color: rgba(246, 219, 185, 0.9);
}

.photobooth-sticky-cta .btn-outline:hover {
    background: rgba(247, 236, 219, 0.15);
    color: #fff8ef;
    border-color: rgba(246, 219, 185, 0.95);
}

@keyframes stickyCtaIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.info-list {
    margin: 0.5rem 0 0.7rem 1rem;
    padding: 0;
}

.info-list li {
    margin-bottom: 0.38rem;
}

.photobooth-note-dark {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(246, 239, 229, 0.9);
}

.ack-row {
    display: flex;
    flex-direction: row;
    gap: 0.55rem;
    align-items: flex-start;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.ack-row input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.ack-row span {
    font-weight: 500;
    line-height: 1.45;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.quote-conditional {
    margin: 0.9rem 0;
    padding: 0.9rem;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: linear-gradient(180deg, #fffdf9 0%, #f8efe3 100%);
}

.quote-conditional h3 {
    margin: 0 0 0.65rem;
    color: var(--clr-petrol);
    font-size: 1.05rem;
}

.checkbox-group {
    margin: 0 0 0.8rem;
    border: 0;
    padding: 0;
}

.checkbox-group legend {
    padding: 0;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: #4d453c;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.42rem;
    font-weight: 500;
}

.check-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #cdbba5;
    border-radius: 9px;
    padding: 0.6rem 0.72rem;
    font-size: 0.95rem;
    background: #fffefb;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(185, 111, 63, 0.28);
    border-color: var(--clr-copper);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid var(--clr-copper-dark);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--clr-copper) 0%, #ca7d49 100%);
    color: #ffffff;
    padding: 0.62rem 1rem;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(116, 67, 35, 0.24);
}

.btn-outline {
    background: transparent;
    color: var(--clr-petrol);
    border-color: var(--clr-petrol-soft);
}

.btn-outline:hover {
    background: var(--clr-petrol);
    border-color: var(--clr-petrol);
    color: #ffffff;
}

.home-hero .btn-outline,
.page-hero .btn-outline {
    color: #f4d3aa;
    border-color: rgba(244, 211, 170, 0.88);
}

.home-hero .btn-outline:hover,
.page-hero .btn-outline:hover {
    background: rgba(244, 211, 170, 0.15);
    color: #f7efe2;
    border-color: #f4d3aa;
}

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

.btn-small {
    padding: 0.42rem 0.72rem;
    font-size: 0.84rem;
}

.site-header .header-quote-btn {
    border-color: rgba(248, 213, 166, 0.95);
    background: linear-gradient(135deg, #f1c88f 0%, #dfae6f 100%);
    color: #1a2228;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(10, 13, 15, 0.28);
}

.site-header .header-quote-btn:hover {
    background: linear-gradient(135deg, #f5d6ac 0%, #e9be84 100%);
    border-color: #f6ddb9;
    color: #11161a;
    box-shadow: 0 14px 28px rgba(10, 13, 15, 0.34);
}

.site-header .header-quote-btn:focus-visible {
    outline: 2px solid #f6ddb9;
    outline-offset: 2px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.error {
    color: #b91c1c;
    min-height: 0.9rem;
    font-weight: 400;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fbe4c8;
    border-color: var(--clr-gold);
    color: #8f4e2a;
}

.site-footer {
    margin-top: 2.2rem;
    background: linear-gradient(138deg, #1a1f24 0%, #233f48 56%, #4a3327 100%);
    color: #ece2d4;
    border-top: 1px solid rgba(221, 182, 123, 0.4);
    padding: 1.3rem 0 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-note {
    margin: 0.35rem 0 0;
    color: #d5c4ad;
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-copy {
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.7rem;
    color: #ccbaa1;
    font-size: 0.82rem;
}

.admin-header {
    background: #111827;
    color: #ffffff;
    border-bottom: 1px solid #1f2937;
}

.actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.7rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.thumb-admin {
    width: 96px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.focal-picker {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    cursor: crosshair;
    margin-bottom: 0.5rem;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.focal-picker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.focal-picker-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 1px rgba(31, 38, 45, 0.35);
    pointer-events: none;
}

.focal-picker-line-h {
    left: 0;
    width: 100%;
    height: 1px;
}

.focal-picker-line-v {
    top: 0;
    height: 100%;
    width: 1px;
}

.focal-picker-marker {
    position: absolute;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border-radius: 50%;
    background: #b96f3f;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(31, 38, 45, 0.45);
    pointer-events: none;
}

.focal-picker-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.focal-picker-coords {
    font-size: 0.8rem;
    color: #6b6054;
    white-space: nowrap;
}

.focal-picker-nudge {
    display: inline-grid;
    grid-template-columns: repeat(3, 38px);
    grid-template-rows: repeat(3, 38px);
    grid-template-areas:
        ".    up    ."
        "left center right"
        ".    down  .";
    gap: 3px;
}

.focal-nudge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.focal-picker-nudge .focal-picker-reset {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    font-size: 0.7rem;
}

.focal-picker-hint {
    font-size: 0.8rem;
    color: #6b6054;
    margin: 0.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-card strong {
    font-size: 1.5rem;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox-overlay.active {
    display: flex;
}

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

.lightbox-content img {
    max-width: 92vw;
    max-height: 84vh;
    border-radius: 8px;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 76px;
    }

    .logo-image {
        height: 32px;
    }

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

    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 420px;
        width: 100%;
        justify-self: center;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-media-main {
        min-height: 250px;
    }

    .photobooth-visuals-grid {
        grid-template-columns: 1fr 1fr;
    }

    .visual-main {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }

    .photobooth-visuals-thumbs {
        grid-column: 1 / -1;
        grid-row: auto;
        grid-template-columns: repeat(4, 1fr);
    }

    .visual-side {
        min-height: 170px;
    }

    .photobooth-sticky-spacer {
        display: none;
    }

    .photobooth-sticky-cta {
        position: static;
        right: auto;
        bottom: auto;
        width: 100%;
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        animation: none;
    }

    .photobooth-sticky-cta p {
        max-width: none;
        width: 100%;
        text-align: center;
    }

    .photobooth-sticky-cta .btn {
        flex: 1 1 220px;
    }
}

@media (max-width: 720px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .public-theme .site-header {
        position: static;
    }

    .header-inner {
        align-items: flex-start;
        padding: 0.7rem 0;
        flex-direction: column;
    }

    .header-brand {
        width: 100%;
        justify-content: space-between;
    }

    .nav-toggle-label {
        display: flex;
    }

    .nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.6rem;
        margin-top: 0.6rem;
    }

    .nav-toggle-checkbox:checked ~ .nav {
        display: flex;
    }

    .admin-header .nav-dropdown-menu {
        position: static;
        margin-top: 0.3rem;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.06);
    }

    .header-quote-btn {
        margin-top: 0.6rem;
        align-self: stretch;
        text-align: center;
    }

    .main-content {
        padding-top: 1.4rem;
    }

    .value-box {
        align-items: center;
        text-align: center;
    }

    .hero-media-stack {
        grid-template-columns: 1fr;
    }

    .hero-media-stack figure {
        min-height: 186px;
    }

    .photobooth-visuals-grid {
        grid-template-columns: 1fr;
    }

    .photobooth-visuals-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .visual-main,
    .visual-side {
        min-height: 220px;
    }

    .photobooth-sticky-cta {
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        gap: 0.5rem;
    }

    .photobooth-sticky-cta p {
        max-width: none;
        width: 100%;
        text-align: center;
    }

    .photobooth-sticky-cta .btn {
        flex: 1 1 100%;
    }
}

.form-hint {
    margin: 0.15rem 0 0.95rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #5f554a;
}

.inline-form {
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 242, 233, 0.96));
    padding: 1.2rem;
    box-shadow: var(--shadow-soft);
    margin: 0 0 1.5rem;
}

.dossier-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.dossier-stepper li {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: var(--clr-paper);
    color: var(--clr-ink);
    font-size: 0.86rem;
}

.dossier-stepper li.is-done {
    background: var(--clr-sand);
    border-color: var(--clr-gold);
    color: var(--clr-petrol);
}

.dossier-stepper li.is-current {
    background: var(--clr-copper);
    border-color: var(--clr-copper-dark);
    color: #fff;
    font-weight: 600;
}

.dossier-documents,
.dossier-timeline {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dossier-documents li,
.dossier-timeline li {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    background: var(--clr-paper);
}

.dossier-timeline li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    align-items: baseline;
}

.dossier-timeline-date {
    font-size: 0.78rem;
    color: #5f554a;
}

.dossier-timeline-author {
    font-weight: 600;
    color: var(--clr-petrol);
}

.dossier-timeline-content {
    flex-basis: 100%;
}

.dossier-document-meta {
    font-size: 0.78rem;
    color: #5f554a;
}

.payment-instructions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.payment-instructions-block {
    flex: 1 1 260px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    background: var(--clr-paper);
}

.payment-instructions-block h3 {
    margin-top: 0;
}

.payment-instructions-block dl {
    margin: 0 0 0.6rem;
}

.payment-instructions-block dt {
    font-weight: 600;
    color: var(--clr-petrol);
}

.payment-instructions-block dd {
    margin: 0 0 0.4rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.badge-warning {
    background: #fbe4c8;
    color: #8f4e2a;
    border: 1px solid var(--clr-gold);
}

.inline-form-compact {
    display: inline-block;
    margin-left: 0.4rem;
}

.badge-success {
    background: #d8ecd6;
    color: #2f6b3a;
    border: 1px solid #9ccaa0;
}

.badge-muted {
    background: #eceae6;
    color: #6b6258;
    border: 1px solid var(--line-soft);
}

.gen-doc-group {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.2rem;
    background: var(--clr-paper);
}

.gen-doc-group h3 {
    margin-top: 0;
}

.gen-doc-version {
    border-top: 1px solid var(--line-soft);
    padding-top: 0.8rem;
    margin-top: 0.8rem;
}

.gen-doc-version:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.gen-doc-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.5rem;
}

.dossier-documents li.is-superseded {
    opacity: 0.7;
}

.doc-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
}

.token-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.85rem;
    line-height: 1.7;
}

.document-editor-root {
    margin: 0.4rem 0 1rem;
    background: #fff;
}

.document-editor-root .ql-container {
    min-height: 320px;
    font-size: 1rem;
}

.doc-page-break {
    height: 0;
    border-top: 2px dashed var(--clr-gold);
    margin: 1.2rem 0;
    position: relative;
}

.doc-page-break::after {
    content: "Saut de page";
    position: absolute;
    top: -0.7rem;
    left: 1rem;
    background: #fffdf9;
    padding: 0 0.4rem;
    font-size: 0.72rem;
    color: #8f4e2a;
}

.asset-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    font-size: 0.9rem;
}

.asset-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.dbb-root {
    margin: 0.6rem 0 1.2rem;
}

.dbb-add-row {
    position: relative;
    margin-bottom: 1rem;
}

.dbb-add-row-menu {
    position: absolute;
    z-index: 5;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-soft);
    border-radius: 8px;
    overflow: hidden;
    min-width: 220px;
}

/* Le sélecteur de classe .dbb-add-row-menu ci-dessus a la même spécificité que la règle
   [hidden] de la feuille de style par défaut du navigateur, mais une feuille de style auteur
   l'emporte toujours sur l'agent utilisateur : sans cette règle explicite, l'attribut natif
   `hidden` posé par le JS n'aurait aucun effet et le menu resterait visible en permanence. */
.dbb-add-row-menu[hidden] {
    display: none;
}

.dbb-add-row-menu button {
    background: none;
    border: none;
    text-align: left;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.dbb-add-row-menu button:hover {
    background: var(--clr-sand);
}

.dbb-row {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    margin-bottom: 1.4rem;
    padding: 0.7rem;
    box-shadow: 0 1px 2px rgba(31, 38, 45, 0.04);
}

.dbb-row.dbb-drop-target {
    border-color: var(--clr-copper);
    background: var(--clr-sand);
}

.dbb-row-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.85rem;
    color: var(--clr-petrol);
}

.dbb-row-label {
    font-weight: 600;
    margin-right: auto;
}

.dbb-drag-handle {
    cursor: grab;
    user-select: none;
    font-weight: 600;
    color: var(--clr-petrol-soft);
}

.dbb-move-group {
    display: inline-flex;
    gap: 0.2rem;
}

.dbb-move-btn {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    color: var(--clr-petrol);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.25rem 0.45rem;
}

.dbb-move-btn:hover:not(:disabled) {
    background: var(--clr-sand);
    border-color: var(--clr-copper);
}

.dbb-move-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.dbb-remove-btn {
    background: none;
    border: none;
    color: var(--clr-copper-dark);
    cursor: pointer;
    font-size: 0.82rem;
}

.dbb-columns {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.dbb-col {
    min-width: 160px;
    border: 1px dashed var(--line-soft);
    border-radius: 8px;
    padding: 0.5rem;
    background: #fffdf9;
}

.dbb-col-body {
    min-height: 48px;
}

.dbb-col-body.dbb-drop-target {
    background: var(--clr-sand);
    outline: 2px dashed var(--clr-copper);
}

.dbb-col-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.dbb-element {
    border: 1px solid var(--line-soft);
    border-left: 3px solid var(--line-soft);
    border-radius: 6px;
    margin-bottom: 0.7rem;
    background: #fff;
}

.dbb-element-type-text { border-left-color: var(--clr-petrol-soft); }
.dbb-element-type-image { border-left-color: var(--clr-gold); }
.dbb-element-type-pdf { border-left-color: var(--clr-copper); }
.dbb-element-type-table { border-left-color: var(--clr-olive); }
.dbb-element-type-pagebreak { border-left-color: var(--clr-copper-dark); }

.dbb-element.dbb-drop-target {
    border-color: var(--clr-copper);
}

.dbb-element-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.5rem;
    background: var(--clr-sand);
    font-size: 0.78rem;
}

.dbb-type-badge {
    font-weight: 600;
    color: var(--clr-petrol);
    margin-right: auto;
}

.dbb-element-body {
    padding: 0.4rem 0.5rem;
}

.dbb-element-body .ql-container {
    min-height: 100px;
    font-size: 0.95rem;
}

.dbb-image-body img {
    max-width: 100%;
    max-height: 160px;
    display: block;
    margin-bottom: 0.4rem;
}

.dbb-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    margin-right: 0.8rem;
}

.dbb-inline-label input[type="number"] {
    width: 4.5rem;
}

.dbb-width-hint {
    margin: 0.2rem 0 0.4rem;
    font-size: 0.72rem;
    color: var(--clr-petrol-soft);
    font-style: italic;
}

.dbb-pdf-label,
.dbb-pagebreak-label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--clr-petrol-soft);
    font-style: italic;
}

.dbb-table-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
}

.dbb-table-border-width {
    width: 3.2rem;
}

.dbb-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.dbb-table-cell {
    vertical-align: top;
    padding: 0.3rem;
    background: #fffdf9;
}

.dbb-table-cell-header {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.dbb-table-cell-header input[type="color"] {
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
}

.dbb-table-cell-clear-bg {
    background: none;
    border: none;
    color: var(--clr-copper-dark);
    cursor: pointer;
    font-size: 0.72rem;
}

.dbb-table-cell-editor .ql-container {
    min-height: 60px;
    font-size: 0.9rem;
}

.dbb-table-row-actions {
    width: 1.6rem;
    vertical-align: top;
    text-align: center;
}

.dbb-table-col-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}
