/* Ang'elle & lui, intro « Le temps d'un soin »
   Lumière haute des visuels Sothys, encre chaude, un seul accent : l'or du logo.
   Tout est cloisonné sous .al-root (classes préfixées al-) : l'intro peut vivre dans une
   page WordPress sans toucher au thème, et le thème la touche le moins possible. */

/* Polices hébergées avec l'intro (aucun appel à Google Fonts). Licence SIL OFL 1.1, voir fonts/.
   Noms propres à l'intro, pour ne jamais se mêler aux polices déclarées par le thème. */
@font-face { font-family: 'AL Cormorant'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'AL Cormorant'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'AL Cormorant'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'AL Cormorant'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'AL Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'AL Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'AL Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }

.al-root {
  --al-ivory: #f7f4ef;
  --al-ink: #1d1815;
  --al-gold: #c1a47d;
  --al-gold-deep: #8a6c41;
  --al-night: #110d0b;
  --al-serif: 'AL Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --al-sans: 'AL Manrope', 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.al-root, .al-root *, .al-root *::before, .al-root *::after { box-sizing: border-box; }

/* Page autonome (fichier index.html ou modèle de page WordPress plein écran) */
html.angelle-intro-page { -webkit-text-size-adjust: 100%; background: #f7f4ef; }
html.angelle-intro-page body { margin: 0; background: #f7f4ef; overflow-x: hidden; }

.al-root {
  position: relative;
  background: var(--al-ivory);
  color: var(--al-ink);
  font-family: var(--al-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:where(.al-root) a { color: inherit; }
:where(.al-root) img { display: block; border: 0; box-shadow: none; border-radius: 0; }
/* Garde-fous contre les styles de titres et paragraphes du thème */
.al-root .al-title { text-transform: none; text-shadow: none; padding: 0; border: 0; background: none; color: inherit; }
.al-root p { text-shadow: none; padding: 0; border: 0; background: none; }
.al-root p:not(.al-title) { font-family: var(--al-sans); }

/* Intégré dans une page (code court) : pleine largeur, même dans un conteneur étroit.
   --al-vw (posé par le script) = largeur sans la barre de défilement.
   !important : les thèmes à blocs imposent leurs marges aux enfants du contenu. */
.al-root.al-embed {
  width: var(--al-vw, 100vw) !important;
  max-width: none !important;
  margin-left: calc(50% - var(--al-vw, 100vw) / 2) !important;
  margin-right: calc(50% - var(--al-vw, 100vw) / 2) !important;
  margin-top: 0;
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ */
/* Barre haute                                                         */
/* ------------------------------------------------------------------ */

.al-topbar {
  position: fixed;
  z-index: 20;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--al-ink);
  transition: color .6s ease;
}
.al-root[data-theme="dark"] .al-topbar { color: var(--al-ivory); }

.al-brand {
  position: relative;
  display: block;
  height: 66px;
  aspect-ratio: 640 / 222;
  margin: -14px 0;
}
.al-brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transition: opacity .6s ease;
}
.al-brand .al-brand-sombre { opacity: 0; }
.al-root[data-theme="dark"] .al-brand .al-brand-sombre { opacity: 1; }
.al-root[data-theme="dark"] .al-brand .al-brand-clair { opacity: 0; }

.al-topnav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }

.al-skip {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .7;
  transition: opacity .3s ease;
}
.al-skip:hover, .al-skip:focus-visible { opacity: 1; }

.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--al-gold);
  border-radius: 999px;
  background: var(--al-gold);
  color: var(--al-ink) !important;
  font-family: var(--al-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.al-btn:hover, .al-btn:focus-visible { background: #d3ba97; border-color: #d3ba97; transform: translateY(-1px); }
.al-btn:active { transform: translateY(0); }
.al-btn-sm { min-height: 42px; padding: 0 22px; font-size: .68rem; }
.al-btn-ghost { background: transparent; border-color: rgba(247, 244, 239, .45); color: var(--al-ivory) !important; }
.al-btn-ghost:hover, .al-btn-ghost:focus-visible { background: rgba(247, 244, 239, .08); border-color: var(--al-ivory); }

.al-root :focus-visible { outline: 2px solid var(--al-gold); outline-offset: 4px; }

/* ------------------------------------------------------------------ */
/* Typographie                                                         */
/* ------------------------------------------------------------------ */

.al-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9em;
  margin: 0 0 1.5rem;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.al-num { color: var(--al-gold-deep); font-weight: 600; }
.al-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--al-gold); }
.al-tag {
  padding: .35em .9em;
  border: 1px solid var(--al-gold);
  border-radius: 999px;
  color: var(--al-gold);
  font-size: .62rem;
  letter-spacing: .2em;
}

.al-title {
  margin: 0;
  font-family: var(--al-serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 6vw, 6rem);
  line-height: .98;
  letter-spacing: -.012em;
}
.al-title-xl { font-size: clamp(3.6rem, 8.4vw, 8.6rem); }
.al-title em { font-style: italic; color: var(--al-gold-deep); }
.al-line { display: block; overflow: hidden; padding: .06em .08em .16em 0; margin-bottom: -.16em; }
.al-line > span { display: block; will-change: transform; }

.al-lede {
  max-width: 27rem;
  margin: 1.7rem 0 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

.al-more {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--al-gold);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .3s ease, border-color .3s ease;
}
.al-more:hover, .al-more:focus-visible { color: var(--al-gold-deep); }

[data-tone="dark"] { color: var(--al-ivory); }
[data-tone="dark"] .al-title em,
[data-tone="dark"] .al-num { color: var(--al-gold); }
[data-tone="dark"] .al-more:hover { color: var(--al-gold); }

/* ------------------------------------------------------------------ */
/* Scènes : repli sans JavaScript (une scène par écran)                */
/* ------------------------------------------------------------------ */

.al-prelude {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 120px 7vw 40px;
}
.al-hint { display: none; }
.al-ring { display: none; }

.al-scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--al-ivory);
}
.al-scene[data-tone="dark"] { background: var(--al-night); }
.al-media { position: absolute; inset: 0; }
.al-img { width: 100%; height: 100%; object-fit: cover; }
.al-img-over { display: none; }
.al-copy { position: relative; z-index: 2; padding: 0 7vw 12vh; }
.al-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -22% -34%;
  background: radial-gradient(closest-side, rgba(247, 244, 239, .86), rgba(247, 244, 239, .6) 55%, rgba(247, 244, 239, 0));
  pointer-events: none;
}
[data-tone="dark"] .al-copy::before {
  background: radial-gradient(closest-side, rgba(17, 13, 11, .8), rgba(17, 13, 11, .5) 55%, rgba(17, 13, 11, 0));
}

.al-scene-fin { align-items: center; justify-content: center; text-align: center; }
.al-scene-fin .al-copy { padding: 110px 24px 90px; display: flex; flex-direction: column; align-items: center; }
.al-scene-fin .al-copy::before { display: none; }
.al-logo { width: min(460px, 78vw, 62vh); height: auto; margin-bottom: clamp(18px, 4.5vh, 44px); }
.al-scene-fin .al-title { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
.al-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2.4rem; }
.al-proof {
  display: flex; align-items: center; gap: .9em;
  margin: 2.4rem 0 0;
  font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--al-gold);
}
.al-address { margin: 1rem 0 0; font-size: .9rem; opacity: .78; }
.al-address a { text-decoration: none; border-bottom: 1px solid rgba(193, 164, 125, .6); }
.al-sep { margin: 0 .7em; opacity: .5; }

.al-anchor { display: block; height: 0; }

.al-signature {
  position: fixed;
  z-index: 20;
  left: clamp(20px, 4vw, 56px);
  bottom: 18px;
  margin: 0;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(29, 24, 21, .55);
  transition: color .6s ease;
}
.al-root[data-theme="dark"] .al-signature { color: rgba(247, 244, 239, .55); }
.al-signature a {
  color: var(--al-gold-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(193, 164, 125, .5);
  transition: color .3s ease, border-color .3s ease;
}
.al-root[data-theme="dark"] .al-signature a { color: var(--al-gold); }
.al-signature a:hover, .al-signature a:focus-visible { color: var(--al-ink); border-color: var(--al-gold); }
.al-root[data-theme="dark"] .al-signature a:hover,
.al-root[data-theme="dark"] .al-signature a:focus-visible { color: var(--al-ivory); }

.al-progress { display: none; }

/* ------------------------------------------------------------------ */
/* Scènes pilotées par le scroll                                       */
/* ------------------------------------------------------------------ */

.al-js .al-scroll { position: relative; }

.al-js .al-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--al-ivory);
  contain: layout paint;
}

.al-js .al-prelude {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  display: block;
  background: var(--al-ivory);
}
.al-js .al-prelude-copy {
  position: absolute;
  left: calc(var(--al-mx, 22vw) + var(--al-mr, 18vh) + 6vw);
  top: var(--al-my, 50vh);
  transform: translateY(-50%);
  will-change: transform, opacity;
}
.al-js .al-prelude .al-kicker { color: var(--al-ink); }

.al-js .al-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: absolute;
  left: 0; right: 0;
  bottom: 5.5vh;
  margin: 0;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--al-ink);
  will-change: opacity;
}
.al-js .al-hint span {
  width: 1px; height: 44px;
  background: linear-gradient(var(--al-gold), var(--al-gold)) no-repeat top / 100% 100%;
  transform-origin: top;
  animation: al-drip 2.6s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes al-drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.al-js .al-scene {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: block;
  visibility: hidden;
  pointer-events: none;
  will-change: opacity;
}
.al-js .al-scene.al-is-active .al-copy { pointer-events: auto; }

.al-js .al-media { overflow: hidden; }
.al-js .al-img {
  position: absolute;
  left: 0; top: 0;
  max-width: none;
  object-fit: fill;
  transform-origin: 0 0;
  will-change: transform;
  backface-visibility: hidden;
}
.al-js .al-img-over { display: block; will-change: transform, opacity; }

.al-js .al-copy {
  position: absolute;
  padding: 0;
  will-change: transform, opacity;
}
.al-js .al-copy > * { will-change: transform, opacity; }

.al-js [data-pos="left"] .al-copy { left: 7vw; bottom: 13vh; max-width: min(34rem, 40vw); }
.al-js [data-pos="right"] .al-copy { left: 54vw; right: 6vw; top: 50%; margin-top: -8.5rem; }
.al-js [data-pos="top"] .al-copy { left: 7vw; top: 19vh; max-width: min(34rem, 44vw); }
.al-js [data-pos="top-right"] .al-copy { left: 58vw; right: 6vw; top: 18vh; }
/* Titres sur une ligne, textes sur une ou deux lignes (ordinateur) */
@media (min-width: 760px) {
  .al-js .al-scene:not(.al-scene-fin) .al-line > span { white-space: nowrap; }
  .al-js .al-lede-1, .al-js .al-lede-2 { max-width: none; white-space: nowrap; }
  .al-js [data-pos="left"] .al-copy, .al-js [data-pos="top"] .al-copy { max-width: none; }
  .al-js [data-pos="right"] .al-copy { left: 48vw; right: auto; }
  .al-js [data-pos="top-right"] .al-copy { left: auto; right: 6vw; }
}
@media (max-width: 759px) {
  .al-lede br { display: none; }
}
.al-js [data-pos="center"] .al-copy {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 24px 70px;
}

.al-js .al-scene-fin {
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(193, 164, 125, .13), rgba(193, 164, 125, 0) 70%),
    var(--al-night);
}

.al-js .al-ring {
  display: block;
  position: absolute;
  z-index: 15;
  left: 0; top: 0;
  border: 1px solid var(--al-gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 34px rgba(193, 164, 125, .28), inset 0 0 34px rgba(193, 164, 125, .14);
  will-change: transform, opacity, width, height;
}

.al-js .al-progress {
  display: block;
  position: fixed;
  z-index: 20;
  right: clamp(14px, 2vw, 28px);
  top: 50%;
  width: 1px;
  height: 132px;
  margin-top: -66px;
  background: rgba(29, 24, 21, .16);
  transition: background-color .6s ease;
}
.al-root[data-theme="dark"] .al-progress { background: rgba(247, 244, 239, .2); }
.al-js .al-progress span {
  display: block;
  width: 100%; height: 100%;
  background: var(--al-gold);
  transform: scaleY(0);
  transform-origin: top;
}

/* ------------------------------------------------------------------ */
/* Téléphone                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 759px) {
  .al-topbar { padding: 16px 18px; }
  .al-brand { height: 50px; margin: -10px 0; }
  .al-skip { display: none; }
  .al-btn-sm { min-height: 40px; padding: 0 16px; font-size: .62rem; letter-spacing: .12em; }
  .al-title { font-size: clamp(2.7rem, 13vw, 3.8rem); }
  .al-title-xl { font-size: clamp(3.4rem, 17vw, 4.8rem); }
  .al-lede { font-size: .98rem; margin-top: 1.2rem; }
  .al-kicker { margin-bottom: 1.1rem; font-size: .66rem; letter-spacing: .2em; }
  .al-signature { left: 18px; bottom: 10px; font-size: .54rem; }

  .al-js .al-prelude-copy {
    left: 0; right: 0;
    top: calc(var(--al-my, 36vh) + var(--al-mr, 30vw) + 7vh);
    transform: none;
    text-align: center;
  }
  .al-js .al-prelude .al-kicker { justify-content: center; }

  .al-js [data-pos="left"] .al-copy,
  .al-js [data-pos="right"] .al-copy,
  .al-js [data-pos="top"] .al-copy,
  .al-js [data-pos="top-right"] .al-copy {
    left: 22px; right: 22px; top: auto; bottom: 9vh;
    max-width: none; margin-top: 0;
  }
  .al-js .al-copy::before {
    inset: -16vh -22px -9vh;
    background: linear-gradient(to top, rgba(247, 244, 239, .97) 0%, rgba(247, 244, 239, .92) 62%, rgba(247, 244, 239, 0) 100%);
  }
  .al-js [data-pos="center"] .al-copy::before { display: none; }
  .al-js [data-tone="dark"] .al-copy::before {
    background: linear-gradient(to top, rgba(17, 13, 11, .95) 0%, rgba(17, 13, 11, .82) 62%, rgba(17, 13, 11, 0) 100%);
  }
  .al-js .al-progress { height: 90px; margin-top: -45px; }
  .al-ctas { flex-direction: column; align-self: stretch; }
  .al-address { font-size: .82rem; line-height: 1.7; }
  .al-sep { display: block; height: 0; overflow: hidden; margin: 0; }
}

@media (max-height: 640px) and (min-width: 760px) {
  .al-proof { display: none; }
  .al-logo { width: min(300px, 50vh); }
  .al-ctas { margin-top: 1.4rem; }
  .al-scene-fin .al-title { font-size: clamp(2rem, 7vh, 3rem); }
}

/* ------------------------------------------------------------------ */
/* Mouvement réduit, capture vidéo                                     */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .al-js .al-hint span { animation: none; }
  .al-btn, .al-topbar, .al-brand img { transition: none; }
}
.al-is-capture .al-hint span { animation: none; }
.al-is-capture .al-topbar, .al-is-capture .al-signature, .al-is-capture .al-signature a, .al-is-capture .al-brand img, .al-is-capture .al-progress { transition: none; }
