/* =========================================================
   Glenn Beaudet — Styles complets
   Aesthetic: editorial luxury · marine breton · ink blue / white
   ========================================================= */

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --ink:        #061826;
  --ink-2:      #0A2238;
  --ivory:      #FFFFFF;
  --ivory-dim:  #A8B8C8;
  --accent:     #FFFFFF;
  --accent-soft:#C9D6E2;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans:    "Geist", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 5vw, 56px);

  --p: 0; /* scroll progress hero, updated by JS */
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* =========================================================
   BACKGROUNDS PAR SECTION
   ========================================================= */
.section--dark   { background: #041827; }  /* aligné avec footer__territory */
.section--light  { background: #092238; }  /* aligné avec footer__contact */
.footer__contact { background: #092238; }
.footer__territory { background: #041827; }


/* =========================================================
   SECTION SEPARATOR
   ========================================================= */
.section-sep {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.12) 70%, transparent 100%);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  color: var(--ivory);
}

.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
  transform: translate3d(0, calc(var(--p) * 18vh), 0) scale(calc(1 + var(--p) * 0.08));
  transform-origin: 50% 30%;
  will-change: transform;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.72) hue-rotate(-8deg);
}
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(6,24,38,0) 0%, rgba(6,24,38,.40) 55%, rgba(6,24,38,.88) 100%),
    linear-gradient(180deg, rgba(6,24,38,.55) 0%, rgba(6,24,38,.18) 35%, rgba(6,24,38,.72) 100%);
  opacity: calc(0.55 + var(--p) * 0.45);
  transition: opacity .1s linear;
}
.hero__grain {
  position: absolute; inset: -20%;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}


/* =========================================================
   BREADCRUMB — fil d'ariane sous-pages ville
   ========================================================= */
.breadcrumb {
  position: absolute;
  top: clamp(68px, 8vw, 96px);
  left: var(--pad);
  z-index: 6;
}
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb__item {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  color: rgba(255,255,255,.25);
}
.breadcrumb__link {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .25s;
}
.breadcrumb__link:hover {
  color: rgba(255,255,255,.85);
}
.breadcrumb__item--current {
  color: rgba(255,255,255,.75);
}
@media (max-width: 480px) {
  .breadcrumb { display: none; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: clamp(16px, 2.4vw, 28px) var(--pad);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: calc(1 - var(--p) * 1.4);
  transform: translate3d(0, calc(var(--p) * -16px), 0);
  will-change: opacity, transform;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.nav__brand img {
  display: block;
  height: clamp(48px, 6vh, 68px);
  width: auto;
}
.nav__links {
  display: flex;
  gap: clamp(12px, 2.4vw, 36px);
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  color: var(--ivory);
  font-weight: 500;
  font-size: 12px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent-soft);
  transition: right .45s cubic-bezier(.2,.7,.1,1);
}
.nav__links a:hover::after { right: 0; }
.nav__cta {
  letter-spacing: .04em;
  border: 1px solid rgba(255,255,255,.65);
  padding: 6px 14px !important;
  border-radius: 2px;
  transition: background .3s, border-color .3s;
}
.nav__cta:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,1);
}
/* Pas de soulignement sur le CTA encadré */
.nav__links li:last-child a::after { display: none; }

@media (max-width: 600px) {
  .nav__links li:not(:last-child) { display: none; }
}


/* =========================================================
   SECTION SEPARATOR
   ========================================================= */
.section-sep {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.12) 70%, transparent 100%);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* =========================================================
   HERO CONTENT
   ========================================================= */
.hero__content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  /* 1fr en haut ET en bas pour centrer eyebrow + display + meta (logique identique à .page-conciergerie) */
  grid-template-rows: 1fr auto auto auto 1fr;
  gap: clamp(20px, 4vh, 40px);
  padding: clamp(90px, 12vh, 160px) var(--pad) clamp(20px, 3vh, 44px);
  align-content: stretch;
  justify-items: center;
  text-align: center;
}
/* Placement explicite : eyebrow en haut du groupe, display dessous (collé), meta dessous */
.hero__content > .eyebrow {
  grid-row: 2;
  align-self: end;
}
.hero__content > .display {
  grid-row: 3;
  align-self: start;
}
.hero__content > .meta {
  grid-row: 4;
}
@media (max-width: 600px) {
  .hero__content {
    /* 1fr en haut ET en bas pour vraiment centrer eyebrow + display + meta */
    grid-template-rows: 1fr auto auto auto 1fr;
    gap: 16px;
    padding: 80px var(--pad) 90px;
    align-content: stretch;
  }
  .eyebrow {
    grid-row: 2;
    align-self: end;
  }
  .display {
    grid-row: 3;
  }
  .meta {
    grid-row: 4;
    align-self: start;
    margin-top: 12px;
  }
  /* scroll-hint repositionné en bas */
  .scroll-hint {
    bottom: 24px;
    font-size: 9px;
  }
  .scroll-hint__line {
    height: 28px;
  }
}

/* eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(13.8px, 1.25vw, 16.3px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 500;
  opacity: calc(1 - var(--p) * 1.6);
  transform: translate3d(0, calc(var(--p) * -10px), 0);
  animation: fadeUp 1s .2s cubic-bezier(.2,.7,.1,1) both;
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
}
@media (max-width: 600px) {
  .eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
    gap: 10px;
    margin-bottom: 6px;
  }
  .eyebrow__line {
    width: 18px;
  }
}
.eyebrow__line {
  display: inline-block;
  width: clamp(20px, 5vw, 56px);
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* big name */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(80px, 18vw, 300px);
  line-height: .9;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ivory);
  text-align: center;
}

.display__row {
  display: block;
  text-align: center;
  will-change: transform, opacity;
}
.display__row--first {
  transform: translate3d(calc(var(--p) * -26vw), calc(var(--p) * -2vh), 0);
  opacity: calc(1 - var(--p) * 1.2);
}
.display__row--second {
  font-style: italic;
  font-weight: 400;
  margin-top: clamp(-20px, -1.4vw, -6px);
  transform: translate3d(calc(var(--p) * 26vw), calc(var(--p) * 2vh), 0);
  opacity: calc(1 - var(--p) * 1.2);
}

/* Troisième ligne hero (sous-pages 3 lignes) : repart à gauche comme --first */
.display__row--third {
  font-style: italic;
  font-weight: 400;
  margin-top: clamp(-12px, -.8vw, -4px);
  transform: translate3d(calc(var(--p) * -26vw), calc(var(--p) * 2vh), 0);
  opacity: calc(1 - var(--p) * 1.2);
  will-change: transform, opacity;
}

/* Sous-pages ville : H1 plus petit que le hero principal */
.display--ville {
  font-size: clamp(36px, 9vw, 130px);
}
.display--ville .display__row--second {
  margin-top: clamp(-10px, -.8vw, -4px);
}
.display--ville .display__row--third {
  margin-top: clamp(-10px, -.8vw, -4px);
}
@media (max-width: 480px) {
  .display--ville {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1;
  }
  .display--ville .display__row--second,
  .display--ville .display__row--third {
    margin-top: -2px;
  }
}

/* =========================================================
   SECTION ÉDITORIALE — pages villes SEO
   ========================================================= */
.editorial {
  position: relative;
  padding: clamp(72px, 12vh, 140px) var(--pad);
  overflow: hidden;
}
.editorial__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}
.editorial__header {
  margin-bottom: clamp(48px, 7vh, 72px);
}
.editorial__header .kicker { margin-bottom: clamp(16px, 2.5vh, 24px); }
.editorial__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ivory);
  margin: clamp(12px, 2vh, 18px) 0 clamp(16px, 2.5vh, 24px);
}
.editorial__title em { font-style: italic; color: var(--ivory-dim); }
.editorial__intro {
  font-family: var(--sans);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.75;
  color: var(--ivory-dim);
  max-width: 72ch;
  margin: 0;
}
.editorial__body {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 80px);
}
.editorial__block {}
.editorial__h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--ivory);
  margin: 0 0 clamp(18px, 2.5vh, 26px);
}
.editorial__block p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.8;
  color: var(--ivory-dim);
  margin: 0 0 clamp(14px, 2vh, 20px);
  max-width: 74ch;
}
.editorial__block p:last-child { margin: 0; }
.editorial__block strong { color: var(--ivory); font-weight: 500; }
.editorial__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(22px, 3vh, 32px);
}
@media (max-width: 600px) { .editorial__grid { grid-template-columns: 1fr; } }
.editorial__card {
  padding: clamp(20px, 2.5vw, 28px) clamp(18px, 2vw, 24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 100%);
  transition: border-color .4s, background .4s;
}
.editorial__card:hover {
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.01) 100%);
}
.editorial__h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(13px, 1vw, 14px);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 0 10px;
}
.editorial__card p {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(12px, .9vw, 13px);
  line-height: 1.7;
  color: var(--ivory-dim);
  margin: 0;
  max-width: none;
}
.word { display: inline-block; white-space: nowrap; }
.char {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(6deg);
  opacity: 0;
  animation: charReveal 1.1s cubic-bezier(.2,.7,.1,1) forwards;
  animation-delay: calc(0.45s + var(--i) * 0.055s);
}
.display__row--second .char {
  animation-delay: calc(0.85s + var(--i) * 0.045s);
}

@keyframes charReveal {
  0%   { transform: translate3d(0, 110%, 0) rotate(6deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* meta row */
.meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  padding-top: clamp(14px, 3vh, 24px);
  border-top: 1px solid rgba(255,255,255,.18);
  opacity: calc(1 - var(--p) * 1.4);
  transform: translate3d(0, calc(var(--p) * 8px), 0);
  animation: fadeUp 1s 1.5s cubic-bezier(.2,.7,.1,1) both;
}
.meta__col {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.meta__col--right { justify-content: flex-end; }
.meta__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent-soft);
  letter-spacing: .02em;
}
.meta__link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  letter-spacing: .04em;
  position: relative;
  padding-bottom: 4px;
  color: var(--ivory);
}
.meta__link svg { transition: transform .45s cubic-bezier(.2,.7,.1,1); }
.meta__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: rgba(255,255,255,.35);
}
.meta__link:hover svg { transform: translateX(6px); }

@media (max-width: 600px) {
  .meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .meta__col {
    justify-content: center;
  }
  .meta__col--right {
    justify-content: center;
  }
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vh, 28px);
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  opacity: calc(1 - var(--p) * 2);
}
.scroll-hint__label { font-weight: 500; }
.scroll-hint__line {
  position: relative;
  width: 1px; height: 40px;
  background: rgba(255,255,255,.25);
  overflow: hidden;
}
.scroll-hint__line span {
  position: absolute; left: 0; top: -50%;
  width: 1px; height: 50%;
  background: var(--accent-soft);
  animation: scrollDot 2.4s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scrollDot {
  0%   { top: -50%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* =========================================================
   SHARED — halos, kicker
   ========================================================= */
.manifest__bg,
.founder__bg,
.reviews__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}

.manifest__halo,
.founder__halo,
.reviews__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.manifest__halo--a,
.founder__halo--a,
.reviews__halo--a {
  width: 60vw; height: 60vw;
  top: -20vw; left: -15vw;
  background: radial-gradient(circle, #0E2F4A 0%, transparent 70%);
}
.manifest__halo--b,
.founder__halo--b,
.reviews__halo--b {
  width: 50vw; height: 50vw;
  bottom: -20vw; right: -10vw;
  background: radial-gradient(circle, #0A2238 0%, transparent 70%);
  opacity: .5;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: clamp(16px, 3vh, 28px);
}
.kicker__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 12px rgba(255,255,255,.6);
  flex-shrink: 0;
}

/* filet supérieur commun */
.manifest::before,
.founder::before,
.reviews::before,
.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(420px, 50vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}

/* =========================================================
   MANIFEST — 360° Bretagne Sud
   ========================================================= */
.manifest {
  position: relative;
  isolation: isolate;
  color: var(--ivory);
  padding: clamp(72px, 12vh, 160px) var(--pad) clamp(72px, 12vh, 140px);
  overflow: hidden;
}
.manifest__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}

/* grid 60/40 */
.manifest__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-bottom: clamp(64px, 12vh, 120px);
}

.manifest__head { text-align: left; }

/* title levels */
.manifest__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.manifest__title-amorce {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.2;
  color: var(--ivory-dim);
  margin-bottom: clamp(12px, 2vh, 20px);
}
.manifest__title-display {
  line-height: 1;
  margin-bottom: clamp(20px, 3.5vh, 40px);
}
.manifest__360 {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(64px, 10vw, 140px);
  letter-spacing: -.02em;
  color: var(--ivory);
}
.manifest__360-ring { display: none; }
.manifest__title-sub {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 44px);
  line-height: 1.15;
  color: var(--ivory-dim);
  display: block;
  text-wrap: balance;
}
.manifest__title-sub em { font-style: italic; color: var(--ivory); }
.manifest__title-amp {
  font-family: var(--display);
  font-style: italic;
  color: var(--ivory-dim);
  margin: 0 .15em;
  opacity: .7;
}
.manifest__lede {
  font-family: var(--sans);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--ivory-dim);
  margin: clamp(20px, 3.5vh, 32px) 0 0;
  max-width: 52ch;
}
.manifest__lede strong { color: var(--ivory); font-weight: 500; }
.manifest__caption {
  margin: clamp(24px, 3.5vh, 36px) 0 0;
  padding-top: clamp(16px, 2.5vh, 24px);
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.5;
  color: var(--ivory-dim);
}
.manifest__caption span {
  display: inline;
  margin-left: .4em;
  color: var(--ivory);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85em;
  letter-spacing: .04em;
}

/* responsive manifest */
@media (max-width: 900px) {
  .manifest__intro {
    grid-template-columns: 1fr;
    gap: clamp(40px, 7vh, 72px);
  }
  .manifest__caption {
    white-space: normal;
  }
}

/* =========================================================
   COMPASS
   ========================================================= */
.compass {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  --c: 0;
  --reveal: 0;
  opacity: calc(0.15 + var(--reveal) * 0.85);
  transform: translate3d(0, calc((1 - var(--reveal)) * 32px), 0) scale(calc(0.92 + var(--reveal) * 0.08));
  transition: opacity .9s cubic-bezier(.2,.7,.1,1), transform .9s cubic-bezier(.2,.7,.1,1);
  will-change: opacity, transform;
}
.compass__svg {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(calc(var(--c) * 4deg - 2deg));
  transition: transform .15s linear;
}
.compass__rose {
  transform-origin: 240px 240px;
  animation: roseDrift 90s linear infinite;
}
@keyframes roseDrift {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.compass__needle {
  transform-origin: 240px 240px;
  transform: rotate(calc(var(--c) * 360deg));
  transition: transform .12s linear;
}
.compass__label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}
.compass__label-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  color: var(--ivory-dim);
  letter-spacing: .04em;
}
.compass__label-text {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 500;
}
.compass__label--n { top: -36px; left: 50%; transform: translateX(-50%); }
.compass__label--s { bottom: -36px; left: 50%; transform: translateX(-50%); }

@media (max-width: 900px) {
  .compass { max-width: 340px; }
}
@media (max-width: 800px) {
  .compass { max-width: 200px; }
  .compass__label-text { font-size: 9px; letter-spacing: .15em; }
  .compass__label-num { font-size: 11px; }
  .compass__label--n { top: -28px; }
  .compass__label--s { bottom: -28px; }
}
@media (max-width: 480px) {
  .compass { max-width: 170px; }
}

/* =========================================================
   SERVICES — cartes 01/02
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: stretch;
}
.services__sep {
  display: block;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.18) 30%, rgba(255,255,255,.18) 70%, transparent 100%);
  justify-self: center;
}

.service {
  position: relative;
  padding: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 40px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,0) 100%);
  display: flex; flex-direction: column;
  transition: border-color .5s, background .5s;
}
.service:hover {
  border-color: rgba(255,255,255,.32);
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.01) 100%);
}
.service__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(24px, 4vw, 40px);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.service__num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  color: var(--ivory);
}
.service__tag {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
}
.service__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .98;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  color: var(--ivory);
}
.service__title-em {
  display: block;
  font-style: italic;
  color: var(--ivory-dim);
}
.service__lede {
  font-size: clamp(14px, 1vw, 15px);
  line-height: 1.65;
  color: var(--ivory-dim);
  margin: 0 0 clamp(20px, 3vw, 28px);
}
.service__lede strong { color: var(--ivory); font-weight: 500; }
.service__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ivory);
  flex: 1;
}
.service__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.service__list li:first-child { border-top: none; padding-top: 0; }
.service__list li span { color: var(--accent-soft); font-family: var(--display); }

/* CTA "Découvrir" en bas de carte service */
.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 3vh, 28px);
  padding-top: clamp(16px, 2.4vh, 22px);
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  align-self: flex-start;
  transition: gap .35s cubic-bezier(.2,.7,.1,1);
}
.service__cta::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.2,.7,.1,1);
}
.service__cta:hover::before { transform: scaleX(.25); }
.service__cta:hover { gap: 14px; }
.service__cta svg {
  transition: transform .4s cubic-bezier(.2,.7,.1,1);
}
.service__cta:hover svg { transform: translateX(4px); }

@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
  .services__sep { display: none; }
}

/* =========================================================
   REVIEWS — Vos avis
   ========================================================= */
.reviews {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 12vh, 140px) var(--pad);
  overflow: hidden;
}
.reviews__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}
.reviews__head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(36px, 6vh, 56px);
}
.reviews__head .kicker { justify-content: center; }
.reviews__title {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: clamp(12px, 2vh, 18px) 0 clamp(10px, 1.5vh, 16px);
  color: var(--ivory);
}
.reviews__title em { font-style: italic; color: var(--ivory-dim); }
.reviews__lede {
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6;
  color: var(--ivory-dim);
  margin: 0;
}
.reviews__widget { min-height: 320px; contain: layout; }

/* =========================================================
   FOUNDER — Le mot du fondateur
   ========================================================= */
.founder {
  position: relative;
  isolation: isolate;
  padding: clamp(72px, 12vh, 140px) var(--pad);
  overflow: hidden;
}
.founder__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: stretch;
}

/* photo */
.founder__visual { margin: 0; padding: 0; position: relative; height: 100%; }
.founder__visual-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 100%;
  min-height: 420px;
}
.founder__visual-frame::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.5vw, 16px);
  border: 1px solid rgba(255,255,255,.22);
  z-index: 3;
  pointer-events: none;
}
.founder__visual-frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,24,38,.18) 0%, rgba(6,24,38,.02) 38%, rgba(6,24,38,.55) 100%),
    radial-gradient(120% 80% at 50% 25%, transparent 45%, rgba(6,24,38,.18) 100%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.founder__visual-frame img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(.35) brightness(.94) contrast(1.05) saturate(.85);
  position: relative;
  z-index: 1;
}

/* text */
.founder__content { max-width: 64ch; }
.founder__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: clamp(12px, 2vh, 20px) 0 8px;
  color: var(--ivory);
}
.founder__title em { font-style: italic; color: var(--ivory-dim); }
.founder__role {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin: 0 0 clamp(24px, 4vh, 40px);
}
.founder__body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.78;
  color: var(--ivory-dim);
}
.founder__body p { margin: 0 0 clamp(12px, 2vh, 18px); }
.founder__body strong { color: var(--ivory); font-weight: 500; }
.founder__body-close {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ivory);
  margin-top: clamp(20px, 3vh, 32px) !important;
  padding-top: clamp(18px, 2.5vh, 26px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.founder__sign { margin-top: clamp(28px, 4vh, 48px); }
.founder__sign img {
  display: block;
  height: clamp(48px, 7vh, 80px);
  width: auto;
  opacity: .95;
}

@media (max-width: 840px) {
  .founder__inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vh, 44px);
  }
  /* photo après signature : order naturel (content=1, visual=2) */
  .founder__content { order: 1; }
  .founder__visual { order: 2; max-width: 360px; margin: 0 auto; }
  .founder__visual-frame { min-height: 300px; }
}

/* =========================================================
   FOOTER — site-footer (contact + territory fusionnés)
   ========================================================= */
.site-footer {
  position: relative;
  overflow: hidden;
}
.footer__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.footer__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.footer__halo--a {
  width: 60vw; height: 60vw;
  top: -20vw; left: -15vw;
  background: radial-gradient(circle, #0E2F4A 0%, transparent 70%);
  opacity: .3;
}
.footer__halo--b {
  width: 50vw; height: 50vw;
  bottom: -20vw; right: -10vw;
  background: radial-gradient(circle, #020f18 0%, transparent 70%);
  opacity: .6;
}

/* séparateur interne */
.footer__sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  position: relative;
  z-index: 1;
}

/* copyright */
.footer__bottom {
  position: relative;
  z-index: 1;
  padding: clamp(14px, 2vh, 22px) var(--pad);
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #041827;
}
.footer__copy {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6A8A9E;  /* contraste suffisant sur #041827 — ratio ~4.6:1 */
  margin: 0;
}

/* =========================================================
   CONTACT — zone dans footer
   ========================================================= */
.contact {
  position: relative;
  padding: clamp(64px, 10vh, 120px) var(--pad) clamp(48px, 7vh, 80px);
}
.contact__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

/* left */
.contact__title {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(26px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: clamp(12px, 2vh, 20px) 0 clamp(14px, 2vh, 22px);
  color: var(--ivory);
}
.contact__title em { font-style: italic; color: var(--ivory-dim); }
.contact__lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.75;
  color: var(--ivory-dim);
  max-width: 44ch;
  margin: 0 0 clamp(28px, 4vh, 40px);
}
.contact__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ivory);
  margin-bottom: clamp(28px, 4vh, 40px);
}
.contact__phone svg { color: var(--ivory-dim); flex-shrink: 0; }

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
}
.contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  transition: border-color .3s, color .3s, background .3s;
}
.contact__social-link:hover {
  border-color: rgba(255,255,255,.45);
  color: var(--ivory);
  background: rgba(255,255,255,.04);
}
.contact__social-link svg { flex-shrink: 0; }

/* right — formulaire */
.contact__form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.5vw, 18px);
}
.contact__form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact__form-field--full { grid-column: 1 / -1; }
.contact__form-field label {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  font-family: var(--sans);
  font-weight: 400;
}
.contact__form-field input,
.contact__form-field textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  width: 100%;
  outline: none;
  transition: border-color .3s, background .3s;
  -webkit-appearance: none;
}
.contact__form-field input::placeholder,
.contact__form-field textarea::placeholder {
  color: rgba(168,184,200,.35);
}
.contact__form-field input:focus,
.contact__form-field textarea:focus {
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.06);
}
.contact__form-field textarea {
  resize: vertical;
  min-height: 130px;
}
.contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .3s, transform .2s, opacity .3s;
}
.contact__submit:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.contact__submit svg { transition: transform .3s; }
.contact__submit:hover svg { transform: translateX(4px); }

@media (max-width: 800px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vh, 56px);
  }
  .contact__lede { max-width: 100%; }
}
@media (max-width: 480px) {
  .contact__form-wrap {
    grid-template-columns: 1fr;
  }
  .contact__form-field--full { grid-column: 1; }
}

/* =========================================================
   TERRITORY — zone dans footer
   ========================================================= */
.territory {
  position: relative;
  padding: clamp(48px, 7vh, 80px) var(--pad) clamp(36px, 5vh, 60px);
}
.territory__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
}
.territory__head { max-width: 720px; }
.territory__title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: clamp(8px, 1.2vh, 12px) 0 clamp(10px, 1.5vh, 16px);
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 10px;
}
.territory__pin {
  flex-shrink: 0;
  color: var(--ivory);
  opacity: .8;
}
.territory__lede {
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6;
  color: var(--ivory-dim);
  max-width: 60ch;
  margin: 0;
}
.territory__lede strong { color: var(--ivory); font-weight: 500; }

/* départements */
.territory__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  margin: clamp(24px, 4vh, 40px) 0 clamp(20px, 3vh, 32px);
}
@media (max-width: 600px) {
  .territory__cols { grid-template-columns: 1fr; gap: clamp(28px, 4vh, 40px); }
}
.territory__col {
  display: flex;
  flex-direction: column;
}
/* conservé pour compatibilité éventuelle */
.territory__depts {
  display: grid;
  grid-template-columns: auto 1px auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  margin: clamp(24px, 4vh, 40px) 0 clamp(24px, 3.5vh, 36px);
  padding: 0;
}
.territory__dept {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.territory__col .territory__dept-name {
  margin-bottom: clamp(14px, 2vh, 20px);
  display: block;
}
.territory__col .territory__cities {
  margin: 0;
}
.territory__dept-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--ivory);
}
.territory__dept-name em {
  font-style: italic;
  font-weight: 300;
  font-size: .5em;
  color: var(--ivory-dim);
  margin-left: .15em;
  vertical-align: .15em;
}
.territory__depts-sep {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.25), transparent);
}

@media (max-width: 600px) {
  .territory__depts {
    grid-template-columns: 1fr;
    gap: clamp(12px, 2vh, 20px);
  }
  .territory__depts-sep {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  }
}

/* villes */
.territory__cities {
  list-style: none;
  margin: 0 0 clamp(20px, 3vh, 32px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.territory__cities li {
  font-size: 12px;
  letter-spacing: .04em;
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  color: var(--ivory);
  transition: border-color .3s, background .3s, transform .3s;
}
.territory__cities li:hover {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
  transform: translateY(-2px);
}
.territory__note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ivory-dim);
  font-style: italic;
  font-family: var(--display);
  font-weight: 300;
  margin: 0;
  white-space: nowrap;
  overflow-x: auto;
}
@media (max-width: 700px) {
  .territory__note { white-space: normal; }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__media { transform: none !important; }
  .char { transform: none; opacity: 1; }
  .compass__rose,
  .compass__needle,
  .compass__svg { animation: none; transform: none !important; }
}
