/**
 * "Voir nos projets": the section that points POLTEXT's visitors at the team's three
 * live projects (src/components/Projects.astro), and the one-line strip above the
 * contact band on every other page (src/layouts/Base.astro).
 *
 * Loaded after archive.css. Everything here is written in the 2015 theme's own
 * vocabulary — its grey card, its soft shadow, its ruled heading, its square "+" —
 * and follows its 950px / 975px breakpoints, so the section reads as part of the site.
 */

/* -------------------------------------------------------------------------- */
/* The front-page section                                                       */
/* -------------------------------------------------------------------------- */

/* The three 2015 cards above are floated and never cleared, so the section clears
   them itself and spaces with padding, which floats cannot swallow. */
#projets {
  clear: both;
  max-width: 950px;
  margin: 0 auto;
  padding: 55px 10px 0;
  font-family: "proximaLight", Myriad Pro, sans-serif;
  color: #2d2d2d;
}

#projets h2 {
  margin: 0 0 20px;
  text-align: center;
  font-family: "proximaBold", Myriad Pro, sans-serif;
  font-size: 17px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

#projets .border {
  width: 30px;
  border-top: 1px solid #2d2d2d;
  display: block;
  margin: 0 auto;
}

#projets .projets-intro {
  margin: 14px auto 0;
  max-width: 460px;
  text-align: center;
  font-size: 14px;
}

.projets-cartes {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.projet {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  padding: 25px 20px 20px;
  background-color: #f7f7f7;
  box-shadow: 4px 4px 8px 0 rgba(50, 50, 50, 0.15);
  text-align: center;
}

.projet-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  width: 100%;
}

.projet-logo img {
  max-width: 230px;
  max-height: 84px;
  width: auto;
  height: auto;
}

.projet-logo img.pixel {
  image-rendering: pixelated;
  max-height: 80px;
}

.projet h3 {
  margin: 22px 0 0;
  font-family: "proximaBold", Myriad Pro, sans-serif;
  font-size: 15px;
  font-weight: normal;
}

.projet > p {
  margin: 12px 0 0;
  max-width: 240px;
  font-size: 14px;
  line-height: 1.45;
}

.projet .projet-actions {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.projet-ouvrir {
  font-family: "proximaBold", Myriad Pro, sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2d2d2d;
  text-decoration: none;
  border-bottom: 1px solid #2d2d2d;
  padding-bottom: 2px;
}

.projet-ouvrir:hover,
.projet-ouvrir:focus-visible {
  color: #764e18;
  border-color: #764e18;
}

/* The theme's square "+" (#contenu .navContenu), restated so it applies outside
   #contenu and to a <button>. */
.projet .projet-apercu {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid #2d2d2d;
  border-radius: 0;
  background: transparent;
  color: #2d2d2d;
  font-family: "proximaBold", Myriad Pro, sans-serif;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.projet .projet-apercu:hover,
.projet .projet-apercu:focus-visible,
.projet .projet-apercu[aria-expanded="true"] {
  background-color: #2d2d2d;
  color: #f7f7f7;
}

/* The shared preview panel: an iframe under the cards, only populated on request. */
.projets-panneau {
  margin-top: 17px;
  background-color: #1e1e1e;
  box-shadow: 4px 4px 8px 0 rgba(50, 50, 50, 0.15);
}

.projets-panneau[hidden] {
  display: none;
}

.projets-panneau-titre {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 12px 15px;
  color: #f7f7f7;
  font-size: 14px;
}

#projets-panneau-nom {
  font-family: "proximaBold", Myriad Pro, sans-serif;
}

#projets-panneau-lien {
  color: #f7f7f7;
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 247, 247, 0.5);
}

#projets-panneau-lien:hover {
  border-color: #f7f7f7;
}

.projets-fermer {
  margin-left: auto;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #f7f7f7;
  border-radius: 0;
  background: transparent;
  color: #f7f7f7;
  font-family: "proximaBold", Myriad Pro, sans-serif;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.projets-fermer:hover,
.projets-fermer:focus-visible {
  background-color: #f7f7f7;
  color: #1e1e1e;
}

#projets-cadre {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 520px;
  max-height: 760px;
  border: 0;
  background-color: #fff;
}

@media screen and (min-width: 975px) {
  #projets {
    padding: 55px 0 0;
  }
  .projet {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* -------------------------------------------------------------------------- */
/* The strip above the contact band on every other page. Text only.            */
/* -------------------------------------------------------------------------- */

.projets-bandeau {
  max-width: 950px;
  margin: 50px auto -30px;
  padding: 0 10px;
  font-family: "proximaLight", Myriad Pro, sans-serif;
  font-size: 14px;
  color: #2d2d2d;
  text-align: center;
}

.projets-bandeau p {
  margin: 0;
  padding: 12px 15px;
  border-top: 1px solid #c3baaf;
  border-bottom: 1px solid #c3baaf;
  display: inline-block;
}

.projets-bandeau-titre {
  font-family: "proximaBold", Myriad Pro, sans-serif;
  margin-right: 10px;
}

.projets-bandeau-titre::after {
  content: " :";
}

html[lang="en"] .projets-bandeau-titre::after {
  content: ":";
}

.projets-bandeau-sep {
  margin: 0 8px;
  color: #8c8175;
}

.projets-bandeau a {
  color: #2d2d2d;
  text-decoration: none;
  border-bottom: 1px solid #8c8175;
}

.projets-bandeau a:hover,
.projets-bandeau a:focus-visible {
  color: #764e18;
  border-color: #764e18;
}
