/* header.css */

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

.header {
  position:fixed;
  top:0;
  right:0;
  left:0;
  width:auto;
  max-width:100%;
  height:clamp(80px,8vw,120px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 clamp(25px,6vw,35px);
  background-color:black;
  overflow:visible;
  z-index:9999;
}

/* -----------------------------------------------------------------------
PARTIE GAUCHE
----------------------------------------------------------------------- */

.header__left {
  min-width:0;
  display:flex;
  align-items:center;
  flex-shrink:0;
}

/* -----------------------------------------------------------------------
LOGO
----------------------------------------------------------------------- */

.header__logo {
  position:relative;
  flex-shrink:0;
  z-index:5;
}

.header__logo a {
  display:block;
  cursor:pointer;
}

.header__logo img {
  display:block;
  width:auto;
  height:auto;
  max-width:clamp(110px,15vw,180px);
  max-height:clamp(110px,15vw,180px);
}

/* -----------------------------------------------------------------------
TITRE
----------------------------------------------------------------------- */

.header__title {
  position:absolute;
  top:50%;
  left:50%;
  width:max-content;
  max-width:60vw;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:1;
}

.header__neon-title {
  position:relative;
  display:inline-block;
  color:var(--other-color);
  font-family:"Montserrat",sans-serif;
  font-size:clamp(20px,2vw,30px);
  font-weight:100;
  line-height:1;
  letter-spacing:3px;
  text-align:center;
  white-space:nowrap;
}

/* -----------------------------------------------------------------------
NAVIGATION
----------------------------------------------------------------------- */

.header__nav {
  position:relative;
  min-width:0;
  z-index:4;
}

.header__nav__menu {
  min-width:0;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:clamp(12px,1vw,15px);
  list-style:none;
}

.header__nav__menu__link {
  min-width:0;
}

.header__nav__menu__link a {
  position:relative;
  display:block;
  color:var(--text-color);
  font-family:"Montserrat",sans-serif;
  font-size:clamp(14px,1.2vw,18px);
  font-weight:100;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}

.header__nav__menu__link a::after {
  content:"";
  position:absolute;
  right:0;
  bottom:-5px;
  width:0;
  height:1px;
  background:var(--other-color);
  transition:width 200ms ease-in-out;
}

.header__nav__menu__link a:hover::after,
.header__nav__menu__link a.active::after {
  left:0;
  right:auto;
  width:100%;
}

/* -----------------------------------------------------------------------
LOGO RÉSEAUX
----------------------------------------------------------------------- */

.header__nav__menu__reseaux {
  position:relative;
  width:48px;
  height:48px;
  margin-left:-8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:visible;
}

.header__nav__menu__reseaux::after {
  content:"";
  position:absolute;
  top:100%;
  left:-18px;
  width:84px;
  height:18px;
}

.header__reseauxButton {
  width:48px;
  height:48px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  background:transparent;
  cursor:pointer;
}

.header__img__reseaux {
  width:18px;
  height:18px;
  display:block;
  object-fit:contain;
  transform:scale(2.4);
  transform-origin:center;
  pointer-events:none;
}

/* -----------------------------------------------------------------------
POPUP RÉSEAUX
----------------------------------------------------------------------- */

.header__reseauxPopup {
  position:absolute;
  top:calc(100% + 15px);
  right:30%;
  width:45px;
  padding:6px;
  display:flex;
  flex-direction:column;
  background:#050505;
  border:1px solid var(--other-color);
  border-radius:6px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate(50%,-8px);
  box-shadow:0 0 8px rgba(184,184,184,.2),0 0 18px rgba(184,184,184,.08);
  transition:opacity 180ms ease,transform 180ms ease,visibility 180ms ease;
  z-index:1000;
}

.header__reseauxPopup::before {
  content:"";
  position:absolute;
  top:-6px;
  right:50%;
  width:11px;
  height:11px;
  background:#050505;
  border-top:1px solid var(--text-color);
  border-left:1px solid var(--text-color);
  transform:translateX(50%) rotate(45deg);
}

.header__nav__menu__reseaux.is-open .header__reseauxPopup {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(50%,0);
}

@media (hover:hover) and (pointer:fine) {
  .header__nav__menu__reseaux:hover .header__reseauxPopup,
  .header__nav__menu__reseaux:focus-within .header__reseauxPopup {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate(50%,0);
  }
}

.header__reseauxPopupLink {
  width:100%;
  min-height:40px;
  padding:6px 7px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-color);
  font-family:monospace;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
  transition:color 180ms ease,background-color 180ms ease;
}

.header__reseauxPopupLink:not(:last-child) {
  border-bottom:1px solid rgba(255,255,255,.1);
}

.header__reseauxPopupLink:hover {
  color:#fff;
  background:rgba(184,184,184,.08);
}

.header__reseauxPopupIcon {
  width:15px;
  height:15px;
  flex-shrink:0;
  color:currentColor;
}

.header__reseauxPopupIcon--instagram {
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
}

.header__reseauxPopupIcon--facebook,
.header__reseauxPopupIcon--linkedin {
  fill:currentColor;
}

.header__reseauxIconDot {
  fill:currentColor;
  stroke:none;
}

/* -----------------------------------------------------------------------
RESPONSIVE <= 1600PX
----------------------------------------------------------------------- */

@media screen and (max-width:1600px) {
  .header__left {
    gap:clamp(14px,1.4vw,24px);
  }

  .header__title {
    position:static;
    max-width:none;
    transform:none;
    justify-content:flex-start;
  }

  .header__neon-title {
    font-size:clamp(11px,1.3vw,18px);
    letter-spacing:clamp(1.5px,.2vw,3px);
    text-align:left;
  }

  .header__nav__menu {
    gap:clamp(9px,1vw,14px);
  }

  .header__nav__menu__link a {
    font-size:clamp(13px,1.25vw,18px);
  }
}

/* -----------------------------------------------------------------------
RESPONSIVE <= 900PX
----------------------------------------------------------------------- */

@media screen and (max-width:900px) {
  .header {
    padding:0 18px;
  }

  .header__logo img {
    max-width:90px;
    max-height:90px;
  }

  .header__left {
    gap:12px;
  }

  .header__nav__menu {
    gap:8px;
  }

  .header__nav__menu__link a {
    font-size:clamp(11px,1.8vw,15px);
  }

  .header__nav__menu__reseaux {
    width:40px;
    height:40px;
    margin-left:-4px;
  }

  .header__reseauxButton {
    width:40px;
    height:40px;
  }

  .header__img__reseaux {
    width:15px;
    height:15px;
    transform:scale(2.2);
  }
}

/* -----------------------------------------------------------------------
RESPONSIVE <= 600PX
----------------------------------------------------------------------- */

@media screen and (max-width:600px) {
  .header {
    height:72px;
    padding:0 10px;
  }

  .header__left {
    position:relative;
    z-index:6;
  }

  .header__logo {
    z-index:6;
  }

  .header__logo img {
    max-width:85px;
    max-height:85px;
  }

  .header__title {
    display:none;
  }

  .header__nav {
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    height:100%;
  }

  .header__nav__menu {
    position:relative;
    width:100%;
    height:100%;
    padding:0 54px 0 78px;
    justify-content:center;
    flex-wrap:nowrap;
    gap:6px;
  }

  .header__nav__menu__link {
    flex:0 1 auto;
  }

  .header__nav__menu__link a {
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:clamp(9px,2.5vw,12px);
  }

  .header__nav__menu__link a::after {
    bottom:8px;
  }

  .header__nav__menu__reseaux {
    position:absolute;
    top:50%;
    right:10px;
    width:34px;
    height:34px;
    margin-left:0;
    transform:translateY(-50%);
    z-index:7;
  }

  .header__reseauxButton {
    width:34px;
    height:34px;
  }

  .header__img__reseaux {
    width:18px;
    height:18px;
    transform:scale(2);
  }

  .header__reseauxPopup {
    top:calc(100% + 10px);
    right:0;
    width:42px;
    padding:4px;
    transform:translateY(-8px);
  }

  .header__reseauxPopup::before {
    right:10px;
    transform:rotate(45deg);
  }

  .header__reseauxPopupLink {
    min-height:34px;
    padding:5px;
  }

  .header__reseauxPopupIcon {
    width:14px;
    height:14px;
  }

  .header__nav__menu__reseaux.is-open .header__reseauxPopup {
    transform:translateY(0);
  }
}

/* -----------------------------------------------------------------------
RESPONSIVE <= 420PX
----------------------------------------------------------------------- */

@media screen and (max-width:420px) {
  .header {
    padding:0 7px;
  }

  .header__logo img {
    max-width:80px;
    max-height:80px;
  }

  .header__nav__menu {
    padding:0 42px 0 62px;
    gap:3px;
  }

  .header__nav__menu__link a {
    font-size:clamp(8px,2.5vw,10px);
  }

  .header__nav__menu__reseaux {
    right:7px;
    width:30px;
    height:30px;
  }

  .header__reseauxButton {
    width:30px;
    height:30px;
  }

  .header__img__reseaux {
    width:12px;
    height:12px;
    transform:scale(1.8);
  }

  .header__reseauxPopup {
    width:40px;
    padding:4px;
  }

  .header__reseauxPopupLink {
    min-height:32px;
    padding:4px;
  }

  .header__reseauxPopupIcon {
    width:13px;
    height:13px;
  }
}

/* -----------------------------------------------------------------------
RESPONSIVE <= 360PX
----------------------------------------------------------------------- */

@media screen and (max-width:360px) {
  .header {
    height:72px;
    padding:0 5px;
  }

  .header__logo img {
    max-width:70px;
    max-height:70px;
  }

  .header__nav__menu {
    position:relative;
    width:100%;
    height:100%;
    margin:0;
    padding:0 38px 0 58px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    gap:4.5px;
  }

  .header__nav__menu__link {
    width:auto;
    height:auto;
    flex:0 1 auto;
    display:block;
  }

  .header__nav__menu__link a {
    width:auto;
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    font-size:10px;
    line-height:1;
    text-align:center;
    white-space:nowrap;
  }

  .header__nav__menu__link a::after {
    bottom:8px;
  }

  .header__nav__menu__reseaux {
    position:absolute;
    top:50%;
    right:5px;
    width:30px;
    height:30px;
    margin-left:0;
    transform:translateY(-50%);
  }

  .header__reseauxButton {
    width:30px;
    height:30px;
  }
}