/*
Theme Name: Camping La Surre
Description: Thème maison du Camping La Surre, sur blocs Gutenberg (remplace The7 et WPBakery). Cotes relevées sur l'original le 17/11/2026.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: surre
*/

:root {
	--vert-eau: #7dc2a5;
	--vert: #679672;
	--creme: #f1f1d3;
	--texte: #424040;
	--titre: #262b2e;
	--marge-page: 15px;      /* The7 : page-left/right-margin */
	--ecart-element: 22px;   /* WPBakery : .wpb_content_element { margin-bottom: 21.74px } */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--texte); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-size: 17px; line-height: 25px; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aller-contenu { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; padding: 8px 12px; }
.aller-contenu:focus { left: 8px; top: 8px; }

/* =========================================================
   En-tête (ordinateur : barre de 130 px, contenu à 125 px des bords)
   ========================================================= */
.entete { position: absolute; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.entete__barre { display: flex; align-items: center; justify-content: space-between; height: 130px; padding: 0 max(30px, calc((100vw - 1190px) / 2)); }
.entete .logo { display: block; line-height: 0; }
.entete .logo img { width: 200px; height: auto; }
.entete__droite { display: flex; align-items: center; color: #fff; font: 400 14px/18px Arial, Helvetica, sans-serif; }
.entete__droite a { color: #fff; text-decoration: none; }
.entete .tel { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; }
.entete .langues a { text-decoration: underline; }
.langues { display: inline-flex; gap: 4px; align-items: center; }
.langues a { color: inherit; }
.burger { width: 67px; height: 58px; padding: 18px 16px; margin: 0; background: none; border: 0; cursor: pointer; display: grid; align-content: space-between; }
.burger i { display: block; height: 3px; background: #fff; }
.entete-plein .entete { position: sticky; background: var(--vert-eau); }
body.defile .entete { position: fixed; background: var(--vert-eau); box-shadow: 0 1px 8px rgba(0,0,0,.1); }
body.admin-bar .entete { top: 32px; }

/* =========================================================
   Panneau du menu (ordinateur : 400 px, logo en haut, liens centrés)
   ========================================================= */
.panneau { position: fixed; inset: 0; z-index: 100; }
.panneau[hidden] { display: none; }
.panneau__fond { position: absolute; inset: 0; }
.panneau__boite { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; background: var(--vert-eau); color: #fff; padding: 50px 30px 30px; overflow-y: auto; text-align: center; animation: entree .3s ease; }
@keyframes entree { from { transform: translateX(100%); } to { transform: none; } }
.panneau__fermer { position: absolute; top: 30px; right: 30px; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; padding: 0; }
.panneau__logo { line-height: 0; }
.panneau__logo .logo { display: inline-block; }
.panneau__logo img { width: 200px; height: auto; }
.panneau__menu { list-style: none; margin: -22px 0 0; padding: 0; }
.panneau__menu li { margin: 18px 0; }
.panneau__menu a { position: relative; display: block; padding: 4px 0; color: #fff; text-decoration: none; font: 600 15px/19px "Open Sans", sans-serif; text-transform: uppercase; }
.panneau__menu a span { position: relative; }
.panneau__menu .current-menu-item > a, .panneau__menu .current_page_item > a { color: var(--creme); }
.panneau__menu a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: #fff; transition: left .25s, right .25s; }
.panneau__menu a:hover::after { left: calc(50% - 40px); right: calc(50% - 40px); }
/* « Accueil » : libellé masqué dans le panneau (réglage de l'original) */
.panneau__menu > li:first-child > a { font-size: 0; line-height: 0; height: 8px; }
.panneau__menu .sub-menu { list-style: none; padding: 0; }
.panneau__contacts { display: none; }
body.menu-ouvert { overflow: hidden; }

/* =========================================================
   Bandeau-titre des pages (430 px, titre centré sous l'en-tête)
   ========================================================= */
.bandeau { position: relative; height: 430px; padding-top: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #222; }
.bandeau__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau__titre { position: relative; margin: 0 20px; color: var(--creme); font-size: 53px; line-height: 46px; text-align: center; font-weight: 400; }
.titre-page { text-align: center; margin: 60px 20px 0; }

/* =========================================================
   Contenu : espacements de WPBakery/The7
   ========================================================= */
.entry-content { padding-top: 50px; padding-bottom: 0; }
.home .entry-content, .entry-content:has(> .alignfull:first-child) { padding-top: 0; }
.has-global-padding { padding-left: var(--marge-page); padding-right: var(--marge-page); }
.entry-content .alignfull { width: 100vw !important; max-width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.entry-content a { color: #000; }

/* Rien n'a de marge par défaut ; chaque élément porte la sienne en bas, comme dans WPBakery. */
.entry-content :where(*) { margin-block-start: 0; }
.entry-content :where(.wp-block-image, .wp-block-gallery, .wp-block-buttons, .wp-block-html, .wp-block-embed, .wp-block-table, .wp-block-separator, .wpcf7, .tablepress, .wp-block-heading:not(.titre)) { margin-bottom: var(--ecart-element); }
.entry-content :where(.wp-block-group, .wp-block-columns, .wp-block-column, .wp-block-cover, .wp-block-spacer) { margin-bottom: 0; }
.entry-content .wp-block-heading.titre { margin-bottom: 0; }
.entry-content .wp-block-group.texte { margin-bottom: var(--ecart-element); }
.entry-content .rangee-pleine { padding-left: var(--marge-page); padding-right: var(--marge-page); }
.entry-content img.alignright { float: right; margin: 0 0 10px 20px; }
.entry-content img.alignleft { float: left; margin: 0 20px 10px 0; }
/* Module de réservation Open System : 950 px centrés, comme sur l'original */
.entry-content [id^="widget-produit"] { max-width: 950px; margin: 50px auto 0; }
/* Cadre autour du module de réservation */
.entry-content [id^="widget-produit"]:not(:empty) { background: #fff; border: 1px solid #dfe8e1; border-top: 3px solid var(--vert-eau); border-radius: 6px; padding: 30px; box-shadow: 0 2px 10px rgba(38,43,46,.05); }
@media (max-width: 781px) { .entry-content [id^="widget-produit"]:not(:empty) { padding: 16px; } }
/* Titre « Disponibilités & Réservation » ajouté au-dessus des widgets */
.entry-content .wp-block-heading.titre-reservation { text-align: center; font-size: 42px; line-height: 1.2; margin-top: 50px; margin-bottom: 0; }
@media (max-width: 781px) { .entry-content .wp-block-heading.titre-reservation { font-size: 32px; } }
/* Section de réservation ajoutée sur les pages qui n'ont pas le widget dans leur contenu */
.reservation-globale { background: #f6f8f5; border-top: 1px solid #e4ebe5; padding: 70px var(--marge-page) 80px; }
.reservation-globale__dedans { max-width: 1220px; margin: 0 auto; }
.reservation-globale__titre { margin: 0; text-align: center; font-size: 42px; line-height: 1.2; }
.reservation-globale [id^="widget-produit"] { max-width: 950px; margin: 40px auto 0; }
.reservation-globale [id^="widget-produit"]:not(:empty) { background: #fff; border: 1px solid #dfe8e1; border-top: 3px solid var(--vert-eau); border-radius: 6px; padding: 30px; box-shadow: 0 2px 10px rgba(38,43,46,.05); }
@media (max-width: 781px) { .reservation-globale { padding: 50px var(--marge-page) 60px; } .reservation-globale__titre { font-size: 32px; } .reservation-globale [id^="widget-produit"]:not(:empty) { padding: 16px; } }
.entry-content :where(p, ul, ol) { margin: 0 0 10px; }
.entry-content :where(ul, ol) { padding-left: 20px; }
.entry-content :where(p, ul, ol):not(:has(+ :is(p, ul, ol))) { margin-bottom: var(--ecart-element); }
.entry-content .wp-block-heading:not(.titre) { margin-top: 40px; margin-bottom: 20px; }
.entry-content > .wp-block-heading:not(.titre):first-child { margin-top: 0; }
.entry-content > :last-child, .wp-block-column > :last-child, .wp-block-cover__inner-container > :last-child, .wp-block-group > :last-child { margin-bottom: 0; }
.entry-content > .wp-block-group:last-child, .entry-content > .wp-block-columns:last-child { margin-bottom: 0; }
.entry-content > :last-child:not(.alignfull) { margin-bottom: 50px; }

/* Colonnes : gouttière de 30 px (2 × 15 px) */
.entry-content .wp-block-columns { gap: 30px; }
.entry-content .wp-block-columns.colonnes-collees { gap: 0 !important; }
.wp-block-columns.colonnes-collees > .wp-block-column > .wp-block-image:only-child { margin: 0; }
.wp-block-columns.colonnes-collees > .wp-block-column > .wp-block-image:only-child img { width: 100%; height: auto; display: block; }
.wp-block-columns.colonnes-collees > .wp-block-column > .wp-block-cover { height: 100%; }
.wp-block-column > .wp-block-cover { margin: 0; }
.bande > .wp-block-columns { margin-left: auto; margin-right: auto; }
.wp-block-columns.are-vertically-aligned-center > .wp-block-column { align-self: center; }
.entry-content .wp-block-group.has-global-padding:not(.alignfull), .entry-content .wp-block-cover:not(.alignfull) .has-global-padding { padding-left: 0; padding-right: 0; }

/* Titres sur voile sombre */
.titre-voile { display: table; margin-left: auto !important; margin-right: auto !important; padding: 0 1em; line-height: 2em !important; background: rgba(0,0,0,.3); color: var(--creme); }
.titre-voile.has-text-align-left { margin-left: 0 !important; }
.titre-filets { display: flex; align-items: center; gap: 30px; }
.titre-filets::before, .titre-filets::after { content: ""; flex: 1; height: 1px; background: rgba(0,0,0,.15); }
.wp-block-separator.filet { border: 0; border-top: 2px solid rgba(51,51,51,.1); width: 100%; max-width: none; opacity: 1; }
.wp-block-image.icone { margin-bottom: var(--ecart-element); }
.wp-block-image.icone img { height: auto; }

/* Boutons */
.wp-block-button__link { padding: 16px 25px; font: 400 12px/1.4 "Red Hat Text", sans-serif; }
.wp-block-button__link:hover { filter: brightness(.95); }

/* Diaporama (ancien Revolution Slider) */
.diaporama { overflow: hidden; }
.diaporama .wp-block-cover__image-background { transition: opacity 1.2s ease; }
.diaporama .diaporama__images { display: none !important; }
.diaporama__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; z-index: 0; }
.diaporama__fond.visible { opacity: 1; }
/* Ken Burns : zoom lent pendant que l'image est affichée */
.diaporama .wp-block-cover__image-background, .diaporama__fond { transform-origin: 50% 50%; }
.diaporama .kb { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .diaporama .kb { animation: none; } }
.diaporama .wp-block-cover__inner-container { z-index: 2; }
.diaporama h1, .diaporama h2 { font-weight: 400; color: #fff; }
.diaporama .grand-titre { font-size: clamp(40px, 7.6vw, 109px); line-height: 1; margin: 0 0 10px; }
.diaporama .sous-titre { font-family: "Poiret One", sans-serif; font-size: clamp(20px, 2.8vw, 40px); line-height: 1.2; color: #fff; }
.diaporama .grand-titre, .diaporama .sous-titre { text-shadow: 0 1px 8px rgba(0,0,0,.25); }

/* Carrousel (ancien Ultimate Carousel) */
.carrousel { position: relative; display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0 !important; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.wp-block-gallery.carrousel.has-nested-images figure.wp-block-image { flex: 0 0 100% !important; width: 100% !important; margin: 0 !important; scroll-snap-align: start; }
.carrousel-cadre { position: relative; margin-bottom: var(--ecart-element); }
.carrousel-cadre > .carrousel { margin-bottom: 0; }
.carrousel-fleche { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); color: #333; font-size: 22px; cursor: pointer; }
.carrousel-fleche.prec { left: 10px; } .carrousel-fleche.suiv { right: 10px; }
.wp-block-gallery.has-nested-images { gap: 6px; }

/* TablePress */
.tablepress { --head-bg-color: #7dc2a5 !important; }
.tablepress > :where(thead, tfoot) > tr > * { color: #fff !important; }
#tablepress-5 td, #tablepress-5 th { border: 1px solid #000; text-align: center !important; }
@media (max-width: 440px) { #tablepress-5 { font-size: .75rem; } }
@media (max-width: 380px) { #tablepress-5 { font-size: .65rem; } }

/* Formulaires */
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]), .wpcf7 textarea, .wpcf7 select { width: 100%; padding: 7px 10px; background: #fafafa; border: 1px solid #e2e2e2; border-radius: 0; font: inherit; }
.wpcf7 input[type=submit] { background: var(--vert); color: #fff; border: 0; padding: 10px 18px; border-radius: 3px; cursor: pointer; font: 600 14px "Open Sans", sans-serif; }

/* =========================================================
   Pied de page
   ========================================================= */
.pied { background: var(--vert-eau); color: #fff; font: 400 14px/24px "Open Sans", sans-serif; }
.pied__dedans { max-width: 1250px; margin: 0 auto; padding: 30px 0; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .widget { margin: 0; }
.pied .fa { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; background: currentColor; -webkit-mask: var(--icone) center / contain no-repeat; mask: var(--icone) center / contain no-repeat; }
.pied .fa-gavel { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h12v2H1zM5.2 8.2l2.8-2.8 14.1 14.1-2.8 2.8zM12.3 1.1l5.6 5.6-2.8 2.8-5.6-5.6zM3.8 9.6l5.6 5.6L6.6 18 1 12.4z'/%3E%3C/svg%3E"); }
.pied .fa-car { --icone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.9 6c-.2-.6-.8-1-1.4-1h-11c-.7 0-1.2.4-1.4 1L3 12v8c0 .6.4 1 1 1h1c.6 0 1-.4 1-1v-1h12v1c0 .6.4 1 1 1h1c.6 0 1-.4 1-1v-8l-2.1-6zM6.5 16a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm11 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zM5 11l1.5-4.5h11L19 11H5z'/%3E%3C/svg%3E"); }

/* =========================================================
   Sous 1 000 px : en-tête mobile de The7
   ========================================================= */
@media (max-width: 999px) {
	.entete__barre { height: auto; padding: 15px 30px 0; align-items: flex-start; }
	.entete .logo img { width: 150px; }
	.entete .tel, .entete .langues { display: none; }
	.burger { width: 24px; height: 24px; padding: 4px 1px; margin-top: 13px; }
	.burger i { height: 2px; }
	body.defile .entete__barre { height: 60px; padding-top: 0; align-items: center; }
	body.defile .entete .logo img { width: 110px; }
	body.defile .burger { margin-top: 0; }

	.panneau__fond { background: rgba(0,0,0,.5); }
	.panneau__boite { width: 330px; padding: 45px 15px 30px 30px; text-align: left; }
	.panneau__fermer { top: 15px; right: 13px; width: 30px; height: 30px; background: var(--vert); }
	.panneau__logo { display: none; }
	.panneau__menu { margin: 0; }
	.panneau__menu li { margin: 0; }
	.panneau__menu a { padding: 10px 0; font-size: 16px; line-height: 21px; }
	.panneau__menu > li:first-child > a { font-size: 16px; line-height: 21px; height: auto; }
	.panneau__menu a::after { display: none; }
	.panneau__menu .current-menu-item > a, .panneau__menu .current_page_item > a, .panneau__menu a:hover { color: var(--vert); }
	.panneau__contacts { display: flex; align-items: center; gap: 20px; margin-top: 35px; font: 600 13px/17px "Open Sans", sans-serif; }
	.panneau__contacts a { color: #fff; text-decoration: none; }
	.panneau__contacts .tel { display: inline-flex; align-items: center; gap: 8px; }
	.panneau__contacts .tel svg { color: var(--titre); }
	.panneau__contacts .langues a { text-decoration: underline; }
	.panneau__contacts .langues span { color: var(--titre); }

	.bandeau { height: 150px; padding-top: 80px; }
	.bandeau__titre { font-size: 33px; line-height: 32px; }
	body.admin-bar .entete { top: 46px; }
}

/* Colonnes : empilées sous 782 px (comme WPBakery sous 768 px) */
@media (max-width: 781px) {
	.entry-content h1 { font-size: 36px; }
	.titre-filets { gap: 12px; }
	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) { gap: 0; }
	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { margin-bottom: 0; }
	.wp-block-columns.colonnes-collees > .wp-block-column > .wp-block-cover { min-height: 300px !important; }
	.pied__dedans { padding: 24px var(--marge-page); }
}

/* =========================================================
   Consentement aux cookies
   ========================================================= */
.consentement-attente { max-width: 950px; margin: 30px auto 0; padding: 30px; background: #fff; border: 1px solid #dfe8e1; border-top: 3px solid var(--vert-eau); border-radius: 6px; text-align: center; }
.consentement-attente p { margin: 0 0 16px; }
.consentement-accepter, .bandeau-cookies button, .gerer-cookies { font: 600 14px/1.2 "Open Sans", sans-serif; cursor: pointer; border-radius: 3px; }
.consentement-accepter { background: var(--vert); color: #fff; border: 0; padding: 10px 18px; }
.consentement-note { font-size: 14px; margin-top: 10px; }
.consentement-note .consentement-accepter { padding: 6px 12px; margin-left: 6px; }
.bandeau-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto; background: #fff; color: var(--texte); border: 1px solid #dfe8e1; border-top: 3px solid var(--vert-eau); border-radius: 6px; box-shadow: 0 6px 24px rgba(38,43,46,.15); padding: 18px 20px; display: flex; gap: 18px; align-items: center; font-size: 14px; line-height: 1.5; }
.bandeau-cookies[hidden] { display: none; }
.bandeau-cookies p { margin: 0; flex: 1; }
.bandeau-cookies a { color: #000; }
.bandeau-cookies__boutons { display: flex; gap: 10px; flex-shrink: 0; }
/* Accepter et refuser : même taille, même poids visuel */
.bandeau-cookies__boutons button { min-width: 110px; padding: 10px 16px; border: 2px solid var(--vert); }
.bandeau-cookies__accepter { background: var(--vert); color: #fff; }
.bandeau-cookies__refuser { background: #fff; color: var(--vert); }
.pied__cookies { margin: 6px 0 0; }
.gerer-cookies { background: none; border: 0; padding: 0; color: #fff; font-weight: 400; text-decoration: underline; }
@media (max-width: 781px) { .bandeau-cookies { flex-direction: column; align-items: stretch; } .bandeau-cookies__boutons button { flex: 1; } .consentement-attente { padding: 20px 16px; } }
