/*
Theme Name: Camping Lou Tuquet
Description: Thème bloc de camping-lou-tuquet.fr, en blocs natifs de WordPress. Reprend le site validé par le client (textes, photos, couleurs, polices Vollkorn et Inter) avec la vitrine retenue le 2026-11-15 : bandeau, cartes des hébergements, encadrés « en bref », pied de page complet.
Author: Num'Etik
Author URI: https://num-etik.fr
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: camping-lou-tuquet
*/

/* Ce que theme.json ne sait pas dire. */

/* Les trois zones du site (en-tête, contenu, pied) se touchent : les sections ont leurs propres marges. */
.wp-site-blocks > * + * { margin-block-start: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 80px; }
body { overflow-x: clip; }

/* En-tête crème, collé en haut au défilement. */
header.wp-block-template-part { position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 14px rgba(0, 0, 0, .14); }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 0px); }
header.wp-block-template-part a { text-decoration: none; }
.marque .wp-block-site-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.wp-block-navigation .current-menu-item > a, .wp-block-navigation a[aria-current="page"], .wp-block-navigation a:hover { color: var(--wp--preset--color--vert); }
.wp-block-navigation .wp-block-navigation__submenu-container { border: 0 !important; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); padding: 6px; background: #fff !important; }

/* Menu du téléphone : panneau natif (parts/menu-mobile.html), rubriques en tuiles, Locations en grande carte verte, bande brique en bas (maquette B du 2026-11-19). */
.panneau-menu > * { width: 100%; }
.panneau-corps { flex: 1 0 auto; }
.panneau-menu .wp-block-site-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.panneau-menu .wp-block-site-title { font-family: var(--wp--preset--font-family--vollkorn); font-size: 1.15rem; color: var(--wp--preset--color--brique); }
.panneau-menu .wp-block-navigation-overlay-close { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--wp--preset--color--brique); }
.menu-tuiles, .menu-tuiles .wp-block-navigation__container { width: 100%; }
.menu-tuiles .wp-block-navigation__container { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-tuiles .wp-block-navigation-item { background: var(--wp--preset--color--sur-pied); border-radius: 16px; min-height: 76px; align-items: flex-end !important; }
.menu-tuiles .wp-block-navigation-item__content { width: 100%; padding: 14px !important; font: 500 1.15rem/1.15 var(--wp--preset--font-family--vollkorn); color: var(--wp--preset--color--pied) !important; }
.menu-tuiles .wp-block-navigation-item:has(> [aria-current="page"]) { box-shadow: inset 0 0 0 2px var(--wp--preset--color--pied); }
.menu-tuiles .has-child { grid-column: 1 / -1; background: var(--wp--preset--color--vert); flex-direction: column; align-items: stretch !important; }
.menu-tuiles .has-child > .wp-block-navigation-item__content { font-size: 1.35rem; color: #fff !important; padding-bottom: 4px !important; }
.menu-tuiles .wp-block-navigation__submenu-icon { display: none !important; }
.menu-tuiles .has-child .wp-block-navigation__submenu-container { position: static !important; opacity: 1 !important; visibility: visible !important; height: auto !important; width: auto !important; min-width: 0 !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 14px; padding: 0 14px 12px !important; background: transparent !important; box-shadow: none; border: 0 !important; }
.menu-tuiles .wp-block-navigation__submenu-container .wp-block-navigation-item { background: transparent; min-height: 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.menu-tuiles .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font: 400 .95rem/1.3 var(--wp--preset--font-family--inter); color: #fff !important; padding: 11px 0 !important; }
.panneau-bande .wp-block-button__link { font-weight: 600; }
.panneau-bande a:not(.wp-block-button__link) { color: inherit; font-weight: 600; }
.wp-block-navigation__responsive-container-open { width: 44px; height: 44px; border-radius: 50%; background: var(--wp--preset--color--brique); color: #fff; display: grid; place-items: center; }
@media (max-width: 420px) { .marque .wp-block-site-title { font-size: 1.0625rem; } }
@media (min-width: 600px) {
	.nav-contact > a { background: var(--wp--preset--color--vert); color: #fff !important; padding: .6rem 1.2rem !important; border-radius: 999px; font-family: var(--wp--preset--font-family--inter); font-size: .9375rem; font-weight: 600; }
	.nav-contact > a:hover { background: var(--wp--preset--color--vert-fonce); }
}

/* Boutons : variantes claire (sur photo) et à contour. */
.wp-block-button.is-style-clair .wp-block-button__link { background: #fff; color: var(--wp--preset--color--brique); }
.wp-block-button.is-style-clair .wp-block-button__link:hover { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--brique); }
.wp-block-button.is-style-ligne .wp-block-button__link { background: transparent; color: var(--wp--preset--color--vert); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--vert); }
.wp-block-button.is-style-ligne .wp-block-button__link:hover { background: var(--wp--preset--color--vert); color: #fff; }
.wp-element-button { transition: background .2s, transform .2s; }
.wp-element-button:hover { transform: translateY(-1px); }
:where(a, summary, button, .wp-element-button):focus-visible { outline: 3px solid #f3c74a; outline-offset: 2px; }

/* Bandeau d'accueil : voile dégradé, du bas sur téléphone, de la gauche sur ordinateur. */
.bandeau-accueil .wp-block-cover__background { background: linear-gradient(180deg, rgba(20, 30, 8, 0) 25%, rgba(20, 30, 8, .8) 100%) !important; opacity: 1 !important; }
.bandeau-accueil h1 { color: #fff; }
.bandeau-accueil p { color: #f2f5ea; }
@media (min-width: 1000px) {
	.bandeau-accueil .wp-block-cover__background { background: linear-gradient(90deg, rgba(20, 30, 8, .8) 0%, rgba(20, 30, 8, .35) 45%, rgba(20, 30, 8, 0) 72%) !important; }
}

/* Bandeau de la note Google. */
.is-style-avis .note { font-family: var(--wp--preset--font-family--vollkorn); font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--wp--preset--color--brique); }
.is-style-avis .etoiles { color: #b8840c; letter-spacing: 2px; }
.is-style-avis a { color: inherit; text-underline-offset: 3px; }

/* Cartes d'hébergement : la carte entière mène à la page, par le lien du titre. */
.is-style-carte { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wp--preset--color--trait); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.is-style-carte:hover { box-shadow: 0 8px 22px rgba(60, 50, 20, .12); transform: translateY(-2px); }
.is-style-carte > .wp-block-image, .is-style-carte > .wp-block-post-featured-image { margin: 0; }
.is-style-carte img { contain-intrinsic-size: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 !important; display: block; }
.is-style-carte .carte-texte { padding: 12px 16px 18px; }
.is-style-carte h3, .is-style-carte h2 { margin: 0; font-size: 1.25rem; }
.is-style-carte :is(h2, h3) a { color: var(--wp--preset--color--brique); text-decoration: none; }
.is-style-carte :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.is-style-carte p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.is-style-carte .prix strong { color: var(--wp--preset--color--vert); }
@media (max-width: 699px) {
	.grille-heb .is-style-carte { display: grid; grid-template-columns: 110px 1fr; align-items: center; }
	.grille-heb .is-style-carte img { height: 104px; aspect-ratio: auto; }
	.grille-heb .carte-texte { padding: 10px 12px 10px 14px; }
}
@media (prefers-reduced-motion: reduce) { .is-style-carte, .is-style-carte:hover, .wp-element-button:hover, .cascade img { transition: none; transform: none; } html { scroll-behavior: auto; } }

/* Bandeau vert à vague « au pinceau » en haut et en bas, comme sur le site d'origine : un masque SVG écrit ici,
   sans requête, dont la couleur suit celle du bandeau. */
.is-style-vague { position: relative; }
.is-style-vague::before, .is-style-vague::after {
	content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: clamp(22px, 4vw, 46px); background: inherit; pointer-events: none;
	--vague: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 30C70 22 140 18 220 24S360 40 450 36 600 16 700 20 860 38 960 34 1120 18 1200 26V48H0Z'/%3E%3Cpath d='M100 18C140 12 180 11 222 15 180 14 140 15 100 18Z'/%3E%3Cpath d='M500 31C540 28 580 23 620 18 582 25 542 30 500 31Z'/%3E%3Cpath d='M900 30C940 28 980 27 1020 24 982 29 942 31 900 30Z'/%3E%3Cpath d='M1080 17C1110 13 1140 12 1170 15 1140 14 1110 15 1080 17Z'/%3E%3C/svg%3E");
	-webkit-mask: var(--vague) center / 100% 100% no-repeat; mask: var(--vague) center / 100% 100% no-repeat;
}
.is-style-vague::before { bottom: calc(100% - 1px); }
.is-style-vague::after { top: calc(100% - 1px); transform: scale(-1, -1); }
.is-style-vague :is(h2, h3) { color: #fff; }
.is-style-vague a:not(.wp-element-button) { color: #fff; }
.encart-groupe { border-radius: 16px; }
.encart-groupe h3 { margin-top: 0; }

/* Encadré « en bref » des hébergements. */
.is-style-en-bref { background: var(--wp--preset--color--creme); border: 1px solid var(--wp--preset--color--trait); border-radius: 14px; padding: 22px; }
.is-style-en-bref h2 { font-size: 1.5rem; margin: 0; }
.is-style-en-bref h3 { font-family: var(--wp--preset--font-family--inter); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--vert); margin: 1.1rem 0 .25rem; }
.is-style-en-bref ul { margin: 0; padding-left: 1.1rem; font-size: .9375rem; line-height: 1.55; }
.is-style-en-bref li + li { margin-top: .2rem; }
.is-style-en-bref p { font-size: .9375rem; line-height: 1.55; }
@media (min-width: 782px) { .colonne-bref { position: sticky; top: 90px; } }
@media (max-width: 781px) { .colonnes-heb > .colonne-bref { order: -1; } }
/* Le lieu : photo à gauche sur ordinateur, sous son texte sur téléphone (pas deux photos de suite). */
@media (max-width: 781px) { .photo-apres { order: 1; } }

/* Étapes numérotées (Réservations) : pastilles vertes ; trois cartes côte à côte sur ordinateur. */
.etapes { list-style: none; counter-reset: etape; padding: 0; display: grid; gap: 14px; }
.etapes li { counter-increment: etape; position: relative; padding-left: 52px; min-height: 38px; }
.etapes li::before { content: counter(etape); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--vert); color: #fff; font-family: var(--wp--preset--font-family--vollkorn); font-size: 1.25rem; font-weight: 700; }
@media (min-width: 782px) {
	.etapes { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.etapes li { padding: 66px 22px 22px; background: var(--wp--preset--color--creme); border: 1px solid var(--wp--preset--color--trait); border-radius: 14px; }
	.etapes li::before { left: 22px; top: 20px; }
}

/* Sur-titre au-dessus d'un grand titre. */
.is-style-sur-titre { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--brique); margin-bottom: -.5rem; }

/* Galeries : photos de même hauteur, coins arrondis. */
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: 12px; }

/* Galerie en mosaïque (haut des pages d'hébergement) : une grande photo et les autres autour, sur deux rangs,
   pour que les infos arrivent vite à l'écran ; chaque photo s'agrandit au clic. Gère 3, 4 ou 5 photos et plus. */
.wp-block-gallery.is-style-mosaique.has-nested-images { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(150px, 17vw, 236px); gap: 10px; }
.wp-block-gallery.is-style-mosaique.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; height: 100%; }
.wp-block-gallery.is-style-mosaique.has-nested-images figure.wp-block-image img { height: 100% !important; object-fit: cover; }
.is-style-mosaique > figure:first-child { grid-row: span 2; }
.is-style-mosaique > figure:first-child:nth-last-child(3) ~ figure, .is-style-mosaique > figure:first-child:nth-last-child(4) ~ figure:last-child { grid-column: span 2; }
@media (max-width: 599px) {
	.wp-block-gallery.is-style-mosaique.has-nested-images { grid-template-columns: 1fr 1fr; grid-auto-rows: 118px; gap: 8px; }
	.is-style-mosaique > figure:first-child { grid-column: span 2; }
	.is-style-mosaique > figure:first-child:nth-last-child(3) ~ figure { grid-column: auto; }
}

/* Photo unique en haut d'une page (Maison meublée) : en bandeau sur ordinateur, plus haute sur téléphone. */
.photo-bandeau img { width: 100%; border-radius: 14px; }
@media (max-width: 599px) { .photo-bandeau img { aspect-ratio: 4 / 3 !important; } }

/* Photo qui déborde au-dessus d'un bandeau à vague (Le lieu) : au-dessus du texte sur téléphone, à droite sur ordinateur. */
.photo-debord { position: relative; z-index: 2; margin-top: calc(-1 * var(--wp--preset--spacing--50) - clamp(40px, 7vw, 96px)) !important; }
.photo-debord img { border-radius: 16px; box-shadow: 0 16px 36px rgba(20, 30, 8, .28); }
@media (max-width: 781px) { .colonnes-debord > .photo-debord { order: -1; } }

/* Photos en cascade : trois portraits décalés ; sur téléphone, une bande qui défile au doigt.
   Au survol (souris seulement), la photo passe doucement en noir et blanc, comme sur le site d'origine. */
.cascade { gap: clamp(14px, 3vw, 40px) !important; }
.cascade > .wp-block-column:nth-child(2) { margin-top: clamp(20px, 3vw, 40px); }
.cascade > .wp-block-column:nth-child(3) { margin-top: clamp(40px, 6vw, 80px); }
.cascade img { width: 100%; border-radius: clamp(18px, 2.4vw, 30px); }
@media (hover: hover) {
	.cascade img { transition: filter .5s ease; }
	.cascade .wp-block-image:hover img { filter: grayscale(1); }
}
@media (max-width: 781px) {
	.cascade { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
	.cascade > .wp-block-column { flex: 0 0 68% !important; scroll-snap-align: center; }
}

/* Textes suivis (mentions légales, article). */
.contenu-texte h2 { font-size: 1.5rem; margin-block-start: 2rem; }
.contenu-texte h3 { font-size: 1.1875rem; }

/* Pied de page. */
.pied a { color: #fff; }
.pied a:hover { color: var(--wp--preset--color--anis); }
.pied-nom { font-family: var(--wp--preset--font-family--vollkorn); font-size: 1.375rem; font-weight: 700; color: #fff; }
.pied-infos p strong, .pied-titre strong { display: block; color: var(--wp--preset--color--anis); font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.pied-infos p { margin: 0; }
.pied-bas p { margin: 0; }
.carte { width: 100%; height: 220px; border: 0; border-radius: 12px; display: block; }
.carte-differee { display: grid; place-items: center; background: rgba(255, 255, 255, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9ec86' d='M12 2a7 7 0 0 1 7 7c0 5.2-7 13-7 13S5 14.2 5 9a7 7 0 0 1 7-7z'/%3E%3C/svg%3E") center 32% / 48px no-repeat; border: 1px dashed rgba(255, 255, 255, .25); }
.carte-differee button { margin-top: 74px; font: inherit; font-weight: 600; color: var(--wp--preset--color--pied); background: #fff; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }

/* Contact : photo de la forêt voilée, coordonnées avec pictogrammes, formulaire en carte blanche. */
.wp-block-cover.contact-photo .wp-block-cover__inner-container { color: var(--wp--preset--color--ardoise); }
.wp-block-cover.contact-photo h2:not(.has-text-color) { color: var(--wp--preset--color--vert); }
.wp-block-cover.contact-photo h3:not(.has-text-color) { color: var(--wp--preset--color--brique); }
.carte-formulaire { border-radius: 18px; box-shadow: 0 18px 44px rgba(47, 58, 32, .16); }
.carte-formulaire h2 { margin-top: 0; }
.coordonnees :is(.tel, .courriel, .adresse) { position: relative; padding-left: 34px; margin-block: .6rem; }
.coordonnees :is(.tel, .courriel, .adresse)::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; background: var(--wp--preset--color--vert); -webkit-mask: var(--picto) center / contain no-repeat; mask: var(--picto) center / contain no-repeat; }
.coordonnees .tel { --picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); font-size: 1.25rem; font-weight: 600; }
.coordonnees .courriel { --picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7.2L4 7.3V17h16V7.3z'/%3E%3C/svg%3E"); }
.coordonnees .adresse { --picto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 1 7 7c0 5.2-7 13-7 13S5 14.2 5 9a7 7 0 0 1 7-7zm0 4.5A2.5 2.5 0 1 0 12 11.5 2.5 2.5 0 0 0 12 6.5z'/%3E%3C/svg%3E"); }

/* Formulaire de contact maison (mu-plugin numetik-formulaire). */
.numetik-contact { display: grid; gap: .25rem; }
.numetik-contact p { margin: 0 0 .75rem; }
.numetik-contact-ligne { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.numetik-contact label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--wp--preset--color--brique); }
.numetik-contact input, .numetik-contact textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 12px; border: 1.5px solid #d6cfb8; border-radius: 10px; background: #fff; }
.numetik-contact input:focus, .numetik-contact textarea:focus { outline: 3px solid rgba(86, 125, 7, .25); border-color: var(--wp--preset--color--vert); }
.numetik-contact-piege { position: absolute; left: -9999px; }
.numetik-contact-mention { font-size: .8125rem; color: var(--wp--preset--color--gris); }
.numetik-contact button { border: 0; cursor: pointer; }
.numetik-contact-retour { padding: 12px 14px; border-radius: 10px; background: #eef6df; color: #2f4a05; }
.numetik-contact-retour.erreur { background: #fdecec; color: #8a1c0c; }

/* Accueil : logo des Rencontres à sa taille, bandeau plus haut sur ordinateur. */
.logo-rencontres img { max-width: 260px; margin-inline: auto; display: block; }
@media (min-width: 1000px) { .bandeau-accueil { min-height: 640px !important; } }

/* Sections larges : titres au bord de la grille, textes à la largeur de lecture, alignés à gauche. */
.entete-page > p, .is-style-vague > p, .texte-large > :is(p, ul) { max-width: 66ch; margin-left: max(0px, calc((100% - 1240px) / 2)) !important; }

/* Signature Num'Etik des mentions légales (outils/signature-numetik) : prend les couleurs du site, anneau réglable par --signature-accent ; logo dans assets/images du thème. */
.signature-numetik { display: flex; align-items: center; gap: 16px; margin-block: 2rem; padding: 18px 22px; border: 1px solid color-mix(in srgb, currentColor 16%, transparent); border-radius: 14px; background: color-mix(in srgb, currentColor 4%, transparent); }
.signature-numetik::before { content: ""; flex: none; width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 2px var(--signature-accent, currentColor); background: #fff image-set(url("assets/images/logo-numetik.avif") type("image/avif"), url("assets/images/logo-numetik.webp") type("image/webp")) center / 40px no-repeat; }
.signature-numetik p { margin: 0; }
.signature-numetik-titre { font-weight: 600; }
.signature-numetik-offre { font-size: .875rem; opacity: .8; }
.signature-numetik { --signature-accent: var(--wp--preset--color--vert-fonce); }
/* Ligne de signature sous le pied de page (outils/signature-numetik/signature-pied.html), option D validée le 2026-11-18 ; nom en --signature-accent-pied. */
.signature-pied { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font-size: .8125rem; }
.signature-pied::before, .signature-pied::after { content: ""; flex: 1 1 16px; height: 1px; background: color-mix(in srgb, currentColor 18%, transparent); }
.signature-pied a { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; color: inherit; text-decoration: none; text-align: center; }
.signature-pied a::before { content: ""; flex: none; margin-right: calc(8px - .3em); width: 26px; height: 26px; border-radius: 50%; background: #fff image-set(url("assets/images/logo-numetik.avif") type("image/avif"), url("assets/images/logo-numetik.webp") type("image/webp")) center / 20px no-repeat; }
.signature-pied strong { color: var(--signature-accent-pied, inherit); }
.signature-pied { --signature-accent-pied: var(--wp--preset--color--anis); }
