/* components.css */

/* =========================
   HEADER + NAV (MOBILE FIRST)
========================= */

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  color: var(--text-on-dark);
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  gap: 10px;
  max-width: 1600px;
  margin: auto;
}

.brand {
  font-family: var(--font-serif);
  letter-spacing: .06em;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.brand:hover {
  color: var(--link-hover);
}

/* =========================
   BURGER (mobile)
========================= */

.burger {
  width: 60px;
  height: 60px;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  z-index: 1200;
}

.burger-lines {
  width: 30px;
  height: 3px;
  background: var(--text-on-dark);
  position: relative;
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-on-dark);
}

.burger-lines::before {
  top: -10px;
}

.burger-lines::after {
  top: 10px;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after {
  transition:
    transform .25s ease,
    opacity .2s ease,
    top .25s ease;
}

.burger[aria-expanded="true"] .burger-lines {
  background: transparent;
  /* barre du milieu disparaît */
}

.burger[aria-expanded="true"] .burger-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  .burger {
    width: 60px;
    height: 60px;
  }

  .burger-lines {
    width: 40px;
    height: 4px;
  }

  .burger-lines::before,
  .burger-lines::after {
    width: 40px;
    height: 4px;
  }

  .burger-lines::before {
    top: -12px;
  }

  .burger-lines::after {
    top: 12px;
  }
}

@media (min-width: 992px) {
  .burger {
    width: 80px;
    height: 80px;
  }

  .burger-lines {
    width: 55px;
    height: 5px;
  }

  .burger-lines::before,
  .burger-lines::after {
    width: 55px;
    height: 5px;
  }

  .burger-lines::before {
    top: -17px;
  }

  .burger-lines::after {
    top: 17px;
  }
}

/* =========================
   NAV + SUBMENUS (clean)
========================= */

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #000;
  padding: 30px 24px;
  z-index: 1150;
  color: var(--text-on-dark);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  border-bottom: solid 6px white;
}

.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav>ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.site-nav>ul>li>a,
.site-nav>ul>li>.nav-parent {
  font-size: 18px;
  font-family: var(--font-sans);
  color: inherit;
  text-decoration: none;
}

.nav-parent {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

/* ===== SUBMENU mobile ===== */
.has-submenu {
  position: relative;
}

.submenu {
  list-style: none;
  margin: 10px 0 0;
  padding: 14px 0 14px 18px;
  display: none;
  gap: 30px;
  border-top: 2px solid rgba(255, 255, 255, .16);
  border-bottom: 2px solid rgba(255, 255, 255, .10);
}

.nav-parent[aria-expanded="true"]+.submenu {
  display: grid;
}

.nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

/* Chevron (bas par défaut) */
.nav-parent::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;

  transform: rotate(45deg);
  /* bas */
  transition: transform .18s ease, opacity .18s ease;
  opacity: .9;
}

/* Ouvert → chevron haut */
.nav-parent[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  opacity: 1;
}

.submenu a {
  font-size: 17px;
  font-family: var(--font-sans);
  opacity: .95;
  color: inherit;
  text-decoration: none;
}

/* =========================
   DESKTOP & TABLETTES
========================= */

@media (max-width: 375px) and (max-height: 890px) {
  .brand {
    font-size: 17px;
  }
}

@media (min-width: 768px) {

  .header-inner {
    padding: 30px 0;
  }

  .brand {
    font-size: 30px;
  }

  .site-nav>ul {
    gap: 40px;
  }

  .site-nav>ul>li>a,
  .site-nav>ul>li>.nav-parent {
    font-size: 26px;
  }

  .nav-parent::after {
    width: 13px;
    height: 13px;
    flex-basis: 13px;

    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .site-nav a {
    font-size: 22px;
  }
}

@media (min-width: 820px) {

  .site-nav>ul {
    gap: 50px;
  }

  .site-nav>ul>li>a,
  .site-nav>ul>li>.nav-parent {
    font-size: 32px;
  }

  .nav-parent::after {
    width: 15px;
    height: 15px;
    flex-basis: 15px;

    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .site-nav a {
    font-size: 30px;
  }
}

@media (min-width: 992px) {

  .brand {
    font-size: 40px;
  }

  .site-nav>ul {
    gap: 60px;
  }

  .site-nav>ul>li>a,
  .site-nav>ul>li>.nav-parent {
    font-size: 32px;
  }

  .nav-parent::after {
    width: 18px;
    height: 17px;
    flex-basis: 17px;

    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .site-nav a {
    font-size: 30px;
  }
}

@media (min-width: 1200px) {

  .site-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 2000px;
    z-index: 10;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.15));
    backdrop-filter: blur(2px);
  }

  .header-inner {
    width: 100%;
    margin: auto;
  }

  .brand {
    font-size: 25px;
  }

  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    max-width: 1600px;
    margin: auto;
    background: rgba(255, 255, 255, 0.25);
  }

  .burger {
    display: none;
  }

  .site-nav {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    padding: 0;
    border-bottom: none;
  }

  .site-nav>ul {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 50px;
  }

  .site-nav>ul>li>a,
  .site-nav>ul>li>.nav-parent {
    font-size: 18px;
    font-family: var(--font-sans);
    color: var(--text-on-dark);
  }

  .submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;

    margin: 0;
    padding: 12px;

    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);

    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;

    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    gap: 20px;
  }

  .nav-parent::after {
    display: none;
  }

  /* zone tampon pour ne pas “perdre” le hover */
  .submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }

  .has-submenu:hover>.submenu,
  .has-submenu:focus-within>.submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .submenu a {
    display: block;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 18px;
    font-family: var(--font-sans);
    color: var(--text-on-dark);
    opacity: 1;
    white-space: nowrap;
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: var(--link-hover);
  }

  .site-nav>ul>li>a:hover,
  .site-nav>ul>li>.nav-parent:hover {
    color: var(--link-hover);
  }
}

/* =========================
   BUTTONS (réutilisables)
========================= */

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  text-decoration: none;
}

.btn-blue {
  background: var(--btn-blue);
  color: var(--btn-blue-text);
  box-shadow: 3px 5px 12px rgba(138, 137, 137, 0.55);
}

.btn-blue:hover,
.btn-blue:focus-visible {
  background: var(--btn-blue-hover);
  color: var(--btn-blue-text);
  text-decoration: none;
  box-shadow: 3px 5px 12px rgba(138, 137, 137, 0.55);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(90deg, var(--btn-gold-start), var(--btn-gold-end));
  color: #222;
  box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.55);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: linear-gradient(90deg, var(--btn-gold-hover-start), var(--btn-gold-hover-end));
  color: #222;
  text-decoration: none;
  box-shadow: 3px 5px 12px rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  overflow: hidden;
  background-image: var(--hero-bg-mobile);
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  padding-top: 0;
  color: var(--text-on-dark);
  z-index: 2;
  padding-bottom: 50px;
}

.hero__inner {
  width: 100%;
  margin: 0;
  padding: 10px 16px;
}

.hero__kicker {
  margin: 0 0 18px;
  font-weight: 500;
  color: #fff;
}

.hero__kicker2 {
  display: none;
}

.hero__title {
  margin: 0 0 18px;
  color: var(--bg-page);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.hero__text,
.hero__text1,
.hero__text2 {
  margin: 0 0 14px;
  color: var(--text-on-dark);
  max-width: 640px;
}

.hero__text1,
.hero__text2 {
  display: none;
}

.hero__cta {
  display: none;
}

/* =========================
   HERO - TABLET / DESKTOP
========================= */

@media (min-width: 768px) {
  .hero {
    padding-top: 20px;
    background-image: var(--hero-bg-768);
    background-position: center bottom;
    min-height: clamp(560px, 40vh, 800px);
  }

  .hero__title {
    margin-bottom: 60px;

  }
}

@media (min-width: 820px) {
  .hero {
    padding-top: 20px;
    background-image: var(--hero-bg-820);
  }

  .hero__inner {
    width: min(1700px, calc(100% - 64px));
    margin: auto;
    padding: 0px 0 80px;
  }
}

@media (min-width: 1200px) {
  .hero {
    padding-top: 80px;
    background-image: var(--hero-bg-desktop);
    background-position: center top;
  }

  .kicker {
    display: flex;
    gap: 8px;
  }

  .hero__inner {
    width: min(1700px, calc(100% - 64px));
    margin: auto;
    padding: 64px 0 160px;
  }

  .hero__kicker2 {
    display: block;

    margin: 0 0 18px;
    font-weight: 500;
    color: #fff;
  }

  .hero__text1,
  .hero__text2 {
    display: block;
  }

  .hero__cta {
    margin-top: 50px;
    display: inline-block;
  }
}

/* =========================
   FOOTER (mobile-first)
========================= */

.site-footer {
  position: relative;
  background: url("../../assets/img/global/montagne-mobile.png") center top / cover no-repeat;
  min-height: clamp(1350px, 70vw, 1400px);
  max-width: 2000px;
  margin: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.footer__panel {
  margin: 0 auto 18px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: stretch;
  margin-bottom: 30px;
}

.footer__col {
  width: min(420px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo */
.footer__logo {
  width: 200px;
  height: auto;
  display: block;
  margin: 6px auto 10px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  /* filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); */
  /* filter:
    drop-shadow(0 1px 0 rgba(255, 240, 180, 0.25))
    drop-shadow(0 6px 14px rgba(0,0,0,0.35)); */
}

.footer__h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
  text-align: center;
}

.footer__col--social .footer__h3 {
  margin-top: 45px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: auto;
}

.footer__contact-item a {
  font-weight: 500;
}

.footer__contact-item a:hover {
  color: var(--link-hover);
}

.footer__contact-item img {
  width: 25px;
  height: 25px;
  margin-top: 2px;
  margin: auto;
}

.footer__text {
  margin: 0;
  opacity: .92;
  line-height: 1.55;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
  text-align: center;
}

.footer__links a {
  text-decoration: none;
  opacity: .9;
  font-size: 18px;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--link-hover);
  opacity: 1;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
  text-decoration: none;
}

.footer__social a:hover {
  opacity: 1;
}

.footer__social img {
  width: 35px;
  height: 35px;
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}

.footer__social a:hover img {
  transform: translateY(-2px);
}

.footer__copy {
  margin: 0;
  font-size: 12px;
  opacity: .75;
  text-align: center;
  color: #fff;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* =========================
   BREAKPOINTS
========================= */

@media (min-width: 768px) and (max-width: 1199px) {
  .footer__col--infos {
    justify-content: flex-start;
  }
}

@media (min-width: 768px) {
  .site-footer {
    min-height: clamp(1050px, 70vw, 1100px);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 100px 20px;
    margin-bottom: 40px;
  }

  .footer__logo {
    width: 320px;
  }

  .footer__h3 {
    font-size: 22px;
  }

  .footer__links a {
    font-size: 24px;
  }

  .footer__col--social .footer__h3 {
    margin-top: 60px;
  }

  /* .footer__contact-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
  margin: auto;
} */

  .footer__contact-item img {
    width: 30px;
    height: 30px;
  }

  .footer__text {
    font-size: 20px;
  }

  .footer__social {
    gap: 30px;
    margin-top: 10px;
  }

  .footer__social img {
    width: 55px;
    height: 55px;
  }

  .footer__copy {
    font-size: 18px;
  }
}

@media (min-width: 820px) {
  .site-footer {
    min-height: clamp(1170px, 70vw, 1200px);
  }

  .footer__grid {
    margin-bottom: 50px;
  }

  .footer__logo {
    width: 370px;
  }

  .footer__h3 {
    font-size: 28px;
  }

  .footer__links a {
    font-size: 28px;
  }

  .footer__contact-item img {
    width: 35px;
    height: 35px;
  }

  .footer__text {
    font-size: 24px;
  }

  .footer__social {
    gap: 35px;
  }

  .footer__social img {
    width: 60px;
    height: 60px;
  }

  .footer__copy {
    font-size: 22px;
  }
}

@media (min-width: 992px) {
  .site-footer {
    min-height: clamp(1350px, 70vw, 1400px);
  }

  .footer__grid {
    gap: 100px 0px;
    margin-bottom: 60px;
  }

  .footer__logo {
    width: 450px;
  }

  .footer__contact-item img {
    width: 45px;
    height: 45px;
  }

  .footer__h3 {
    font-size: 32px;
  }

  .footer__links a {
    font-size: 32px;
  }

  .footer__col--social .footer__h3 {
    margin-top: 80px;
  }

  .footer__text {
    font-size: 30px;
  }

  .footer__social img {
    width: 70px;
    height: 70px;
  }

  .footer__copy {
    font-size: 25px;
  }
}

@media (min-width: 1200px) {
  .site-footer {
    background: url("../../assets/img/global/montagne-desktop.png") center top / cover no-repeat;
    min-height: clamp(700px, 70vw, 980px);
  }

  .footer__panel {
    margin-bottom: 28px;
  }

  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 36px;
  }

  .footer__col {
    width: fit-content;
    justify-content: start;
  }

  .footer__social {
    gap: 30px;
  }

  .footer__col--social .footer__h3 {
    text-align: center;
  }

  .footer__h3 {
    font-size: 18px;
    text-align: start;
  }

  .footer__contact-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 0;
    gap: 10px;
  }

  .footer__contact-item img {
    width: 30px;
    height: 30px;
    margin: 0;
  }

  .footer__text {
    font-size: 18px;
    text-align: start;
  }

  .footer__logo {
    width: 300px;
  }

  .footer__links {
    text-align: left;
  }

  .footer__links a {
    font-size: 18px;
  }

  .footer__social img {
    width: 50px;
    height: 50px;
  }

  .footer__copy {
    font-size: 16px;
  }
}