/* Structure validée le 06/11 : menu, cartes, fenêtres, pied allégé.
   Le menu (taille, centrage, bouton) est défini dans style.css. */

.btn,
.fenetre-fermer,
.filtres-journal button,
.recherche-fenetre input,
.famille-fenetre select {
  min-height: 44px;
}

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

footer.site {
  padding: 0.85rem 0 0.65rem;
}

.pied.pied-allege {
  grid-template-columns: 1fr;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

footer.site .pied-allege .logo {
  margin-bottom: 0.15rem;
}

.pied-phrase {
  margin: 0;
  line-height: 1.35;
}

.pied-allege nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.1rem 0.8rem;
  max-width: none;
}

footer.site .pied-allege nav a {
  min-height: 44px;
}

@media (min-width: 700px) {
  .pied.pied-allege {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .pied-allege nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 28rem;
    gap: 0.45rem 1rem;
  }
}

@media (min-width: 1100px) {
  .pied.pied-allege {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.2rem 1.1rem;
  }

  footer.site .pied-allege .logo {
    margin-bottom: 0.05rem;
  }

  .pied-allege nav ul {
    flex-wrap: nowrap;
    justify-content: flex-end;
    max-width: none;
    gap: 0 0.7rem;
  }

  footer.site .pied-allege nav a {
    min-height: 2rem;
    white-space: nowrap;
  }
}

.btn.blanc {
  background: var(--blanc);
  color: var(--noir);
  border-color: var(--noir);
}

.btn.blanc:hover,
.btn.blanc:focus-visible {
  background: #f4f1ea;
  color: var(--noir);
  border-color: var(--noir);
}

/* Cartes : même ossature, textes ramenés à la même hauteur visible. */
.carte-unifiee,
.carte.parfum,
.liste-journal > .carte {
  height: 100%;
}

.notes-senteur {
  margin: 0;
}

.carte-unifiee .texte-carte,
.carte.parfum .notes-principales {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.4em;
}

.composition-carte {
  margin: 0;
  color: var(--gris);
  font-size: 0.78rem;
  line-height: 1.4;
}

.composition-carte small {
  font-size: 1em;
}

.carte.sombre .composition-carte,
.carte.prestige .composition-carte,
.carte.elite .composition-carte {
  color: #bbbbbb;
}

/* Fenêtres plein écran. Sans JavaScript, elles restent dans le flux. */
html.fenetres-js .fenetre {
  display: none;
}

.fenetre-modale {
  display: none;
}

html.fenetres-js .fenetre.ouverte .fenetre-fermer,
html.fenetres-js .fenetre-modale.ouverte .fenetre-fermer {
  display: inline-flex;
}

html.fenetres-js .fenetre.ouverte,
.fenetre-modale.ouverte {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 80;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: auto;
  background: var(--creme);
  color: var(--texte);
}

.fenetre-panneau {
  width: min(var(--largeur), 92%);
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.fenetre-fermer {
  display: none;
  margin: 0.2rem 0 0.8rem;
  padding: 0.55rem 1rem;
  border: 2px solid var(--or);
  border-radius: 999px;
  background: var(--or);
  color: var(--noir);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.fenetre h2,
.fenetre h3 {
  color: var(--noir);
}

.recherche-fenetre,
.famille-fenetre {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.recherche-fenetre input,
.famille-fenetre select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #8d8d8d;
  border-radius: 10px;
  background: var(--blanc);
  color: var(--texte);
  font: inherit;
  font-weight: 400;
}

.choix-genre,
.collections-haut,
.filtres-journal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.collections-haut {
  margin: 0.4rem 0 1rem;
}

.filtres-journal {
  margin: 0 0 1.2rem;
}

.filtres-journal button {
  padding: 0.5rem 0.95rem;
  border: 2px solid var(--or-texte);
  border-radius: 999px;
  background: var(--blanc);
  color: var(--texte);
  font: inherit;
  cursor: pointer;
}

.filtres-journal button[aria-pressed="true"] {
  border-color: var(--or);
  background: var(--or);
  color: var(--noir);
  font-weight: 600;
}

@media (max-width: 639px) {
  .collections-haut .btn,
  .choix-genre .btn,
  .fenetre-fermer {
    width: 100%;
  }
}

#choix-parfums,
.fenetre,
.liste-journal {
  scroll-margin-top: 5.5rem;
}

@media (min-width: 1240px) {
  #choix-parfums,
  .fenetre,
  .liste-journal {
    scroll-margin-top: 9.5rem;
  }
}

html.fenetre-ouverte,
html.fenetre-ouverte body {
  overflow: hidden;
}

.liste-journal .visuel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin: 10px 10px 0;
}

.liste-journal .visuel img {
  width: auto;
  max-width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.liste-journal .resume-journal {
  min-height: 4.8em;
}

.liste-journal > .carte:nth-child(even) {
  background: #0c0c0c;
  color: #eeeeee;
  border: 1px solid #3a2f14;
}

.liste-journal > .carte:nth-child(even) h3,
.liste-journal > .carte:nth-child(even) h3 a,
.liste-journal > .carte:nth-child(even) .etiquette {
  color: var(--or);
}

.liste-journal > .carte:nth-child(even) p {
  color: #cccccc;
}

.liste-journal > .carte:nth-child(even) .btn.contour.sombre {
  color: var(--or);
  border-color: var(--or);
}

.liste-journal.filtre-actif > .carte {
  background: var(--blanc);
  color: inherit;
  border: 0;
}

.liste-journal.filtre-actif > .carte h3,
.liste-journal.filtre-actif > .carte h3 a {
  color: var(--noir);
}

.liste-journal.filtre-actif > .carte .etiquette {
  color: var(--or-texte);
}

.liste-journal.filtre-actif > .carte p {
  color: var(--gris);
}

.liste-journal.filtre-actif > .carte .btn.contour.sombre {
  color: var(--noir);
  border-color: var(--noir);
}

.liste-journal.filtre-actif > .carte.alterne {
  background: #0c0c0c;
  color: #eeeeee;
  border: 1px solid #3a2f14;
}

.liste-journal.filtre-actif > .carte.alterne h3,
.liste-journal.filtre-actif > .carte.alterne h3 a,
.liste-journal.filtre-actif > .carte.alterne .etiquette {
  color: var(--or);
}

.liste-journal.filtre-actif > .carte.alterne p {
  color: #cccccc;
}

.liste-journal.filtre-actif > .carte.alterne .btn.contour.sombre {
  color: var(--or);
  border-color: var(--or);
}

.intro-accueil {
  display: grid;
  gap: 1.3rem;
  align-items: center;
}

@media (min-width: 800px) {
  .intro-accueil {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.accueil-gammes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.accueil-gammes .btn {
  min-width: 44px;
}

.cta-compact {
  gap: 0.45rem;
  padding: 0.85rem 1rem;
}

.cta-compact p {
  margin: 0;
}

.page-quiz > section {
  padding-top: 0.4rem;
  padding-bottom: 1rem;
}

.page-quiz h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.cercle-encart {
  padding-top: 0;
}
