/*
Theme Name: Ollie Segura
Theme URI: https://cabinet-segura.fr
Description: Thème enfant Ollie pour Cabinet Segura — Assurances et Avenir (courtier en assurance, Aude).
Author: BIZNET Création
Template: ollie
Version: 1.0.0
Requires at least: 6.5
License: GNU General Public License v3 or later
Text Domain: ollie-segura
*/

/* =========================================================
   Base
   ========================================================= */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--wp--preset--color--primary); color: #fff; }

/* Mot mis en valeur dans les titres : <em> doré */
h1 em, h2 em, h3 em, .sg-gold { font-style: italic; color: var(--wp--preset--color--primary-alt); }
.has-base-background-color h1 em, .has-base-background-color h2 em,
.has-tertiary-background-color h2 em, .has-primary-accent-background-color h2 em { color: var(--wp--preset--color--primary); }

/* Sur-titre type "— LE CABINET" */
.sg-eyebrow { display: inline-flex; align-items: center; gap: .6em; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.sg-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; display: inline-block; }
.sg-eyebrow.has-text-align-center { display: flex; justify-content: center; }
@media (max-width: 781px) { .sg-logo img { width: 120px !important; } .sg-header { padding-top: .6rem !important; padding-bottom: .6rem !important; } }

/* =========================================================
   Header
   ========================================================= */
.sg-topbar a { text-decoration: none; }
header.site-header { position: sticky; top: 0; z-index: 50; }
.admin-bar header.site-header { top: 32px; }
.site-topbar > *, .site-header > * { margin-block: 0 !important; }
.sg-header { transition: box-shadow .3s ease, padding .3s ease; }
@media (max-width: 900px) { .sg-topbar p:last-child { display: none; } }
@media (max-width: 599px) { .sg-hide-mobile { display: none !important; } }

/* Tablettes (600–1279 px) : menu hamburger au lieu du menu sur deux lignes */
@media (min-width: 600px) and (max-width: 1279px) {
	.sg-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.sg-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.sg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
	.sg-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; padding: 2rem 2.5rem; }
	.sg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
	.sg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.3rem; }
}
.sg-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--main); }
.sg-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(21,23,28,.35); }
.sg-header .wp-block-site-logo img, .sg-header .sg-logo img { transition: width .3s ease; }
.sg-header.is-scrolled .sg-logo img { width: 130px !important; }
.sg-header .wp-block-navigation-item__content { position: relative; padding: .35em 0; }
.sg-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--wp--preset--color--primary); transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.sg-header .wp-block-navigation-item__content:hover::after,
.sg-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }

/* =========================================================
   Boutons
   ========================================================= */
.wp-block-button__link { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(166,124,46,.65); }
.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--main) !important; }

/* =========================================================
   Cartes
   ========================================================= */
.sg-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.sg-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -28px rgba(21,23,28,.45); border-color: var(--wp--preset--color--primary) !important; }
.sg-num { font-variant-numeric: tabular-nums; }

/* Carte image avec zoom au survol */
.sg-zoom { overflow: hidden; }
.sg-zoom img, .sg-zoom .wp-block-cover__image-background { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.sg-zoom:hover img, .sg-zoom:hover .wp-block-cover__image-background { transform: scale(1.08); }
.sg-zoom .sg-arrow { transition: transform .35s ease; display: inline-block; }
.sg-zoom:hover .sg-arrow { transform: translateX(6px); }
.sg-zoom a { text-decoration: none; }
.sg-zoom a::after { content: ""; position: absolute; inset: 0; z-index: 2; } /* carte entièrement cliquable */

/* Liste à puces dorées */
.sg-check { list-style: none; padding-left: 0; }
.sg-check li { position: relative; padding-left: 2em; margin-bottom: .7em; }
.sg-check li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 1.25em; height: 1.25em; border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/60% no-repeat;
}

/* Badge flottant */
.sg-float { animation: sg-float 5s ease-in-out infinite; }
@keyframes sg-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Image décalée avec cadre doré */
.sg-frame { position: relative; }
.sg-frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--wp--preset--color--primary); border-radius: 18px; z-index: 0; }
.sg-frame > * { position: relative; z-index: 1; }

/* Étapes reliées */
.sg-steps { position: relative; }
@media (min-width: 782px) {
	.sg-steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
		background: repeating-linear-gradient(90deg, var(--wp--preset--color--primary) 0 8px, transparent 8px 16px); opacity: .5; }
}
.sg-step-num { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-inline: auto !important; position: relative; z-index: 1; }

/* Bandeau défilant */
.sg-marquee { overflow: hidden; white-space: nowrap; }
.sg-marquee .sg-marquee__track { display: inline-flex; animation: sg-marquee 38s linear infinite; }
.sg-marquee:hover .sg-marquee__track { animation-play-state: paused; }
@keyframes sg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Ken Burns sur les héros */
.sg-kenburns .wp-block-cover__image-background { animation: sg-kenburns 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes sg-kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* Halo doré décoratif */
.sg-glow { position: relative; isolation: isolate; overflow: hidden; }
.sg-glow::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
	background: radial-gradient(circle, rgba(212,175,90,.35), transparent 65%); z-index: -1; animation: sg-pulse 8s ease-in-out infinite; }
@keyframes sg-pulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.15); opacity: 1; } }

/* FAQ */
.sg-faq details { border-bottom: 1px solid var(--wp--preset--color--border-light); padding: 1.1em 0; }
.sg-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::after { content: "+"; color: var(--wp--preset--color--primary); font-size: 1.4em; line-height: 1; transition: transform .3s ease; }
.sg-faq details[open] summary::after { transform: rotate(45deg); }
.sg-faq details > *:not(summary) { margin-top: .8em; color: var(--wp--preset--color--secondary); }

/* Formulaire (maquette) */
.sg-form { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.sg-form .full { grid-column: 1 / -1; }
.sg-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.sg-form input, .sg-form select, .sg-form textarea { width: 100%; box-sizing: border-box; padding: .85rem 1rem; border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 10px; font: inherit; background: #fff; transition: border-color .2s, box-shadow .2s; }
.sg-form input:focus, .sg-form select:focus, .sg-form textarea:focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px rgba(166,124,46,.15); }
.sg-form button { justify-self: start; border: 0; cursor: pointer; padding: 1rem 1.8rem; border-radius: 999px; font: inherit; font-weight: 600;
	background: var(--wp--preset--color--primary); color: #fff; transition: transform .25s, background .25s; }
.sg-form button:hover { background: var(--wp--preset--color--main); transform: translateY(-2px); }
.sg-form .sg-note { font-size: .8rem; color: var(--wp--preset--color--secondary); }
@media (max-width: 640px) { .sg-form { grid-template-columns: 1fr; } }

/* Contact Form 7 */
.wpcf7 .sg-form .wpcf7-form-control-wrap { display: block; }
.sg-form input[type="checkbox"] { width: auto; margin: 0 .5em 0 0; accent-color: var(--wp--preset--color--primary); }
.sg-form .sg-consent { font-size: .82rem; color: var(--wp--preset--color--secondary); }
.sg-form .sg-consent .wpcf7-list-item { margin: 0; }
.sg-form input[type="submit"] { width: auto; border: 0; cursor: pointer; padding: 1rem 1.8rem; border-radius: 999px; font: inherit; font-weight: 600;
	background: var(--wp--preset--color--primary); color: #fff; transition: transform .25s, background .25s, opacity .25s; }
.sg-form input[type="submit"]:hover { background: var(--wp--preset--color--main); transform: translateY(-2px); }
.sg-form input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }
.wpcf7-not-valid { border-color: #c0392b !important; }
.wpcf7-not-valid-tip { font-size: .78rem; margin-top: .3rem; color: #c0392b; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 10px; font-size: .9rem; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary-accent); }

/* Footer */
.sg-footer a { text-decoration: none; transition: color .2s; }
.sg-footer h4 { font-family: var(--wp--preset--font-family--primary) !important; font-weight: 700; }
@media (min-width: 782px) { .sg-footer .wp-block-column:first-child { flex-basis: 30% !important; } .sg-footer .wp-block-column:last-child { flex-grow: 1.4; } }
.sg-footer a:hover { color: var(--wp--preset--color--primary-alt) !important; }

/* =========================================================
   Apparitions au scroll (actives seulement si JS chargé, jamais dans l'éditeur)
   ========================================================= */
.sg-js .sg-reveal, .sg-js .sg-reveal-left, .sg-js .sg-reveal-right, .sg-js .sg-reveal-zoom, .sg-js .sg-stagger > * {
	opacity: 0; transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
	transition-delay: var(--sg-delay, 0s);
}
.sg-js .sg-reveal { transform: translateY(40px); }
.sg-js .sg-reveal-left { transform: translateX(-60px); }
.sg-js .sg-reveal-right { transform: translateX(60px); }
.sg-js .sg-reveal-zoom { transform: scale(.92); }
.sg-js .sg-stagger > * { transform: translateY(36px); }
.sg-js .is-visible.sg-reveal, .sg-js .is-visible.sg-reveal-left, .sg-js .is-visible.sg-reveal-right,
.sg-js .is-visible.sg-reveal-zoom, .sg-js .sg-stagger.is-visible > * { opacity: 1; transform: none; }

/* Héros : entrée en cascade au chargement */
.sg-js .sg-hero-in > * { opacity: 0; transform: translateY(30px); animation: sg-in .9s cubic-bezier(.2,.7,.2,1) forwards; }
.sg-hero-in > *:nth-child(1) { animation-delay: .15s; } .sg-hero-in > *:nth-child(2) { animation-delay: .3s; }
.sg-hero-in > *:nth-child(3) { animation-delay: .45s; } .sg-hero-in > *:nth-child(4) { animation-delay: .6s; }
.sg-hero-in > *:nth-child(5) { animation-delay: .75s; } .sg-hero-in > *:nth-child(6) { animation-delay: .9s; }
@keyframes sg-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.sg-js .sg-reveal, .sg-js .sg-reveal-left, .sg-js .sg-reveal-right, .sg-js .sg-reveal-zoom, .sg-js .sg-stagger > *, .sg-js .sg-hero-in > * { opacity: 1; transform: none; }
}

.sg-footer ul { list-style: none; }
.sg-footer .sg-sep { border: 0; height: 1px; background: var(--wp--preset--color--border-dark); opacity: 1; margin: var(--wp--preset--spacing--large) 0 var(--wp--preset--spacing--medium) !important; max-width: none; }


/* =========================================================
   Icones au trait (masques SVG, couleur = currentColor du thème)
   Usage : paragraphe avec classes sg-ico + sg-ico-NOM
   ========================================================= */
.sg-ico { width: 58px; height: 58px; border-radius: 16px; background: var(--wp--preset--color--primary-accent); position: relative; font-size: 0 !important; line-height: 0 !important; color: transparent; margin-bottom: .4rem !important; flex-shrink: 0; transition: background-color .35s ease, transform .35s ease; }
.sg-ico::before { content: ""; position: absolute; inset: 15px; background: var(--wp--preset--color--primary); -webkit-mask: var(--sg-i) center / contain no-repeat; mask: var(--sg-i) center / contain no-repeat; transition: background-color .35s ease; }
.sg-card:hover .sg-ico { background: var(--wp--preset--color--primary); transform: rotate(-6deg); }
.sg-card:hover .sg-ico::before { background: #fff; }
.sg-ico.is-small { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 0 !important; }
.sg-ico.is-small::before { inset: 12px; }
.sg-ico-heart { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 12.6 12 20l-7.5-7.4A5 5 0 1 1 12 6a5 5 0 1 1 7.5 6.6Z'/%3E%3Cpath d='M3.8 12.5h3.7l1.5-2.8 2.8 5.3 1.6-2.5h2.8'/%3E%3C/svg%3E"); }
.sg-ico-shield { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v5.5c0 4.6 3.2 8.4 7.5 9.5 4.3-1.1 7.5-4.9 7.5-9.5V6Z'/%3E%3Cpath d='m8.8 12 2.2 2.2 4.2-4.4'/%3E%3C/svg%3E"); }
.sg-ico-home { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 10.5 12 4l8.5 6.5'/%3E%3Cpath d='M5.5 9v11h13V9'/%3E%3Ccircle cx='12' cy='13.3' r='1.9'/%3E%3Cpath d='M12 15.2V18'/%3E%3C/svg%3E"); }
.sg-ico-growth { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5h17'/%3E%3Cpath d='m4.5 15.5 5-5 3.5 3.5 6.5-6.5'/%3E%3Cpath d='M15 7.5h4.5V12'/%3E%3C/svg%3E"); }
.sg-ico-sunrise { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18.5h18'/%3E%3Cpath d='M7 18.5a5 5 0 0 1 10 0'/%3E%3Cpath d='M12 5v4M5.6 9.1l2 2M18.4 9.1l-2 2M3 14.5h2M19 14.5h2'/%3E%3C/svg%3E"); }
.sg-ico-car { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 17v-4.5l1.9-4.8a1.6 1.6 0 0 1 1.5-1h8.2a1.6 1.6 0 0 1 1.5 1l1.9 4.8V17Z'/%3E%3Cpath d='M4.5 12.5h15M6 17v2M18 17v2'/%3E%3Ccircle cx='8' cy='14.8' r='.6'/%3E%3Ccircle cx='16' cy='14.8' r='.6'/%3E%3C/svg%3E"); }
.sg-ico-receipt { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h12v17l-2-1.3-2 1.3-2-1.3-2 1.3-2-1.3-2 1.3Z'/%3E%3Cpath d='M9 8h6M9 11.5h6M9 15h3.5'/%3E%3C/svg%3E"); }
.sg-ico-scale { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M8 20h8M5 7h14'/%3E%3Cpath d='m5 7-2.5 6a2.5 2.5 0 0 0 5 0Z'/%3E%3Cpath d='m19 7-2.5 6a2.5 2.5 0 0 0 5 0Z'/%3E%3C/svg%3E"); }
.sg-ico-building { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5h17'/%3E%3Cpath d='M6 20.5v-15h8v15'/%3E%3Cpath d='M14 9.5h4v11'/%3E%3Cpath d='M8.5 9h3M8.5 12.5h3M8.5 16h3'/%3E%3C/svg%3E"); }
.sg-ico-users { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3'/%3E%3Cpath d='M3.5 19.5a5.5 5.5 0 0 1 11 0'/%3E%3Cpath d='M15.5 5.8a3 3 0 0 1 0 5.4M17 14.2a5.5 5.5 0 0 1 3.5 5.3'/%3E%3C/svg%3E"); }
.sg-ico-briefcase { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='7.5' width='17' height='12' rx='2'/%3E%3Cpath d='M9 7.5V6a1.5 1.5 0 0 1 1.5-1.5h3A1.5 1.5 0 0 1 15 6v1.5M3.5 12.5h17M11 12.5v1.5h2v-1.5'/%3E%3C/svg%3E"); }
.sg-ico-truck { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6.5h10v10h-10Z'/%3E%3Cpath d='M13.5 10h4l3 3v3.5h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.7'/%3E%3Ccircle cx='17' cy='17.5' r='1.7'/%3E%3C/svg%3E"); }
.sg-ico-phone { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5h3.2l1.6 4-2 1.3a10 10 0 0 0 5.4 5.4l1.3-2 4 1.6V18a1.5 1.5 0 0 1-1.6 1.5A14.5 14.5 0 0 1 3.5 6.1 1.5 1.5 0 0 1 5 4.5Z'/%3E%3C/svg%3E"); }
.sg-ico-mail { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.sg-ico-pin { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.8-6.5-11a6.5 6.5 0 0 1 13 0c0 5.2-6.5 11-6.5 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }
.sg-ico-route { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='6' r='2'/%3E%3Cpath d='M8 18h7.5a3 3 0 0 0 0-6h-7a3 3 0 0 1 0-6H16'/%3E%3C/svg%3E"); }
.sg-ico-chat { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 5.5h15v10h-8l-4.5 3.5v-3.5h-2.5Z'/%3E%3Cpath d='M8.5 9.5h7M8.5 12h4.5'/%3E%3C/svg%3E"); }

/* Liste de coordonnées avec petites icônes (footer) */
.sg-contact-list { list-style: none; padding-left: 0; margin-top: .4rem; }
.sg-contact-list li { position: relative; padding-left: 1.9em; margin-bottom: .65em; line-height: 1.5; }
.sg-contact-list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.15em; height: 1.15em; background: var(--wp--preset--color--primary-alt);
	-webkit-mask: var(--sg-i) center / contain no-repeat; mask: var(--sg-i) center / contain no-repeat; }
.sg-li-phone { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5h3.2l1.6 4-2 1.3a10 10 0 0 0 5.4 5.4l1.3-2 4 1.6V18a1.5 1.5 0 0 1-1.6 1.5A14.5 14.5 0 0 1 3.5 6.1 1.5 1.5 0 0 1 5 4.5Z'/%3E%3C/svg%3E"); }
.sg-li-mail { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='13' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E"); }
.sg-li-pin { --sg-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.8-6.5-11a6.5 6.5 0 0 1 13 0c0 5.2-6.5 11-6.5 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }

/* Menu : seule la ligne doree au survol (supprime le soulignement Ollie) */
.sg-header .wp-block-navigation a,
.sg-header .wp-block-navigation a:hover,
.sg-header .wp-block-navigation a:focus { text-decoration: none !important; }

/* Heros : titre SEO plus long -> colonne plus large, taille maitrisee */
.sg-hero-in > * { max-width: 780px !important; }
.sg-hero-in h1 { font-size: clamp(2.1rem, 3.9vw, 3.5rem); }

/* Liens sur fonds sombres : jamais foncé au survol */
:is(.has-night-gradient-background, .has-main-background-color, .has-primary-alt-accent-background-color, .wp-block-cover, .wp-block-media-text.has-base-color) a:not(.wp-element-button) { color: var(--wp--preset--color--primary-alt); text-decoration: none; transition: color .25s ease; }
:is(.has-night-gradient-background, .has-main-background-color, .has-primary-alt-accent-background-color, .wp-block-cover, .wp-block-media-text.has-base-color) a:not(.wp-element-button):hover,
:is(.has-night-gradient-background, .has-main-background-color, .has-primary-alt-accent-background-color, .wp-block-cover, .wp-block-media-text.has-base-color) a:not(.wp-element-button):focus { color: #fff; text-decoration: none; }
/* Titres-liens des cartes images : restent blancs */
.wp-block-cover .has-link-color.has-base-color a:not(.wp-element-button) { color: #fff; }
.wp-block-cover .has-link-color.has-base-color a:not(.wp-element-button):hover { color: var(--wp--preset--color--primary-alt); }

/* Menu principal : texte encre (desktop), blanc dans le menu mobile ouvert */
.sg-header .wp-block-navigation__responsive-container:not(.is-menu-open) a.wp-block-navigation-item__content,
.sg-header .wp-block-navigation__responsive-container:not(.is-menu-open) a.wp-block-navigation-item__content:hover { color: var(--wp--preset--color--main) !important; }
.sg-header .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content { color: #fff !important; }
.sg-header .wp-block-navigation__responsive-container.is-menu-open a.wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary-alt) !important; }

/* Bandeaux photo pleine largeur : marges laterales identiques au reste du site */
.wp-block-cover.alignfull { padding-left: var(--wp--style--root--padding-left, 1.5rem) !important; padding-right: var(--wp--style--root--padding-right, 1.5rem) !important; }

/* Menu mobile / tablette ouvert : logo blanc en haut + lien téléphone en bas */
.sg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: ""; display: block; width: 150px; aspect-ratio: 640 / 378; margin: 0 0 2.2rem;
	background: url("assets/images/logo-segura-blanc.png") left center / contain no-repeat;
}
.sg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::after {
	content: "07 79 52 69 22  ·  Sur rendez-vous"; display: block; margin-top: 2.5rem; padding-top: 1.4rem;
	border-top: 1px solid var(--wp--preset--color--border-dark); color: var(--wp--preset--color--primary-alt);
	font-size: .9rem; letter-spacing: .04em;
}
.sg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; }