/* ============================================
   CABINET MALATAVERNE - COMPLETE CSS
   ============================================ */

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 20px;
    z-index: 999999;
    background: #c25a7b;
    color: #fff;
    padding: 10px 20px;
}

.skip-link:focus {
    left: 20px;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    background: linear-gradient(135deg, #f8e4ea 0%, #fef5f7 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(194, 90, 123, 0.1);
}

.site-branding {
    text-align: center;
    padding: 15px 20px;
}

.custom-logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.custom-logo-link:hover {
    transform: scale(1.05);
}

.custom-logo {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
}

.site-title {
    margin-top: 15px;
    font-size: 0;
}

.site-title a {
    font-family: 'Yrsa', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #c25a7b;
    letter-spacing: 0.5px;
}

.site-title a:hover {
    color: #a04665;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */

.main-navigation {
    background: #fff;
    border-top: 1px solid #f0e0e5;
    border-bottom: 2px solid #f0e0e5;
}

.menu-toggle {
    display: none;
    background: #c25a7b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    margin: 15px auto;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #a04665;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(194, 90, 123, 0.3);
}

.menu-accueil-container {
    max-width: 1200px;
    margin: 0 auto;
}

#top-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.menu-item {
    position: relative;
}

.menu-item > a {
    display: block;
    padding: 18px 22px;
    color: #555;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.menu-item > a:hover,
.menu-item:hover > a {
    color: #c25a7b;
    background: rgba(248, 228, 234, 0.5);
    border-bottom-color: #c25a7b;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    list-style: none;
    z-index: 100;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-menu .menu-item {
    border-bottom: 1px solid #f5f5f5;
}

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

.sub-menu a {
    padding: 14px 25px;
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
}

.sub-menu a:hover {
    background: #fef8f9;
    color: #c25a7b;
    padding-left: 30px;
}

.sub-menu .sub-menu {
    left: 100%;
    top: 0;
    border-radius: 0 8px 8px 0;
}

/* ============================================
   CONTENT AREA STYLES
   ============================================ */

.site-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
}

.content-area {
    width: 100%;
}

.entry-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.entry-title {
    font-family: 'Yrsa', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #c25a7b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 25px;
    color: #555;
}

.entry-content a {
    color: #c25a7b;
    font-weight: 600;
    border-bottom: 2px solid rgba(194, 90, 123, 0.3);
    transition: all 0.3s ease;
}

.entry-content a:hover {
    border-bottom-color: #c25a7b;
    color: #a04665;
}

.has-text-align-center {
    text-align: center;
}

.has-white-color {
    color: #fff !important;
}

.has-text-color {
    color: inherit;
}

.has-medium-font-size {
    font-size: 1.25rem;
}

/* ============================================
   COVER BLOCK STYLES
   ============================================ */

.wp-block-cover {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.wp-block-cover__gradient-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.wp-block-cover.is-light .wp-block-cover__gradient-background {
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), rgba(255,255,255,0.5));
}

.wp-block-cover__image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
    padding: 50px 30px;
    max-width: 900px;
    margin: 0 auto;
}

.wp-block-cover__inner-container p {
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.5;
}

.is-layout-flow {
    display: block;
}

.wp-block-cover-is-layout-flow {
    display: block;
}

/* ============================================
   HEADINGS
   ============================================ */

h2.wp-block-heading {
    font-family: 'Yrsa', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #444;
    margin: 50px 0 30px;
    line-height: 1.4;
    text-align: center;
}

h2.wp-block-heading a {
    color: #c25a7b;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

h2.wp-block-heading a:hover {
    border-bottom-color: #c25a7b;
}

/* ============================================
   SEPARATOR
   ============================================ */

.wp-block-separator {
    border: none;
    border-top: 3px solid #f0e0e5;
    margin: 50px auto;
    max-width: 120px;
    opacity: 1;
}

.wp-block-separator.has-css-opacity {
    opacity: 1;
}

/* ============================================
   LAYOUT GRID (3 COLUMN IMAGES)
   ============================================ */

.wp-block-jetpack-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.wp-block-jetpack-layout-grid.alignfull {
    width: 100%;
}

.wp-block-jetpack-layout-grid-column {
    position: relative;
}

.wp-block-jetpack-layout-grid__padding-none {
    padding: 0;
}

.wp-block-jetpack-layout-gutter__nowrap {
    flex-wrap: nowrap;
}

/* Image Block */
.wp-block-image {
    margin: 0;
}

.wp-block-image figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.wp-block-image figure:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.wp-block-image figure:hover img {
    transform: scale(1.08);
}

.wp-block-image figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    padding: 25px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    z-index: 2;
}

.wp-block-image figcaption a {
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.5);
    padding-bottom: 2px;
}

.wp-block-image figcaption a:hover {
    border-bottom-color: #fff;
}

.wp-block-image.size-large img {
    width: 100%;
    height: auto;
}

/* ============================================
   FOOTER WIDGET AREA
   ============================================ */

.footer-widget-area {
    background: linear-gradient(135deg, #f8e4ea 0%, #fef5f7 100%);
    padding: 70px 20px;
    margin-top: 80px;
    border-top: 3px solid #f0e0e5;
}

.widget-area {
    max-width: 1200px;
    margin: 0 auto;
}

.widget {
    margin-bottom: 40px;
}

.widget_block {
    margin: 0;
}

/* Columns in Footer */
.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    align-items: start;
}

.wp-block-columns.is-layout-flex {
    display: grid;
}

.wp-container-core-columns-is-layout-1 {
    display: grid;
}

.wp-block-columns-is-layout-flex {
    display: grid;
}

.wp-block-column {
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.wp-block-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.wp-block-column.is-layout-flow {
    display: block;
}

.wp-block-column-is-layout-flow {
    display: block;
}

.wp-block-column strong {
    display: block;
    color: #c25a7b;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wp-block-column p {
    margin: 12px 0;
    color: #666;
    line-height: 1.7;
}

.wp-block-column a {
    color: #c25a7b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-column a:hover {
    color: #a04665;
    text-decoration: underline;
}

.wp-block-column iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wp-block-image.size-full img {
    width: 100%;
    height: auto;
}

.wp-block-image.is-resized img {
    width: 100%;
    height: auto;
}

/* Social Links */
.wp-block-social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.wp-block-social-links.aligncenter {
    justify-content: center;
}

.wp-block-social-links.is-layout-flex {
    display: flex;
}

.wp-block-social-links-is-layout-flex {
    display: flex;
}

.wp-social-link {
    margin: 0;
}

.wp-social-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #c25a7b;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wp-social-link a:hover {
    background: #a04665;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(194, 90, 123, 0.4);
}

.wp-social-link svg {
    fill: #fff;
    width: 24px;
    height: 24px;
}

.wp-block-social-link-anchor {
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
    background: #2c2c2c;
    color: #aaa;
    text-align: center;
    padding: 35px 20px;
    font-size: 14px;
}

.site-info a {
    color: #c25a7b;
    font-weight: 600;
    transition: color 0.3s ease;
}

.site-info a:hover {
    color: #fff;
}

/* Entry Footer */
.entry-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0e0e5;
}

/* Article Styles */
article {
    margin-bottom: 50px;
}

.hentry {
    display: block;
}

.without-featured-image {
    display: block;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1024px) {
    .wp-block-jetpack-layout-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }
    
    .menu-accueil-container {
        max-width: 100%;
    }
    
    #top-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
    }
    
    #top-menu.active {
        display: flex;
    }
    
    .menu-item {
        width: 100%;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .menu-item > a {
        padding: 15px 20px;
        border-left: 4px solid transparent;
        border-bottom: none;
    }
    
    .menu-item:hover > a,
    .menu-item.active > a {
        border-left-color: #c25a7b;
        background: #fef8f9;
    }
    
    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #fafafa;
        padding-left: 0;
        border-radius: 0;
    }
    
    .menu-item.active > .sub-menu {
        display: block;
    }
    
    .sub-menu a {
        padding-left: 40px;
    }
    
    .sub-menu a:hover {
        padding-left: 45px;
    }
    
    .sub-menu .sub-menu a {
        padding-left: 60px;
    }
    
    /* Content */
    .entry-title {
        font-size: 2rem;
    }
    
    h2.wp-block-heading {
        font-size: 1.6rem;
    }
    
    .wp-block-cover {
        min-height: 350px;
    }
    
    .wp-block-cover__inner-container p {
        font-size: 1.2rem;
    }
    
    .wp-block-jetpack-layout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .custom-logo {
        max-width: 120px;
    }
    
    .site-title a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .site-header {
        padding: 15px 0;
    }
    
    .custom-logo {
        max-width: 100px;
    }
    
    .site-title a {
        font-size: 1rem;
    }
    
    .entry-title {
        font-size: 1.6rem;
    }
    
    h2.wp-block-heading {
        font-size: 1.4rem;
    }
    
    .wp-block-cover {
        min-height: 280px;
    }
    
    .wp-block-cover__inner-container {
        padding: 30px 20px;
    }
    
    .wp-block-cover__inner-container p {
        font-size: 1rem;
    }
    
    .entry-content p {
        font-size: 1rem;
    }
    
    .wp-block-column {
        padding: 15px;
    }
    
    .footer-widget-area {
        padding: 40px 15px;
    }
}