/* ===== Optimisation du menu de navigation ===== */

/* Réduire la largeur du menu */
.fullscreen-menu-inside-wrapper {
    width: 480px !important;
    max-width: 90vw !important;
    z-index: 10 !important;
}

.fullscreen-menu-inside-container {
    padding: 80px 40px !important;
}

/* Permettre au menu gauche d'occuper toute la largeur */
#fullscreen-menu-left-wrap {
    flex: 1 1 auto !important;
    width: 100% !important;
}

/* Taille des liens du menu */
#fullscreen-menu-left-wrap .main-navigation ul li a {
    font-size: 17px !important;
    padding: 6px 0 !important;
    line-height: 1.4 !important;
}

/* ===== Formulaire de réservation - correction des couleurs ===== */

/* Fond blanc et texte foncé pour les champs de saisie */
#fbuilder_1 input[type="text"],
#fbuilder_1 input[type="email"],
#fbuilder_1 input[type="tel"],
#fbuilder_1 input[type="number"],
#fbuilder_1 textarea,
#fbuilder_1 select {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px !important;
}

/* Labels en couleur foncée lisible */
#fbuilder_1 .field_caption,
#fbuilder_1 label,
#fbuilder_1 .wdform-label {
    color: #222222 !important;
}

/* ===== Page Réservation - élargir la zone de contenu ===== */
.reservation-page .content-area,
.page-id-83 .content-area,
.page.no-sidebar .content-area {
    max-width: 1000px !important;
}

/* ===== Fix Carte Cadeau page layout ===== */
.site-main::after {
	    content: "";
	    display: table;
	    clear: both;
}

.page .site-main {
	    overflow: hidden;
}

/* Reduce gap between header and content */
.page .site-content {
	    padding-top: 30px;
}

/* Make image sticky in right column */
.page-id-702 .wp-block-columns .wp-block-column:last-child .wp-block-image {
	    position: sticky;
	    top: 80px;
}

/* Improve heading visibility on Carte Cadeau page */
.page-id-702 h3 {
	    color: #ffffff;
	    margin-top: 1.5em;
}

/* Separator style */
.page-id-702 .wp-block-separator {
	    border-color: rgba(255,255,255,0.2) !important;
	    margin: 2em 0;
}

/* ===== Homepage Layout Optimization ===== */

/* Hide redundant page title on homepage */
body.home .entry-header,
body.page-id-15 .entry-header {
	    display: none !important;
 !important}

/* Reduce gap between header image and content */
.home .site-content,
.page-id-15 .site-content {
	    padding-top: 0 !important;
}

/* Tighter section spacing */
.home .entry-content > .wp-block-heading {
	    margin-top: 1.5em;
	    margin-bottom: 0.5em;
}

/* Improve hero section - reduce excess black space */
.home .custom-header,
.page-id-15 .custom-header {
	    max-height: 70vh;
	    overflow: hidden;
}

/* Better spacing for the intro group */
.home .entry-content > .wp-block-group:first-child {
	    padding-top: 2em;
	    padding-bottom: 2em;
}

/* Tighten spacing between content sections */
.home .entry-content > .wp-block-group {
	    margin-top: 0;
	    margin-bottom: 0;
}

/* Newsletter form spacing */
.home .mc4wp-form {
	    margin: 2em auto;
	    max-width: 600px;
}

/* Footer section spacing */
.home .entry-content > .wp-block-separator {
	    margin: 2em auto;
}

/* Social icons centered */
.home .entry-content > .wp-block-social-links {
    justify-content: center;
    margin: 1.5em 0;
}

/* Fix site-main overflow for better rendering */
.page .site-main {
    overflow: visible !important;
}

/* Prevent horizontal scroll on page level instead */
#page.site {
    overflow-x: hidden;
}

/* Remove content width restriction on homepage for full-width blocks */
body.home.page.no-sidebar .content-area,
body.page-id-15.page.no-sidebar .content-area,
body.home #primary.content-area,
body.page-id-15 #primary.content-area {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home .wrapper,
body.page-id-15 .wrapper {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.home .site-main,
body.page-id-15 .site-main {
    overflow: visible !important;
}

/* Keep text content readable with max-width on inner blocks */
body.home .entry-content > .wp-block-heading,
body.home .entry-content > .wp-block-paragraph,
body.home .entry-content > .wp-block-separator,
body.home .entry-content > .wp-block-social-links,
body.home .mc4wp-form {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Smooth section transitions */
.home .entry-content > * {
    transition: opacity 0.3s ease;
}
