/* Configure les sections d'introduction visuelle, les heros de page et leurs variantes responsives. */
.df-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 74px);
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.df-hero--home {
  height: clamp(560px, 74svh, 780px);
  min-height: clamp(560px, 74svh, 780px);
  margin-bottom: 0;
  place-items: center;
}

.df-hero--home::before,
.df-hero--home::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.df-hero--home::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

.df-hero--home::after {
  right: max(1rem, calc((100vw - 1180px) / 2));
  bottom: clamp(1rem, 4vw, 2.4rem);
  width: clamp(150px, 20vw, 270px);
  aspect-ratio: 1;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 50%, rgba(34, 211, 238, 0.08) 51% 52%, transparent 53%),
    conic-gradient(from 220deg, rgba(34, 211, 238, 0.78), rgba(255, 31, 114, 0.08), transparent 42%, rgba(180, 76, 255, 0.55), rgba(34, 211, 238, 0.78));
  opacity: 0.7;
  filter: drop-shadow(0 0 42px rgba(34, 211, 238, 0.12));
}

.df-hero:not(.df-hero--home) {
  align-items: start;
  justify-items: center;
}

.df-hero:not(.df-hero--home)::before {
  content: "";
  position: absolute;
  right: max(-8rem, calc((100vw - 1180px) / 2 - 9rem));
  bottom: clamp(1.2rem, 5vw, 4rem);
  z-index: -1;
  width: min(680px, 58vw);
  aspect-ratio: 3 / 1;
  pointer-events: none;
  background: url("../../img/brand/df-logo-banner.png") center / contain no-repeat;
  background: image-set(
    url("../../img/brand/df-logo-banner.webp") type("image/webp"),
    url("../../img/brand/df-logo-banner.png") type("image/png")
  ) center / contain no-repeat;
  opacity: 0.1;
  filter: saturate(0.95) contrast(1.08) brightness(0.8);
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.92) 42%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0.92) 42%, transparent 76%);
}

.df-hero--skills::before,
.df-hero--formation::before,
.df-hero--experience::before,
.df-hero--realisations::before,
.df-hero--actualites::before,
.df-hero--contact::before {
  display: none;
}

.df-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.df-hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.df-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transform: scale(1.025);
  opacity: 0.64;
  filter: saturate(1.04) contrast(1.04) brightness(1.16);
}

.df-hero--contact .df-hero__bg img {
  object-position: center;
  opacity: 0.5;
  filter: saturate(1.08) contrast(1.06) brightness(0.78);
}

.df-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 0, 5, 0.12) 0%, rgba(8, 0, 5, 0.38) 58%, #080005 100%),
    linear-gradient(90deg, rgba(8, 0, 5, 0.88), rgba(8, 0, 5, 0.36) 42%, rgba(8, 0, 5, 0.7)),
    radial-gradient(760px 460px at 78% 28%, rgba(255, 31, 114, 0.18), transparent 66%),
    radial-gradient(620px 420px at 18% 62%, rgba(34, 211, 238, 0.16), transparent 64%),
    radial-gradient(620px 420px at 48% 10%, rgba(122, 92, 255, 0.15), transparent 68%);
}

.df-hero__content {
  position: relative;
  z-index: 1;
  width: var(--container);
}

.df-hero--home .df-hero__content {
  position: absolute;
  inset: 0;
  left: 50%;
  display: grid;
  align-items: center;
  justify-items: start;
  grid-template-columns: minmax(0, 0.98fr) minmax(220px, 0.38fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  transform: translateX(-50%);
}

.df-hero__content--home {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.df-home-hero__copy {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.45rem);
  max-width: 850px;
}

.df-home-hero__copy .df-home__kicker {
  margin: 0;
}

.df-home-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 760px;
}

.df-home-hero__tags a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  color: rgba(247, 249, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), rgba(255, 31, 114, 0.1)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.df-home-hero__tags a:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateY(-2px);
}

.df-home-hero__signature {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: clamp(190px, 24vw, 330px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(34, 211, 238, 0.16), transparent 34%),
    radial-gradient(circle at 70% 72%, rgba(255, 31, 114, 0.16), transparent 40%),
    rgba(8, 0, 5, 0.2);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.35),
    0 0 68px rgba(34, 211, 238, 0.11),
    0 0 76px rgba(255, 31, 114, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(1.18);
}

.df-home-hero__signature::before,
.df-home-hero__signature::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
}

.df-home-hero__signature::before {
  inset: -1px;
  background: conic-gradient(from 140deg, transparent 0 15%, rgba(34, 211, 238, 0.74) 24%, transparent 36%, transparent 56%, rgba(255, 31, 114, 0.72) 68%, transparent 80%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.df-home-hero__signature::after {
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.df-home-hero__signature-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter:
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 18px rgba(34, 211, 238, 0.14));
}

.df-home-hero__signature-picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 86%;
  height: 86%;
}

.df-hero:not(.df-hero--home) .df-hero__content {
  display: grid;
  gap: 1.2rem;
}

.df-hero--contact .df-hero__content {
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.df-hero__logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: auto;
  height: 25%;
  min-height: 130px;
  max-height: 210px;
  aspect-ratio: 1;
  padding: 0.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 22%, rgba(34, 211, 238, 0.12), transparent 38%),
    radial-gradient(circle at 76% 72%, rgba(255, 31, 114, 0.14), transparent 44%),
    rgba(8, 0, 5, 0.3);
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(255, 31, 114, 0.1),
    inset 0 0 42px rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(8px);
}

.df-hero__logo-frame::before,
.df-hero__logo-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
}

.df-hero__logo-frame::before {
  background: conic-gradient(from 130deg, transparent 0 16%, rgba(34, 211, 238, 0.55) 24%, transparent 34%, transparent 56%, rgba(255, 31, 114, 0.58) 68%, transparent 78%);
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.df-hero__logo-frame::after {
  inset: 9%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.df-hero__logo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 18px 34px rgba(255, 31, 114, 0.12));
}

.df-hero__panel {
  width: min(760px, 100%);
  padding: clamp(1.15rem, 3.2vw, 2.2rem);
  border-left: 3px solid var(--primary);
  background:
    linear-gradient(90deg, rgba(8, 0, 5, 0.72), rgba(8, 0, 5, 0.2)),
    linear-gradient(135deg, rgba(255, 31, 114, 0.12), rgba(34, 211, 238, 0.055));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.df-hero__kicker {
  width: fit-content;
  margin: 0 0 0.9rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.df-hero__lead {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: rgba(247, 249, 255, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.df-panel,
.df-hero__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(8, 0, 5, 0.42);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px) saturate(1.18);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.df-panel::before,
.df-hero__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  opacity: 0.76;
}

.df-hero--news .df-panel::before,
.df-hero--formation .df-panel::before,
.df-hero--experience .df-panel::before,
.df-hero--contact .df-panel::before,
.df-panel--skills::before {
  display: none;
}

.df-panel:hover,
.df-hero__card:hover {
  border-color: rgba(50, 217, 200, 0.42);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.df-panel--glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(8, 0, 5, 0.42);
}

.df-hero__card {
  width: min(760px, 100%);
  padding: clamp(1.35rem, 4vw, 3rem);
}

.df-page-title,
.df-page-title--home {
  margin: 0;
  padding-block: 0.06em;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(2.7rem, 8vw, 6.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f7 48%, #b8bcc8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.df-page-title--home {
  max-width: 10ch;
  font-size: clamp(3.2rem, 9.4vw, 8.8rem);
  line-height: 0.92;
}

.df-page-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.df-hero__panel .df-page-title--home {
  max-width: 12ch;
  font-size: clamp(2.35rem, 6vw, 5rem);
}

.df-page-intro,
.df-hero__subtitle {
  max-width: 62ch;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.df-hero__subtitle {
  position: relative;
  width: fit-content;
  padding: 0.38rem 0.75rem;
  color: #071016;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 999px;
}

.df-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.df-button,
.df-button--contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.05rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.df-button--primary,
.df-button--contact {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 16px 34px rgba(255, 45, 117, 0.24);
}

.df-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.df-button:hover,
.df-button--contact:hover {
  color: #fff;
  opacity: 0.96;
  transform: translateY(-2px);
}
