/* Din's Factory — shared site parts: header + nav + phone menu, footer, status pill, social icons.
   Load after base.css. Markup is rendered by assets/site.js into <header id="head"> and <footer id="foot">. */
:root { --hh: 76px; }
html { scroll-behavior: smooth; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.script { display: block; font-family: var(--f-script); text-transform: none; font-size: 1.12em; line-height: 1.05; letter-spacing: 0; transform: rotate(-4deg); text-shadow: .04em .04em 0 var(--red-deep); }
.skip { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 12px 18px; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; min-height: 64px; display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); background: var(--red); color: var(--white); transition: box-shadow .35s var(--ease); }
.head.is-scrolled { box-shadow: 0 10px 30px -18px rgba(20,17,17,.55); }
.head__logo { --sh: 3px; flex: none; width: clamp(92px, 9vw, 126px); color: var(--white); }
.head__logo .logo { width: 100%; }
.nav { display: flex; align-items: center; gap: clamp(22px, 2.6vw, 40px); margin-left: auto; }
.nav a { position: relative; padding: 10px 0; font: 800 14px/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::after { transform: scaleX(1); height: 3px; }
.head__end { display: flex; align-items: center; gap: 10px; margin-left: clamp(18px, 2.4vw, 36px); }

/* Phone menu button: white disc, two bars that cross */
.burger { position: relative; display: none; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--white); color: var(--ink); transition: transform .45s var(--ease); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger:hover { transform: rotate(-10deg); }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
.burger:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* Phone menu overlay */
.menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: calc(var(--hh) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--red); color: var(--white); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; visibility: hidden; clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--hh) / 2)); transition: clip-path .6s var(--ease-io), visibility 0s .6s; }
.menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--hh) / 2)); transition: clip-path .7s var(--ease-io), visibility 0s; }
.menu__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.menu__pattern { position: absolute; inset: -30%; background: var(--red-deep); opacity: .35; rotate: -12deg; -webkit-mask: url(opt2/df-tile.svg) 0 0 / 180px auto repeat; mask: url(opt2/df-tile.svg) 0 0 / 180px auto repeat; pointer-events: none; }
.menu { isolation: isolate; }
.menu__nav { display: grid; }
.menu__nav a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.22); font: 400 clamp(44px, 13vw, 72px)/1 var(--f-display); text-transform: uppercase; text-shadow: .04em .04em 0 var(--red-deep); }
.menu__nav a[aria-current="page"] { color: var(--ink); text-shadow: none; }
.menu__nav .arr { position: relative; width: 46px; height: 46px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); overflow: hidden; display: grid; place-items: center; }
.menu__nav .arr svg { position: absolute; width: 18px; height: 18px; transition: transform .45s var(--ease); }
.menu__nav .arr svg + svg { transform: translateX(-34px); }
.menu__nav a:hover .arr svg:first-child, .menu__nav a:focus-visible .arr svg:first-child { transform: translateX(34px); }
.menu__nav a:hover .arr svg + svg, .menu__nav a:focus-visible .arr svg + svg { transform: translateX(0); }
.menu__info { display: grid; gap: 14px; font-size: 16px; line-height: 1.45; }
.menu__info .status { justify-self: start; }
.menu__info a.tel { font: 400 30px/1 var(--f-display); }
.menu .socials { margin-top: 6px; }
.menu-open { overflow: hidden; }

/* ---------- Status pill (live, Europe/Paris) ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px 9px 12px; border-radius: 999px; box-shadow: inset 0 0 0 2px currentColor; font: 700 14px/1 var(--f-body); white-space: nowrap; }
.status i { position: relative; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--dot, var(--red)); }
.status.is-open i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--dot, var(--red)); animation: ping 1.8s var(--ease) infinite; }
.status.is-closed i { background: currentColor; opacity: .55; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Social icons ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px 11px 14px; border-radius: 999px; border: 2px solid currentColor; font: 800 14px/1 var(--f-body); letter-spacing: .03em; text-transform: uppercase; transition: background-color .3s, color .3s, border-color .3s; }
.social svg { width: 22px; height: 22px; flex: none; transition: transform .45s var(--ease); }
.social:hover, .social:focus-visible { background: var(--white); color: var(--red); border-color: var(--white); }
.social:hover svg, .social:focus-visible svg { transform: rotate(-12deg) scale(1.08); }
.socials--icons .social { width: 48px; height: 48px; padding: 0; justify-content: center; }
.socials--icons .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.on-white .social:hover, .on-white .social:focus-visible { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Footer ---------- */
.foot { background: var(--red); color: var(--white); --dot: var(--white); }
.foot .checker { --c: var(--white); --s: 14px; }
.foot__top { display: grid; justify-items: center; gap: 24px; padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(44px, 5vw, 64px); text-align: center; }
.foot__logo { --sh: 6px; width: min(300px, 70vw); color: var(--white); }
.foot__logo .logo { width: 100%; }
.foot__line { font: 400 clamp(26px, 2.4vw, 34px)/1 var(--f-script); }
.foot__top .socials { justify-content: center; margin-top: 4px; }
.foot__grid { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 4vw, 52px) var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); border-top: 1px solid rgba(255,255,255,.28); }
.foot__col h2 { margin-bottom: 18px; font: 400 clamp(24px, 2vw, 30px)/1 var(--f-display); text-transform: uppercase; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__col li a, .foot__link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 600; font-size: 16px; }
.foot__col li a svg, .foot__link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.foot__col li a:hover svg, .foot__link:hover svg { transform: translateX(4px); }
.foot__col li a::after, .foot__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.foot__col li a:hover::after, .foot__link:hover::after { transform: scaleX(1); transform-origin: left; }
.foot__col li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot__hours { margin: 16px 0 0; display: grid; gap: 0; max-width: 320px; }
.foot__hours div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.28); font-size: 15px; }
.foot__hours div:first-child { border-top: 1px solid rgba(255,255,255,.28); }
.foot__hours dd { margin: 0; font-weight: 800; white-space: nowrap; }
.foot__addr { font-style: normal; font-size: 16px; line-height: 1.5; }
.foot__tel { display: inline-block; margin-top: 12px; font: 400 26px/1 var(--f-display); letter-spacing: .01em; }
.foot__col .foot__link { margin-top: 10px; }
.foot__bottom { max-width: 1180px; margin: 0 auto; padding: 22px var(--gutter) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; border-top: 1px solid rgba(255,255,255,.28); font-size: 14px; color: rgba(255,255,255,.82); }
.foot__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__bottom a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Bracketed title: the charter's « ( … ) » arcs around a big title ----------
   <h2 class="brk"><svg class="brk__arc brk__arc--l">…</svg><span class="brk__txt">Titre</span><svg class="brk__arc brk__arc--r">…</svg></h2>
   The arcs always span the whole text, even when it wraps onto two lines. Animated by DINS.brk() in site.js. */
.brk { position: relative; display: inline-block; padding: 0 calc(.36em + 10px); }
.brk__txt { display: block; }
.brk__arc { position: absolute; top: -.05em; height: calc(100% + .1em); width: auto; overflow: visible; color: var(--white); pointer-events: none; }
.brk__arc--l { left: 0; } .brk__arc--r { right: 0; }
.brk__arc path { fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; }
.brk__w { display: inline-block; white-space: nowrap; }
.brk__c { display: inline-block; }

/* ---------- Legal pages (mentions légales, confidentialité) ---------- */
.lg-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--hh) + clamp(44px, 7vw, 96px)) var(--gutter) clamp(48px, 6vw, 84px); text-align: center; }
.lg-hero__pattern { position: absolute; inset: -40%; z-index: -1; background: var(--red-deep); opacity: .42; rotate: -12deg; -webkit-mask: url(opt2/df-tile.svg) 0 0 / 230px auto repeat; mask: url(opt2/df-tile.svg) 0 0 / 230px auto repeat; }
.lg-hero h1 { max-width: 900px; margin: 0 auto; font: 400 clamp(46px, 8vw, 120px)/.9 var(--f-display); text-transform: uppercase; text-wrap: balance; text-shadow: .035em .035em 0 var(--red-deep); }
.lg-hero p { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.85); }
.lg { background: var(--white); color: var(--ink); padding: clamp(56px, 7vw, 100px) var(--gutter) clamp(80px, 10vw, 130px); }
.lg__in { max-width: 760px; margin: 0 auto; }
.lg h2 { margin-top: clamp(44px, 5vw, 60px); font: 400 clamp(28px, 3vw, 38px)/1 var(--f-display); text-transform: uppercase; color: var(--red); }
.lg h2:first-child { margin-top: 0; }
.lg h3 { margin-top: 26px; font-size: 18px; font-weight: 800; }
.lg p, .lg li { font-size: 17px; line-height: 1.65; color: rgba(20,17,17,.82); text-wrap: pretty; }
.lg p { margin-top: 14px; }
.lg ul { margin: 14px 0 0; padding-left: 1.2em; }
.lg li + li { margin-top: 6px; }
.lg li::marker { color: var(--red); }
.lg a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.lg strong { color: var(--ink); }
.lg__id { margin: 18px 0 0; display: grid; border-top: 1px solid rgba(20,17,17,.14); }
.lg__id > div { display: grid; grid-template-columns: 210px 1fr; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid rgba(20,17,17,.14); font-size: 16px; line-height: 1.55; }
.lg__id dt { font-weight: 800; }
.lg__id dd { margin: 0; color: rgba(20,17,17,.82); }
@media (max-width: 640px) { .lg__id > div { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .nav { display: none; }
  .head__end { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 767px) {
  .head { padding-top: 8px; padding-bottom: 8px; }
  .foot__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 36px; }
  .foot__hours { margin-left: auto; margin-right: auto; width: 100%; }
  .foot__top .socials { width: 100%; flex-direction: column; }
  .foot__top .social { justify-content: center; padding: 15px 20px; }
  .foot__bottom { flex-direction: column; align-items: center; text-align: center; }
  .foot__bottom nav { justify-content: center; }
}
@media (max-width: 380px) {
  .head .cta--sm { --stub: 36px; font-size: 16px; }
  .head .cta--sm .cta__main { padding: 0 9px 0 16px; }
  .head__logo { width: 84px; }
}
