/* CORRECTIF : inherits true pour propager --angle aux pseudo-éléments */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: true; }

:root{
  --topbar-rest:.4;
  --fab-cy:110px;
  --cream:      #EFE9DC;
  --gold:       #D9A95A;
  --gold-light: #F0C983;
  --gold-dark:  #A87C3A;
  --gold-bright:#FFF3D1;
  --bg-base:    #102a20;
  --ease:        cubic-bezier(.16,1,.3,1);
  --fade-ease:   cubic-bezier(.4,0,.2,1);
  --topbar-h:    88px;
  --edge:        clamp(24px, 8vw, 200px);
  --reveal-mask: linear-gradient(94deg, #000 0%, #000 35%, rgba(0,0,0,.96) 38%, rgba(0,0,0,.88) 41%, rgba(0,0,0,.74) 44%, rgba(0,0,0,.55) 47%, rgba(0,0,0,.33) 50%, rgba(0,0,0,.16) 53%, rgba(0,0,0,.05) 56%, transparent 60%, transparent 100%);
  --reveal-mask-text: linear-gradient(90deg, #000 0%, #000 35%, rgba(0,0,0,.98) 38%, rgba(0,0,0,.90) 42%, rgba(0,0,0,.72) 46%, rgba(0,0,0,.50) 50%, rgba(0,0,0,.30) 54%, rgba(0,0,0,.14) 58%, rgba(0,0,0,.05) 62%, rgba(0,0,0,.01) 65%, transparent 68%, transparent 100%);
  --reveal-mask-underline: linear-gradient(90deg, #000 0%, #000 40%, rgba(0,0,0,.98) 42%, rgba(0,0,0,.90) 44%, rgba(0,0,0,.70) 46%, rgba(0,0,0,.42) 48%, rgba(0,0,0,.20) 50%, rgba(0,0,0,.07) 52%, rgba(0,0,0,.02) 55%, transparent 58%, transparent 100%);
}

@media (max-width: 900px){ :root{ --topbar-h: 80px; --edge: 7vw; } }
@media (max-width: 760px){ :root{ --topbar-h: 72px; --edge: 24px; } }
@media (max-width: 480px){ :root{ --edge: 20px; } }

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; overflow:hidden; }
body{
  font-family:'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color:var(--cream);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  background-color: var(--bg-base);
  background-image: url('../media/fond.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
h1,h2,h3{ font-family:'Fraunces', Georgia, serif; font-weight:400; }

#shader-canvas{
  position:fixed; inset:0;
  width:100vw; height:100vh;
  display:block;
  z-index:0;
  pointer-events:none;
}
.vignette{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(180deg,
      rgba(4,14,10,.55) 0%,
      rgba(4,14,10,.20) 35%,
      rgba(4,14,10,.35) 70%,
      rgba(4,14,10,.75) 100%),
    radial-gradient(ellipse 100% 80% at 50% 50%,
      transparent 0%,
      transparent 40%,
      rgba(4,14,10,.25) 75%,
      rgba(4,14,10,.55) 100%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .9em;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(239,233,220,.30);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
  transition: opacity .45s var(--ease), color .35s var(--ease);
}
.site-footer .dot{ color: rgba(239,233,220,.22); letter-spacing: 0; }
body.is-reading .site-footer{ opacity: 0; }

@media (max-width: 1200px){
  .site-footer{
    font-size: 9.5px;
    letter-spacing: .20em;
    gap: .7em;
  }
}
@media (max-width: 900px){
  .site-footer{
    font-size: 8.5px;
    letter-spacing: .16em;
    gap: .55em;
    bottom: 16px;
  }
}
@media (max-width: 760px){
  .site-footer{
    font-size: 8px;
    letter-spacing: .12em;
    gap: .45em;
    bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100vw - 32px);
    white-space: normal;
    text-align: center;
    line-height: 1.6;
  }
}

/* ============================================================
   TOPBAR
   ============================================================ */
#topbar{
  position:fixed; top:0; left:0; right:0; z-index:100;
  height:var(--topbar-h);
  display:flex; align-items:center;
  padding:0 var(--edge);
  background:rgba(6,18,14,.30);
  backdrop-filter:blur(10px) saturate(135%);
  -webkit-backdrop-filter:blur(10px) saturate(135%);
  border-bottom:1px solid rgba(239,233,220,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 12px 32px -24px rgba(0,0,0,.5);
  animation: topbarEnter .7s var(--ease) .15s both;
  opacity:var(--topbar-rest);
  transition: transform .42s var(--ease), opacity .5s var(--ease), background-color .38s var(--ease), box-shadow .38s var(--ease);
  will-change: transform;
}
html.ui-awake #topbar,
#topbar:hover,
#topbar:has(:focus-visible){ opacity:1; }
@keyframes topbarEnter{
  from{ opacity:0; transform:translateY(-10px); }
  to  { opacity:var(--topbar-rest); transform:translateY(0); }
}
#topbar::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:1px;
  background:linear-gradient(90deg, transparent 0%, rgba(240,201,131,.05) 20%, rgba(240,201,131,.28) 50%, rgba(240,201,131,.05) 80%, transparent 100%);
  pointer-events:none;
}
#topbar.is-hidden{
  transform:translateY(-100%);
  pointer-events:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 0 0 rgba(0,0,0,0);
}

#brand{
  display:inline-flex; align-items:center;
  cursor:pointer; text-decoration:none; color:var(--cream);
  padding:4px 0; flex-shrink:0; z-index:2;
}

.wordmark{
  font-family:'Fraunces', Georgia, serif;
  font-weight:400;
  letter-spacing:.22em;
  padding-left:.22em;
  white-space:nowrap;
  line-height:1;
  font-size:15px;
  display:inline-block;
  background:linear-gradient(100deg, #8B6228 0%, #C9A050 22%, #E0BE72 38%, #F0C983 48%, #FFF3D1 52%, #F0C983 56%, #E0BE72 66%, #C9A050 82%, #8B6228 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  -webkit-mask-image:var(--reveal-mask); mask-image:var(--reveal-mask);
  -webkit-mask-size:250% 100%; mask-size:250% 100%;
  -webkit-mask-position:100% 0; mask-position:100% 0;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  filter: drop-shadow(0 0 10px rgba(240,201,131,.28)) drop-shadow(0 0 24px rgba(217,169,90,.12));
  animation: wordReveal 2.6s cubic-bezier(.22,1,.36,1) .2s forwards;
}
@keyframes wordReveal{
  from{ -webkit-mask-position:100% 0; mask-position:100% 0; }
  to  { -webkit-mask-position:0% 0;   mask-position:0% 0;   }
}

.topbar-actions{
  position:absolute; right:var(--edge); top:50%;
  transform:translateY(-50%);
  display:flex; align-items:center; gap:10px;
  z-index:2;
}

/* --- Bouton Ambiance --- */
.music-btn{
  position:relative;
  display:inline-flex; align-items:center; gap:10px;
  height:44px; padding:0 18px 0 14px;
  border-radius:100px;
  cursor:pointer;
  color:rgba(239,233,220,.88);
  background:rgba(6,18,14,.50);
  border:1px solid rgba(217,169,90,.22);
  font:500 13px 'Inter', sans-serif;
  letter-spacing:.02em;
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.music-btn svg{
  width:20px; height:20px;
  fill:none; stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round; stroke-linejoin:round;
  flex-shrink:0;
}
.music-btn .label{ white-space:nowrap; }
.music-btn .spk-body{ fill:currentColor; stroke:none; }
.music-btn .wave-1{ opacity:.35; }
.music-btn .wave-2{ opacity:.15; }
.music-btn.is-playing{
  color:var(--gold-light);
  background:rgba(217,169,90,.16);
  border-color:rgba(217,169,90,.6);
}
.music-btn.is-playing .wave-1{ opacity:1; animation:waveOut1 1.6s cubic-bezier(.4,0,.2,1) infinite; }
.music-btn.is-playing .wave-2{ opacity:1; animation:waveOut2 1.6s cubic-bezier(.4,0,.2,1) infinite .3s; }
@keyframes waveOut1{ 0%,100%{opacity:.35;transform:scale(1);} 50%{opacity:1;transform:scale(1.08);} }
@keyframes waveOut2{ 0%,100%{opacity:.15;transform:scale(1);} 50%{opacity:1;transform:scale(1.10);} }
.music-btn .eq{
  display:none; align-items:flex-end; gap:2px;
  height:14px; margin-left:2px;
}
.music-btn .eq span{
  display:block; width:2px; border-radius:1px;
  background:var(--gold-light);
  animation:eqBar 1s ease-in-out infinite;
}
.music-btn .eq span:nth-child(1){ height:6px;  animation-delay:0s; }
.music-btn .eq span:nth-child(2){ height:12px; animation-delay:.15s; }
.music-btn .eq span:nth-child(3){ height:8px;  animation-delay:.3s; }
.music-btn .eq span:nth-child(4){ height:14px; animation-delay:.45s; }
@keyframes eqBar{ 0%,100%{transform:scaleY(.4);} 50%{transform:scaleY(1);} }
.music-btn.is-playing .label{ display:none; }
.music-btn.is-playing .eq{ display:flex; }

/* --- Bouton Facebook --- */
.social-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius:100px;
  cursor:pointer;
  color:rgba(239,233,220,.88);
  background:rgba(6,18,14,.50);
  border:1px solid rgba(217,169,90,.22);
  text-decoration:none;
  transition: color .35s var(--ease), background-color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.social-btn svg{
  width:20px; height:20px;
  fill:currentColor;
  display:block;
  flex-shrink:0;
}
.social-btn:hover{
  color:var(--gold-light);
  background:rgba(217,169,90,.10);
  border-color:rgba(217,169,90,.45);
  transform:translateY(-1px);
}
.social-btn:focus-visible{
  outline:1px solid rgba(246,230,188,.5);
  outline-offset:4px;
}

@media (max-width: 1050px){
  .music-btn .label{ display:none; }
  .music-btn{ width:46px; padding:0; justify-content:center; }
  .music-btn.is-playing .eq{ display:none; }
}
@media (max-width: 760px){
  .social-btn{ width:40px; height:40px; }
  .social-btn svg{ width:18px; height:18px; }
}
@media (max-width: 480px){
  .social-btn{ width:36px; height:36px; }
  .social-btn svg{ width:16px; height:16px; }
}

/* ============================================================
   SLIDES
   ============================================================ */
#slides{
  position:relative; z-index:2; height:100%; width:100%;
  transition: opacity .5s var(--ease);
}
body.is-reading #slides{ opacity: 0; pointer-events: none; }

.slide{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transform:scale(1.008);
  transition: opacity 1.1s var(--fade-ease), transform 1.8s var(--ease), visibility 0s linear 1.1s;
  overflow:hidden;
  pointer-events:none;
}
.slide.is-active{
  opacity:1; visibility:visible;
  transform:scale(1);
  transition: opacity 1.1s var(--fade-ease), transform 1.8s var(--ease), visibility 0s;
  pointer-events:auto;
  z-index:2;
}

/* ============================================================
   ACCUEIL
   ============================================================ */
#slide-accueil{ display:block; padding:0; }
.hero-slider{ position:absolute; inset:0; overflow:hidden; isolation:isolate; }
.hero-slider-track{ position:relative; width:100%; height:100%; }

.hero-slide{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center;
  padding:calc(var(--topbar-h) + clamp(48px,8vw,110px)) clamp(48px,8vw,128px) clamp(80px,12vw,140px);
  opacity:0; visibility:hidden; pointer-events:none;
  transform:scale(1.014);
  transition: opacity 1.6s cubic-bezier(.4,0,.2,1), transform 2.2s cubic-bezier(.22,1,.36,1), visibility 0s linear 1.6s;
}
.hero-slide.is-active{
  opacity:1; visibility:visible; pointer-events:auto;
  transform:scale(1);
  transition: opacity 1.6s cubic-bezier(.4,0,.2,1) 1.6s, transform 2.2s cubic-bezier(.22,1,.36,1) 1.6s, visibility 0s;
}

.hero-slide-title{
  font-family:'Fraunces', Georgia, serif;
  font-weight:300;
  font-size:clamp(38px,5.6vw,76px);
  line-height:1.22;
  letter-spacing:-.014em;
  color:var(--cream);
  max-width:17ch;
  text-wrap:balance;
  display:inline-block;
  text-shadow:0 4px 40px rgba(4,10,8,.75), 0 0 100px rgba(4,10,8,.5);
  -webkit-mask-image:var(--reveal-mask-text); mask-image:var(--reveal-mask-text);
  -webkit-mask-size:300% 100%; mask-size:300% 100%;
  -webkit-mask-position:0% 0; mask-position:0% 0;
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
}
.hero-slide.is-active .hero-slide-title{
  animation: heroTitleReveal 7.2s cubic-bezier(.45,0,.25,1) var(--d, .4s) both;
}
@keyframes heroTitleReveal{
  from{ -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to  { -webkit-mask-position: 0% 0;   mask-position: 0% 0;   }
}

.hero-slide-sub{
  font-family:'Fraunces', Georgia, serif;
  font-style:italic;
  font-weight:400;
  font-size:clamp(15px, 1.6vw, 22px);
  line-height:1.5;
  letter-spacing:.02em;
  color:rgba(239,233,220,.82);
  text-align:center;
  max-width:46ch;
  text-wrap:balance;
  margin:clamp(28px, 3.4vw, 48px) 0 0;
  -webkit-mask-image:var(--reveal-mask-text);
          mask-image:var(--reveal-mask-text);
  -webkit-mask-size:300% 100%;
          mask-size:300% 100%;
  -webkit-mask-position:100% 0;
          mask-position:100% 0;
  -webkit-mask-repeat:no-repeat;
          mask-repeat:no-repeat;
}
.hero-slide.is-active .hero-slide-sub{
  animation: heroTitleReveal 6.4s cubic-bezier(.45,0,.25,1) var(--d, 1.4s) both;
}

.hero-slide-rule{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:clamp(48px,6.4vw,80px);
  -webkit-mask-image: var(--reveal-mask-underline); mask-image: var(--reveal-mask-underline);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%;
  -webkit-mask-position: 0% 0; mask-position: 0% 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero-slide.is-active .hero-slide-rule{
  animation: heroRuleReveal 4.8s cubic-bezier(.35,0,.25,1) 3.2s both;
}
@keyframes heroRuleReveal{
  from{ -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to  { -webkit-mask-position: 0% 0;   mask-position: 0% 0;   }
}
.hero-slide-rule svg{
  display:block;
  overflow:visible;
  filter: drop-shadow(0 0 5px rgba(240,201,131,.42)) drop-shadow(0 0 14px rgba(217,169,90,.22));
}

.hero-slider-progress{
  position:absolute; left:0; right:0; bottom:0; height:1px;
  background:rgba(239,233,220,.10); z-index:4; overflow:hidden;
}
.hero-slider-progress-fill{
  height:100%; width:100%;
  background:linear-gradient(90deg, rgba(217,169,90,.5), var(--gold-light));
  transform-origin:left center;
  transform:scaleX(0);
}
.hero-slider-progress-fill.running{ animation:heroFill var(--hero-duration, 8500ms) linear forwards; }
@keyframes heroFill{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }

/* ============================================================
   BOUSSOLE
   ============================================================ */
.hero-slide--boussole{
  padding: calc(var(--topbar-h) + 16px) 0 calc(var(--fab-cy) + 16px);
}
.boussole{
  position:relative;
  width:min(600px, 88vw, 66vh);
  aspect-ratio:1;
  flex-shrink:0;
  transition: opacity .55s var(--ease), transform .7s var(--ease);
}
body.is-reading .boussole{
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
}
.boussole svg{ overflow:visible; }

@keyframes boussoleTrace{ to{ stroke-dashoffset:1; } }
@keyframes boussoleFade { to{ opacity:1; } }

.boussole .ring{
  position:absolute;
  left:33%; top:33%;
  width:34%; height:34%;
}
.boussole .ring .main{ fill: var(--cream); }
.boussole .reveal,
.boussole .hv{
  fill:none; stroke:#fff; stroke-width:16;
  stroke-dasharray:102 200; stroke-dashoffset:103;
}
.boussole .lit{
  transform-origin:50px 50px;
  opacity:.5;
  transition: opacity 1s var(--ease);
  filter: drop-shadow(0 0 2px rgba(240,201,131,.7));
}
.boussole.hot .lit{ opacity:1; }
.boussole .lit circle{
  fill:none;
  stroke: var(--gold-bright);
  stroke-linecap: round;
  stroke-dashoffset: var(--o);
}
.boussole .pt{
  position:absolute;
  left:50%; top:50%;
  width:8px; height:8px;
  translate:-50% -50%;
  border-radius:50%;
  opacity:0;
  background: radial-gradient(circle at 40% 35%, #FFF6E2, #E8C57E 50%, #A87C3A);
  transition: scale .8s var(--ease);
}
@keyframes boussoleBreathe{
  0%,100%{ box-shadow: 0 0 8px 1px rgba(240,201,131,.35); }
  50%    { box-shadow: 0 0 16px 3px rgba(240,201,131,.55); }
}
.boussole.hot .pt{ scale:0; }

/* Satellites */
.boussole .d{
  position:absolute;
  width:14%; aspect-ratio:1;
  translate:-50% -50%;
  border-radius:50%;
  background:transparent;
  display:block;
  cursor:pointer;
  outline:none;
  isolation:isolate;
  opacity:0;
}
.boussole .d::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  border:1px solid rgba(224,196,140,.22);
  pointer-events:none;
  z-index:2;
  transition: border-color .55s var(--ease);
}
.boussole .d::after{
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  padding:1px;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 250deg,
    rgba(240,201,131,.10) 275deg,
    rgba(255,243,209,.50) 320deg,
    rgba(255,255,255,.95) 350deg,
    rgba(255,243,209,.35) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events:none;
  z-index:3;
  opacity:.85;
  transition: opacity .55s var(--ease);
}
.boussole .d .halo{
  position:absolute;
  inset:-30%;
  border-radius:50%;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,243,209,.22) 0%,
    rgba(240,201,131,.12) 35%,
    rgba(217,169,90,.04) 60%,
    transparent 78%);
  pointer-events:none;
  z-index:1;
  opacity:0;
  transform: scale(.82);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.boussole .d:hover::before,
.boussole .d:focus-visible::before{
  border-color: rgba(240,201,131,.65);
}
.boussole .d:hover::after,
.boussole .d:focus-visible::after{
  filter:
    drop-shadow(0 0 5px rgba(255,243,209,.85))
    drop-shadow(0 0 14px rgba(240,201,131,.50));
}
.boussole .d:hover .halo,
.boussole .d:focus-visible .halo{
  opacity:1;
  transform: scale(1);
}
.boussole .d:focus-visible{
  outline:1px solid rgba(246,230,188,.5);
  outline-offset:8px;
  border-radius:50%;
}
.boussole .d.on::after{ opacity:1; }

/* Pictogramme du satellite */
.boussole .d .mark{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: clamp(22px, 3.6vw, 30px);
  height: clamp(22px, 3.6vw, 30px);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  z-index:5;
  color: var(--cream);
  user-select:none;
  transition: color .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease);
}
.boussole .d .mark svg{
  width:100%; height:100%;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.boussole .d:hover .mark,
.boussole .d:focus-visible .mark,
.boussole .d.on .mark{
  color: var(--gold-light);
  transform: translate(-50%, -50%) scale(1.08);
}
.boussole .d.on .mark{
  filter: drop-shadow(0 0 8px rgba(240, 201, 131, .55));
}

/* Popup satellite */
.boussole .d .popup{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(12.5px, 1.3vw, 14.5px);
  letter-spacing: 0.02em;
  color: var(--cream);
  background: rgba(6, 18, 14, 0.90);
  border: 1px solid rgba(217, 169, 90, 0.55);
  border-radius: 100px;
  padding: 10px 22px;
  white-space: nowrap;
  box-shadow:
    0 14px 36px -14px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 246, 226, 0.10);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transition: opacity .5s var(--ease) .08s, translate .5s var(--ease) .08s;
}
.boussole .d .popup--above{
  bottom: calc(100% + 18px);
  left: 50%;
  translate: -50% 6px;
}
.boussole .d .popup--below{
  top: calc(100% + 18px);
  left: 50%;
  translate: -50% -6px;
}
.boussole .d.on .popup--above{ translate: -50% 0; }
.boussole .d.on .popup--below{ translate: -50% 0; }
.boussole .d.on .popup{
  opacity: 1;
  color: var(--gold-bright);
  border-color: rgba(240, 201, 131, 0.78);
}
.boussole .d .popup .popup-line--0{
  font-weight: 500;
  font-size: 1em;
  letter-spacing: .06em;
  color: var(--gold-light);
  line-height: 1.2;
}
.boussole .d .popup .popup-line--1{
  font-size: .92em;
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(239,233,220,.80);
  line-height: 1.2;
}

/* Centre de la boussole — maison Theschado */
.boussole .name{
  position:absolute;
  left:33%; top:33%;
  width:34%; height:34%;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  border-radius:50%;
}
.boussole .name.on{ pointer-events:none; cursor:default; }
.boussole .name:focus-visible{
  outline:1px solid rgba(246,230,188,.5);
  outline-offset:8px;
  border-radius:50%;
}
.boussole:has(.name:hover:not(.on)) .pt,
.boussole:has(.name:focus-visible) .pt{ scale:0; }

.boussole .name .center-mark{
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(26px, 4vw, 36px);
  height: clamp(26px, 4vw, 36px);
  color: var(--cream);
  filter: drop-shadow(0 0 8px rgba(240, 201, 131, .35));
  transition: color .5s var(--ease), filter .5s var(--ease), transform .5s var(--ease);
}
.boussole .name .center-mark svg{
  width: 100%; height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.boussole .name:hover .center-mark,
.boussole .name:focus-visible .center-mark{
  color: var(--gold-light);
  filter: drop-shadow(0 0 14px rgba(240, 201, 131, .70));
  transform: scale(1.06);
}

/* Popup du centre */
.boussole .name .center-popup{
  position: absolute;
  top: 66%;
  left: 50%;
  translate: -50% 4px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(11px, 1.2vw, 13.5px);
  letter-spacing: .02em;
  color: var(--gold-light);
  background: rgba(6, 18, 14, 0.90);
  border: 1px solid rgba(217, 169, 90, 0.55);
  border-radius: 100px;
  padding: 8px 18px;
  white-space: nowrap;
  box-shadow:
    0 14px 36px -14px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 246, 226, 0.10);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transition: opacity .5s var(--ease) .08s, translate .5s var(--ease) .08s;
}
.boussole .name:hover .center-popup,
.boussole .name:focus-visible .center-popup{
  opacity: 1;
  translate: -50% 0;
  color: var(--gold-bright);
  border-color: rgba(240, 201, 131, 0.78);
}

.boussole.is-ready .reveal{ animation: boussoleTrace 3.2s cubic-bezier(.5,.05,.3,1) .4s forwards; }
.boussole.is-ready .d{ animation: boussoleFade 1.1s var(--ease) var(--delay) forwards; }
.boussole.is-ready .pt{ animation: boussoleFade 1.6s var(--ease) 3s forwards, boussoleBreathe 9s ease-in-out 4.8s infinite; }

/* ============================================================
   MODALES / TUILES
   ============================================================ */
.tea-modal-host{ position:fixed; inset:0; z-index:45; pointer-events:none; }
.tea-modal-host .tile:not(.is-expanded){ display:none; }
.tea-modal-host .tile.is-expanded{ display:flex; pointer-events:auto; }

.tile{
  position:relative;
  display:flex;
  flex-direction:column;
  width:100%;
  cursor:pointer;
  pointer-events:auto;
  border-radius:22px;
  overflow:hidden;
  background:transparent;
  transform:translate3d(0,0,0);
  transition: opacity .4s var(--ease), visibility 0s linear 0s;
}
body.is-reading .tile:not(.is-expanded){
  opacity:0;
  visibility:hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.tile::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:22px;
  padding:1px;
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 250deg,
    rgba(240,201,131,.08) 275deg,
    rgba(255,243,209,.35) 320deg,
    rgba(255,243,209,.55) 350deg,
    rgba(240,201,131,.25) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events:none;
  z-index:5;
  opacity:.85;
  filter: drop-shadow(0 0 3px rgba(240,201,131,.18));
}
.tile-bg{
  position:absolute; inset:0;
  border-radius:22px;
  background:rgba(4,14,10,.68);
  border:1px solid rgba(239,233,220,.14);
  box-shadow:0 14px 28px -14px rgba(0,0,0,.55), inset 0 1px 0 rgba(239,233,220,.06);
  pointer-events:none;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.tile-reading{
  display:none; flex-direction:column;
  flex:1 1 auto; min-height:0;
  position:relative; z-index:4; overflow:hidden;
}
.tile.is-expanded .tile-reading{ display:flex; }
.tile.is-expanded{
  position:fixed;
  top: calc(var(--topbar-h) + 32px);
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, calc(100vw - 2 * var(--edge)));
  max-width: min(920px, calc(100vw - 2 * var(--edge)));
  right: auto;
  z-index:50;
  cursor:default;
  animation: tileFadeIn .6s var(--ease) both;
}
@keyframes tileFadeIn{
  0%  { opacity: 0; transform: translateX(-50%) translateY(16px) scale(.975); }
  60% { opacity: 1; }
  100%{ opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
.tile.is-expanded .tile-bg{
  background:linear-gradient(180deg, rgba(6,16,11,.34) 0%, rgba(3,8,6,.46) 100%);
  border-color:rgba(217,169,90,.4);
  backdrop-filter:blur(6px) saturate(135%);
  -webkit-backdrop-filter:blur(6px) saturate(135%);
}

.tile--maison.is-expanded .tile-bg,
.tile--revendeurs.is-expanded .tile-bg{
  background: linear-gradient(180deg, rgba(6,16,11,.42) 0%, rgba(3,8,6,.55) 100%);
  border: 1px solid rgba(217,169,90,.45);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.reading-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; padding:18px 28px; flex-shrink:0;
  border-bottom:1px solid rgba(239,233,220,.06);
}
.reading-back{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; padding:0;
  background:rgba(217,169,90,.06);
  border:1px solid rgba(217,169,90,.3);
  border-radius:50%;
  color:var(--gold-light);
  cursor:pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.reading-back:hover{
  background:rgba(217,169,90,.14);
  border-color:rgba(217,169,90,.55);
  transform: scale(1.05);
}
.reading-back svg{ width:16px; height:16px; display:block; }
.reading-meta{
  display:flex; align-items:baseline; gap:12px;
  font-size:12px; color:rgba(239,233,220,.55);
  min-width:0;
}
.reading-meta .title{
  font-family:'Fraunces', Georgia, serif;
  font-size:16px; font-weight:400;
  color:var(--cream);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.reading-scroll{
  flex:1 1 auto; min-height:0;
  overflow-y:auto;
  padding:44px 56px 56px;
  scrollbar-width:thin;
  scrollbar-color:rgba(217,169,90,.4) transparent;
}
.reading-prose{
  font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight:400; font-size:18px; line-height:1.7;
  max-width:65ch; margin:0 auto;
  color:rgba(239,233,220,.88);
  text-align:left;
}
.reading-prose p{ margin:0 0 1.6em; text-wrap:pretty; }
.reading-prose p:last-child{ margin-bottom:0; }
.reading-prose h2{
  font-family:'Fraunces', Georgia, serif;
  font-size:26px; font-weight:600;
  line-height:1.25; letter-spacing:-.01em;
  color:var(--cream);
  margin:2em 0 .8em;
  max-width:22ch;
}
.reading-prose h2:first-child{ margin-top:0; }

/* ============================================================
   Tuile Maison
   ============================================================ */
.tile--maison .reading-scroll{
  display:flex; align-items:center; justify-content:center;
  padding:56px;
}
.reading-prose--maison{
  text-align: center;
  max-width: 56ch;
  width: 100%;
  margin: auto;
  font-size: clamp(16px, 1.15vw, 17.5px);
  line-height: 1.8;
  color: rgba(239,233,220,.82);
}
.reading-prose--maison .maison-kicker{
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1.4em;
  padding-left: .38em;
  opacity: .92;
}
.reading-prose--maison .maison-title{
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--cream);
  margin: 0 0 1.6em;
  text-wrap: balance;
}
.reading-prose--maison .maison-lead{
  font-size: 1.06em;
  line-height: 1.72;
  color: rgba(239,233,220,.92);
  margin: 0 0 1.6em;
  text-wrap: pretty;
}
.reading-prose--maison .maison-line{
  margin: 0 0 1.4em;
  color: rgba(239,233,220,.78);
  text-wrap: pretty;
}
.reading-prose--maison .maison-line:last-of-type{ margin-bottom: 0; }
.reading-prose--maison .maison-rule{
  border: 0;
  width: 44px;
  height: 1px;
  margin: 2.6em auto;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(240,201,131,.55) 50%,
    transparent 100%);
}
.reading-prose--maison .maison-signature{
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  line-height: 1.6;
  color: var(--gold-light);
  margin: 2.4em 0 0;
  text-wrap: balance;
}

@media (max-width: 760px){
  .reading-prose--maison{ font-size: 15.5px; line-height: 1.72; }
  .reading-prose--maison .maison-title{ font-size: clamp(28px, 7vw, 38px); margin-bottom: 1.4em; }
  .reading-prose--maison .maison-kicker{ font-size: 10.5px; letter-spacing: .32em; }
}
@media (max-width: 480px){
  .reading-prose--maison{ font-size: 15px; }
  .reading-prose--maison .maison-title{ font-size: 28px; }
}

/* ============================================================
   FORMULAIRE REVENDEURS
   ============================================================ */
.tile--revendeurs .reading-scroll{ padding: 40px 56px 48px; }

.reading-prose--intro{
  max-width: 62ch;
  margin: 0 auto 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(239,233,220,.08);
}
.reading-prose--intro p{ color: rgba(239,233,220,.78); }
.reading-prose--intro p:last-child{ margin-bottom: 0; }

.contact-form{
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label,
.field .fieldset-legend{
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(239,233,220,.62);
}
.field .req{
  color: var(--gold-light);
  margin-left: 4px;
  font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field textarea,
.field select{
  width: 100%;
  background: rgba(4,14,10,.42);
  border: 1px solid rgba(239,233,220,.16);
  border-radius: 12px;
  color: var(--cream);
  font: 400 15.5px/1.5 'Inter', sans-serif;
  padding: 13px 16px;
  outline: none;
  transition: border-color .3s var(--ease),
              background-color .3s var(--ease),
              box-shadow .3s var(--ease);
}
.field textarea{
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}
.field input::placeholder,
.field textarea::placeholder{ color: rgba(239,233,220,.32); }
.field input:focus,
.field textarea:focus,
.field select:focus{
  border-color: rgba(217,169,90,.65);
  background: rgba(4,14,10,.58);
  box-shadow: 0 0 0 3px rgba(217,169,90,.10);
}
.field .error-msg{
  display: none;
  font-size: 12px;
  color: rgba(240,140,120,.95);
  letter-spacing: .01em;
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select{
  border-color: rgba(220,100,80,.7);
  box-shadow: 0 0 0 3px rgba(220,100,80,.12);
}
.field.has-error .error-msg{ display: block; }

/* Captcha */
.captcha-row{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.captcha-question{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(217,169,90,.08);
  border: 1px solid rgba(217,169,90,.32);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  color: var(--gold-light);
  white-space: nowrap;
}
.captcha-question .captcha-nums{
  letter-spacing: .06em;
  color: var(--gold-bright);
  font-weight: 600;
}
.captcha-row input[type="number"]{
  width: 100px;
  text-align: center;
  font-weight: 600;
  letter-spacing: .1em;
  flex: 0 0 auto;
}
.captcha-refresh{
  appearance: none;
  background: transparent;
  border: 1px solid rgba(217,169,90,.35);
  color: var(--gold-light);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color .25s var(--ease),
              border-color .25s var(--ease),
              transform .25s var(--ease);
}
.captcha-refresh:hover{
  background: rgba(217,169,90,.12);
  border-color: rgba(217,169,90,.6);
}
.captcha-refresh:active{ transform: scale(.94); }
.captcha-refresh svg{
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bouton d'envoi */
.form-submit{
  appearance: none;
  -webkit-appearance: none;
  align-self: center;
  margin-top: 10px;
  padding: 14px 34px;
  border-radius: 100px;
  background: radial-gradient(circle at 50% 38%,
    rgba(240,201,131,.26) 0%,
    rgba(217,169,90,.20) 65%,
    rgba(217,169,90,.14) 100%);
  border: 1px solid rgba(217,169,90,.72);
  color: var(--gold-bright);
  font: 500 14px 'Inter', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,246,226,.10),
              0 6px 18px -8px rgba(217,169,90,.75);
  transition: transform .3s var(--ease),
              box-shadow .3s var(--ease),
              background-color .3s var(--ease);
}
.form-submit:hover{
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,246,226,.18),
              0 8px 22px -8px rgba(217,169,90,.9);
}
.form-submit:active{ transform: translateY(0); }
.form-submit:disabled{
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Message de succès */
.form-success{
  display: none;
  text-align: center;
  padding: 24px 20px;
  border-radius: 16px;
  background: rgba(217,169,90,.10);
  border: 1px solid rgba(217,169,90,.45);
  color: var(--cream);
  font-size: 15.5px;
  line-height: 1.6;
  margin-top: 8px;
}
.form-success.is-visible{ display: block; }
.form-success strong{
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.form-success .fallback{
  margin-top: 14px;
  font-size: 13px;
  color: rgba(239,233,220,.68);
}
.form-success .fallback a,
.form-success a{
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px){
  .music-btn{ width:44px; height:44px; }
  .reading-scroll{ padding:32px 26px 40px; }
  .reading-prose{ font-size:17px; }
  .reading-prose h2{ font-size:22px; }
  .hero-slide-title{ font-size:clamp(34px,7vw,60px); }
}
@media (max-width: 760px){
  .reading-scroll{ padding:24px 20px 40px; }
  .reading-top{ padding:16px 20px; }
  .tile.is-expanded{
    top: calc(var(--topbar-h) + 12px);
    bottom: 12px;
    width: calc(100vw - 2 * var(--edge));
    max-width: calc(100vw - 2 * var(--edge));
  }
  .hero-slide{ padding:calc(var(--topbar-h) + 40px) 32px 100px; }
  .hero-slide-title{ font-size:clamp(32px,9vw,48px); }
  .hero-slide-sub{ font-size:14.5px; }
  .hero-slide-rule{ margin-top:clamp(36px,8vw,56px); }

  .tile--revendeurs .reading-scroll{ padding: 28px 22px 40px; }
  .reading-prose--intro{ margin-bottom: 28px; padding-bottom: 24px; }
  .contact-form{ gap: 18px; }
  .captcha-row{ gap: 10px; }
  .captcha-question{ font-size: 14px; padding: 9px 13px; }
  .captcha-row input[type="number"]{ width: 80px; }
  .captcha-refresh{ width: 36px; height: 36px; }
}
@media (max-width: 480px){
  .reading-prose{ font-size:16.5px; }
  .reading-prose h2{ font-size:21px; }
  .contact-form{ gap: 16px; }
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="number"],
  .field textarea{
    padding: 11px 14px;
    font-size: 15px;
  }
  .form-submit{ padding: 12px 24px; font-size: 13px; }
}

.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;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  #topbar{ animation:none !important; }
  .slide, .slide.is-active{ transition:opacity .001s !important; transform:none !important; }
  .hero-slide, .hero-slide.is-active, .hero-slide-title, .hero-slide-rule, .hero-slide-sub{
    transition:none !important;
    animation:none !important;
  }
  .hero-slide-title, .hero-slide-rule, .hero-slide-sub, .wordmark{
    -webkit-mask-image:none !important;
            mask-image:none !important;
  }
  .tile.is-expanded{ animation:none !important; }
  #slides{ transition:none !important; }
  .boussole .reveal{ stroke-dashoffset:1; animation:none !important; }
  .boussole .d,
  .boussole .pt{ opacity:1; animation:none !important; }
  .boussole .d .mark,
  .boussole .d .popup,
  .boussole .name .center-popup{
    transition: none !important;
  }
}
@media (hover: none){
  body{ background-attachment: scroll; }
}
/* ============================================================
   Tuile Revendeurs — Lien vers SumUp
   ============================================================ */
.revendeurs-cta{
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.revendeurs-link{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 100px;
  background: radial-gradient(circle at 50% 38%,
    rgba(240,201,131,.26) 0%,
    rgba(217,169,90,.20) 65%,
    rgba(217,169,90,.14) 100%);
  border: 1px solid rgba(217,169,90,.72);
  color: var(--gold-bright);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,246,226,.10),
              0 6px 18px -8px rgba(217,169,90,.75);
  transition: transform .3s var(--ease),
              box-shadow .3s var(--ease);
}
.revendeurs-link:hover{
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,246,226,.18),
              0 8px 22px -8px rgba(217,169,90,.9);
}
.revendeurs-link:focus-visible{
  outline: 2px solid rgba(246,230,188,.5);
  outline-offset: 6px;
}
.revendeurs-link__icon{
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  opacity: .85;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.revendeurs-link:hover .revendeurs-link__icon{
  opacity: 1;
  transform: translate(2px, -2px);
}
.revendeurs-note{
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: rgba(239,233,220,.48);
  text-align: center;
}
@media (max-width: 480px){
  .revendeurs-link{
    padding: 14px 24px;
    font-size: 13.5px;
  }
  .revendeurs-note{ font-size: 11.5px; }
}