/* ======================================================================
   FULLCODE — CSS GÉNÉRAL
   Reset, charte, typographies, navigation et footer partagés.
   ====================================================================== */

/* ----------------------------------------------------------------------
   TYPOGRAPHIES
   ---------------------------------------------------------------------- */

@font-face {
  font-family: "Climate Crisis";
  src: url("../climate-crisis.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/*
  Le fichier ci-dessous semble être une graisse Medium statique.
  Si tu le remplaces par une vraie police variable, utilise :
  font-weight: 300 800;
*/
@font-face {
  font-family: "42dot Sans";
  src: url("../42dotSansVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}


/* ----------------------------------------------------------------------
   CHARTE FULLCODE
   ---------------------------------------------------------------------- */

:root {
  /* Couleurs officielles */
  --brand-violet: #522a6f;
  --brand-plum: #8a2476;
  --brand-yellow: #fbcf4f;
  --brand-beige: #faeadd;
  --brand-charcoal: #222023;

  /* Noms courts */
  --purple: var(--brand-violet);
  --plum: var(--brand-plum);
  --yellow: var(--brand-yellow);
  --beige: var(--brand-beige);
  --charcoal: var(--brand-charcoal);

  /*
    Alias conservés pour compatibilité avec les CSS existants.
    À terme, privilégier purple / plum / yellow / beige / charcoal.
  */
  --purple-dark: var(--brand-violet);
  --purple-deep: #351b49;
  --violet: var(--brand-plum);
  --lavender: #f2e9f1;

  /* Surfaces et texte */
  --paper: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #faf8f7;
  --surface-warm: var(--brand-beige);
  --ink: var(--brand-charcoal);
  --muted: #69636c;

  /* UI */
  --border-soft: rgba(82, 42, 111, 0.12);
  --focus-ring: rgba(138, 36, 118, 0.24);
  --radius: 28px;
  --radius-pill: 999px;
  --shadow: 0 18px 55px rgba(35, 25, 55, 0.14);
  --shadow-soft: 0 12px 35px rgba(54, 30, 68, 0.08);

  /* Typographie */
  --font-display: "Climate Crisis", Impact, sans-serif;
  --font-body: "42dot Sans", Arial, sans-serif;

  /* Header */
  --header-height: 72px;
  --header-height-mobile: 62px;
}


/* ----------------------------------------------------------------------
   RESET / BASE
   ---------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border-color: transparent;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p {
  hyphens: auto;
  -webkit-hyphens: auto;

  overflow-wrap: break-word;
}

h1,
.display-title {
  font-family: var(--font-display);
  font-weight: 400;
}

.page-hero h1,
.page-cta h2,
.content-section>h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

h3 {
  font-weight: 500;
}

::selection {
  background: var(--brand-yellow);
  color: var(--brand-charcoal);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}


/* ----------------------------------------------------------------------
   ACCESSIBILITÉ / UTILITAIRES
   ---------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.big-number {
  position: relative;
  display: inline-block;
  isolation: isolate;
  font-family: var(--font-display);
  font-size: clamp(5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.8;
  background: linear-gradient(-130deg,
      #f5f0f2 0%,
      #eee7ea 55%,
      #e3dadd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(4px 4px 3px rgb(151 151 151 / 1));
}


/* ======================================================================
   HEADER
   ====================================================================== */

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  padding: 0 clamp(24px, 5vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(110deg,
      rgba(255, 255, 255, 0.80),
      rgba(250, 234, 221, 0.54));
  box-shadow:
    inset 0 -1px 0 rgba(82, 42, 111, 0.07),
    var(--shadow-soft);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

.mini-logo {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
}

.mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Navigation desktop */

.main-nav {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 54px;
  transform: translateX(-50%);
  font-size: 0.88rem;
  font-weight: 500;
}

.main-nav>a:not(.nav-cta) {
  position: relative;
}

.main-nav>a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--plum);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.main-nav>a:hover::after,
.main-nav>a:focus-visible::after,
.main-nav>a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* CTA globaux */

.header-contact,
.solid-button {
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg,
      var(--plum),
      var(--purple));
  color: #fff;
  box-shadow: 0 7px 18px rgba(82, 42, 111, 0.20);
}

.header-contact {
  padding: 10px 22px;
  font-size: 0.82rem;
  font-weight: 600;
}


/* Menu Services */

.nav-services {
  position: relative;
}

.nav-services::after {
  content: "";
  position: absolute;
  top: 100%;
  right: -18px;
  left: -18px;
  height: 18px;
}

.services-trigger {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-chevron {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.nav-services.open .menu-chevron,
.nav-services:focus-within .menu-chevron,
.nav-services:hover .menu-chevron {
  transform: rotate(270deg);
}

.services-menu {
  position: absolute;
  top: calc(100% + 17px);
  left: 50%;
  width: 225px;
  padding: 10px;
  display: grid;
  gap: 2px;
  visibility: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.90),
      rgba(250, 234, 221, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 45px rgba(45, 26, 55, 0.15);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.services-menu a {
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 0.78rem;
}

.services-menu a:hover,
.services-menu a:focus-visible,
.services-menu a[aria-current="page"] {
  background: rgba(138, 36, 118, 0.08);
  color: var(--plum);
}

.nav-services.open .services-menu,
.nav-services:focus-within .services-menu,
.nav-services:hover .services-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}


/* Mobile : caché par défaut */

.menu-button,
.mobile-nav {
  display: none;
}


/* ======================================================================
   FOOTER
   ====================================================================== */

.site-footer {
  position: relative;
  min-height: 640px;
  padding: 72px clamp(48px, 6.5vw, 112px) 34px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
  background:
    radial-gradient(circle at 101% 109%,
      rgba(251, 207, 79, 0.82) 0,
      rgba(138, 36, 118, 0.74) 22%,
      transparent 43%),
    linear-gradient(112deg,
      rgba(34, 32, 35, 0.99) 0%,
      rgba(53, 27, 73, 0.98) 40%,
      rgba(82, 42, 111, 0.97) 68%,
      rgba(138, 36, 118, 0.95) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 1px 0 0 rgba(251, 207, 79, 0.10),
    inset -1px 0 0 rgba(138, 36, 118, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(180%) contrast(1.06);
  backdrop-filter: blur(18px) saturate(180%) contrast(1.06);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-footer::before {
  z-index: 1;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
      rgba(250, 234, 221, 0.58),
      rgba(251, 207, 79, 0.68) 48%,
      rgba(138, 36, 118, 0.72));
  filter: blur(1.5px);
  opacity: 0.72;
}

.site-footer::after {
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(118deg,
      rgba(255, 255, 255, 0.12),
      transparent 22%,
      rgba(255, 255, 255, 0.025) 56%,
      transparent 74%),
    radial-gradient(circle at 88% 8%,
      rgba(251, 207, 79, 0.07),
      transparent 28%);
  mix-blend-mode: screen;
}

.footer-watermark {
  position: absolute;
  z-index: 0;
  top: 38px;
  left: 16px;
  width: clamp(300px, 25vw, 430px);
  opacity: 0.10;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: clamp(48px, 8vw, 150px);
  align-items: center;
}

.footer-contact {
  display: grid;
  gap: 48px;
}

.footer-logo {
  width: clamp(108px, 9.5vw, 150px);
  height: auto;
}

.footer-contact address {
  display: grid;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.25;
}

.footer-contact address strong {
  margin-bottom: 15px;
  font-size: 1.06rem;
}

.footer-contact address a,
.footer-contact address span {
  width: fit-content;
}

.footer-contact-cta {
  width: fit-content;
  min-width: 180px;
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 25px rgba(19, 12, 22, 0.16);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.footer-contact-cta i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
}

.footer-contact-cta:hover,
.footer-contact-cta:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.footer-socials {
  display: grid;
  gap: 48px;
  align-self: center;
  padding-bottom: 28px;
}

.footer-socials a {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 1rem;
}

.social-icon {
  position: relative;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.instagram-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.instagram-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.linkedin-icon {
  display: grid;
  place-items: center;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.footer-fineline {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.footer-links {
  position: absolute;
  z-index: 2;
  right: clamp(48px, 6.5vw, 112px);
  bottom: 34px;
  left: clamp(48px, 6.5vw, 112px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 24px;
  font-size: 0.92rem;
}

.footer-links a:nth-child(2),
.footer-links a:nth-child(3) {
  text-align: center;
}

.footer-links a:last-child {
  text-align: right;
}

.footer-links a,
.footer-socials a,
.footer-contact address a {
  transition: opacity 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-socials a:hover,
.footer-socials a:focus-visible,
.footer-contact address a:hover,
.footer-contact address a:focus-visible {
  opacity: 0.65;
}

/* ----------------------------------------------------------------------
   CTA FINAL
   ---------------------------------------------------------------------- */

.page-cta {
  padding:
    clamp(20px, 3vw, 42px) clamp(24px, 7vw, 120px) clamp(90px, 10vw, 150px);
}

.page-cta-inner {
  width: min(1180px, 100%);
  margin-inline: auto;

  position: relative;

  padding: clamp(42px, 7vw, 90px);

  overflow: hidden;

  border-radius: clamp(28px, 5vw, 60px);

  background:
    radial-gradient(circle at 93% 96%,
      rgba(251, 207, 79, 0.82),
      transparent 38%),
    linear-gradient(120deg,
      var(--brand-charcoal),
      var(--purple) 64%,
      var(--plum));

  color: #fff;

  box-shadow:
    0 28px 70px rgba(54, 27, 70, 0.18);
}

.page-cta h2 {
  max-width: 840px;
  margin: 0;

  color: #fff;

  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.015em;
}

.page-cta p {
  max-width: 650px;
  margin: 24px 0 0;

  color: rgba(255, 255, 255, 0.82);

  font-size: 1.04rem;
  line-height: 1.65;
}

.page-cta .page-button {
  margin-top: 28px;

  background: #fff;

  color: var(--purple);

  box-shadow: none;
}

/* ----------------------------------------------------------------------
   BOUTONS DE PAGE
   ---------------------------------------------------------------------- */

.button-row {
  margin-top: 32px;

  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.page-button {
  min-height: 46px;

  padding: 11px 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: var(--radius-pill);

  background:
    linear-gradient(135deg,
      var(--plum),
      var(--purple));

  color: #fff;

  font-weight: 700;

  box-shadow:
    0 10px 26px rgba(82, 42, 111, 0.18);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.page-button:hover,
.page-button:focus-visible {
  transform: translateY(-2px);

  box-shadow:
    0 15px 32px rgba(82, 42, 111, 0.24);
}

.page-button.secondary {
  border: 1px solid rgba(82, 42, 111, 0.16);

  background: rgba(255, 255, 255, 0.68);

  color: var(--purple);

  box-shadow: none;
}

.page-button.secondary:hover,
.page-button.secondary:focus-visible {
  border-color: rgba(138, 36, 118, 0.30);

  background: rgba(255, 255, 255, 0.90);
}


/* ======================================================================
   RESPONSIVE
   ====================================================================== */

@media (max-width: 720px) {
  .site-header {
    height: var(--header-height-mobile);
    padding: 0 20px;
  }

  .main-nav,
  .header-contact {
    display: none;
  }

  .mini-logo {
    width: 46px;
    height: 46px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button>span:not(.sr-only) {
    width: 100%;
    height: 2px;
    display: block;
    border-radius: 99px;
    background: var(--purple);
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .menu-button[aria-expanded="true"]>span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"]>span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"]>span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-height-mobile) 0 auto;
    padding: 25px 20px 34px;
    display: grid;
    gap: 18px;
    visibility: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.78);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.92),
        rgba(250, 234, 221, 0.78));
    box-shadow: 0 20px 35px rgba(47, 25, 52, 0.12);
    -webkit-backdrop-filter: blur(24px) saturate(175%);
    backdrop-filter: blur(24px) saturate(175%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-130%);
    transition:
      transform 0.3s ease,
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .mobile-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav details summary {
    list-style: none;
    cursor: pointer;
  }

  .mobile-nav details summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav details summary span {
    display: inline-block;
    margin-left: 8px;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
  }

  .mobile-nav details[open] summary span {
    transform: rotate(270deg);
  }

  .mobile-nav details>div {
    padding: 14px 0 0 16px;
    display: grid;
    gap: 10px;
    color: var(--muted);
    font-size: 0.86rem;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--plum);
    font-weight: 700;
  }


  /* Footer mobile */

  .site-footer {
    min-height: 440px;
    padding: 28px 20px 18px;
    background:
      radial-gradient(circle at 105% 106%,
        rgba(251, 207, 79, 0.82) 0,
        rgba(138, 36, 118, 0.72) 22%,
        transparent 44%),
      linear-gradient(120deg,
        rgba(34, 32, 35, 0.99) 0%,
        rgba(53, 27, 73, 0.98) 38%,
        rgba(82, 42, 111, 0.97) 72%,
        rgba(138, 36, 118, 0.95) 100%);
  }

  .footer-watermark {
    top: 28px;
    left: 20px;
    width: 175px;
  }

  .footer-content {
    grid-template-columns: 166px 1fr;
    gap: 18px;
    align-items: start;
  }

  .footer-contact {
    gap: 34px;
  }

  .footer-contact-cta {
    min-width: 148px;
    padding: 9px 10px 9px 13px;
    font-size: 0.68rem;
  }

  .footer-contact-cta i {
    width: 26px;
    height: 26px;
  }

  .footer-logo {
    width: 83px;
  }

  .footer-contact address {
    font-size: 0.76rem;
    line-height: 1.18;
  }

  .footer-contact address strong {
    margin-bottom: 12px;
    font-size: 0.78rem;
  }

  .footer-socials {
    gap: 18px;
    padding: 20px 0 0;
  }

  .footer-socials a {
    gap: 14px;
    font-size: 0.76rem;
  }

  .social-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .footer-links {
    right: 20px;
    bottom: 16px;
    left: 36px;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    font-size: 0.62rem;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .footer-links a:nth-child(n) {
    text-align: left;
  }


  /* Page CTA mobile */

  .page-cta {
    padding:
      24px 14px 72px;
  }

  .page-cta-inner {
    padding: 38px 24px;

    border-radius: 28px;
  }
}


/* ======================================================================
   RÉDUCTION DES ANIMATIONS
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}