/* .cms-content — styles for TinyMCE-generated content */

.cms-content {
    color: #444;
    font-size: 1rem;
    line-height: 1.75;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.cms-content h1,
.cms-content h2,
.cms-content h3,
.cms-content h4,
.cms-content h5,
.cms-content h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: #1a1a1a;
}

.cms-content h1 { font-size: 2rem; }
.cms-content h2 { font-size: 1.6rem; color: #cf317a; }
.cms-content h3 { font-size: 1.35rem; }
.cms-content h4 { font-size: 1.15rem; }
.cms-content h5 { font-size: 1rem; }
.cms-content h6 { font-size: 0.9rem; color: #666; }

.cms-content p {
    margin-top: 0;
    margin-bottom: 1.25em;
}

.cms-content a {
    color: #cf317a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cms-content a:hover {
    color: #a8265f;
    text-decoration: none;
}

/* Bootstrap resets lists to none, restore defaults */
.cms-content ul,
.cms-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
}
.cms-content ul { list-style: disc; }
.cms-content ol { list-style: decimal; }
.cms-content li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}
.cms-content ul ul,
.cms-content ol ol,
.cms-content ul ol,
.cms-content ol ul {
    margin-top: 0.4em;
    margin-bottom: 0;
}

.cms-content strong,
.cms-content b {
    font-weight: 700;
    color: #1a1a1a;
}
.cms-content em,
.cms-content i {
    font-style: italic;
}

.cms-content blockquote {
    border-left: 4px solid #cf317a;
    margin: 1.5em 0;
    padding: 0.75em 1.25em;
    background: #fdf4f8;
    color: #555;
    font-style: italic;
}
.cms-content blockquote p:last-child {
    margin-bottom: 0;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5em 0 1em;
}

.cms-content hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.95rem;
}
.cms-content thead th {
    background: #cf317a;
    color: #fff;
    padding: 0.6em 0.9em;
    text-align: left;
    font-weight: 600;
}
.cms-content tbody td {
    padding: 0.55em 0.9em;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}
.cms-content tbody tr:last-child td { border-bottom: none; }
.cms-content tbody tr:nth-child(even) td { background: #fafafa; }

.cms-content code {
    background: #f3f3f3;
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.88em;
    color: #cf317a;
}

.cms-content > *:first-child {
    margin-top: 0;
}


/* ==============================================
   CMS #4 — Nos experts & Histoire de la maison
   ============================================== */

/* Inner Bootstrap containers need full width */
.page-cms-4 .cms-content {
    max-width: none;
}

/* --- Section titles --- */
.page-cms-4 .cms-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-cms-4 .cms-title h1,
.page-cms-4 .cms-title h2 {
    font-family: Roboto Slab,serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: #cf317a;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.3em;
    margin-bottom: 60px;
}
.page-cms-4 .cms-title span {
    display: block;
    font-size: 48px;
    font-family: Playfair Display,serif;
    color: #232323;
    line-height: 1.3em;
    text-transform: capitalize;
}

/* --- Expert cards grid (2 cards) --- */
.page-cms-4 .about-sommelier .row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}
.page-cms-4 .cms-block-container {
    flex: 1 1 300px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: auto;
}
.page-cms-4 .cms-block-container > img {
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.page-cms-4 .cms-block {
    width: 100%;
}
.page-cms-4 .cms-block h2 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}
.page-cms-4 .cms-block h3 {
    font-size: 0.9rem;
    color: #888;
    font-weight: 400;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}
.page-cms-4 .cms-block p {
    font-size: 0.92rem;
    text-align: left;
    margin-top: 0.75rem;
}

/* --- History timeline --- */
.page-cms-4 .about-history {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #f0f0f0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.page-cms-4 .round-img {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-cms-4 .round-img img {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    object-fit: contain;
    /*border: 3px solid #cf317a;*/
    padding: 0;
    background: #fff;
}
/* Year markers */
.page-cms-4 .about-history h3 {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    background: #cf317a;
    padding: 0.2em 0.8em;
    border-radius: 20px;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.page-cms-4 .about-history p {
    color: #555;
    font-size: 0.95rem;
    border-left: 2px solid #f0dce8;
    padding-left: 1rem;
    margin-left: 0.25rem;
}


/* ==============================================
   CMS #6 — Pour les professionnels
   ============================================== */

.page-cms-6 .cms-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.page-cms-6 .cms-title h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 0;
}
.page-cms-6 .cms-title h1 span {
    display: block;
    color: #cf317a;
    font-size: 0.8em;
    font-weight: 400;
    margin-top: 0.2em;
}

.page-cms-6 .cms-section {
    margin-bottom: 2.5rem;
}

.page-cms-6 .img-container {
    display: flex;
    align-items: flex-start;
}
.page-cms-6 .img-radius img {
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* ==============================================
   Suppliers page
   ============================================== */

.tvbrand-link {
    color: #cf317a;
    text-decoration: none !important;
    background-image: linear-gradient(#cf317a, #cf317a);
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}
.tvbrand-link:hover {
    color: #cf317a;
    text-decoration: none;
    background-size: 100% 1px;
}
