/* === Palette === */
:root {
  --cumaru: #6C3E2A;
  --cumaru-dark: #4A2A1D;
  --blond: #D9C4A3;
  --blond-light: #E8D8B7;
  --black: #1A1A1A;
  --copper: #B97E52;
  --raspberry: #A4433B;
  --background-admin: #eeeae4;
}

/* === Base globale === */
body {
  font-family: "Cormorant Garamond", Palatino, serif;
  background-color: var(--background-admin);
  color: var(--black);
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;  
}
main{
    max-width: 1160px;
    margin: 0 auto;
}
h1 {
  font-family: "Cinzel Decorative", serif;
  font-size: 26px;
  margin-bottom: 20px;
  background-color: #fef7ea;
  padding: 16px 24px;
  border-left: 6px solid var(--cumaru);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

h2 {
  font-family: "Cormorant SC", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--cumaru);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--cumaru);
  display: flex;
  align-items: center;
  gap: 8px;
}

h2 i {
  font-size: 18px;
  color: var(--cumaru);
}

a {
  color: var(--raspberry);
}

nav a {
  text-decoration: none;
  color: var(--black);
}

/* === Boutons === */
.cta { display:flex; gap:12px; flex-wrap:wrap; }
button, .button {
  background-color: var(--raspberry);
  color: var(--background-admin);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  margin: 10px auto;
}

button:hover, .button:hover {
  background-color: var(--cumaru);
}

.page-hero {
  position: relative;
  height: 70vh;                /* presque plein écran */
  display: flex;
  flex-direction: column;
  justify-content: center;       /* centrer verticalement */
  align-items: center;           /* centrer horizontalement */
  text-align: center;
  color: #fef7ea;                /* texte clair */
  background-color: #1a1a1a;    /* couleur sombre sous l'image */
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Image de fond assombrie */
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/testes-brutes-2.jpeg'); /* ton image ici */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 20%; /* ajuster le focus si nécessaire */
  filter: brightness(0.45);        /* assombrir l'image */
  z-index: 0;
}

/* Contenu au-dessus de l'image */
.page-hero h1,
.page-hero p {
  position: relative;  /* pour être au-dessus de l'image */
  z-index: 1;
  background-color: transparent;
  box-shadow: none;
  border: none;
}


/* Titres et paragraphes */
.page-hero h1 {
  font-size: 3rem;
  margin: 0 1rem;
}

.page-hero p {
  font-size: 1.8rem;
  margin-top: 1rem;
  font-style: italic;
  color: #f0e5d8;
}

/* Wrapper autour de tout le contenu du hero */
.page-hero .hero-content {
    position: relative; /* au-dessus de l'image */
    z-index: 1;
    max-width: 800px;   /* limite largeur du bloc */
    margin: 0 auto;     /* centré horizontalement */
    padding: 1rem 2rem;
}

.hero-content .price-new, .hero-content .price-old, .hero-content .price-std {
  color: #f0e5d8;
}

.hero-content .price-old {
  font-size: 1.3rem;
}

/*sections*/
figure { 
  margin:0; 
  min-width: 350px;
}
figcaption { font-size: 14px; color:#666; margin-top:6px; }

.bloc-section {
  display: flex;
  gap: 1rem;
  margin: 20px auto;
}


.bloc-section .col{
  min-width: 400px;
}

.bloc-section .col img {
  width: 100%;
  max-width: 400px;
  object-fit: cover;      /* garde les proportions et rogne si nécessaire */
  object-position: center; /* centre le cadrage du rognage */
  border-radius: 8px;
  display: block;
}

.promo-lancement {
  font-family: "Cormorant SC", serif;
  font-size: 20px;
  background: #f4f2ee;
  padding: 1rem 1.2rem;
  border-left: 4px solid #ccc;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

/*breadcrumbs*/
.breadcrumbs {
  font-size: 0.9rem;
  color: #555;
  margin: 1.5rem 0;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--accent-color, #7a3e1d);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

iframe{
  width:380px;height:250px;border:0;border-radius:8px;
}

/* === Prix dans la liste === */
.price {
    margin: 0.5rem 0;
    font-weight: bold;
    font-size: 1rem;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.6;
    margin-left: 0.5rem;
    font-weight: normal;
    font-size: 0.9rem;
    color: #7a7a7a;
}

.price-new {
    color: #222;
}

.price-std {
    color: #222;
}

/* === Badges plus “classe” === */
.badge.sold,
.badge.unavailable {
    background: none;          /* plus de fond coloré */
    color: #555;               /* gris foncé */
    font-weight: 600;
    border: 1px solid #ccc;    /* bord fin pour matérialiser le badge */
    border-radius: 4px;
    padding: 2px 6px;
    margin-left: 10px;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* option : différencier un peu vendu / indisponible */
.badge.sold {
    border-color: #c00;
    color: #c00;
}

.badge.unavailable {
    border-color: #999;
    color: #999;
}
/* Sur mobile : empilement des colonnes */
@media (max-width: 800px) {
    body {
    padding: 0 4px;
  }
  .bloc-section {
    flex-direction: column;
  }

  .col {
    flex: 1 1 100%;
  }

  .bloc-section {
    flex-direction: column;
    align-items: center; /* pour garder un bel alignement */
  }

  .bloc-section .col {
    min-width: auto;           /* supprime les 400px imposés */
    width: 100%;               /* la colonne prend toute la largeur */
    max-width: 100%; 
  }

  figure {
    min-width: auto;           /* supprime les 350px imposés */
    width: 100%;
  }

  .bloc-section .col img {
    width: 100%;               /* image responsive */
    max-width: 100%;           
    height: auto;              /* garde les proportions */
  }

  .page-hero h1 {
    font-size: 2rem;
  }
  .page-hero p {
    font-size: 1.4rem;
  }
}

/* Footer Styles */
.site-footer {
text-align: center;
padding: 2rem 1rem;
font-size: 0.9rem;
color: var(--cumaru);
}

.site-footer a {
color: var(--cumaru);
text-decoration: none;
margin: 0 0.5rem;
}

.site-footer a:hover {
text-decoration: underline;
}