/*
Theme Name: Studio Goelan — Communication
Theme URI: https://communication.studiogoelan.fr
Author: Studio Goelan
Author URI: https://studiogoelan.fr
Description: Thème Gutenberg sur mesure pour l'activité communication de Studio Goelan : sites vitrines, réseaux sociaux et supports éditoriaux pour structures engagées.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Version: 0.7.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studiogoelan-communication
*/

:root {
  --paper: #f8f5f0;
  --paper-warm: #f1e7dc;
  --peach: #efb181;
  --peach-bright: #f3bc90;
  --peach-soft: #f7d8c0;
  --ink: #090909;
  --ink-soft: #524b45;
  --line: rgba(9,9,9,.15);
  --line-light: rgba(248,245,240,.22);
  --header-h: 94px;
  --content: 1240px;
  --radius: 30px;
  --scroll-progress: 0%;
  --mx: 50vw;
  --my: 30vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: .34;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(35,25,20,.023) 32px),
    repeating-linear-gradient(91deg, transparent 0 89px, rgba(35,25,20,.016) 90px);
}
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(239,177,129,.035), transparent 38%, rgba(239,177,129,.025) 70%, transparent);
}
::selection { background: var(--peach); color: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wp-site-blocks, .wp-block-post-content, .wp-site-blocks > *, .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks { overflow: clip; }
.wp-block-post-content { min-height: 55vh; }

h1,h2,h3,h4,.sg-display {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
h1,h2,h3,h4,.sg-display,.sg-big-line {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
h1,h2,h3,h4 { max-width: 100%; }
.sg-hero-copy,
.sg-section-head > *,
.sg-value-grid > *,
.sg-page-hero-split > *,
.sg-about-grid > *,
.sg-contact-grid > *,
.sg-formulas > * { min-width: 0; }

/* Header flottant + progression de lecture */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: var(--header-h);
  background: rgba(248,245,240,.84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(120%);
  transition: min-height .35s cubic-bezier(.2,.8,.2,1), background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
body.sg-scrolled .sg-header {
  min-height: 76px;
  background: rgba(248,245,240,.94);
  border-color: rgba(9,9,9,.1);
  box-shadow: 0 16px 40px rgba(30,20,15,.06);
}
.sg-header-inner {
  width: min(calc(100% - 48px), var(--content));
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  transition: min-height .35s cubic-bezier(.2,.8,.2,1);
}
.sg-brand {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .25s ease, width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.sg-brand img { width: 100%; height: 100%; object-fit: contain; }
.sg-brand:hover { transform: rotate(4deg) scale(1.04); box-shadow: 0 12px 30px rgba(239,177,129,.22); }
body.sg-scrolled .sg-brand { width: 50px; height: 50px; }
.sg-nav { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.sg-nav .wp-block-navigation__container { gap: clamp(18px, 2.5vw, 38px); }
.sg-nav .wp-block-navigation-item__content { position: relative; padding: 11px 0; text-decoration: none; }
.sg-nav .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--peach);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.sg-nav .wp-block-navigation-item__content:hover::after,
.sg-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.sg-scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.sg-scroll-progress span {
  display: block;
  width: var(--scroll-progress);
  height: 100%;
  background: var(--peach);
  box-shadow: 0 0 14px rgba(239,177,129,.65);
  transition: width .06s linear;
}

.sg-main { overflow: hidden; }
.sg-shell { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.sg-eyebrow {
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sg-eyebrow::before { content: ""; display: inline-block; width: 36px; height: 2px; margin: 0 12px 3px 0; background: var(--peach); }

/* Hero */
.sg-hero {
  /* Le hero respire davantage que le reste du site : plus de place au message,
     le logo devient une signature et non un second bloc dominant. */
  width: min(calc(100% - 48px), 1480px);
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  align-items: center;
  gap: clamp(36px,4vw,64px);
  padding-block: clamp(72px,8vw,118px);
}
.sg-hero-copy { position: relative; z-index: 2; max-width: 1120px; }
.sg-kicker {
  margin: 0 0 34px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sg-kicker span { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border: 1px solid var(--ink); border-radius: 999px; }
.sg-kicker span:last-child { background: var(--ink); color: var(--paper); }
.sg-motto {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px,2.7vw,40px);
  line-height: 1.1;
  letter-spacing: -.035em;
  color: var(--ink-soft);
}
.sg-motto-inline { margin-bottom: 24px; color: var(--ink); }
.sg-hero h1 {
  margin: 0;
  max-width: 1080px;
  font-size: clamp(64px,6.1vw,104px);
  line-height: .94;
}
.sg-highlight { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.sg-highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.05em;
  right: -.04em;
  bottom: .02em;
  height: .42em;
  background: var(--peach);
  border-radius: 48% 55% 43% 52% / 48% 45% 55% 52%;
  transform: rotate(-1.4deg);
}
.sg-hero-lead { max-width: 860px; margin: 30px 0 0; font-size: clamp(18px,1.55vw,23px); line-height: 1.5; color: var(--ink-soft); }
.sg-hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.sg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 54px;
  padding: 13px 18px 13px 23px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .025em;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .22s ease, color .22s ease, box-shadow .22s ease;
}
.sg-btn::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  left: -130%;
  top: 50%;
  border-radius: 50%;
  background: var(--peach);
  transform: translateY(-50%);
  transition: left .45s cubic-bezier(.2,.8,.2,1);
}
.sg-btn span,.sg-btn i { position: relative; z-index: 1; font-style: normal; }
.sg-btn i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(248,245,240,.13); transition: transform .22s ease; }
.sg-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(9,9,9,.12); color: var(--ink); }
.sg-btn:hover::before { left: -10%; }
.sg-btn:hover i { transform: translate(2px,-2px); background: rgba(9,9,9,.09); }
.sg-btn.sg-btn-ghost { background: transparent; color: var(--ink); }
.sg-btn.sg-btn-ghost::before { background: var(--peach-soft); }
.sg-btn.sg-btn-ghost i { background: rgba(9,9,9,.07); }
.sg-btn.sg-btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.sg-btn.sg-btn-light::before { background: var(--peach); }


/* Boutons Gutenberg : mêmes effets, mais contenu et liens restent modifiables dans l'éditeur. */
.wp-block-button.sg-btn {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
  box-shadow: none;
}
.wp-block-button.sg-btn::before { display: none; }
.wp-block-button.sg-btn:hover { background: transparent; color: inherit; box-shadow: none; }
.wp-block-button.sg-btn .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 54px;
  padding: 13px 21px 13px 23px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .025em;
  text-decoration: none;
  box-shadow: none;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .22s ease, color .22s ease, box-shadow .22s ease;
}
.wp-block-button.sg-btn .wp-block-button__link span { font-size: 18px; line-height: 1; transition: transform .2s ease; }
.wp-block-button.sg-btn .wp-block-button__link:hover { transform: translateY(-3px); background: var(--peach); color: var(--ink); box-shadow: 0 14px 34px rgba(9,9,9,.12); }
.wp-block-button.sg-btn .wp-block-button__link:hover span { transform: translate(2px,-2px); }
.wp-block-button.sg-btn-ghost .wp-block-button__link { background: transparent; color: var(--ink); }
.wp-block-button.sg-btn-ghost .wp-block-button__link:hover { background: var(--peach-soft); }
.wp-block-button.sg-btn-light .wp-block-button__link { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.wp-block-button.sg-btn-light .wp-block-button__link:hover { background: var(--peach); border-color: var(--peach); }
.sg-hero-proof { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sg-hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.sg-hero-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }

/* Visuel du hero : logo noir transparent, sans carte ni effet décoratif. */
.sg-hero-visual {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  align-self: center;
  padding-left: clamp(26px, 2.8vw, 42px);
  border-left: 1px solid var(--line);
}
.sg-hero-visual.sg-parallax { will-change: transform; }
.sg-hero-logo {
  width: clamp(135px, 10vw, 175px);
  margin: 0 auto;
}
.sg-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Sections */
.sg-section { padding-block: clamp(96px,11vw,164px); }
.sg-section-head { display: grid; grid-template-columns: .64fr 1.36fr; gap: 50px; align-items: start; margin-bottom: 66px; }
.sg-section-head h2 { margin: 0; max-width: 900px; font-size: clamp(48px,5.9vw,82px); line-height: .98; }
.sg-section-head p { margin: 18px 0 0; max-width: 680px; color: var(--ink-soft); }

.sg-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.sg-service {
  --card-x: 50%; --card-y: 50%;
  position: relative;
  min-height: 410px;
  padding: 29px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, background .3s ease;
}
.sg-service::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--card-x) var(--card-y), rgba(239,177,129,.3), transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
}
.sg-service::after { content: ""; position: absolute; width: 190px; aspect-ratio:1; border-radius: 50%; right: -74px; top: -74px; border: 1px solid rgba(9,9,9,.17); background: var(--peach-soft); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.sg-service:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(37,24,17,.09); }
.sg-service:hover::before { opacity: 1; }
.sg-service:hover::after { transform: scale(1.13) translate(-8px,8px); }
.sg-service-number { position: relative; z-index: 2; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.sg-service h3 { position: relative; z-index: 2; margin: 70px 0 16px; font-size: clamp(36px,3.6vw,50px); line-height: .98; }
.sg-service p { position: relative; z-index: 2; margin: 0; max-width: 33ch; color: var(--ink-soft); }
.sg-mini-link { position: relative; z-index: 2; display: inline-flex; justify-content: space-between; gap: 18px; width: 100%; margin-top: 38px; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.sg-mini-link span { transition: transform .2s ease; }
.sg-mini-link:hover span { transform: translate(3px,-3px); }

.sg-value { position: relative; background: var(--ink); color: var(--paper); }
.sg-value::before { content: ""; position: absolute; width: 420px; aspect-ratio: 1; right: -110px; top: 8%; border: 1px solid rgba(248,245,240,.12); border-radius: 50%; box-shadow: 0 0 0 90px rgba(248,245,240,.025), 0 0 0 180px rgba(248,245,240,.018); }
.sg-value-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px,8vw,120px); align-items: start; }
.sg-value-intro { position: sticky; top: calc(var(--header-h) + 48px); }
.sg-value h2 { margin: 0; max-width: 640px; font-size: clamp(56px,6.6vw,94px); line-height: .93; }
.sg-value-intro > p:not(.sg-eyebrow) { max-width: 610px; color: rgba(248,245,240,.69); }
.sg-text-link { display: inline-flex; gap: 18px; align-items: center; margin-top: 18px; color: var(--paper); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(248,245,240,.4); padding-bottom: 7px; }
.sg-text-link span { transition: transform .2s ease; }
.sg-text-link:hover span { transform: translateX(4px); }
.sg-value-list { border-top: 1px solid var(--line-light); }
.sg-value-item { display: grid; grid-template-columns: 46px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.sg-value-item > span { font-size: 11px; font-weight: 900; letter-spacing: .13em; color: var(--peach); }
.sg-value-item strong { display: block; font-family: Georgia,"Times New Roman",serif; font-size: clamp(28px,3vw,40px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.sg-value-item p { margin: 8px 0 0; color: rgba(248,245,240,.62); font-size: 15px; }

.sg-manifesto { background: var(--paper-warm); }
.sg-manifesto-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: 50px; }
.sg-big-line { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(58px,7.5vw,112px); line-height: .92; letter-spacing: -.055em; }
.sg-big-line + .sg-big-line { margin-top: 4px; }
.sg-big-line-offset { color: transparent; -webkit-text-stroke: 1px var(--ink); transform: translateX(5%); }
.sg-manifesto-note { max-width: 650px; margin: 46px 0 0 21%; color: var(--ink-soft); font-size: clamp(18px,1.6vw,22px); }

.sg-cta { position: relative; overflow: hidden; padding: clamp(90px,10vw,145px) 0; background: var(--peach); }
.sg-cta-orbit { position: absolute; width: 520px; aspect-ratio: 1; right: -100px; top: -170px; border: 1px solid rgba(9,9,9,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(9,9,9,.035), 0 0 0 140px rgba(9,9,9,.025); }
.sg-cta-inner { position: relative; z-index: 1; width: min(calc(100% - 48px), var(--content)); margin: auto; }
.sg-cta h2 { margin: 0; max-width: 1000px; font-size: clamp(60px,7.2vw,104px); line-height: .9; }
.sg-cta-actions { margin-top: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.sg-email-small { font-weight: 800; text-underline-offset: 5px; }

/* Pages */
.sg-page-hero { padding: clamp(90px,10vw,150px) 0 clamp(70px,8vw,110px); }
.sg-page-hero h1 { margin: 0; max-width: 1050px; font-size: clamp(62px,7.2vw,106px); line-height: .91; }
.sg-page-hero-split { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: clamp(40px,8vw,110px); }
.sg-page-lead { margin: 0 0 8px; max-width: 600px; font-size: clamp(19px,1.8vw,25px); color: var(--ink-soft); }

.sg-formulas { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; padding-bottom: clamp(100px,12vw,170px); }
.sg-formula {
  --card-x: 50%; --card-y: 50%;
  position: relative;
  min-height: 620px;
  border: 1px solid var(--ink);
  border-radius: 34px;
  padding: clamp(28px,4vw,48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
.sg-formula::after { content: ""; position: absolute; right: -100px; top: -100px; width: 260px; aspect-ratio: 1; border: 1px solid rgba(9,9,9,.18); border-radius: 50%; }
.sg-formula:hover { transform: translateY(-7px); box-shadow: 0 26px 60px rgba(37,24,17,.09); }
.sg-formula.featured { background: var(--peach); }
.sg-formula-label { position: relative; z-index: 2; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sg-formula h2 { position: relative; z-index: 2; margin: 50px 0 12px; max-width: 630px; font-size: clamp(42px,4.7vw,66px); line-height: .96; }
.sg-price { position: relative; z-index: 2; margin: 0 0 28px; font-family: Georgia,"Times New Roman",serif; font-size: 38px; }
.sg-price small { font-family: Arial,Helvetica,sans-serif; font-size: 13px; font-weight: 700; }
.sg-formula p { position: relative; z-index: 2; }
.sg-formula ul { position: relative; z-index: 2; margin: 26px 0 38px; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.sg-formula li { position: relative; padding: 8px 0 8px 24px; }
.sg-formula li::before { content: "↗"; position: absolute; left: 0; top: 8px; font-size: 12px; }
.sg-formula .sg-btn { margin-top: auto; align-self: flex-start; }
.sg-bespoke { grid-column: 1/-1; min-height: auto; display: grid; grid-template-columns: 1.35fr .65fr; align-items: end; gap: 50px; background: var(--ink); color: var(--paper); }
.sg-bespoke::after { border-color: rgba(248,245,240,.2); }
.sg-bespoke p { max-width: 840px; color: rgba(248,245,240,.7); }
.sg-bespoke .sg-btn { justify-self: end; }

/* À propos */
.sg-about-hero { padding-bottom: 70px; }
.sg-about-hero h1 { max-width: 980px; }
.sg-about-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(48px,8vw,120px); align-items: start; padding-bottom: clamp(110px,13vw,180px); }
.sg-about-portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.sg-about-portrait figure { position: relative; margin: 0; overflow: hidden; border-radius: 40px 40px 180px 40px; background: var(--peach); box-shadow: 0 28px 70px rgba(45,28,18,.12); }
.sg-about-portrait figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(9,9,9,.12); border-radius: inherit; pointer-events: none; }
.sg-about-portrait img { width: 100%; aspect-ratio: 2/3; object-fit: cover; object-position: center center; }
.sg-about-portrait figcaption { position: absolute; left: 18px; bottom: 18px; padding: 8px 12px; background: rgba(248,245,240,.88); backdrop-filter: blur(10px); border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sg-about-copy { max-width: 760px; padding-top: 28px; }
.sg-about-copy p { margin: 0 0 23px; color: var(--ink-soft); }
.sg-about-copy .sg-about-lead { margin-bottom: 40px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(27px,3.2vw,42px); line-height: 1.13; letter-spacing: -.03em; color: var(--ink); }
.sg-about-principle { margin: 56px 0; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.sg-about-principle span { display: block; margin-bottom: 14px; font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sg-about-principle strong { display: block; font-family: Georgia,"Times New Roman",serif; font-size: clamp(38px,4.7vw,64px); line-height: .98; font-weight: 400; letter-spacing: -.045em; }

/* Contact */
.sg-contact-stage { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding: clamp(80px,9vw,130px) 0; background: var(--peach); overflow: hidden; }
.sg-contact-stage .sg-eyebrow::before { background: var(--ink); }
.sg-contact-orbit { position: absolute; border: 1px solid rgba(9,9,9,.18); border-radius: 50%; pointer-events: none; }
.sg-contact-orbit-a { width: 560px; aspect-ratio: 1; left: -190px; bottom: -210px; box-shadow: 0 0 0 90px rgba(9,9,9,.025), 0 0 0 180px rgba(9,9,9,.018); }
.sg-contact-orbit-b { width: 360px; aspect-ratio: 1; right: -80px; top: -120px; }
.sg-contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(42px,8vw,110px); align-items: center; }
.sg-contact-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(66px,8vw,116px);
  line-height: .97;
  letter-spacing: -.045em;
}
.sg-contact-lead { max-width: 620px; margin: 30px 0; font-size: clamp(19px,1.8vw,25px); }
.sg-contact-email { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin-top: 12px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(24px,3.3vw,46px); line-height: 1.1; text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 8px; overflow-wrap: anywhere; }
.sg-contact-email i { font-style: normal; transition: transform .2s ease; }
.sg-contact-email:hover i { transform: translate(4px,-4px); }
.sg-contact-panel {
  --card-x: 50%; --card-y: 50%;
  position: relative;
  padding: clamp(28px,4vw,46px);
  border: 1px solid var(--ink);
  border-radius: 34px;
  background: rgba(248,245,240,.94);
  box-shadow: 0 30px 80px rgba(72,43,24,.14);
  overflow: hidden;
  transform-style: preserve-3d;
}
.sg-contact-panel::before { content: ""; position: absolute; width: 220px; aspect-ratio: 1; right: -100px; top: -100px; border-radius: 50%; background: var(--peach-soft); border: 1px solid rgba(9,9,9,.13); }
.sg-contact-panel-top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 18px; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sg-contact-panel h2 { position: relative; z-index: 2; margin: 48px 0 30px; font-size: clamp(34px,3.8vw,52px); line-height: 1; }
.sg-contact-steps { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sg-contact-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sg-contact-steps li > span { font-size: 10px; font-weight: 900; color: var(--ink-soft); }
.sg-contact-steps strong { display: block; font-size: 15px; }
.sg-contact-steps p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }
.sg-contact-topics { position: relative; z-index: 2; display: grid; gap: 8px; margin-top: 28px; }
.sg-contact-topics a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid var(--ink); border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 800; transition: background .2s ease, color .2s ease, transform .2s ease; }
.sg-contact-topics a:hover { background: var(--ink); color: var(--paper); transform: translateX(4px); }

/* Footer */
.sg-footer { border-top: 1px solid var(--ink); background: var(--paper); }
.sg-footer-inner { width: min(calc(100% - 48px),var(--content)); margin: auto; padding: 58px 0 30px; display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 40px; }
.sg-footer-brand { display: flex; gap: 15px; align-items: center; }
.sg-footer-brand img { width: 64px; }
.sg-footer h3 { margin: 0 0 4px; font-size: 29px; }
.sg-footer p { margin: 4px 0; }
.sg-footer-nav .wp-block-navigation__container { align-items: flex-start; gap: 8px; }
.sg-footer-nav .wp-block-navigation-item__content { padding: 2px 0; }
.sg-footer-small { grid-column: 1/-1; display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }



/* Ajustements pour la version Gutenberg éditable (v0.4+) */
.sg-hero-proof p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.sg-hero-proof p::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--peach); }
.sg-mini-link-row { width: 100%; max-width: none !important; margin: 0; }
.sg-value-item > .sg-value-index { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .13em; color: var(--peach); }
.sg-value-item h3 { margin: 0 0 4px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(28px,2.5vw,36px); line-height: 1.05; font-weight: 400; letter-spacing: -.035em; }
.sg-value-item p:not(.sg-value-index) { margin: 4px 0 0; }
.sg-about-principle > p { margin: 0 0 14px; color: var(--ink); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sg-about-principle h2 { margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(38px,4.7vw,64px); line-height: .98; font-weight: 400; letter-spacing: -.045em; }
.sg-contact-panel-top p { margin: 0; }
.sg-contact-steps { border-top: 1px solid var(--line); }
.sg-contact-step { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sg-contact-step-index { margin: 0; font-size: 10px; font-weight: 900; color: var(--ink-soft); }
.sg-contact-step h3 { margin: 0; font-family: Arial,Helvetica,sans-serif; font-size: 15px; font-weight: 800; letter-spacing: 0; }
.sg-contact-step p:not(.sg-contact-step-index) { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }
.sg-contact-topics p { margin: 0; }
.sg-contact-topics p > a { display: flex; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid var(--ink); border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 800; transition: background .2s ease, color .2s ease, transform .2s ease; }
.sg-contact-topics p > a:hover { background: var(--ink); color: var(--paper); transform: translateX(4px); }

/* Apparitions + interactions */
.sg-reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay,0ms); }
.sg-reveal.is-visible { opacity: 1; transform: none; }
.sg-parallax { will-change: transform; transition: transform .18s ease-out; }

@media (max-width: 700px) {
  .sg-contact-copy h1 {
    line-height: 1;
    letter-spacing: -.035em;
  }
}

@media (max-width: 980px) {
  :root { --header-h: 82px; }
  .sg-header-inner { width: min(calc(100% - 28px),var(--content)); }
  .sg-brand { width: 52px; height: 52px; }
  body.sg-scrolled .sg-brand { width: 46px; height: 46px; }
  .sg-nav .wp-block-navigation__responsive-container-open { display: flex; }
  .sg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .sg-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--paper); color: var(--ink); padding: 28px; }
  .sg-nav .wp-block-navigation__responsive-container-content { padding-top: 100px; }
  .sg-nav .wp-block-navigation__container { gap: 10px; align-items: flex-start; }
  .sg-nav .wp-block-navigation-item__content { font-family: Georgia,"Times New Roman",serif; font-size: 38px; font-weight: 400; letter-spacing: -.03em; }

  .sg-shell { width: min(calc(100% - 30px),var(--content)); }
  .sg-hero { width: min(calc(100% - 30px),var(--content)); grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .sg-hero-copy { max-width: 900px; }
  .sg-hero-visual { min-height: 170px; place-items: start; padding: 10px 0 0; border-left: 0; }
  .sg-hero-logo { width: clamp(125px, 22vw, 165px); margin: 0; }
  .sg-section-head,.sg-manifesto-grid { grid-template-columns: 1fr; gap: 18px; }
  .sg-services { grid-template-columns: 1fr; }
  .sg-service { min-height: 320px; }
  .sg-value-grid { grid-template-columns: 1fr; }
  .sg-value-intro { position: relative; top: auto; }
  .sg-page-hero-split { grid-template-columns: 1fr; align-items: start; }
  .sg-formulas { grid-template-columns: 1fr; }
  .sg-bespoke { grid-column: auto; grid-template-columns: 1fr; }
  .sg-bespoke .sg-btn { justify-self: start; }
  .sg-about-grid { grid-template-columns: 1fr; }
  .sg-about-portrait { position: relative; top: auto; max-width: 650px; }
  .sg-contact-grid { grid-template-columns: 1fr; }
  .sg-footer-inner { grid-template-columns: 1fr 1fr; }
  .sg-footer-inner > :first-child { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  body::after { display: none; }
  .sg-header-inner { width: calc(100% - 22px); }
  .sg-brand { width: 48px; height: 48px; }
  .sg-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 20px; }
  .sg-nav .wp-block-navigation__responsive-container-content { padding-top: 92px; }
  .sg-nav .wp-block-navigation-item__content { font-size: 34px; }
  .sg-shell,.sg-cta-inner,.sg-footer-inner { width: calc(100% - 28px); }

  .sg-hero { gap: 28px; padding-block: 52px 68px; }
  .sg-kicker { margin-bottom: 28px; flex-wrap: wrap; }
  .sg-motto { font-size: 26px; }
  .sg-hero h1 { font-size: clamp(52px,15vw,72px); }
  .sg-hero-lead { font-size: 18px; }
  .sg-hero-actions { flex-direction: column; align-items: stretch; }
  .sg-btn { width: 100%; }
  .sg-hero-proof { gap: 10px 18px; margin-top: 38px; }

  .sg-section { padding-block: 84px; }
  .sg-section-head { margin-bottom: 38px; }
  .sg-section-head h2,.sg-value h2 { font-size: 49px; }
  .sg-service { min-height: 320px; border-radius: 24px; padding: 24px; }
  .sg-service h3 { margin-top: 54px; }
  .sg-value::before { width: 280px; }
  .sg-value-item { grid-template-columns: 36px 1fr; }
  .sg-big-line { font-size: clamp(52px,15vw,74px); }
  .sg-big-line-offset { transform: none; }
  .sg-manifesto-note { margin-left: 0; }
  .sg-cta h2 { font-size: 56px; }

  .sg-page-hero { padding-top: 72px; }
  .sg-page-hero h1 { font-size: 56px; }
  .sg-formula { min-height: auto; border-radius: 24px; padding: 25px; }
  .sg-formula h2 { margin-top: 40px; font-size: 44px; }
  .sg-formula .sg-btn { width: 100%; }
  .sg-about-hero { padding-bottom: 50px; }
  .sg-about-portrait figure { border-radius: 28px 28px 120px 28px; }
  .sg-about-copy { padding-top: 0; }
  .sg-about-copy .sg-about-lead { font-size: 30px; }

  .sg-contact-stage { padding-block: 68px; }
  .sg-contact-copy h1 { font-size: 61px; }
  .sg-contact-email { font-size: 24px; }
  .sg-contact-panel { border-radius: 24px; padding: 24px; }
  .sg-contact-panel h2 { margin-top: 38px; }
  .sg-footer-inner { grid-template-columns: 1fr; }
  .sg-footer-inner > :first-child { grid-column: auto; }
  .sg-footer-small { flex-direction: column; }
}

@media (hover: none) {
  .sg-service:hover,.sg-formula:hover,.sg-btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .sg-reveal { opacity: 1; transform: none; }
  .sg-parallax { transform: none !important; }
}

@media (max-width: 740px) {
  .sg-hero-visual { min-height: 150px; place-items: start; padding-top: 0; }
  .sg-hero-logo { width: min(38vw, 145px); margin: 0; }
}

/* Blocs image éditables du header et du footer */
.sg-brand-image {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  margin: 0;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), transform .25s ease, filter .25s ease;
}
.sg-brand-image a { display: block; width: 100%; height: 100%; }
.sg-brand-image img { width: 100%; height: 100%; object-fit: contain; }
.sg-brand-image:hover { transform: rotate(4deg) scale(1.04); filter: drop-shadow(0 12px 20px rgba(239,177,129,.22)); }
body.sg-scrolled .sg-brand-image { width: 50px; height: 50px; }
.sg-footer-logo { width: 64px; margin: 0; flex: 0 0 auto; }
.sg-footer-logo img { width: 100%; height: auto; }
.sg-footer-small p { margin: 0; }
@media (max-width: 980px) {
  .sg-brand-image { width: 52px; height: 52px; }
  body.sg-scrolled .sg-brand-image { width: 46px; height: 46px; }
}

/* Note de montée en gamme dans la formule web */
.sg-formula-note {
  margin-top: 22px !important;
  padding: 16px 18px;
  border: 1px solid rgba(9,9,9,.16);
  border-radius: 16px;
  background: rgba(239,177,129,.14);
  color: var(--ink) !important;
  font-size: 14px;
  line-height: 1.5;
}
.sg-formula-note strong { font-weight: 900; }

/* v0.5.9 — hero épuré : le goéland seul, légèrement rapproché du texte. */
.sg-hero-visual {
  place-items: center start;
  padding-left: clamp(4px, .7vw, 10px);
}
.sg-hero-logo {
  width: clamp(130px, 9vw, 165px);
  margin: 0;
  transform: translateX(-10px);
}

/* Filet de sécurité pour les accueils issus des versions 0.5.0–0.5.6 :
   on masque définitivement les anciens textes de la carte et on ne garde
   que le goéland, même avant que la migration Gutenberg ait été exécutée. */
.sg-hero-visual .sg-editorial-poster,
.sg-hero-visual .sg-poster-main {
  display: contents;
}
.sg-hero-visual .sg-poster-meta,
.sg-hero-visual .sg-poster-message,
.sg-hero-visual .sg-poster-tags,
.sg-hero-visual .sg-poster-side {
  display: none !important;
}
.sg-hero-visual .sg-poster-goelan-image {
  width: clamp(130px, 9vw, 165px);
  margin: 0;
  transform: translateX(-10px);
}
.sg-hero-visual .sg-poster-goelan-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .sg-hero-visual {
    place-items: start;
    padding-left: 0;
  }
  .sg-hero-logo,
  .sg-hero-visual .sg-poster-goelan-image {
    width: clamp(120px, 21vw, 155px);
    transform: none;
  }
}

@media (max-width: 620px) {
  .sg-hero-logo,
  .sg-hero-visual .sg-poster-goelan-image {
    width: min(34vw, 135px);
  }
}



/* v0.6.0 — hero plus éditorial : le goéland n'est plus posé seul dans le vide.
   Il vient chevaucher un aplat pêche vertical, comme une signature imprimée.
   Aucun texte décoratif autour du logo, aucun cadre, aucune carte. */
.sg-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(26px, 3vw, 48px);
}
.sg-hero-visual {
  position: relative;
  min-height: 370px;
  padding: 0;
  border-left: 0;
  place-items: center;
  overflow: visible;
  isolation: isolate;
}
.sg-hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 0;
  width: clamp(112px, 8vw, 138px);
  height: 78%;
  background: var(--peach);
  transform: translateY(-50%);
}
.sg-hero-logo,
.sg-hero-visual .sg-poster-goelan-image {
  position: relative;
  z-index: 1;
  width: clamp(145px, 10.5vw, 188px);
  margin: 0;
  transform: translateX(-38px);
}
.sg-hero-logo img,
.sg-hero-visual .sg-poster-goelan-image img {
  filter: none;
}

@media (max-width: 980px) {
  .sg-hero {
    grid-template-columns: 1fr;
  }
  .sg-hero-visual {
    min-height: 170px;
    width: min(100%, 420px);
    place-items: center start;
    margin-top: 6px;
  }
  .sg-hero-visual::before {
    top: 50%;
    right: auto;
    left: 68px;
    width: 185px;
    height: 88px;
    transform: translateY(-50%);
  }
  .sg-hero-logo,
  .sg-hero-visual .sg-poster-goelan-image {
    width: clamp(118px, 20vw, 148px);
    transform: translateX(18px);
  }
}

@media (max-width: 620px) {
  .sg-hero-visual {
    min-height: 138px;
    width: 100%;
  }
  .sg-hero-visual::before {
    left: 54px;
    width: 160px;
    height: 74px;
  }
  .sg-hero-logo,
  .sg-hero-visual .sg-poster-goelan-image {
    width: min(31vw, 126px);
    transform: translateX(14px);
  }
}


/* v0.6.1 — retour du « signal » circulaire, avec une fonction claire :
   la promesse de marque vit dans le visuel au lieu d'être répétée à gauche. */
.sg-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(34px, 4vw, 66px);
}
.sg-hero-copy .sg-motto { display: none !important; }
.sg-hero-visual {
  position: relative;
  min-height: 460px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  perspective: 1100px;
  isolation: isolate;
}
.sg-hero-visual::before { content: none !important; }
.sg-signal-identity {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 28px 64px rgba(77,45,25,.10);
  isolation: isolate;
  transform: rotate(-2deg);
}
/* Deux orbites sobres autour du disque : elles donnent l'idée de diffusion,
   sans transformer le visuel en illustration gadget. */
.sg-signal-identity::before,
.sg-signal-identity::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(9,9,9,.34);
  border-radius: 50%;
  pointer-events: none;
}
.sg-signal-identity::before {
  width: 116%;
  height: 76%;
  animation: sgIdentityOrbit 21s linear infinite;
}
.sg-signal-identity::after {
  width: 92%;
  height: 122%;
  border-color: rgba(9,9,9,.20);
  animation: sgIdentityOrbitReverse 27s linear infinite;
}
.sg-signal-thread {
  position: absolute;
  z-index: 1;
  left: -11%;
  right: -8%;
  top: 54%;
  height: 1px;
  background: rgba(9,9,9,.42);
  transform: rotate(-14deg);
  transform-origin: center;
  pointer-events: none;
}
.sg-signal-thread::before,
.sg-signal-thread::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ink);
}
.sg-signal-thread::before { left: 9%; }
.sg-signal-thread::after { right: 3%; }
.sg-signal-copy {
  position: relative;
  z-index: 3;
  width: 74%;
  margin: 0;
  color: var(--ink);
  text-align: left;
  transform: rotate(2deg);
}
.sg-signal-copy .sg-signal-small {
  display: block;
  margin-bottom: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(10px, .72vw, 12px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sg-signal-copy strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 3.2vw, 53px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 400;
}
.sg-signal-copy strong + strong { margin-top: 2px; }
.sg-signal-mark {
  position: absolute;
  z-index: 4;
  right: 13%;
  bottom: 12%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 7px rgba(248,245,240,.30);
}
@keyframes sgIdentityOrbit {
  from { transform: translate(-50%,-50%) rotate(18deg); }
  to   { transform: translate(-50%,-50%) rotate(378deg); }
}
@keyframes sgIdentityOrbitReverse {
  from { transform: translate(-50%,-50%) rotate(-22deg); }
  to   { transform: translate(-50%,-50%) rotate(-382deg); }
}
@media (hover:hover) and (pointer:fine) {
  .sg-hero-visual.sg-parallax .sg-signal-identity {
    transition: box-shadow .3s ease;
  }
  .sg-hero-visual.sg-parallax:hover .sg-signal-identity {
    box-shadow: 0 34px 76px rgba(77,45,25,.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sg-signal-identity::before,
  .sg-signal-identity::after { animation: none !important; }
}
@media (max-width: 980px) {
  .sg-hero { grid-template-columns: 1fr; }
  .sg-hero-visual {
    min-height: 330px;
    width: min(100%, 440px);
    margin-top: 8px;
    place-items: center start;
    padding-left: 28px;
  }
  .sg-signal-identity { width: min(72vw, 300px); }
  .sg-signal-copy strong { font-size: clamp(36px, 8vw, 48px); }
}
@media (max-width: 620px) {
  .sg-hero-visual {
    min-height: 285px;
    padding-left: 18px;
  }
  .sg-signal-identity { width: min(70vw, 260px); }
  .sg-signal-copy { width: 76%; }
  .sg-signal-copy strong { font-size: clamp(33px, 10vw, 43px); }
  .sg-signal-thread { left: -8%; right: -4%; }
}


/* v0.6.2 — le petit goéland rejoint le signal de marque, sans concurrencer la devise. */
.sg-signal-copy {
  position: absolute;
  left: 15%;
  top: 15%;
  z-index: 4;
  width: 70%;
  margin: 0;
  text-align: left;
  transform: rotate(1deg);
}
.sg-signal-copy strong {
  font-size: clamp(36px, 3vw, 49px);
  line-height: .91;
}
.sg-signal-bird {
  position: absolute;
  z-index: 4;
  right: 7.5%;
  bottom: 6.5%;
  width: 36%;
  max-width: 128px;
  margin: 0;
  line-height: 0;
  transform: rotate(2deg);
  transform-origin: 60% 60%;
}
.sg-signal-bird img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.sg-signal-mark {
  right: auto;
  left: 14%;
  bottom: 13%;
}
.sg-signal-thread {
  top: 57%;
  left: -9%;
  right: -7%;
}
@media (min-width: 1100px) {
  .sg-hero-copy {
    transform: translateY(-30px);
  }
}
@media (max-width: 980px) {
  .sg-hero-copy { transform: none; }
  .sg-signal-copy {
    left: 15%;
    top: 14%;
    width: 71%;
  }
  .sg-signal-bird {
    right: 7%;
    bottom: 7%;
    width: 35%;
    max-width: 108px;
  }
}
@media (max-width: 620px) {
  .sg-signal-copy {
    left: 14%;
    top: 13%;
    width: 72%;
  }
  .sg-signal-copy strong {
    font-size: clamp(31px, 9.5vw, 39px);
  }
  .sg-signal-bird {
    width: 34%;
    right: 7%;
    bottom: 7%;
    max-width: 90px;
  }
  .sg-signal-mark {
    left: 13%;
    bottom: 12%;
  }
}

/* v0.6.4 — signal recentré + hero desktop plus compact. */
.sg-signal-copy {
  left: 23%;
  top: 21%;
  width: 59%;
}
.sg-signal-copy strong {
  font-size: clamp(34px, 2.65vw, 45px);
  line-height: .92;
}
.sg-signal-bird {
  right: 15%;
  bottom: 14%;
  width: 30%;
  max-width: 106px;
  transform: rotate(1deg);
}
.sg-signal-mark {
  left: 20%;
  bottom: 18%;
}
.sg-signal-thread {
  top: 59%;
  left: -6%;
  right: -4%;
}

@media (min-width: 1100px) {
  .sg-hero {
    min-height: calc(100svh - var(--header-h) - 26px);
    padding-block: clamp(42px, 4.5vw, 64px);
    transform: translateY(-26px);
  }
  .sg-hero-copy {
    transform: translateY(-12px);
  }
  .sg-kicker { margin-bottom: 26px; }
  .sg-hero-lead { margin-top: 24px; }
  .sg-hero-actions { margin-top: 30px; }
  .sg-hero-proof {
    margin-top: 38px;
    padding-top: 20px;
  }
}

@media (max-width: 980px) {
  .sg-signal-copy {
    left: 21%;
    top: 19%;
    width: 61%;
  }
  .sg-signal-bird {
    right: 14%;
    bottom: 13%;
    width: 29%;
    max-width: 96px;
  }
  .sg-signal-mark {
    left: 19%;
    bottom: 17%;
  }
}

@media (max-width: 620px) {
  .sg-signal-copy {
    left: 20%;
    top: 18%;
    width: 62%;
  }
  .sg-signal-copy strong {
    font-size: clamp(29px, 8.7vw, 37px);
  }
  .sg-signal-bird {
    right: 13%;
    bottom: 12%;
    width: 30%;
    max-width: 82px;
  }
  .sg-signal-mark {
    left: 18%;
    bottom: 16%;
  }
}


/* ==========================================================================
   v0.6.5 — responsive mobile + navigation fiable
   ========================================================================== */

/* Empêche les orbites et grands titres de créer un scroll horizontal sur mobile. */
html, body { overflow-x: clip; }

/* Le burger WordPress doit rester visible jusqu'à la largeur tablette du thème,
   même si les styles de Core utilisent un breakpoint différent. */
@media (max-width: 980px) {
  :root { --header-h: 74px; }

  .sg-header {
    min-height: var(--header-h);
    background: rgba(248,245,240,.94);
    border-bottom-color: rgba(9,9,9,.08);
    box-shadow: 0 8px 28px rgba(35,25,20,.035);
  }
  body.sg-scrolled .sg-header { min-height: 68px; }
  .sg-header-inner {
    width: min(calc(100% - 24px), var(--content));
    gap: 14px;
  }
  .sg-nav { order: 1; display: flex; align-items: center; }
  .sg-brand-image,
  .sg-header .wp-block-site-logo { order: 2; margin-left: auto; }
  .sg-brand-image { width: 48px; height: 48px; }
  body.sg-scrolled .sg-brand-image { width: 44px; height: 44px; }

  .sg-nav .wp-block-navigation__responsive-container-open,
  .sg-mobile-menu-toggle {
    display: grid !important;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(9,9,9,.82);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .sg-nav .wp-block-navigation__responsive-container-open svg,
  .sg-nav .wp-block-navigation__responsive-container-close svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  .sg-nav .wp-block-navigation__responsive-container-open:focus-visible,
  .sg-nav .wp-block-navigation__responsive-container-close:focus-visible,
  .sg-mobile-menu-toggle:focus-visible,
  .sg-mobile-menu-close:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
  }

  .sg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .sg-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999;
    display: flex !important;
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
    padding: max(18px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 88% 82%, rgba(239,177,129,.32) 0 15%, transparent 15.3%),
      var(--paper);
    color: var(--ink);
    overflow-y: auto;
  }
  .sg-nav .wp-block-navigation__responsive-close,
  .sg-nav .wp-block-navigation__responsive-dialog {
    width: 100%;
    min-height: 100%;
  }
  .sg-nav .wp-block-navigation__responsive-dialog {
    display: flex;
    flex-direction: column;
  }
  .sg-nav .wp-block-navigation__responsive-container-close {
    position: absolute;
    top: max(18px, env(safe-area-inset-top));
    right: 20px;
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
  }
  .sg-nav .wp-block-navigation__responsive-container-content {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 100px 0 36px !important;
  }
  .sg-nav .wp-block-navigation__responsive-container-content > .wp-block-navigation__container,
  .sg-nav .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .sg-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .sg-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item:first-child {
    border-top: 1px solid var(--line);
  }
  .sg-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 16px 2px;
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(31px, 7vw, 42px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.035em;
  }
  .sg-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content::after {
    position: static;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-left: 16px;
    border-radius: 50%;
    background: var(--peach);
    transform: none;
  }

  body.sg-menu-open { overflow: hidden; }

  /* Hero : plus dense, lisible et centré sur petit écran. */
  .sg-hero {
    width: min(calc(100% - 28px), var(--content));
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 46px 0 66px;
    transform: none;
  }
  .sg-hero-copy { max-width: 760px; transform: none !important; }
  .sg-kicker { margin-bottom: 24px; }
  .sg-hero h1 {
    max-width: 760px;
    font-size: clamp(48px, 11.5vw, 72px);
    line-height: .95;
    letter-spacing: -.05em;
  }
  .sg-hero-lead {
    max-width: 670px;
    margin-top: 24px;
    font-size: clamp(17px, 2.4vw, 20px);
    line-height: 1.52;
  }
  .sg-hero-actions { margin-top: 28px; }
  .sg-hero-proof { margin-top: 34px; padding-top: 18px; gap: 10px 20px; }
  .sg-hero-visual {
    width: 100%;
    min-height: 300px;
    margin: 0;
    padding: 0;
    place-items: center;
  }
  .sg-signal-identity { width: min(68vw, 280px); }
  .sg-signal-copy { left: 21%; top: 18%; width: 60%; }
  .sg-signal-bird { right: 14%; bottom: 12%; width: 29%; max-width: 92px; }
  .sg-signal-mark { left: 18%; bottom: 16%; }

  /* Sections générales : moins de vide sur mobile/tablette. */
  .sg-section { padding-block: 82px; }
  .sg-section-head { gap: 14px; margin-bottom: 42px; }
  .sg-section-head h2,
  .sg-value h2 { font-size: clamp(44px, 8.5vw, 62px); line-height: .98; }
  .sg-service { min-height: 300px; padding: 26px; }
  .sg-service h3 { margin-top: 48px; }
  .sg-manifesto-note { margin-top: 34px; }
  .sg-cta { padding-block: 82px; }
  .sg-cta h2 { font-size: clamp(48px, 9vw, 66px); line-height: .94; }

  /* Pages intérieures */
  .sg-page-hero { padding: 64px 0 54px; }
  .sg-page-hero h1 { font-size: clamp(50px, 10vw, 70px); line-height: .95; }
  .sg-page-lead { font-size: 19px; }
  .sg-formulas { gap: 14px; padding-bottom: 96px; }
  .sg-formula { min-height: auto; padding: 28px; }
  .sg-formula h2 { margin-top: 38px; font-size: clamp(40px, 7vw, 54px); }
  .sg-about-grid { gap: 42px; padding-bottom: 100px; }
  .sg-about-portrait { max-width: 560px; margin-inline: auto; }
  .sg-about-copy { max-width: 720px; }
  .sg-contact-stage { min-height: auto; padding: 64px 0 76px; }
  .sg-contact-grid { gap: 42px; }
  .sg-contact-copy h1 { font-size: clamp(54px, 10vw, 76px); line-height: .98; }
  .sg-contact-panel { max-width: 680px; }

  .sg-footer-inner {
    padding: 46px 0 24px;
    gap: 30px 38px;
  }
  .sg-footer-small { margin-top: 8px; padding-top: 20px; }
}

@media (max-width: 620px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; line-height: 1.58; }
  .sg-header-inner { width: calc(100% - 20px); }
  .sg-brand-image { width: 44px; height: 44px; }
  body.sg-scrolled .sg-brand-image { width: 42px; height: 42px; }
  .sg-nav .wp-block-navigation__responsive-container-open,
  .sg-mobile-menu-toggle,
  .sg-nav .wp-block-navigation__responsive-container-close,
  .sg-mobile-menu-close { width: 44px; height: 44px; flex-basis: 44px; }
  .sg-nav .wp-block-navigation__responsive-container.is-menu-open { padding-inline: 16px; }
  .sg-nav .wp-block-navigation__responsive-container-close { right: 16px; }
  .sg-nav .wp-block-navigation__responsive-container-content { padding-top: 88px !important; }
  .sg-nav .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    padding-block: 14px;
    font-size: clamp(30px, 9vw, 38px);
  }

  .sg-shell,
  .sg-hero,
  .sg-cta-inner,
  .sg-footer-inner { width: calc(100% - 26px); }

  .sg-hero { gap: 28px; padding: 34px 0 58px; }
  .sg-kicker { gap: 7px; margin-bottom: 21px; }
  .sg-kicker span { min-height: 26px; padding: 4px 9px; font-size: 10px; }
  .sg-hero h1 {
    font-size: clamp(46px, 13.2vw, 58px);
    line-height: .96;
  }
  .sg-hero-lead { margin-top: 20px; font-size: 17px; }
  .sg-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .sg-hero-actions .wp-block-button,
  .sg-hero-actions .wp-block-button__link { width: 100%; }
  .wp-block-button.sg-btn .wp-block-button__link { min-height: 50px; padding: 11px 18px; }
  .sg-hero-proof {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
    margin-top: 28px;
    padding-top: 16px;
    font-size: 10.5px;
    line-height: 1.3;
  }
  .sg-hero-proof p:last-child { grid-column: 1 / -1; }
  .sg-hero-visual { min-height: 244px; }
  .sg-signal-identity { width: min(66vw, 232px); }
  .sg-signal-copy { left: 20%; top: 17%; width: 61%; }
  .sg-signal-copy .sg-signal-small { margin-bottom: 8px; font-size: 9px; }
  .sg-signal-copy strong { font-size: clamp(28px, 8vw, 34px); }
  .sg-signal-bird { right: 13%; bottom: 11%; width: 29%; max-width: 74px; }
  .sg-signal-thread { left: -4%; right: -2%; }
  .sg-signal-mark { left: 17%; bottom: 15%; }

  .sg-section { padding-block: 70px; }
  .sg-section-head { margin-bottom: 34px; }
  .sg-section-head h2,
  .sg-value h2 { font-size: clamp(42px, 12vw, 50px); }
  .sg-section-head p { margin-top: 12px; }
  .sg-service { min-height: 276px; padding: 22px; border-radius: 22px; }
  .sg-service::after { width: 150px; right: -66px; top: -66px; }
  .sg-service h3 { margin: 40px 0 14px; font-size: clamp(36px, 10vw, 44px); }
  .sg-mini-link { margin-top: 28px; }
  .sg-value-item { grid-template-columns: 30px 1fr; gap: 14px; padding: 22px 0; }
  .sg-value-item h3 { font-size: 30px; }
  .sg-big-line { font-size: clamp(46px, 13vw, 60px); line-height: .95; }
  .sg-manifesto-note { margin: 28px 0 0; font-size: 17px; }
  .sg-cta { padding-block: 70px; }
  .sg-cta h2 { font-size: clamp(46px, 13vw, 56px); }
  .sg-cta-actions { margin-top: 30px; }

  .sg-page-hero { padding: 52px 0 42px; }
  .sg-page-hero h1 { font-size: clamp(46px, 13vw, 56px); line-height: .97; }
  .sg-page-lead { font-size: 17px; }
  .sg-formulas { padding-bottom: 76px; }
  .sg-formula { padding: 22px; border-radius: 22px; }
  .sg-formula h2 { margin-top: 34px; font-size: clamp(38px, 11vw, 46px); }
  .sg-price { font-size: 34px; }
  .sg-formula ul { margin: 22px 0 30px; }
  .sg-bespoke { gap: 28px; }
  .sg-bespoke .wp-block-buttons,
  .sg-bespoke .wp-block-button,
  .sg-bespoke .wp-block-button__link { width: 100%; }

  .sg-about-hero { padding-bottom: 36px; }
  .sg-about-grid { gap: 32px; padding-bottom: 78px; }
  .sg-about-portrait figure { border-radius: 24px 24px 90px 24px; }
  .sg-about-portrait img { aspect-ratio: 4 / 5; object-position: center 32%; }
  .sg-about-copy .sg-about-lead { margin-bottom: 30px; font-size: clamp(26px, 8vw, 31px); line-height: 1.12; }
  .sg-about-copy p { margin-bottom: 19px; }

  .sg-contact-stage { padding: 52px 0 64px; }
  .sg-contact-grid { gap: 34px; }
  .sg-contact-copy h1 { font-size: clamp(49px, 14vw, 58px); line-height: 1; }
  .sg-contact-lead { margin: 22px 0; font-size: 17px; }
  .sg-contact-email { margin-top: 4px; font-size: clamp(18px, 5.3vw, 22px); gap: 8px; }
  .sg-contact-panel { padding: 20px; border-radius: 22px; }
  .sg-contact-panel h2 { margin: 34px 0 24px; font-size: clamp(32px, 9vw, 40px); }
  .sg-contact-step { grid-template-columns: 30px 1fr; gap: 12px; padding: 15px 0; }
  .sg-contact-topics { margin-top: 22px; }

  .sg-footer-inner { padding: 38px 0 22px; gap: 24px; }
  .sg-footer-brand { align-items: flex-start; }
  .sg-footer h3 { font-size: 26px; }
  .sg-footer-small { padding-top: 18px; margin-top: 2px; }
}

/* Fallback si une ancienne variante du header a été enregistrée sans le bouton
   responsive natif de WordPress. Le JS ne crée ce bouton que lorsqu'il manque. */
.sg-mobile-menu-toggle,
.sg-mobile-fallback-menu { display: none; }
@media (max-width: 980px) {
  .sg-mobile-fallback-menu.is-open {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    padding: max(18px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 88% 82%, rgba(239,177,129,.32) 0 15%, transparent 15.3%),
      var(--paper);
    overflow-y: auto;
  }
  .sg-mobile-fallback-menu .sg-mobile-menu-close {
    align-self: flex-end;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: transparent;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }
  .sg-mobile-fallback-menu .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
    gap: 0 !important;
  }
  .sg-mobile-fallback-menu .wp-block-navigation-item { border-bottom: 1px solid var(--line); }
  .sg-mobile-fallback-menu .wp-block-navigation-item:first-child { border-top: 1px solid var(--line); }
  .sg-mobile-fallback-menu .wp-block-navigation-item__content {
    display: flex;
    width: 100%;
    padding: 16px 2px;
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(31px, 7vw, 42px);
    line-height: 1.05;
    letter-spacing: -.035em;
    text-decoration: none;
  }
}


/* ==============================================================
   v0.6.6 — correctifs mobile issus des tests sur téléphone réel
   ============================================================== */

/* Sur le fond pêche, le filet de l'intertitre doit rester visible. */
.sg-cta .sg-eyebrow::before {
  background: var(--ink);
}

/* Donner un vrai temps de respiration entre le grand titre de l'approche
   et le paragraphe qui l'explique. */
.sg-value-intro > h2 + p {
  margin-top: clamp(28px, 3vw, 42px);
}

@media (max-width: 980px) {
  /* On ne dépend plus du panneau responsive natif du bloc Navigation :
     certaines versions enregistrées du template l'affichaient mal sur les
     pages intérieures (le seul mot « Accueil » apparaissait en grand).
     Le menu mobile dédié est construit par theme.js à partir des mêmes liens. */
  .sg-header .sg-nav,
  .sg-header .wp-block-navigation.sg-nav {
    display: none !important;
    visibility: hidden !important;
  }

  .sg-mobile-menu-toggle {
    order: 1;
    display: grid !important;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .sg-mobile-menu-toggle svg {
    display: block;
    width: 26px;
    height: 26px;
  }
  .sg-mobile-menu-toggle:focus-visible,
  .sg-mobile-menu-close:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
  }
  .sg-header-inner > .wp-block-site-logo,
  .sg-header-inner > .sg-brand-image,
  .sg-header-inner > .custom-logo-link {
    order: 2;
    margin-left: auto;
  }

  .sg-mobile-fallback-menu {
    display: none;
  }
  .sg-mobile-fallback-menu.is-open {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex !important;
    flex-direction: column;
    padding: max(20px, env(safe-area-inset-top)) 24px max(30px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 88% 85%, rgba(239,177,129,.28) 0 14%, transparent 14.4%),
      var(--paper);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sg-mobile-fallback-menu__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 52px;
  }
  .sg-mobile-fallback-menu__label {
    margin: 0;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .sg-mobile-fallback-menu .sg-mobile-menu-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }
  .sg-mobile-menu-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: clamp(52px, 10vh, 92px) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
  }
  .sg-mobile-menu-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  .sg-mobile-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
    padding: 20px 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 8.4vw, 46px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -.035em;
    text-decoration: none;
  }
  .sg-mobile-menu-list a::after {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--peach);
  }
  .sg-mobile-menu-list a[aria-current="page"]::after {
    background: var(--ink);
  }
  .sg-mobile-fallback-menu__foot {
    margin-top: auto;
    padding-top: 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  /* Le texte explicatif de la section noire était collé au titre sur mobile. */
  .sg-value-intro > h2 + p {
    margin-top: 30px;
  }
}

@media (max-width: 620px) {
  .sg-mobile-fallback-menu.is-open {
    padding-inline: 28px;
  }
  .sg-mobile-menu-list {
    margin-top: 56px;
  }
  .sg-mobile-menu-list a {
    min-height: 78px;
    padding-block: 19px;
    font-size: clamp(36px, 10.5vw, 44px);
  }
  .sg-value-intro > h2 + p {
    margin-top: 34px;
  }
}

@media (max-width: 620px) {
  /* Un peu plus d'air entre la note « Au-delà de 4 pages ? » et le bouton. */
  .sg-formula-note + .wp-block-buttons,
  .sg-formula > .wp-block-buttons {
    margin-top: 16px;
  }
}


/* ==============================================================
   v0.6.7 — navigation mobile indépendante et fiable
   Le header mobile ne dépend plus du bloc Navigation responsive de
   Gutenberg. Le menu desktop reste éditable dans l’Éditeur du site.
   ============================================================== */
.sg-mobile-site-header,
.sg-mobile-site-menu { display: none; }

@media (max-width: 980px) {
  /* Le header Gutenberg a plusieurs états responsive selon la version de
     WordPress et les template-parts enregistrés. Sur mobile on le retire
     complètement pour éviter le panneau fantôme « Accueil » et les doubles
     boutons burger. */
  .sg-header { display: none !important; }

  .sg-mobile-site-header {
    position: sticky;
    top: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-h);
    padding: 0 18px;
    background: rgba(248,245,240,.96);
    border-bottom: 1px solid rgba(9,9,9,.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .sg-mobile-site-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--scroll-progress);
    height: 2px;
    background: var(--peach);
    pointer-events: none;
  }
  body.admin-bar .sg-mobile-site-header { top: 32px; }

  .sg-mobile-site-toggle,
  .sg-mobile-site-close {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .sg-mobile-site-toggle svg,
  .sg-mobile-site-close svg {
    display: block;
    width: 27px;
    height: 27px;
    pointer-events: none;
  }
  .sg-mobile-site-toggle:focus-visible,
  .sg-mobile-site-close:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
  }

  .sg-mobile-site-logo {
    display: block;
    width: 52px;
    height: 52px;
    margin-left: auto;
  }
  .sg-mobile-site-logo .custom-logo-link,
  .sg-mobile-site-logo > a {
    display: block;
    width: 100%;
    height: 100%;
  }
  .sg-mobile-site-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .sg-mobile-site-menu {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 88% 88%, rgba(239,177,129,.27) 0 13.5%, transparent 13.8%),
      var(--paper);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sg-mobile-site-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s;
  }
  body.sg-menu-open { overflow: hidden !important; }

  .sg-mobile-site-menu__top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 52px;
  }
  .sg-mobile-site-close {
    border: 1px solid var(--ink);
    background: var(--paper);
  }

  .sg-mobile-site-nav {
    width: 100%;
    margin-top: clamp(44px, 8vh, 72px);
  }
  .sg-mobile-site-nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
  }
  .sg-mobile-site-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  .sg-mobile-site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 86px;
    padding: 23px 4px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 8.7vw, 46px);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: -.035em;
    text-decoration: none;
  }
  .sg-mobile-site-nav a::after {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--peach);
  }
  .sg-mobile-site-nav a[aria-current="page"]::after { background: var(--ink); }
  .sg-mobile-site-nav a:active { opacity: .58; }

  .sg-mobile-site-menu__foot {
    margin-top: auto;
    padding-top: 38px;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  /* Les anciens fallback JS/CSS sont neutralisés : un seul système mobile. */
  .sg-mobile-menu-toggle,
  .sg-mobile-fallback-menu,
  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close { display: none !important; }
}

@media (max-width: 782px) {
  body.admin-bar .sg-mobile-site-header { top: 46px; }
}

@media (max-width: 620px) {
  .sg-mobile-site-header {
    padding-inline: 14px;
  }
  .sg-mobile-site-logo { width: 46px; height: 46px; }
  .sg-mobile-site-menu {
    padding-inline: 28px;
  }
  .sg-mobile-site-nav { margin-top: 48px; }
  .sg-mobile-site-nav a {
    min-height: 82px;
    padding-block: 22px;
    font-size: clamp(36px, 10.2vw, 43px);
  }
}

/* ==============================================================
   v0.6.8 — menu mobile natif, identique sur toutes les pages
   Le composant est rendu dans wp_footer et placé en position fixe.
   <details>/<summary> assure l'ouverture même sans JavaScript.
   ============================================================== */
.sg-mobile-native-menu { display: none; }

@media (max-width: 980px) {
  /* Neutralise définitivement les deux anciens systèmes mobiles. */
  .sg-header,
  .sg-mobile-site-header,
  .sg-mobile-site-menu,
  .sg-mobile-menu-toggle,
  .sg-mobile-fallback-menu,
  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close {
    display: none !important;
  }

  body {
    padding-top: var(--header-h);
  }
  body.admin-bar { padding-top: calc(var(--header-h) + 32px); }
  body.sg-menu-open { overflow: hidden !important; }

  .sg-mobile-native-menu {
    display: block;
    position: relative;
    z-index: 10030;
  }

  .sg-mobile-native-summary {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10042;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    height: var(--header-h);
    margin: 0;
    padding: 0 18px;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    background: rgba(248,245,240,.96);
    border-bottom: 1px solid rgba(9,9,9,.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    -webkit-tap-highlight-color: transparent;
  }
  .sg-mobile-native-summary::-webkit-details-marker { display: none; }
  .sg-mobile-native-summary::marker { content: ""; }
  .sg-mobile-native-summary::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--scroll-progress);
    height: 2px;
    background: var(--peach);
    pointer-events: none;
  }
  body.admin-bar .sg-mobile-native-summary { top: 32px; }

  .sg-mobile-native-icon {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: border-color .18s ease, background .18s ease;
  }
  .sg-mobile-native-icon i {
    position: absolute;
    left: 13px;
    top: 50%;
    display: block;
    width: 22px;
    height: 1.5px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: center;
    transition: transform .22s ease, margin .22s ease;
  }
  .sg-mobile-native-icon i:first-child { margin-top: -4px; }
  .sg-mobile-native-icon i:last-child { margin-top: 4px; }

  .sg-mobile-native-logo {
    display: block;
    width: 52px;
    height: 52px;
    margin-left: auto;
  }
  .sg-mobile-native-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .sg-mobile-native-panel {
    position: fixed;
    inset: 0;
    z-index: 10038;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-height: 100dvh;
    padding: calc(var(--header-h) + clamp(36px, 7vh, 64px)) 28px max(26px, env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 88% 88%, rgba(239,177,129,.27) 0 13.5%, transparent 13.8%),
      var(--paper);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .sg-mobile-native-menu[open] .sg-mobile-native-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s;
  }

  /* Le même summary devient le bouton de fermeture, en haut à droite. */
  .sg-mobile-native-menu[open] .sg-mobile-native-summary {
    justify-content: flex-end;
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
  }
  .sg-mobile-native-menu[open] .sg-mobile-native-summary::after { display: none; }
  .sg-mobile-native-menu[open] .sg-mobile-native-logo { display: none; }
  .sg-mobile-native-menu[open] .sg-mobile-native-icon {
    border-color: var(--ink);
    background: var(--paper);
    pointer-events: auto;
  }
  .sg-mobile-native-menu[open] .sg-mobile-native-icon i:first-child {
    margin-top: 0;
    transform: rotate(45deg);
  }
  .sg-mobile-native-menu[open] .sg-mobile-native-icon i:last-child {
    margin-top: 0;
    transform: rotate(-45deg);
  }

  .sg-mobile-native-nav {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }
  .sg-mobile-native-nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
  }
  .sg-mobile-native-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  .sg-mobile-native-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 92px;
    padding: 25px 4px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 8.7vw, 46px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -.035em;
    text-decoration: none;
  }
  .sg-mobile-native-nav a::after {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--peach);
  }
  .sg-mobile-native-nav a[aria-current="page"]::after { background: var(--ink); }
  .sg-mobile-native-nav a:active { opacity: .58; }

  .sg-mobile-native-foot {
    width: 100%;
    max-width: 760px;
    margin: auto auto 0;
    padding-top: 42px;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
  }
}

@media (max-width: 782px) {
  body.admin-bar { padding-top: calc(var(--header-h) + 46px); }
  body.admin-bar .sg-mobile-native-summary { top: 46px; }
}

@media (max-width: 620px) {
  .sg-mobile-native-summary { padding-inline: 14px; }
  .sg-mobile-native-logo { width: 46px; height: 46px; }
  .sg-mobile-native-panel {
    padding-inline: 28px;
    padding-top: calc(var(--header-h) + 46px);
  }
  .sg-mobile-native-nav a {
    min-height: 88px;
    padding-block: 24px;
    font-size: clamp(37px, 10.2vw, 44px);
  }
}

/* ==============================================================
   v0.6.9 — MENU MOBILE REFAIT À ZÉRO
   Un seul composant, injecté via wp_body_open, sans dépendance à
   Gutenberg ni à JavaScript. Toutes les anciennes navigations
   mobiles restent neutralisées sous 981 px.
   ============================================================== */
.sgm-menu { display: none; }

@media (max-width: 980px) {
  /* Un seul header mobile. */
  .sg-header,
  .sg-mobile-site-header,
  .sg-mobile-site-menu,
  .sg-mobile-menu-toggle,
  .sg-mobile-fallback-menu,
  .sg-mobile-native-menu,
  .wp-block-navigation__responsive-container-open,
  .wp-block-navigation__responsive-container-close {
    display: none !important;
  }

  body { padding-top: var(--header-h); }
  body:has(.sgm-menu[open]) { overflow: hidden !important; }

  .sgm-menu {
    display: block;
    position: relative;
    z-index: 2147482000;
    margin: 0;
    padding: 0;
  }

  .sgm-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-h);
    margin: 0;
    padding: 0 18px;
    box-sizing: border-box;
    list-style: none;
    cursor: pointer;
    color: var(--ink);
    background: rgba(248,245,240,.96);
    border: 0;
    border-bottom: 1px solid rgba(9,9,9,.08);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    backdrop-filter: blur(16px) saturate(115%);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .sgm-bar::-webkit-details-marker { display: none; }
  .sgm-bar::marker { content: ""; }
  .sgm-bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    bottom: -1px;
    width: var(--scroll-progress);
    height: 2px;
    background: var(--peach);
    pointer-events: none;
  }

  .sgm-burger {
    position: relative;
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
  }
  .sgm-burger i {
    position: absolute;
    left: 13px;
    top: 50%;
    display: block;
    width: 22px;
    height: 1.5px;
    margin: 0;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform .2s ease, margin .2s ease;
  }
  .sgm-burger i:first-child { margin-top: -4px; }
  .sgm-burger i:last-child  { margin-top: 4px; }

  .sgm-logo {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    margin-left: auto;
  }
  .sgm-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .sgm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    box-sizing: border-box;
    width: 100%;
    height: 100dvh;
    background:
      radial-gradient(circle at 91% 91%, rgba(239,177,129,.22) 0 14%, transparent 14.3%),
      var(--paper);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility 0s linear .22s;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .sgm-menu[open] .sgm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility 0s;
  }

  .sgm-overlay-inner {
    display: flex;
    flex-direction: column;
    width: min(100%, 760px);
    min-height: 100%;
    margin: 0 auto;
    padding: calc(var(--header-h) + clamp(42px, 7vh, 68px)) 28px max(28px, env(safe-area-inset-bottom));
  }

  .sgm-label {
    margin: 0 0 22px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .sgm-nav ul {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
  }
  .sgm-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  .sgm-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 98px;
    padding: 27px 2px 26px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 9.1vw, 48px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .sgm-nav a:active { opacity: .55; }

  .sgm-dot {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: var(--peach);
  }
  .sgm-nav a[aria-current="page"] .sgm-dot { background: var(--ink); }

  .sgm-signature {
    margin: auto 0 0;
    padding-top: 46px;
    color: var(--ink-soft);
    font-size: 10px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  /* Ouvert : le burger devient une croix, seul en haut à droite. */
  .sgm-menu[open] .sgm-bar {
    justify-content: flex-end;
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .sgm-menu[open] .sgm-bar::after,
  .sgm-menu[open] .sgm-logo { display: none; }
  .sgm-menu[open] .sgm-burger {
    border-color: var(--ink);
    background: var(--paper);
  }
  .sgm-menu[open] .sgm-burger i:first-child {
    margin-top: 0;
    transform: rotate(45deg);
  }
  .sgm-menu[open] .sgm-burger i:last-child {
    margin-top: 0;
    transform: rotate(-45deg);
  }
}

@media (max-width: 782px) {
  body.admin-bar { padding-top: calc(var(--header-h) + 46px); }
  body.admin-bar .sgm-bar { top: 46px; }
  body.admin-bar .sgm-overlay { top: 46px; height: calc(100dvh - 46px); }
}

@media (min-width: 783px) and (max-width: 980px) {
  body.admin-bar { padding-top: calc(var(--header-h) + 32px); }
  body.admin-bar .sgm-bar { top: 32px; }
  body.admin-bar .sgm-overlay { top: 32px; height: calc(100dvh - 32px); }
}

@media (max-width: 620px) {
  :root { --header-h: 70px; }
  .sgm-bar { padding-inline: 14px; }
  .sgm-logo { width: 46px; height: 46px; flex-basis: 46px; }
  .sgm-overlay-inner {
    padding-inline: 28px;
    padding-top: calc(var(--header-h) + 42px);
  }
  .sgm-nav a {
    min-height: 94px;
    padding-block: 26px;
    font-size: clamp(38px, 10.5vw, 45px);
  }
}


/* =========================================================
   Carte de visite numérique — /carte/
   Page volontairement hors navigation et pensée mobile-first.
   ========================================================= */
.sg-business-card-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(239,177,129,.24) 0 13%, transparent 13.2%),
    linear-gradient(135deg, #f8f5f0 0%, #f4eee7 100%);
}
.sg-business-card-page::before,
.sg-business-card-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(9,9,9,.16);
  border-radius: 50%;
  width: min(52vw, 720px);
  aspect-ratio: 1.8 / 1;
  right: -11vw;
  top: -6vw;
  transform: rotate(-14deg);
}
.sg-business-card-page::after {
  width: min(44vw, 600px);
  right: -4vw;
  top: 4vw;
  transform: rotate(18deg);
  opacity: .55;
}
.sg-vcard-shell {
  width: min(100%, 1080px);
  position: relative;
  z-index: 2;
}
.sg-vcard-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(9,9,9,.18);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.sg-vcard-card {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  min-height: 610px;
  background: rgba(248,245,240,.90);
  border: 1px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(46,31,20,.10);
  backdrop-filter: blur(8px);
}
.sg-vcard-visual {
  position: relative;
  min-height: 100%;
  background: var(--peach);
  overflow: hidden;
}
.sg-vcard-visual::before {
  content: "";
  position: absolute;
  width: 92%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(9,9,9,.25);
  border-radius: 50%;
  left: -38%;
  top: -18%;
}
.sg-vcard-photo {
  position: absolute;
  inset: 0;
  margin: 0;
}
.sg-vcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(.86) contrast(.98);
}
.sg-vcard-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 74px);
  min-width: 0;
}
.sg-vcard-kicker {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sg-vcard-name {
  margin: 0;
  max-width: 8ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: .88;
  letter-spacing: -.065em;
  font-weight: 400;
  text-wrap: balance;
}
.sg-vcard-role {
  margin: 26px 0 0;
  max-width: 520px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.sg-vcard-intro {
  margin: 22px 0 0;
  max-width: 610px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}
.sg-vcard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.sg-vcard-actions .wp-block-button { margin: 0; }
.sg-vcard-actions .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.sg-vcard-actions .sg-vcard-secondary .wp-block-button__link {
  background: transparent;
  color: var(--ink);
}
.sg-vcard-actions .wp-block-button__link:hover {
  transform: translateY(-2px);
}
.sg-vcard-services {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(9,9,9,.16);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sg-vcard-services span::before {
  content: "•";
  margin-right: 8px;
  color: var(--peach);
}
.sg-vcard-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 4px 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.sg-vcard-bottom a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .sg-business-card-page {
    min-height: 100svh;
    align-items: start;
    padding: 18px 14px 24px;
    overflow: hidden;
  }
  .sg-business-card-page::before {
    width: 95vw;
    right: -48vw;
    top: -8vw;
  }
  .sg-business-card-page::after { display: none; }
  .sg-vcard-meta {
    padding: 4px 2px 11px;
    font-size: 9px;
    letter-spacing: .16em;
  }
  .sg-vcard-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 26px;
  }
  .sg-vcard-visual {
    min-height: clamp(270px, 54svh, 420px);
  }
  .sg-vcard-photo img { object-position: center 28%; }
  .sg-vcard-content { padding: 29px 23px 26px; }
  .sg-vcard-kicker { margin-bottom: 16px; font-size: 10px; }
  .sg-vcard-name {
    max-width: none;
    font-size: clamp(52px, 16vw, 74px);
    line-height: .91;
  }
  .sg-vcard-role {
    margin-top: 18px;
    font-size: clamp(25px, 7.4vw, 32px);
  }
  .sg-vcard-intro { margin-top: 15px; font-size: 15px; line-height: 1.48; }
  .sg-vcard-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
  .sg-vcard-actions .wp-block-button,
  .sg-vcard-actions .wp-block-button__link { width: 100%; }
  .sg-vcard-actions .wp-block-button__link { min-height: 50px; }
  .sg-vcard-services { margin-top: 25px; padding-top: 16px; gap: 6px 12px; font-size: 9px; }
  .sg-vcard-bottom {
    flex-direction: column;
    gap: 3px;
    padding: 11px 2px 0;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sg-business-card-page::before { animation: sgVcardOrbit 18s linear infinite; }
}
@keyframes sgVcardOrbit {
  from { transform: rotate(-14deg); }
  to { transform: rotate(346deg); }
}

/* La carte prend tout l'écran même si WordPress applique un layout contraint au post-content. */
body:has(.sg-business-card-page) .wp-block-post-content {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
}
body:has(.sg-business-card-page) .wp-site-blocks {
  overflow: visible;
}
body:has(.sg-business-card-page)::before,
body:has(.sg-business-card-page)::after {
  display: none;
}
.sg-business-card-page {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
}

/* ==============================================================
   v0.7.2 — audit final : accessibilité, robustesse et finitions
   ============================================================== */

/* Focus clavier visible sans modifier l'esthétique au clic/tactile. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 4px;
  border-radius: 6px;
}
.sg-btn .wp-block-button__link:focus-visible,
.sg-contact-topics a:focus-visible,
.sg-vcard-actions .wp-block-button__link:focus-visible {
  outline-color: var(--ink);
  outline-offset: 3px;
}
.sgm-bar:focus-visible { outline: 0; }
.sgm-bar:focus-visible .sgm-burger {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Les adresses et liens longs ne doivent jamais provoquer de débordement. */
.sg-footer a,
.sg-email-small a,
.sg-vcard-bottom a { overflow-wrap: anywhere; }

/* Le footer reste confortable au doigt sans devenir trop haut. */
@media (max-width: 620px) {
  .sg-footer-nav .wp-block-navigation-item__content,
  .sg-footer-nav a { display: inline-block; padding: 5px 0; }
  .sg-footer-inner a { text-underline-offset: 3px; }
  .sg-contact-topics p > a { min-height: 48px; align-items: center; }
  .sg-vcard-actions .wp-block-button__link { min-height: 52px; }
}

/* Le menu reste natif ; JS ne fait qu'améliorer les états clavier/historique. */
.sgm-menu[open] .sgm-nav a:focus-visible {
  outline-color: var(--ink);
  outline-offset: -3px;
}

/* Page 404 : cohérente avec le reste du thème, sans effet gratuit. */
.sg-404 {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  padding: clamp(70px, 9vw, 130px) 0;
}
.sg-404-inner { width: min(calc(100% - 48px), 900px); margin: auto; }
.sg-404-code {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sg-404 h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: .93;
}
.sg-404 p:not(.sg-404-code) {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 22px);
}
.sg-404-actions { margin-top: 34px; }
@media (max-width: 620px) {
  .sg-404 { padding: 54px 0 72px; }
  .sg-404-inner { width: calc(100% - 28px); }
  .sg-404 h1 { font-size: clamp(48px, 13vw, 58px); }
  .sg-404-actions .wp-block-button { width: 100%; }
  .sg-404-actions .wp-block-button__link { width: 100%; }
}


/* ==============================================================
   v0.7.5 — Accueil plus compact + carrousel « Derniers projets »
   Les compositions PNG restent transparentes et les projets demeurent
   des blocs Gutenberg éditables.
   ============================================================== */

/* Le hero n'a plus besoin de forcer une hauteur d'écran complète : cela évite
   un grand vide avant la première section, tout en conservant le signal animé. */
@media (min-width: 981px) {
  .sg-main > .sg-hero {
    min-height: auto;
    padding: clamp(48px, 4.5vw, 66px) 0 clamp(56px, 5vw, 76px);
    transform: none;
  }
  .sg-main > .sg-hero .sg-hero-copy { transform: none; }
}

/* Resserre uniquement les jonctions concernées sur l'accueil. */
.sg-services-section {
  padding-top: clamp(58px, 5.5vw, 82px);
  padding-bottom: clamp(40px, 4vw, 58px);
}

.sg-projects-section {
  padding: clamp(28px, 3vw, 44px) 0 clamp(84px, 8vw, 118px);
  background: var(--paper);
}
.sg-projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(26px, 3.2vw, 42px);
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.sg-projects-head h2 {
  margin: 0;
  font-size: clamp(52px, 6vw, 82px);
  line-height: .94;
}
.sg-projects-controls {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 11px;
  padding-bottom: 3px;
}
.sg-projects-controls button {
  appearance: none;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.sg-projects-controls button:hover:not(:disabled) { transform: translateY(-2px); }
.sg-projects-controls button:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}
.sg-projects-controls button:disabled {
  opacity: .28;
  cursor: default;
}
.sg-projects-count {
  min-width: 54px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: center;
}

/* Le rail est le carrousel : une grande composition à la fois et un aperçu
   du projet suivant sur desktop. Aucun fond n'est ajouté aux PNG. */
.sg-projects-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 34px);
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.sg-projects-track::-webkit-scrollbar { display: none; }
.sg-projects-track:focus-visible {
  outline: 1px solid var(--peach);
  outline-offset: 8px;
}
.sg-project {
  flex: 0 0 80%;
  min-width: 0;
  width: auto;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.sg-project-image {
  margin: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.sg-project-image a {
  display: block;
  width: 100%;
  text-decoration: none;
}
.sg-project-image img {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}
.sg-projects-carousel.sg-carousel-ready .sg-project-slide .sg-project-info {
  transition: opacity .2s ease;
}
.sg-projects-carousel.sg-carousel-ready .sg-project-slide:not(.is-active) .sg-project-info {
  opacity: 0;
  pointer-events: none;
}
.sg-project-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
}
.sg-project h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}
.sg-project h3 a { text-decoration: none; }
.sg-project h3 a:hover,
.sg-project h3 a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.sg-project-arrow {
  flex: 0 0 auto;
  margin: 0;
  line-height: 1;
}
.sg-project-arrow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease;
}
.sg-project-arrow a:hover { transform: translate(3px, -3px); }

@media (max-width: 980px) {
  .sg-hero { padding-bottom: 54px; }
  .sg-services-section {
    padding-top: 50px;
    padding-bottom: 38px;
  }
  .sg-projects-section {
    padding-top: 28px;
    padding-bottom: 88px;
  }
  .sg-projects-head { margin-bottom: 30px; }
  .sg-projects-head h2 { font-size: clamp(48px, 8vw, 64px); }
  .sg-projects-track { gap: 20px; }
  .sg-project { flex-basis: 88%; }
}

@media (max-width: 700px) {
  .sg-projects-head {
    display: block;
    margin-bottom: 24px;
    padding-top: 15px;
  }
  .sg-projects-head h2 {
    font-size: clamp(43px, 12.5vw, 54px);
    line-height: .96;
  }
  .sg-projects-controls {
    margin-top: 17px;
    padding-bottom: 0;
  }
  .sg-projects-track { gap: 16px; }
  .sg-project { flex-basis: 100%; }
  .sg-project-info {
    margin-top: 7px;
    padding-top: 11px;
  }
  .sg-project h3 { font-size: clamp(28px, 9vw, 35px); }
}

@media (max-width: 620px) {
  .sg-hero { padding-bottom: 44px; }
  .sg-services-section {
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .sg-projects-section {
    padding-top: 22px;
    padding-bottom: 72px;
  }
  .sg-projects-head { margin-bottom: 20px; }
  .sg-projects-controls button {
    width: 42px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-projects-track { scroll-behavior: auto; }
}

@media (hover: none) {
  .sg-project-arrow a:hover,
  .sg-projects-controls button:hover:not(:disabled) { transform: none; }
}
