/*
Theme Name: Lisa Golf
Author: Greg Web
Author URI: https://greg-web.fr
Description: Thème block sur mesure pour Lisa Stievenard, enseignante de golf.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: lisa-golf
*/

html { scroll-behavior: smooth; }

.lg-header { border-bottom: 1px solid var(--wp--preset--color--rose-clair); }
.lg-header .lg-brand-sep { width: 1px; align-self: stretch; background: var(--wp--preset--color--rose); }
.lg-header .wp-block-site-title a { text-decoration: none; }
.lg-header .wp-block-navigation a { text-decoration: none; padding-bottom: 6px; border-bottom: 2px solid transparent; transition: border-color .2s; }
.lg-header .wp-block-navigation a:hover,
.lg-header .wp-block-navigation a:focus,
.lg-header .wp-block-navigation a[aria-current="page"],
.lg-header .wp-block-navigation .current-menu-item a { border-bottom-color: var(--wp--preset--color--rose); text-decoration: none; font-weight: 700; }
.lg-lieu { display: flex; align-items: center; gap: .4em; }
.lg-lieu::before { content: ""; width: 12px; height: 16px; background: var(--wp--preset--color--rose); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0zm0 17a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0zm0 17a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") center/contain no-repeat; }

.lg-hero { overflow: hidden; }
.lg-hero.wp-block-cover, .lg-hero .wp-block-cover__inner-container { color: var(--wp--preset--color--texte); }
.lg-hero :is(h1, h2, h3):not(.has-text-color) { color: var(--wp--preset--color--vert); }
.lg-hero .lg-hero-lisa .wp-block-image { margin: 0; }
.lg-hero .lg-hero-lisa img { display: block; width: auto; max-width: 100%; max-height: 600px; margin: 0 auto; }
.lg-filet { width: 140px; height: 1px; background: var(--wp--preset--color--rose); border: 0; margin-left: 0; }

.lg-titre-filets { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.lg-titre-filets::before,
.lg-titre-filets::after { content: ""; flex: 0 1 200px; height: 1px; background: currentColor; opacity: .45; }
.lg-titre-filets.has-rose-color::before,
.lg-titre-filets.has-rose-color::after { background: var(--wp--preset--color--rose); opacity: 1; }

.lg-cours .wp-block-column + .wp-block-column { border-left: 1px solid var(--wp--preset--color--rose-clair); }
.lg-cours .wp-block-image img { height: 84px; width: auto; }

.lg-parcours { position: relative; overflow: hidden; }
.lg-parcours::after { content: ""; position: absolute; right: -40px; top: 50%; width: 200px; height: 200px; transform: translateY(-50%); border-radius: 50%; background: url("/wp-content/uploads/2026/11/balle-golf-gros-plan.jpg") 50% 62%/240% auto; opacity: .9; pointer-events: none; }
.lg-parcours > * { position: relative; z-index: 1; }
.lg-parcours .lg-sep-v { border-left: 1px solid rgba(255,255,255,.35); }

.lg-contact { overflow: hidden; }
.lg-contact .wp-block-columns { margin: 0; }
.lg-contact .lg-contact-photo { filter: drop-shadow(3px 0 0 var(--wp--preset--color--rose)); flex-basis: 50% !important; }
.lg-contact .lg-contact-photo .wp-block-image { height: 100%; margin: 0; }
.lg-contact .lg-contact-photo img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 20% 60%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H42C60 0 70 32 78 54S92 100 100 100H0Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H42C60 0 70 32 78 54S92 100 100 100H0Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; }
.lg-contact .wp-block-image, .lg-parcours .wp-block-image { flex-shrink: 0; }
.lg-contact .wp-block-column:last-child > * { max-width: 560px; }
.lg-contact .lg-contact-texte { border-left: 1px solid var(--wp--preset--color--rose); padding-left: 1.25rem; }

.wp-block-button__link { letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 781px) {
	.lg-header .lg-brand-sep { display: none; }
	.lg-cours .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--wp--preset--color--rose-clair); padding-top: 1.5rem; }
	.lg-parcours::after { width: 120px; height: 120px; right: -50px; opacity: .35; }
	.lg-parcours .lg-sep-v { border-left: 0; }
	.lg-contact .lg-contact-photo img { min-height: 260px; -webkit-mask: none; mask: none; }
	.lg-hero .lg-hero-lisa { order: 2; }
	.lg-hero .lg-hero-lisa img { max-height: 420px; }
	.lg-titre-filets::before, .lg-titre-filets::after { flex-basis: 40px; }
}

.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.lg-hero .wp-block-columns, .lg-hero .lg-hero-lisa, .lg-hero .lg-hero-lisa figure { margin-block-end: 0; margin-bottom: 0; }
.lg-hero .lg-hero-lisa { align-self: flex-end; line-height: 0; }
.lg-hero.wp-block-cover { align-items: flex-end; }

.lg-carte { background: #fff; border: 1px solid var(--wp--preset--color--rose-clair); border-top: 3px solid var(--wp--preset--color--vert); padding: 1.75rem 2rem; box-shadow: 0 12px 30px -18px rgba(29, 68, 48, .35); }
.lg-carte .lg-carte-titre { font-family: var(--wp--preset--font-family--titre); font-style: italic; font-size: 1.7rem; line-height: 1.1; color: var(--wp--preset--color--vert); margin: 0 0 1rem; }
.lg-carte .lg-ico { display: flex; align-items: center; gap: .85rem; margin: .55rem 0; }
.lg-carte .lg-ico a { text-decoration: none; color: var(--wp--preset--color--texte); }
.lg-carte .lg-ico a:hover { color: var(--wp--preset--color--rose); }
.lg-carte .lg-ico::before { content: ""; flex: 0 0 34px; height: 34px; border-radius: 50%; background-color: var(--wp--preset--color--creme); background-position: center; background-repeat: no-repeat; background-size: 16px; }
.lg-carte .lg-ico-adresse::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0897a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.lg-carte .lg-ico-tel::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0897a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.lg-carte .lg-ico-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0897a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.lg-carte .wp-block-buttons { margin-top: 1.4rem; gap: .75rem; }
.lg-carte .wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid var(--wp--preset--color--vert); color: var(--wp--preset--color--vert); background: transparent; padding: calc(.9rem - 1px) calc(1.8rem - 1px); }
.lg-carte .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--vert); color: #fff; }
@media (max-width: 781px) { .lg-carte { padding: 1.25rem; } }
