* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  color: black;
}
@font-face {
  font-family: "typo";
  src: url("Baby\ Monsta.otf");
 }
 .orange{
  color: #e65a16;
 }
 .violet{
  color: indigo;
 }
 .jaune{
  color: goldenrod;
 }
 main{
  overflow: hidden;
 }
/* HEADER */
header {
  background: black;
  position: relative;
  top: 0;
  z-index: 10;
  height: 120px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.logo {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: absolute;
  right: 16px;
  top: 24px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #1e7ec8;
}
.precom{
 position: absolute;
 top: 81px;
 left: 15px;
 padding-left: 6px;
 padding-right: 6px;
 padding-top: 3px;
 padding-bottom: 3px;
 border-radius: 3px;
 background-color: #1e7ec8;
 border: none;
}
.precom a{
  text-decoration: none;
  color: white;
}

/* MENU */
nav {
  position: absolute;
  top: 120px;
  width: 100%;
  display: none;
  flex-direction: column;
  background: black;
  z-index: 30;
}

nav a {
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.2);
}

nav a:hover, .submenu-toggle:hover {
  color: #f6ff98;
}

.submenu-toggle {
  background: none;
  border: none;
  color: white;
  padding: 12px 16px;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu {
  display: none;
  flex-direction: column;
  background: black;
}

.submenu a {
  padding: 10px 30px;
  color: white;
  text-decoration: none;
  font-size: 15px;
}

.has-submenu.open .submenu {
  display: flex;
}

/* Desktop */
@media (min-width: 768px) {
  .has-submenu {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 20;
  }

  .has-submenu:hover .submenu {
    display: flex;
  }
}

/* SECTIONS */
main {
  position: relative;
}




h1{
  position: absolute;
  font-size: 27px;
  left: 16px;
  top: 6px;
  font-family: "typo";
  color: #8f6e16;
  letter-spacing: 0.05em;
}
.courses{
  position: absolute;
  top: 36px;
  left: 16px;
  font-weight: bold;
  font-size: 13px;
  color:#646464;
}
.accueil{
  position: relative;
  background-color: black;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 600px;
  color: white;
  overflow: hidden;
  padding-bottom: 30px;
}
.slide.active{
  position: relative;
}
.txtprincipal{
  position: absolute;
  left: 30%;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.3);
}
/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #333;
  color: white;
  font-size: 14px;
  justify-content: space-around;
}
footer a{
  color: white;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
.insc{
  position: absolute;
  bottom: 72px;
  left: 30px;
  padding: 12px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: bold;
  background-color: #1e7ec8;
  color: white;
  border-radius: 6px;
  border: none;
}
.soon{
  font-weight: normal;
  font-size: 12px;
}
.insc:hover{
  background-color: #8f6e16;
  color: white;
  transition-duration: 0.2s;
  cursor: pointer;
}
.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top;
  opacity: 0.4;
}

.caption {
  position: absolute;
  top: 180px;
  left: 10%;
  width: 80%;
  font-family: "typo";
  color: white;
  padding: 10px 15px;
}
.one{
  font-size: 36px;
  font-family: 'typo';
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px black;
}
.two{
font-size: 16px;
font-weight: bold;
text-shadow: 1px 1px 2px black;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 5px 12px;
  cursor: pointer;
}
.arrow-left {
  left: 10px;
}

.arrow-right {
  right: 10px;
}   
.livre{
  background-color: #aa6948;
  padding-top: 60px;
  padding-bottom: 60px;
}
.livre img{
  width: 80%;
  margin-left: 10%;
  -webkit-box-shadow: 5px 5px 15px 5px #000000; 
box-shadow: 5px 5px 15px 5px #000000;
margin-bottom: 30px;
}
.livre h3{
  margin-left: 10%;
  width: 80%;
}
.livre p{
  margin-left: 10%;
  width: 80%;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: justify;
}
.livre button{
  margin-left: 10%;
  margin-top: 15px;
  padding-left: 6px;
 padding-right: 6px;
 padding-top: 3px;
 padding-bottom: 3px;
 border-radius: 3px;
 background-color: #1e7ec8;
 color: white;
 border: none;
}
.musique{
  padding-left: 10%;
  padding-right: 10%;
  background-image: url(ocean.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  padding-top: 30px;
  padding-bottom: 30px;
  color: white;
  text-align: center;
  border-top: white solid 1px;
}
.musique h3{
  margin-bottom: 30px;
  font-size: 30px;
}
.player {
    background: #16213e;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 30px;
  }
.player p{
  margin-bottom: 12px;
}
  .cover {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .progress-container {
    background: #0f3460;
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 20px;
  }

  .progress {
    background: #e94560;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.05s linear;
  }

  .controls {
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  .controls button {
    background: #0f3460;
    border: none;
    color: white;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
  }


  .controls button.active {
    background: #e94560;
  }
  .loop{
    width: 20px;
    height: auto;
  }
.discomusic a{
  color: white;
}

.sctavis{
  background-color: #8f6e16;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  overflow: hidden;
}
.sctavis p{
  font-size: 24px;
  font-weight: bold;
  color: white;

}
.carousselavis{
  padding-top: 30px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
  overflow-x: scroll;
  padding-left: 12px;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0 95%);

}
.avis{
  height: 300px;
  width: 210px;
  background-color: #000000;
  color: white;
  border-radius: 12px;
  border: 1px solid white;
  padding: 15px;
  text-align: center;
}
.avis img{
  width: 50px;
  height: 50px;
  border-radius: 50px;
}
.avis p{
  font-size: 15px;
}
.montant{
  margin-top: -15px;
}


.commerce{
  text-align: center;
  background-image: url(intérieur-de-la-cabine-du-capitaine-sur-bateau-pirate-à-l-d-un-vieux-en-bois-292657721.jpeg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: white solid 1px;
}
.commerce h3{
  font-size: 30px;
}
.grillearticles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px; /* remplace tes marges */
  justify-content: center;
  margin-top: 30px;
}
.boxarticle{
  width: 150px;
  height: auto;
  background-color: #16213e;
  padding: 6px;
}
.boxarticle img{
  width: 80%;
  height: auto;
}
.article{
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: bold;
}
.achat{
  background-color: #265b9c;
  border-radius: 6px;
  border: none;
  padding: 3px;
  margin: 6px;
}
.achat a{
  text-decoration: none;
  color: antiquewhite;
}
.discocale{
  margin-top: 30px;
  margin-bottom: 30px;
}
.discocale a{
  color: white;
  font-size: 24px;
}
.liens{
  background-image: url(archives.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  border-top: white solid 1px;
  height: 300px;
  text-align: center;
  padding-top: 120px;
}
.liens a{
  color: white;
  font-size: 30px;
}
.contact{
  text-align: center;
  background-color: #000000;
  padding-top: 60px;
  padding-bottom: 60px;
}
.contact a{
text-decoration: none;
color: white;
animation-duration: 0.2s;
transition-duration: 0.2s;
font-size: 18px;
}
.mailto:hover{
  font-size: 24px;
}





/* ============================================ */
/* ===== TABLETTE (≥ 600px) ===== */
/* ============================================ */
@media (min-width: 600px) {

  /* Header plus spacieux */
  header {
    height: 140px;
  }

  h1 {
    font-size: 34px;
    top: 10px;
  }

  .courses {
    top: 48px;
    font-size: 15px;
  }

  .precom {
    top: 95px;
  }

  /* Menu toujours burger mais plus large */
  nav {
    top: 140px;
  }

  nav a {
    font-size: 18px;
  }

  /* Slider */
  .accueil {
    height: 700px;
  }

  .slide img {
    height: 700px;
  }

  .caption {
    top: 220px;
    left: 15%;
    width: 70%;
  }

  .one {
    font-size: 44px;
  }

  .two {
    font-size: 18px;
  }

  .insc {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
  }

  /* Livre : passage en 2 colonnes */
  .livre {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
    padding: 60px 10%;
  }

  .livre img {
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
  }

  .livre h3,
  .livre p
  {
    margin-left: 0;
    width: 100%;
  }
  .livre button {
    margin-left: 0;
    width: 240px;
  }

  /* Musique */
  .player {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Commerce : 3 colonnes */
  .grillearticles {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .boxarticle {
    max-width: 240px;
    padding: 16px;
  }

  .commerce h3 {
    font-size: 36px;
  }
}

/* ============================================ */
/* ===== PC (≥ 1024px) ===== */
/* ============================================ */
@media (min-width: 1024px) {

  /* Header transparent en overlay */
  header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: transparent;
    height: auto;
  }

  .burger {
    display: none;
  }

  .logo {
    visibility: visible;
    position: absolute;
    top: 12px;
    left: 60px;
    width: 60px;
    height: auto;
    z-index: 40;
  }

  /* Menu horizontal */
  nav {
    position: absolute;
    top: 6px;
    width: 100%;
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    background-color: transparent;
  }

  nav a {
    border: none;
    font-size: 18px;
    padding: 12px 20px;
  }

  .submenu-toggle {
    font-size: 24px;
  }

  .has-submenu {
    position: relative;
  }

  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 20;
  }

  .has-submenu:hover .submenu {
    display: flex;
  }

  /* Titre centré sur le slider */
  h1 {
    position: absolute;
    width: 100%;
    left: 0;
    top: 240px;
    color: white;
    font-size: 60px;
    text-align: center;
  }

  .courses {
    width: 100%;
    text-align: center;
    top: 300px;
    left: 0;
    color: #8f6e16;
    font-size: 30px;
  }

 .precom {
  top: 24px;
  right: 20px;
  left: auto;
  transform: none;
}

  /* Slider grand */
  .accueil {
    height: 810px;
    background-position: bottom;
  }

  .slide img {
    height: 810px;
    object-position: top;
  }

  .slider-track {
    position: absolute;
  }

  .caption {
    top: 540px;
    left: 10%;
    width: 60%;
  }

  .one {
    font-size: 52px;
  }

  .two {
    font-size: 20px;
  }

  /* Flèches visibles */
  .arrow {
    display: block;
    transform: initial;
    top: 50%;
    transform: translateY(-50%);
  }

  .insc {
    left: 50%;
    transform: translateX(-50%);
    bottom: 360px;
    font-size: 22px;
  }

  /* Livre : 2 colonnes équilibrées */
  .livre {
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    padding: 80px 15%;
  }

  .livre img {
    width: 80%;
    margin: 0 auto;
  }

  .livre h3 {
    font-size: 24px;
  }

  .livre p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Musique */
  .musique {
    padding: 50px 20%;
  }

  .player {
    max-width: 600px;
  }

  /* Commerce : 4 colonnes */
  .commerce {
    padding: 50px 15%;
  }

  .commerce h3 {
    font-size: 40px;
  }

  .grillearticles {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .boxarticle {
    max-width: 280px;
    padding: 20px;
  }

  .boxarticle img {
    width: 90%;
  }

  .article {
    font-size: 20px;
  }

  .achat {
    padding: 8px 20px;
  }

  /* Footer */
  footer {
    font-size: 16px;
    padding: 30px;
  }

  .montant {
    margin-top: -30px;
  }
}

/* ===== ULTRA-WIDE (≥ 1400px) ===== */
@media (min-width: 1400px) {
  .grillearticles {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}