/* ==========================================
   Importation des polices
========================================== */

/* @import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;700&display=swap");

/* ==========================================
   Globales
========================================== */
* {
  margin: 0;
  padding: 0; 
  box-sizing: border-box;
  font-family: "Cormorant Garamond", serif;
}

.contact {
  width: 700px;
  margin: 40px auto;
  background: linear-gradient(135deg, #6a6a6a, #4a4a4a);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Classes générales à utiliser de manière générales
========================================== */

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.burger_menu {
  display: none;
}

/* ==========================================
   Body
========================================== */

body {
  /* background-color: #292929; */
  /* font-family: "Playfair", display; */
}

/* ==========================================
   Typographie
========================================== */

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* .contain {
  min-height: 70vh;
  background-image: blur(/images/couronne_accueil.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
} */
.contain {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: white;
  
}

.contain::before {
  content: "";
  position: absolute;
  inset: 0; /* remplace top, left, width, height */
  background: url(../images/couronne_accueil.webp) center/cover no-repeat;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.5);
  filter: blur(8px);
  z-index: 0;
}

.contain > * {
  position: relative;
  z-index: 1;
}

.confirmation {
  color: whit;
  text-align: center;
  font-size: 2rem;
}

/* ==========================================
   Sections générales
========================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.allQui {
  background-color: #171614;
  margin: 0 auto;
  color: #fff;
  width: 50%;
  align-items: center;
}

.moit-moit {
  width: 25%;
  background-image: url(../images/DALL·E\ 2024-12-02\ 15.20.38\ -\ A\ beautifully\ detailed\ crown\,\ inspired\ by\ a\ fairytale\ princess\ like\ Belle\,\ with\ intricate\ golden\ patterns\,\ a\ central\ rose-shaped\ gemstone\,\ and\ sparkli.webp);
  background-position: center;
}

.quiP {
  font-size: 30px;
  text-align: center;
  display: block;
}

.leH1 {
  text-align: center;
}

/* ==========================================
   Navigation
========================================== */
nav {
  max-width: 100vw;
  height: 15vh;
  background-color: #171614;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav > div {
  height: 100%;
}

nav > div > img {
  height: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ffd700;
}

/* ==========================================
   Boutons
========================================== */
button,
a.button {
  background-color: #ffd700;
  color: #000;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

button:hover,
a.button:hover {
  background-color: #fff;
  color: #000;
}

/* ==========================================
   Section Accueil
========================================== */
.section_home {
  display: flex;
  justify-content: space-between;
  background-color: #000;
  position: relative;
  color: #fff;
}

.section_home > p {
  width: 25%;
  font-size: 45px;
  margin: 20px auto 0;
  text-align: center;
}

.section_home > div:last-child {
  width: 65%;
}

.img_crown_home {
  background-image: url("../images/couronne_accueil.webp");
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.img_crown_home > h2 {
  position: absolute;
  top: 0;
  left: 50px;
  font-size: 50px;
  max-width: 100%;
}

/* ==========================================
   Section Détail
========================================== */
.detail {
  margin: auto;
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  width: 1200px;
  height: 1200px;
}

.detail-img {
  margin: auto;
  width: 50%;
  height: 50%;
}

.detail-img > img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.example-wrapper {
  margin-top: 50px;
  width: 50%;
  margin: auto;
  font-size: 20px;
}

/* ==========================================
   Formulaire d'inscription
========================================== */
/* .forminsc {
  background-color: #727272;
  margin: auto;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
}

.forminsc h1 {
  margin-bottom: 20px;
}

.forminsc .form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.forminsc .btn {
  background-color: #555;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.forminsc .btn:hover {
  background-color: rgb(59, 57, 49);
  color: #ae8407;
}

.form-inscription {
  background-color: #727272;
  margin: auto;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
}

.form-inscription h1 {
  margin-bottom: 20px;
}

.form-inscription .form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.form-inscription .btn {
  background-color: #555;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
} */
/* Formulaire d'inscription */

.form_reg_con {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.forminsc,
.form-inscription {
  background: linear-gradient(135deg, #6a6a6a, #4a4a4a);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
h1 {
  margin-bottom: 15px;
  font-size: 22px;
}

.form {
  display: flex;
  flex-direction: column;
}

.form > form > div:last-child {
  display: flex;
}

input,
select,
textarea {
  margin: 10px 0;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #333;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ae8407;
}

.btn {
  margin: auto;
  background: #ae8407;
  border: none;
  color: white;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background: #c89f0f;
  transform: scale(1.05);
}

/* ==========================================
   Produits
========================================== */
.products-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.products-wrapper h1 {
  font-size: 2.5em;
  margin-bottom: 40px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.product-card:hover {
  transform: scale(1.05);
}

.product-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

.product-title {
  font-size: 1.8em;
  margin: 20px 0;
  color: #333;
}

.product-description {
  font-size: 1.3em;
  color: #000;
  margin-bottom: 20px;
}

.product-price {
  font-size: 1.5em;
  color: #b47903;
}

.btn-add-to-cart {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4b4b4b;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
}

.btn-add-to-cart:hover {
  background-color: #b47903;
  transform: translateY(-2px);
}

/* ==========================================

Panier

=============================================*/

#produits-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  font-size: 20px;
}

#produits-list > div:last-child > h2 {
  font-size: 40px;
  color: white;
}

#h1-panier {
  color: white;
  text-align: center;
  font-size: 25px;
  text-decoration: underline;
  margin: 20px 0 20px 0;
}
/* ==========================================

CSS formulaire de livraison

=============================================*/
.livraison {
  color: white;
  text-align: center;
}
.livraison h3 {
  font-size: 3rem;
  margin-bottom: 20px;
}
/* ==========================================

CSS formulaire de paiement

=============================================*/

form[name="payment"] {
  background-color: #222;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  margin: auto;

  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
}

/* Style des labels */
.payment label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

/* Style des champs de saisie */
.payment input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #fff;
  background-color: transparent;
  color: #fff;
  border-radius: 4px;
  outline: none;
}

/* Placeholder style */
.payment input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Style du bouton */
.payment button {
  width: 100%;
  padding: 10px;
  background-color: #fff;
  color: #000;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.payment button:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Focus sur les champs */
.payment input:focus {
  border-color: #fff;
  box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.6);
}

/* Style des messages d'erreur */
.payment .invalid-feedback {
  color: #ff4d4d;
  font-size: 0.9em;
  margin-top: -10px;
  margin-bottom: 10px;
}

#payment div {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-around;
  width: 90%;
}

#payment div label,
#payment div input {
  width: 50%;
}

/* ==========================================
   conditions générales de ventes
========================================== */

.conditions {
  padding: 30px 0;
  color: white;
  font-size: 20px;

  p {
    margin: 20px auto;
    text-align: justify;
    width: 1000px;
    font-size: 19px;
    font-weight: 600;
  }

  h1 {
    text-align: center;
    text-decoration: underline;
    font-size: 2rem;
  }

  h2 {
    text-align: center;
  }
}

/* ==========================================
   Responsive avec media queries 
========================================== */

/* Résolution par défaut (écrans larges) */
body {
  font-size: 16px;
}

/* Écrans moyens : tablettes */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 10px;
  }
  .section_home .text-home {
    width: 50%;
    font-size: 35px;
    padding: 20px;
  }
}

/* Écrans petits : téléphones */
@media (max-width: 576px) {
  body {
    font-size: 12px;
    width: 100%;
  }
  .section_home .text-home {
    width: 100vw;
    height: min-content;
    font-size: 20px;
    text-align: left;
    margin: 0;
  }

  .section_home {
    display: flex;
    flex-direction: column;
  }

  .img_crown_div {
    width: 100vw;
  }
  .img_crown_home {
    height: 300px;
    width: 100vw;
  }

  .container {
    padding: 5px;
  }

  .navbar {
    flex-direction: column;
  }

  nav {
    height: 100px;
    position: relative;
  }

  nav > div {
    width: 50px;
    height: 50px;
  }

  nav > ul {
    display: none;
  }

  /* Menu burger */
  .burger_menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .list_menu {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.714);
    left: 127px;
    top: 100px;
    z-index: 3;
    height: auto;
    width: auto;

    ul {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 30px;
      text-align: center;

      li {
        margin: 10px 0;
        a {
          font-size: 30px;
        }
      }
    }
  }

 .contact {
    width: 100%;
  }

  /* Page produits */
  .product-title {
    margin-bottom: 0;
  }

  .product-price {
    font-size: 25px;
  }
  .btn-add-to-cart {
    display: block;
    margin: 10px 0;
  }

  .product-image {
    max-height: 500px;
  }
}

/* ==========================================
   Pied de page
========================================== */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 15vh;
  background-color: #171614;
  color: white;
  text-align: center;
}

footer ul li {
  list-style-type: none;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
}


