/* ==========================================================================
   CAS'DESIGN — page de présentation (étape 01)
   Palette et typographies du brief : ivoire, sable, pierre, taupe, olive, anthracite · Manrope + Inter
   ========================================================================== */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ivoire: #f5f2ec;
  --sable: #d9c9b8;
  --pierre: #a8a29c;
  --taupe: #846d62;
  --taupe-fonce: #6a564c;      /* taupe assombri : même teinte, lisible en petit corps */
  --olive: #73745f;
  --anthracite: #33312f;

  --f-title: "Manrope", system-ui, sans-serif;
  --f-text: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(20px, 5vw, 56px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--f-text); font-size: 1rem; line-height: 1.6; color: var(--anthracite); background: var(--ivoire);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--taupe-fonce); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--taupe); color: var(--ivoire); }

.eyebrow { font-family: var(--f-title); font-weight: 600; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--olive); }

h1, h2, h3 { font-family: var(--f-title); font-weight: 500; letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; }
h1 span, h2 span { color: var(--taupe); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 14px;
  font-family: var(--f-title); font-weight: 600; font-size: .98rem; letter-spacing: .01em; white-space: nowrap;
  transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn svg, .top__call svg, .dock svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn--dark { background: var(--anthracite); color: var(--ivoire); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--anthracite); }
.btn--soft { background: rgba(217, 201, 184, .55); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--dark:hover { background: var(--taupe-fonce); }
  .btn--line:hover { background: var(--anthracite); color: var(--ivoire); }
  .btn--soft:hover { background: var(--sable); }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions--center { justify-content: center; }

/* ---------- en-tête ---------- */
.top {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--pad); background: rgba(245, 242, 236, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(51, 49, 47, .07);
}
.top__brand img { width: 58px; height: auto; }
.top__nav { display: none; gap: 30px; font-family: var(--f-title); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.top__nav a { padding: 8px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.top__nav a:hover { background-size: 100% 1.5px; }
.top__call { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 12px; font-family: var(--f-title); font-weight: 600; font-size: .92rem; box-shadow: inset 0 0 0 1.5px rgba(51, 49, 47, .85); transition: background .3s, color .3s; }
.top__call:hover { background: var(--anthracite); color: var(--ivoire); }

/* ---------- présentation ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(30px, 7vw, 76px) var(--pad) clamp(40px, 8vw, 90px); display: grid; gap: clamp(30px, 6vw, 64px); }
.hero__title { font-size: clamp(2.15rem, 9.2vw, 4.3rem); margin: 18px 0 20px; }
.hero__title span { display: block; }
.hero__lead { max-width: 46ch; font-size: clamp(1rem, 2.6vw, 1.12rem); color: rgba(51, 49, 47, .82); }
.hero .actions { margin-top: 28px; }
.hero__sign { margin-top: 22px; font-size: .9rem; color: rgba(51, 49, 47, .7); }
.hero__sign b { font-family: var(--f-title); font-weight: 600; color: var(--anthracite); }

/* esquisse / rendu */
.view { min-width: 0; }
.view__stage {
  --x: 100%;
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  background: linear-gradient(180deg, #faf8f4, var(--ivoire));
  box-shadow: 0 0 0 1px rgba(51, 49, 47, .08), 0 30px 60px -34px rgba(51, 49, 47, .45);
}
.view__stage picture, .view__stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.view__stage img { object-fit: cover; pointer-events: none; }
.view__render { clip-path: inset(0 0 0 var(--x)); }
.view__handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 0; z-index: 2; outline-offset: 0; }
.view__handle i { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ivoire); box-shadow: 0 0 14px rgba(51, 49, 47, .35); }
.view__handle span { position: absolute; left: -25px; top: 50%; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; display: grid; place-items: center; background: var(--ivoire); color: var(--anthracite); box-shadow: 0 8px 24px rgba(51, 49, 47, .32); }
.view__handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.view figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: .76rem; color: rgba(51, 49, 47, .62); }
.view figcaption span:first-child { font-family: var(--f-title); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--olive); font-size: .68rem; }

/* ---------- activités ---------- */
.acts { max-width: var(--max); margin: 0 auto; padding: clamp(46px, 9vw, 110px) var(--pad); }
.sec-head h2, .contact h2 { font-size: clamp(1.8rem, 6.6vw, 3.3rem); margin-top: 14px; }
.acts__list { margin-top: clamp(26px, 5vw, 54px); display: grid; border-top: 1px solid rgba(51, 49, 47, .14); }
.act { display: grid; grid-template-columns: 46px 1fr; gap: 6px; padding: 22px 0; border-bottom: 1px solid rgba(51, 49, 47, .14); }
.act__n { font-family: var(--f-title); font-weight: 600; font-size: .8rem; letter-spacing: .12em; color: var(--taupe); padding-top: 5px; }
.act h3 { font-size: clamp(1.18rem, 3.6vw, 1.45rem); letter-spacing: -.02em; line-height: 1.2; }
.act p { margin-top: 7px; font-size: .96rem; color: rgba(51, 49, 47, .8); max-width: 54ch; }
.act .act__for { margin-top: 11px; font-family: var(--f-title); font-weight: 600; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); }

/* ---------- contact ---------- */
.contact { padding: 0 clamp(10px, 2.4vw, 28px) clamp(10px, 2.4vw, 28px); }
.contact__in {
  max-width: 1380px; margin: 0 auto; padding: clamp(50px, 10vw, 110px) var(--pad); border-radius: clamp(20px, 3vw, 34px); text-align: center;
  background: linear-gradient(160deg, #e6dacb, var(--sable));
}
.contact h2 span { color: var(--taupe-fonce); }
.contact__tel { display: block; width: max-content; max-width: 100%; margin: clamp(22px, 5vw, 40px) auto 0; font-family: var(--f-title); font-weight: 500; font-size: clamp(2rem, 9.4vw, 4.4rem); letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.contact__mail { display: block; width: max-content; max-width: 100%; margin: 10px auto 0; font-size: clamp(1.02rem, 3.6vw, 1.3rem); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; }
.contact__note { margin-top: 18px; font-size: .9rem; color: rgba(51, 49, 47, .72); }
.contact .actions { margin-top: 30px; }
.social { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(51, 49, 47, .3); transition: background .3s, color .3s, box-shadow .3s; }
.social a:hover { background: var(--anthracite); color: var(--ivoire); box-shadow: inset 0 0 0 1.5px var(--anthracite); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social svg.is-line { fill: none; stroke: currentColor; stroke-width: 1.7; }
.social svg.is-line circle:last-child { fill: currentColor; stroke: none; }

/* ---------- pied de page ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad) 110px; font-size: .84rem; color: rgba(51, 49, 47, .72); }
.legal summary { cursor: pointer; width: max-content; font-family: var(--f-title); font-weight: 600; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--anthracite); padding: 8px 0; list-style: none; }
.legal summary::-webkit-details-marker { display: none; }
.legal summary::after { content: "+"; display: inline-block; margin-left: 10px; font-size: 1rem; letter-spacing: 0; transition: transform .4s var(--ease); }
.legal[open] summary::after { transform: rotate(45deg); }
.legal__in { display: grid; gap: 16px; padding: 12px 0 8px; max-width: 70ch; }
.legal__in b { font-family: var(--f-title); font-weight: 600; color: var(--anthracite); }
.legal__in p[data-a-completer] { padding: 10px 14px; border-radius: 10px; background: rgba(217, 201, 184, .45); }
.legal__in span[data-a-completer] { padding: 1px 7px; border-radius: 6px; background: rgba(217, 201, 184, .6); }
.foot__site { margin-top: 14px; }
.foot__site a { font-family: var(--f-title); font-weight: 600; color: var(--anthracite); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
[hidden] { display: none !important; }
.foot__base { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(51, 49, 47, .12); }

/* ---------- barre d'actions (mobile) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 6px; border-radius: 18px; background: rgba(51, 49, 47, .94); color: var(--ivoire); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(51, 49, 47, .7); transform: translateY(140%); transition: transform .7s var(--ease);
}
.dock.is-on { transform: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 13px; font-family: var(--f-title); font-weight: 600; font-size: .88rem; }
.dock a:active { background: rgba(245, 242, 236, .14); }

/* ---------- apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero__txt > *, .js .view { opacity: 0; animation: rise 1.1s var(--ease) forwards; }
.js .hero__txt > :nth-child(1) { animation-delay: .05s; }
.js .hero__txt > :nth-child(2) { animation-delay: .14s; }
.js .hero__txt > :nth-child(3) { animation-delay: .26s; }
.js .hero__txt > :nth-child(4) { animation-delay: .36s; }
.js .hero__txt > :nth-child(5) { animation-delay: .46s; }
.js .view { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- écrans larges ---------- */
@media (min-width: 760px) {
  .top__brand img { width: 66px; }
  .top__nav { display: flex; margin-left: auto; margin-right: 14px; }
  .acts__list { grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 5vw, 70px); }
  .act { grid-template-columns: 54px 1fr; padding: 28px 0; }
  .dock { display: none; }
  .foot { padding-bottom: 40px; }
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; min-height: calc(100svh - 80px); padding-top: 40px; padding-bottom: 60px; }
  .hero__title { font-size: clamp(2.8rem, 4.5vw, 4.3rem); }
  .view__stage { aspect-ratio: 4 / 3; border-radius: 22px; }
}
@media (max-width: 420px) {
  .top__call span { display: none; }
  .top__call { padding: 0 13px; }
  .hero .actions .btn { flex: 1 1 calc(50% - 5px); }
  .hero .actions .btn--soft { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__txt > *, .js .view { opacity: 1; transform: none; animation: none; transition: none; }
  .dock { transition: none; }
}
