/* =============================================
   ÉLISE DAUNAY — style.css
   Designed & coded by josephpasqualini.com
   ============================================= */

@font-face {
  font-family: 'BSNotion';
  src: url('../fonts/BSNotion-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Design Tokens ───────────────────────────── */
:root {
  --color-primary:    #ff1e1e;
  --color-bg:         #FBEE9B;
  --color-white:      #FFFFFF;
  --font-family:      'BSNotion', Arial, sans-serif;
  --font-size-base:   16px;
  --line-height-base: 22px;
  --mobile-padding:   15px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-base:   0.3s ease;
  --t-smooth: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --t-loader: 0.8s cubic-bezier(0.85, 0, 0.15, 1);
  --t-link:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────── */
*,
*::after,
*::before {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ── Custom Cursor (désactivé) ───────────────── */

/* ── Loader ──────────────────────────────────── */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background-color: var(--color-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--t-loader);
  cursor: pointer;
}

#loader span {
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 600;
  line-height: var(--line-height-base);
  color: var(--color-bg);
  text-transform: none;
}

body.is-loading {
  overflow: hidden !important;
}

body.is-loading .logo-container,
body.is-loading .services-block,
body.is-loading .selected-clients-bar,
body.is-loading .email-corner {
  opacity: 0;
}

/* ── Reveal animation ────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-smooth), transform var(--t-smooth);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── Body ────────────────────────────────────── */
body {
  margin: 0;
  font-family: var(--font-family);
  text-align: center;
  overflow: hidden;
  background-color: var(--color-bg);
  height: 100dvh;
  width: 100vw;
  position: relative;
  color: var(--color-primary);
}

/* ── Focus states (keyboard nav) ─────────────── */
/* Note: also defined in reset block above — single source */

/* ── Carousel ────────────────────────────────── */
.image-carousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
}

.carousel-item {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 65%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

body.no-transition .carousel-item,
body.no-transition .email-corner a {
  transition: none !important;
}

.carousel-item.active.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.carousel-image {
  max-width: 70%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── Carousel Crosses ────────────────────────── */
.carousel-crosses {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  pointer-events: none;
  align-items: center;
  position: relative;
  top: 5px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.carousel-cross {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0;
  transform-origin: center center;
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  line-height: 1;
  scale: 0.6;
}

.carousel-cross.active {
  opacity: 1;
  scale: 1;
}

/* ── Caption ─────────────────────────────────── */
.image-caption {
  position: fixed;
  top: 10%;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-family);
  text-align: right;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  white-space: nowrap;
  z-index: 10;
}

.image-caption.active {
  opacity: 1;
}

.mobile-space {
  display: none;
}

.mobile-break {
  display: none;
}

.desktop-break {
  display: block;
}

/* ── Footer wrapper ──────────────────────────── */
.mobile-footer-wrapper {
  position: fixed;
  top: 75%;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  padding: 0 20px;
  z-index: 50;
  line-height: var(--line-height-base);
}

/* ── Logo / Bio ──────────────────────────────── */
.logo-container {
  position: relative;
  z-index: 20;
  pointer-events: none;
  flex: 0 1 38vw;
  max-width: 38vw;
  min-width: 20vw;
  overflow: visible;
  text-align: left;
}

.logo {
  width: auto;
  height: auto;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-family);
  white-space: normal;
  display: inline;
  text-align: left;
  line-height: var(--line-height-base);
  transition: color var(--t-base), opacity var(--t-smooth), transform var(--t-smooth);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  opacity: 0;
  transform: translateY(10px);
}

.logo.reveal-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.logo::after {
  content: "\00a0+";
  font-size: 24px;
  color: var(--color-primary);
  transition: color var(--t-base);
  display: inline-block;
  vertical-align: -4px;
  line-height: 1;
  width: 1.1em;
  text-align: center;
}

.logo-container.logo-open .logo::after {
  content: "\00a0\2212";
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover::after {
    content: "\00a0\2212";
  }
}

/* ── Services ────────────────────────────────── */
.services-block {
  position: relative;
  z-index: 3;
  text-align: left;
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--color-primary);
  pointer-events: none;
  margin: 0;
  margin-left: clamp(15px, 3vw, 44px);
  flex: 0 0 218px;
  white-space: nowrap;
  line-height: var(--line-height-base);
  opacity: 0;
  transform: translateY(10px);
}

.services-block p {
  margin: 0;
  padding: 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

.selected-clients-bar {
  position: relative;
  z-index: 50;
  white-space: normal;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: var(--font-size-base);
  color: var(--color-primary);
  line-height: var(--line-height-base);
  margin-left: 215px;
  flex: 0 1 auto;
  max-width: 50vw;
  text-align: left;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.selected-clients-bar .selected-clients-title {
  cursor: default;
  flex: 0 0 auto;
  max-width: fit-content;
  margin-right: 15px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.selected-clients-bar .image-caption {
  position: static !important;
  display: block !important;
  opacity: 1 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  text-align: left !important;
  white-space: normal;
  pointer-events: none;
  z-index: auto;
  filter: none;
  transition: none;
  flex: 1 1 auto;
  line-height: var(--line-height-base);
}

.services-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-family);
  cursor: pointer;
  pointer-events: auto;
  display: inline;
  transition: color var(--t-base);
  line-height: var(--line-height-base);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.services-title::after {
  content: "\00a0+";
  font-size: 24px;
  color: var(--color-primary);
  transition: color var(--t-base);
  display: inline-block;
  vertical-align: -4px;
  line-height: 1;
  width: 1.1em;
  text-align: center;
}

.logo-container.services-open~.services-block .services-title::after {
  content: "\00a0\2212";
}

@media (hover: hover) and (pointer: fine) {
  .services-title:hover::after {
    content: "\00a0\2212";
  }
}

.services-text {
  position: absolute;
  left: 0;
  right: auto;
  top: 22px;
  margin-top: 0;
  width: 600px;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  font-family: var(--font-family);
  font-weight: 600;
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
  display: none;
  pointer-events: auto;
}

.bio-text {
  display: inline-block;
  width: 70vw;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  text-align: justify;
  word-wrap: break-word;
  white-space: normal;
  z-index: 3;
  pointer-events: auto;
}

.bio-text p {
  margin: 0;
  padding: 0;
}

.bio-text a,
.bio-text a:link,
.bio-text a:visited,
.services-text a,
.services-text a:link,
.services-text a:visited {
  color: inherit;
  text-decoration: none;
}

.bio-text a:hover,
.services-text a:hover {
  color: var(--color-white);
}

/* ── Hover-white links ───────────────────────── */
.hover-white {
  cursor: pointer;
  transition: color var(--t-base);
  pointer-events: auto;
}

a.hover-white,
a.hover-white:link,
a.hover-white:visited {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base);
}

.hover-white:hover,
a.hover-white:hover {
  color: var(--color-white);
}

/* ── Email corner ────────────────────────────── */
.email-corner {
  position: absolute;
  right: 20px;
  top: 0;
  z-index: 20;
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--font-size-base);
  pointer-events: none;
  display: flex;
  gap: 15px;
  justify-content: end;
  line-height: var(--line-height-base);
  opacity: 0;
  transform: translateY(10px);
}

.email-corner a:nth-child(3) {
  justify-self: start;
}

.email-corner a:link,
.email-corner a:visited {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
  padding-left: 2px;
  background: linear-gradient(to right, var(--color-white) 0%, var(--color-white) 50%, var(--color-primary) 50%, var(--color-primary) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position var(--t-link);
}

.email-corner a:hover {
  background-position: 0% 0;
}

/* Feedback "copied" — texte rouge, pas de gradient */
.email-corner a[data-copied] {
  color: var(--color-primary) !important;
  -webkit-text-fill-color: var(--color-primary) !important;
  background: none !important;
  opacity: 1;
}

/* ── Prefers-reduced-motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #loader {
    transition: none !important;
  }

  .carousel-item {
    transition: none !important;
  }

}

