/* ========================================================= */
/* 1) RESET MINIMAL                                          */
/* ========================================================= */

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

html,
body {
  overscroll-behavior: none;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

/* ========================================================= */
/* 2) VARIABLES                                              */
/* ========================================================= */

:root {
  --bg: #d4c1a7;
  --bg-2: #c3ae91;
  --bg-3: #ad9677;

  --panel: rgba(14, 14, 14, 0.72);
  --panel-2: rgba(12, 12, 12, 0.88);

  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(42, 42, 42, 0.9);

  --gold: rgba(198, 167, 94, 1);
  --gold-2: rgba(198, 167, 94, 0.92);

  --shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.42);

  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1120px;
  --pad: 22px;
}

/* ========================================================= */
/* 3) GLOBAL                                                 */
/* ========================================================= */

html {
  color-scheme: dark;
}

body:not(.page-skills) {
  min-height: 100vh;
  background: #8f806f;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Bodoni Moda', sans-serif;
}

/* ========================================================= */
/* 4) TYPO                                                   */
/* ========================================================= */

.h1,
.h2,
.h3 {
  font-family: 'Bodoni Moda', serif;
  letter-spacing: 0.02em;
}

.h1 {
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.1;
}

.h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 1.15;
}

.h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.lead {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 62ch;
}

.small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.kicker {
  color: rgba(198, 167, 94, 0.9);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.page-contact,
.page-legal,
.page-privacy,
.page-realisations,
.page-services {
  font-family: 'Inter', sans-serif;
}

.page-contact .h1,
.page-contact .h2,
.page-contact .h3,
.page-contact .kicker,
.page-legal .h1,
.page-legal .h2,
.page-legal .h3,
.page-legal .kicker,
.page-privacy .h1,
.page-privacy .h2,
.page-privacy .h3,
.page-privacy .kicker,
.page-realisations .h1,
.page-realisations .h2,
.page-realisations .h3,
.page-realisations .kicker,
.page-services .h1,
.page-services .h2,
.page-services .h3,
.page-services .kicker {
  font-family: 'Cinzel', serif;
}

/* ========================================================= */
/* 5) LAYOUT                                                 */
/* ========================================================= */

.container {
  width: min(var(--container), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.section {
  padding: 15px 0;
}

.section--tight {
  padding: 20px 0;
}

.hr {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(198, 167, 94, 0),
    rgba(198, 167, 94, 0.28),
    rgba(198, 167, 94, 0)
  );
}

/* ========================================================= */
/* 6) COMPONENTS                                             */
/* ========================================================= */

/* ----------------------------- */
/* Card                          */
/* ----------------------------- */

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.7), rgba(10, 10, 10, 0.75));
  box-shadow: var(--shadow-soft);

  opacity: 1;
  transform: none;
  filter: none;

  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);

  will-change: transform;
}

/* ----------------------------- */
/* Badge                         */
/* ----------------------------- */

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(198, 167, 94, 0.35);
  background: rgba(198, 167, 94, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

/* ----------------------------- */
/* Buttons                       */
/* ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 14px;

  border: 1px solid rgba(198, 167, 94, 0.45);
  background: linear-gradient(180deg, rgba(198, 167, 94, 0.22), rgba(198, 167, 94, 0.1));

  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;

  box-shadow: var(--shadow-soft);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);

  will-change: transform;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(198, 167, 94, 0.7);
  background: linear-gradient(180deg, rgba(198, 167, 94, 0.28), rgba(198, 167, 94, 0.12));
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn--ghost:hover {
  border-color: rgba(198, 167, 94, 0.45);
  background: rgba(198, 167, 94, 0.06);
}

/* ========================================================= */
/* 7) GRIDS                                                  */
/* ========================================================= */

.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ========================================================= */
/* 8) HOVER GOLD (CONTOUR + LIFT)                            */
/* ========================================================= */

.logo-btn,
.nav-toggle,
.menu-link,
.nav-drawer__link,
.badge,
.card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.logo-btn:hover,
.nav-toggle:hover,
.menu-link:hover,
.nav-drawer__link:hover,
.badge:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(198, 167, 94, 0.18),
    0 15px 40px rgba(0, 0, 0, 0.55);
}

.card:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--gold);
  box-shadow:
    0 0 0 1px rgba(198, 167, 94, 0.18),
    0 25px 60px rgba(0, 0, 0, 0.55);
}

/* ========================================================= */
/* 9) HEADER + NAV DRAWER                                    */
/* ========================================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 80px;

  z-index: 60;

  display: flex;
  align-items: center;

  transition:
    top .40s cubic-bezier(.22,.61,.36,1),
    transform .40s cubic-bezier(.22,.61,.36,1);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand img {
  height: 45px;
  width: auto;
  transform: translateY(0);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(198, 167, 94, 0.35);
  background: rgba(10, 10, 10, 0.55);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 59;
}

.nav-drawer {
  position: fixed;
  right: 18px;
  top: 74px;

  width: min(360px, calc(100vw - 36px));

  border-radius: 22px;
  border: 1px solid rgba(42, 42, 42, 0.9);

  background: rgba(10, 10, 10, 0.92);
  box-shadow: var(--shadow);

  transform: translate3d(0, -8px, 0);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);

  z-index: 60;
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 6px;
}

.nav-drawer__link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.nav-drawer__link.is-active {
  color: rgba(198, 167, 94, 0.95);
}

.header.is-nav-open .nav-drawer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.header.is-nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .header__inner {
    justify-content: center;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-end;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-drawer {
    top: 64px;
    right: 12px;
    width: min(360px, calc(100vw - 24px));
  }
}

/* ========================================================= */
/* 10) MENU LATÉRAL (LOGO RAIL)                              */
/* ========================================================= */

.logo-rail {
  position: fixed;
  top: 100px;
  left: 18px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 70;
  transform: none;
}

.logo-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(198, 167, 94, 0.35);
  background: rgba(10, 10, 10, 0.65);
  box-shadow: var(--shadow-soft);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.logo-btn svg {
  width: 26px;
  height: 26px;
  margin: 0 auto;
  display: block;
  stroke: rgba(255, 255, 255, 0.9);
}

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 69;
}

.menu-panel {
  position: fixed;
  left: 90px;
  top: 90px;

  transform: translate3d(-8px, 0, 0);

  width: auto;
  max-width: calc(100vw - 120px);
  padding: 10px 16px;

  border-radius: 999px;
  border: 1px solid rgba(198, 167, 94, 0.25);

  background: rgba(15, 15, 15, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);

  z-index: 69;
}

.menu-panel nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.menu-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.menu-link:hover {
  border-color: rgba(198, 167, 94, 0.35);
  background: rgba(198, 167, 94, 0.06);
}

body.is-menu-open .backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-open .menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 768px) {
  .logo-rail,
  .menu-panel,
  .backdrop {
    display: none !important;
  }
}

/* ========================================================= */
/* 11) FOOTER — MINIMAL + ICONES                             */
/* ========================================================= */

.footer.footer--minimal {
  padding: 16px 0;
  border-top: 1px solid rgba(42, 42, 42, 0.6);
  background: rgba(10, 10, 10, 0.55);
  margin-top: 40px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.footer__logo {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer__social {
  display: flex;
  gap: 14px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
  text-decoration: none;
}

.footer__social svg {
  width: 14px;
  height: 14px;
  stroke: rgba(255, 255, 255, 0.75);
  transition: stroke 0.3s var(--ease);
}

.footer__social a:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 167, 94, 0.1);
}

.footer__social a:hover svg {
  stroke: var(--gold);
}

.footer__legal {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer__legal:hover {
  color: var(--gold);
}

/* ========================================================= */
/* 12) COOKIE BANNER                                          */
/* ========================================================= */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);

  width: min(720px, calc(100vw - 24px));
  padding: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  border-radius: 16px;
  border: 1px solid rgba(198, 167, 94, 0.3);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: var(--shadow-soft);

  z-index: 120;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__text {
  margin: 0;
}

.cookie-banner__more-link {
  color: var(--gold);
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__more-link:hover {
  color: var(--gold-2);
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  padding: 10px 14px;
  cursor: pointer;
}

@media (max-width: 740px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}

@media (max-width: 680px) {
  .footer__inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

/* ========================================================= */
/* 12) ACCESSIBILITE / REDUCED MOTION                        */
/* ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .card,
  .btn,
  .btn--ghost,
  .logo-btn,
  .nav-toggle,
  .menu-link,
  .nav-drawer__link,
  .badge,
  .nav-overlay,
  .nav-drawer,
  .menu-panel,
  .backdrop,
  .footer__social a {
    transition: none !important;
  }

  * {
    scroll-behavior: auto !important;
  }
}
