/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
}

/* COULEURS */
:root {
  --accent: #a63348;
  --noir: #000000;
  --blanc: #ffffff;
  --gris: #f5f5f5;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5vw;
  background: var(--blanc);
  border: 2px solid var(--noir);
  border-radius: 100px;
  box-shadow: 5px -5px var(--noir);
  margin: 50px auto 80px;
  max-width: 1200px;
}

.headerlogos {
  display: flex;
  gap: 30px;
  align-items: center;
}

.BoutonHeader {
  background: var(--noir);
  color: var(--blanc);
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.BoutonHeader:hover {
  background: var(--accent);
}

.lestitres {
  text-align: center;
  margin-bottom: 50px;
}

.Title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.SubTitle {
  font-size: 1.8rem;
  color: var(--noir);
  font-weight: 500;
  margin-top: 10px;
}

/* ==== BARRE DE FILTRES ==== */
.filter-bar {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 30px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  background: var(--accent);
  color: var(--blanc);
  border: none;
  padding: 10px 22px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.25s;
}

.filter-btn:hover {
  background: #832733;
}

.reset-btn {
  background: var(--noir);
}

.reset-btn:hover {
  background: #333;
}

.chevron {
  transition: transform 0.3s;
}

.filter-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blanc);
  border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 10;
}

.filter-menu.show {
  display: flex;
}

.zone-option,
.structure-option {
  background: none;
  border: none;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: left;
  transition: background 0.25s;
}

.zone-option:hover,
.structure-option:hover {
  background: var(--gris);
}

/* CARTES */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 10vw;
}

.flip-card {
  width: 350px;
  height: 495px;
  perspective: 1000px;
  transition: transform 0.3s;
}

.flip-card:hover {
  transform: scale(1.03);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.card-text .description {
  font-size: 13px;
}

.flip-card .card-footer .infos p {
  font-size: 12px;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  background: var(--blanc);
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.flip-card-front .top-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-section img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.top-section h2 {
  font-size: 1.4rem;
  color: var(--noir);
}

.description {
  margin: 20px 0;
  font-size: 0.95rem;
  color: #333;
  flex-grow: 1;
  line-height: 1.5;
  text-align: justify;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin-top: auto;
}

.infos {
  flex: 1;
}

.infos p {
  font-size: 0.9rem;
  margin: 3px 0;
  color: #444;
}

.cta-view {
  background: var(--accent);
  color: var(--blanc);
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.3s;
  min-width: 100px;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
}

.cta-view:hover {
  background: #832733;
}

.flip-card-back {
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  padding: 10px;
  position: relative;
}

.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.cta-download {
 position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  background: var(--accent);
  color: var(--blanc);
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
}

.cta-download:hover {
  background: #832733;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .flip-card {
    width: 90vw;
    height: 500px;
  }

  .header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .BoutonHeader {
    font-size: 16px;
  }
  
}

/* VIDEO VERTICALE */
.video-vertical {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background-color: #ffffff;
}

.video-vertical iframe {
  width: auto;
  height: 90%;
  max-height: 90%;
  aspect-ratio: 9 / 16;
  border-radius: 1rem;
  object-fit: cover; /* crop un peu la vidéo */
}