/* === POLICES === */

/* MATRIMOINE */
@font-face {
  font-family: "Matrimoine";
  src: url("../fonts/Matrimoine-Gras.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

/* MOHAVE — Light */
@font-face {
  font-family: "Mohave";
  src: url("../fonts/Mohave-Light.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
}

/* MOHAVE — Regular */
@font-face {
  font-family: "Mohave";
  src: url("../fonts/Mohave-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

/* MOHAVE — Bold */
@font-face {
  font-family: "Mohave";
  src: url("../fonts/Mohave-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

/* ========================
      STRUCTURE GLOBALE 
 =========================== */
/*==============================à supprimer ensuite*/
.page-accueil #content {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.encours {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.encours img {
  max-width: 30vw;
  max-height: auto;
  object-fit: contain;
}
.page-accueil {
  cursor: none;
}
.custom-cursor {
  position: fixed;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fe0079;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999999;
  transition: transform 0.08s ease-out;
}
.socials {
  display: flex;
  gap: 50px;
  padding-top: 4rem;
}

.socials a svg {
  width: 30px;
  height: 30px;
  fill: #0040ff;
  transition:
    transform 0.2s,
    fill 0.2s;
}

.socials a:hover svg {
  transform: scale(1.2);
  fill: #ffb654;
}
/*=========================*/
body {
  margin: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: 80px auto 80px;
  grid-template-columns: 70px 1fr 70px;
  grid-template-areas:
    "top top top"
    "left main right"
    "bottom bottom bottom";
  font-family: "Mohave", sans-serif;
}

header {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  font-size: 2rem;
  font-weight: bold;
  position: relative;
  background-color: white;
  z-index: 999;
}

/* NAV LATERALE */
nav.left,
nav.right {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  font-family: "Mohave", sans-serif;
  z-index: 99;
  background-color: white;
}

nav.left {
  grid-area: left;
}
nav.right {
  grid-area: right;
  writing-mode: vertical-rl;
}

.vertical-text {
  display: inline-block;
  position: absolute;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
nav.left .vertical-text:hover {
  color: crimson;
  transform: rotate(185deg);
}
nav.right .label {
  display: inline-block;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  writing-mode: vertical-rl;
}

nav.right:hover .label {
  color: crimson;
  transform: rotate(-10deg);
}

/* SOUS-MENUS */
.submenu {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

nav.left .submenu {
  left: 100%;
  top: 50%;
  transform: translate(-20px, -50%);
  z-index: 9999;
}

nav.left:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

nav.right .submenu {
  right: 100%;
  top: 50%;
  transform: translate(20px, -50%);
  writing-mode: horizontal-tb;
}

nav.right:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.submenu a {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  font-size: 1.2rem;
  min-width: 160px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.submenu a:hover {
  transform: translateX(5px);
}

/* COULEURS */
.btn-cabaret {
  background: #9b59b6;
}
.btn-cayolar {
  background: #e91e63;
}
.btn-colporteuse {
  background: #3498db;
}
.btn-elogedelamain {
  background: #e67e22;
}

.transformations {
  background: #5d9f48;
}
.formations {
  background: #12e29d;
}
.ateliers {
  background: #52280f;
}
.machines {
  background: #1680d1;
}

/* ZONE CENTRALE */
main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border-radius: 30px;
  padding: -10px;
  /* IMPORTANT : autoriser le scroll dans la zone centrale */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-sizing: border-box;
}

/* FOOTER */
footer {
  grid-area: bottom;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: relative;
  background-color: white;
  z-index: 999;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 2rem;
  font-family: "Mohave-bold", sans-serif;
}

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

.route-btn {
  font-family: "Mohave", sans-serif;
  font-weight: bold;
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  color: black;
  text-decoration: none;
}

.route-btn:hover {
  color: orangered;
}

/* Bouton logos central */

.logo-btn {
  font-family: "Matrimoine", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  color: black;
  text-decoration: none;
}

/* Couleurs au survol */
.logo-btn:hover span:nth-child(1) {
  color: #e67e22;
}
.logo-btn:hover span:nth-child(2) {
  color: #1abc9c;
}
.logo-btn:hover span:nth-child(3) {
  color: #8e44ad;
}
.logo-btn:hover span:nth-child(4) {
  color: #e67e22;
}
.logo-btn:hover span:nth-child(5) {
  color: #1abc9c;
}
.logo-btn:hover span:nth-child(6) {
  color: #8e44ad;
}

/* Couleurs uniques pour chaque coin */
.corner-btn {
  position: relative;
  width: 60px;
  height: 60px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.corner-btn .icon {
  width: 60px;
  height: 60px;
  color: black;
  transition: color 0.1s ease;
}

.corner-btn .label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  font-family: "Matrimoine", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  mix-blend-mode: multiply;
}
/* === Survol avec couleurs et rotations === */
.btn-ane:hover .icon {
  color: hotpink;
}
.btn-ane:hover .label {
  color: cyan;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-30deg);
}

.btn-ciseaux:hover .icon {
  color: #27ae60;
}
.btn-ciseaux:hover .label {
  color: orange;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(30deg);
}

.btn-valise:hover .icon {
  color: #3498db;
}
.btn-valise:hover .label {
  color: gold;
  opacity: 1;
  transform: translate(-40%, -90%) rotate(30deg);
}

.btn-the:hover .icon {
  color: #e67e22;
}
.btn-the:hover .label {
  color: lime;
  opacity: 1;
  transform: translate(-60%, -90%) rotate(-30deg);
}

/* === SLIDER ==================================== */
.slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

/* === Scrollbar custom uniquement pour <main> === */

main {
  scrollbar-width: thin;
  scrollbar-color: orangered white;
}

main::-webkit-scrollbar {
  width: 15px;
}

main::-webkit-scrollbar-track {
  background: pink;
}

main::-webkit-scrollbar-thumb {
  background: orangered;
}

main::-webkit-scrollbar-thumb:hover {
  background: #cc3300;
}

/*ACTU !!*/

.actus-layout {
  display: flex;
}
/*.actus-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
}

.actus-content {
  max-width: 780px;
}

.actus-sidebar {
  position: sticky;
  top: 80px;
}

.actus-sidebar ul {
  list-style: none;
  padding: 0;
}

.actus-sidebar li {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.actus-sidebar li:hover {
  opacity: 1;
}
/* === ARCHIVES ACTUS ===

.actus-sidebar .year {
  font-weight: bold;
  margin-top: 1rem;
}

.actus-sidebar .year > ul {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.actus-sidebar .month {
  font-weight: normal;
  opacity: 0.6;
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.2s;
}

.actus-sidebar .month:hover {
  opacity: 1;
  transform: translateX(5px);
}
*/
/* ==== MOBILE ONLY ==== */
@media (min-width: 769px) {
  .mobile-bar,
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 768px) {
  .desktop-header,
  nav.left,
  nav.right,
  footer {
    display: none !important;
  }

  /* Barre mobile */
  .mobile-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;

    z-index: 1000;
  }

  .mobile-bar .logo-btn {
    font-size: 2rem;
    padding-left: 2rem;
  }

  .mobile-bar .burger {
    font-size: 2rem;
    background: none;
    border: none;

    cursor: pointer;
  }

  /* Menu mobile */
  .mobile-menu {
    position: fixed;
    inset: 0;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1100;
    padding: 2rem;
    overflow-y: auto;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu ul,
  .mobile-menu li {
    margin: 0;
    padding: 0.5rem;
  }

  .mobile-menu li ul {
    padding-left: 1rem;
    box-sizing: border-box;
  }

  .mobile-menu {
    box-sizing: border-box;
  }

  .mobile-menu li > strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
  }

  .mobile-menu a {
    display: block;
    font-size: 1.2rem;
    text-decoration: none;
    color: black;
    padding: 0.2rem 0;
  }
  .mobile-menu .submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu .has-submenu.open .submenu {
    max-height: 500px;
  }
  .mobile-menu .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Sous-menus collapsibles */
  .mobile-menu li ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .mobile-menu li.open ul {
    max-height: 500px;
  }

  body {
    grid-template-columns: 1rem 1fr 1rem;
    grid-template-rows: 60px 1fr 2rem;
  }
}
