@import url('https://use.typekit.net/hgc3bnc.css');
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  transition: all 0.3s ease;
}

body {
  text-align: center;
  font-family: system-ui, sans-serif;
  background: #000000;
  color: #ffffff;
}

/* ===== LAYOUT PRINCIPAL ===== */

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #750202;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo {
  width: 100px;
}

/* === SECTIONS === */
#accueil {
  position: relative;
  display: grid;
  height: 600px;
  place-items: center;
  background: url(./asset/arriere-plan.png) center/cover no-repeat;
  z-index: 0;
}

#catalogue {
  padding: 60px;
  padding-top: 70px;
  padding-bottom: 100px;
  background-color: #FFD93D;
}

#localisation {
  padding: 60px;
  background-color: #ffffff;
}

#grandenfant {
  padding: 50px;
  background-color: #D90000;
  display: grid;
  justify-content: center;
}

/* ===== COMPOSANTS ===== */

/* === NAVIGATION & BURGER === */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

.nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  background: #a80d0d;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav.active {
  display: flex;
}

.nav a {
  color: #ffffff;
  padding: 1rem;
  font-family: "Barlow";
  font-weight: bold;
  transition: 0.3s;
}

.nav a:hover {
  color: #ffbf00;
  font-weight: bolder;
}

/* === CAROUSEL === */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  margin-bottom: 70px;
}

.carousel::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.carousel::-webkit-scrollbar-track {
  background: transparent;
}

.carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.slide {
  flex: 0 0 auto;
  width: 220px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
}

.slide img {
  background: #ffffff;
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.slide h4 {
  text-align: center;
  padding: 8px;
  background: #1c1c1c;
  color: white;
  font-size: 0.9rem;
}

/* === CARDS ADULTES === */
.container, #gmaps {
  display: grid;
  justify-content: center;
  align-items: center;
}

.ad {
  position: relative;
  padding: 5%;
  width: 200px;
  height: 200px;
  border-radius: 10%;
  margin: 20px;
  display: grid;
  align-items: end;
}

.ad::before {
  border-radius: 10%;
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ad h1 {
  position: relative;
  z-index: 2;
  color: white;
}

#construction {
  background: url(./asset/adulte/construction-adultes.jpg);
  background-size: cover;
  background-position: center;
}

#jeux-societe {
  background: url(./asset/adulte/jeux-societe-adultes.webp);
  background-size: cover;
  background-position: center;
}

#figurines {
  background: url(./asset/adulte/jouet.webp);
  background-size: cover;
  background-position: center;
}

/* === MAP === */
.map {
  width: 100%;
  height: 450px;
  margin-top: 50px;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

/* === GAUCHE SECTION === */
.gauche {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#gmaps {
  background: url(./asset/gmaps.png);
  width: 200px;
  height: 200px;
  border-radius: 100%;
}

/* ===== TYPOGRAPHIE ===== */

/* Titres communs */
.h1t1, .h1t2, .h1t3 {
  font-family: "marvin", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16pt;
}

.h1t1 { color: white; }
.h1t2 { color: #750202; }
.h1t3 { color: #FFD93D; }

.p1 {
  font-family: "Gadugi";
  font-weight: lighter;
  font-size: 15pt;
  color: #750202;
  margin: 12px 30px 60px 30px;
}

/* ===== BOUTONS & LIENS ===== */

.b1, .b2 {
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
  display: inline-block;
}

.b1 {
  background-color: #750202;
  color: #ffffff;
  font-size: 12pt;
}

.b2 {
  background-color: #FFD93D;
  color: #750202;
  margin-top: 20px;
}

#bs1 {
  margin-bottom: 150px;
}

a:hover {
  text-decoration: underline;
}

.ad h1 {
    font-size: 12pt;
  }

/* ===== FOOTER ===== */
footer {
  background-color: #D7A100;
  color: white;
  padding: 20px;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .burger {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    box-shadow: none;
    width: auto;
    background: transparent;
  }

  .nav a {
    padding: 0 1rem;
    font-size: 16pt;
  }

  .container, #localisation, #gmaps {
    display: flex;
  }

  .h1t1, .h1t2, .h1t3 {
    font-size: 32pt;
  }
  
  .b1 {
    padding: 10px;
    font-size: 20pt;
    margin-top: 30px;
  }

  .ad h1 {
    font-size: 16pt;
  }
}